Features:
1. Ability to provision extra storage on-the-fly
Steps:
1. Identify available storage
a. 'fdisk -l' - returns connected storage
2. Create partitions on desired hard drive:
a. 'fdisk /dev/sdb' - interacts with /dev/sdb drive
b. 'n' - to add a new partition
c. 'p' - primary
d. '1' - start cylinder
e. '+4096M' - to indicate 4 Gigabytes
f. 'w' - to write the changes to the disk
Note: use 'partprobe partition (/dev/sdb1)' to force a write to a hard drive's partition table on a running system
Note: 'fdisk' creates raw partitions
3. Overlay (format) the raw partition with a file system
a. mke2fs -j /dev/sdb1 - this will write inodes to partition
4. Mount the file system in the Linux file system hierarchy:
a. mkdir /home1 && mount /dev/sdb1 /home1
b. mount OR df -h - either will reveal that /dev/sdb1 is mounted
Note: lost+found directory is created for each distinct file system
5. Configure '/home1' to auto-mount when the system boots
a. nano /etc/fstab and copy and modify the '/home' entry
No comments:
Post a Comment