Article 5DSJV New Linux user, Ubuntu Server 20.04

New Linux user, Ubuntu Server 20.04

by
kosta88
from LinuxQuestions.org on (#5DSJV)
Hello,

this is my first post here.

3 days ago I decided to install an Ubuntu Server onto my newly built server into VMware. So please bear with me, because I started by looking up what to use except "dir", OK? :)

Two reasons behind it:
- I discovered Docker on my Synology and was very impressed, so I wanted something more performing
- a bit of an urge to actually learn something new, beside Windows (which I know pretty good, being a system admin)

So I simply installed it, and started googling. It has been very steep two days, but all my docker images are running now, and I have managed to resize my main disk and add a 2nd one and update the system.

I am majorly impressed by speed and stability. And I believe I will become a Linux fan (not giving up windows, but I think it is a great addition).

So I have my first question here:
After adding a second disk, and partitioning it with parted and formatting with mkfs, I noticed after running lsblk this:

sda 8:0 0 40G 0 disk
sda1 8:1 0 1M 0 part
sda2 8:2 0 1G 0 part /boot
sda3 8:3 0 39G 0 part
ubuntu--vg-ubuntu--lv 253:0 0 39G 0 lvm /
sdb 8:16 0 200G 0 disk
sdb1 8:17 0 186.3G 0 part

sr0 11:0 1 1024M 0 rom

Why is sdb1 186.3G instead 200G? I see my main partition being 40GB is noted as 39G, which is much closer to 40GB than these 186G.

I did this:
$ sudo parted /dev/sdb
GNU Parted 3.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) unit GB
(parted) mkpart
Partition name? []? primary
File system type? [ext2]? ext4
Start? 0
End? 200
(parted) print
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 215GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 0.00GB 200GB 200GB ext4 primary

(parted) quit
Information: You may need to update /etc/fstab.

-------

$ sudo mkfs -t ext4 /dev/sdb1
mke2fs 1.45.6 (20-Mar-2020)
Creating filesystem with 48827904 4k blocks and 12214272 inodes
Filesystem UUID: 561bfcec-2efd-4964-a7b8-127c20d91325
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done

-------------

Any explanation?

Thanks!latest?d=yIl2AUoC8zA latest?i=k0dOE7eC1cs:GtP_DQbJAdc:F7zBnMy latest?i=k0dOE7eC1cs:GtP_DQbJAdc:V_sGLiP latest?d=qj6IDK7rITs latest?i=k0dOE7eC1cs:GtP_DQbJAdc:gIN9vFwk0dOE7eC1cs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments