It is possible to add disk, simply create filesystem and use it without partition. But what are the drawbacks?
For example, can I extend such disk (with
resize2fs) later? Can I recover the filesystem in case of some trouble? Is there any important reason to partition it?
-bash-4.2# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda2 30G 1.3G 27G 5% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.4M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/vdb 30G 45M 28G 1% /disk /dev/vda1 283M 150M 115M 57% /boot tmpfs 380M 0 380M 0% /run/user/0
/dev/vda has two partitions. I added another disk and did just
Fdisk shows only this, as expected:
-bash-4.2# fdisk -l /dev/vdb Disk /dev/vdb: 32.2 GB, 32212254720 bytes, 62914560 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes