I'm having some difficulty using a second hard drive. I want to mount a second hard drive, via sata, to directory /media/data. The problem is when I have my second hard drive attached the cli says that /dev/sdb1 is being booted and only shows what is on the first hard drive.
Boot order is correct, but once everything loads sdb1 is the only hard drive accessible. But it shows data from the first hard drive only regardless of name (sda sdb etc) and mounting sdb1 just mounts the original hard drive not the second one. I need to be able to swap out the second hard drive with others so I can't really rely on the UUID at least not that I know of.
How can I mount the second hard drive as /dev/sdb1 to a directory /media/data so I can read/write to it when needed?
I'm new to changing these settings and I can't find a single thread or question covering my issue so any help, links, etc are appreciated.
sudo blkid -c /dev/null -o list
and this:lsblk -o NAME,LABEL,PARTLABEL,SIZE,UUID,MOUNTPOINT
– oldfred Feb 20 '18 at 22:37blkdid
) with all your drives, just put each in fstab, all mounting to/media/data
! As long as you don't connect more than one of your extra drives, this isn't an issue - even then Ubuntu will only mount the first time to /media/data – Robert Riedl Feb 21 '18 at 06:47