Install a New Internal Hard Disk

Install New Internal Hard Disk

Steps

1. sudo lshw -C disk
2. sudo lvm
        pvcreate /dev/sd?
        vgcreate VolGroupName
        lvcreate VolGroupName -n lvname001 -l 100%VG
        lvrename VolGroupName lvname001 LogicalVolName
3. sudo mkfs.ext4 /dev/VolGroupName/LogicalVolName
4. sudo mkdir -p  /VolGroupName/LogicalVolName
5. sudo mount /dev/VolGroupName/LogicalVolName /VolGroupName/LogicalVolName
6. sudo umount /dev/VolGroupName/LogicalVolName
7. sudo vi /etc/fstab
          /dev/VolGroupName/LogicalVolName /VolGroupName/LogicalVolName  ext4    defaults     0 0
8.


Reference Installing New Hard Disk

Advertisements