Adding a Second (Backup) Drive (drive2)
Note: If you do not have gedit installed, then install it using:
Alternatively, use nano or vim or vi or other text editor instead of gedit.
Then modify your particular UUID settings and username etc using the following procedure:
1. Find the UUID of HDD (drive2) using:
NB The blkid results will show /dev/sda* as the main drive partitions and usually /dev/sdb1 refers to the second (backup) drive partition.
Copy the UUID for HDD (drive2) {/dev/sdb1} without the quotes.
a0fa1bba-ab5e-460a-8d22-0c8beaa48a86
2. Create new directory (drive2), followed by modifications to the /etc/fstab file.
3. Modify /etc/fstab file:
4. Example:
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
# /media/drive2 was on /dev/sdb1
UUID=a0fa1bba-ab5e-460a-8d22-0c8beaa48a86 /media/drive2 ext4 defaults 0 0
# / (root) was on /dev/sda1 during installation
UUID=4a8455b4-7b5a-4365-9267-85bcaf551133 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=2df03568-787c-418d-b6b5-21c262813c7c /home ext4 defaults 0 0
# swap was on /dev/sda3 during installation
UUID=46a25788-6957-418b-b9c8-f3b276adf335 none swap sw 0 0
5. NB Make sure all pass numbers are correct.
1 for root, 0 for swap, 0 for /home and drive2.
6. File > Save and Close.
7. NEXT, mount drive2:
8. Reboot:
9. Then:
Code:
sudo apt install gedit
Then modify your particular UUID settings and username etc using the following procedure:
1. Find the UUID of HDD (drive2) using:
Code:
sudo blkid
Copy the UUID for HDD (drive2) {/dev/sdb1} without the quotes.
a0fa1bba-ab5e-460a-8d22-0c8beaa48a86
2. Create new directory (drive2), followed by modifications to the /etc/fstab file.
Code:
sudo mkdir /media/drive2
Code:
sudo gedit /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
# /media/drive2 was on /dev/sdb1
UUID=a0fa1bba-ab5e-460a-8d22-0c8beaa48a86 /media/drive2 ext4 defaults 0 0
# / (root) was on /dev/sda1 during installation
UUID=4a8455b4-7b5a-4365-9267-85bcaf551133 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=2df03568-787c-418d-b6b5-21c262813c7c /home ext4 defaults 0 0
# swap was on /dev/sda3 during installation
UUID=46a25788-6957-418b-b9c8-f3b276adf335 none swap sw 0 0
5. NB Make sure all pass numbers are correct.
1 for root, 0 for swap, 0 for /home and drive2.
6. File > Save and Close.
7. NEXT, mount drive2:
Code:
sudo mount /dev/sdb1 /media/drive2
Code:
sudo reboot
Code:
sudo chown -R username:username /media/drive2
Total Comments 0