I have a 2nd hard drive SDB but not sure how to mount it under linux.
mount -a did not seem to mount all.
Also would like to mount this RO for recovery.
migrated from serverfault.com Apr 11 '13 at 21:10
This question came from our site for system and network administrators.
If the drive is not yet in fstab, then it will do nothing with regard to that drive.
First, check how the disk is partitioned (e.g. with
If your hard drive is an LVM, these instructions won't work, stop and follow these directions: http://superuser.com/a/666034/121698
Test things with a manual mount command. Example:
The contents of the first partition should now be visible under /mnt.
Note that this assumed ext2 as file system. Adjust as needed.
Note that this assumed a /dev/sdb1, it could have been /dev/sdb2, sdb3, ...
If this works:
Device is the device you are trying to mount/ E.g. /dev/sdb1
Thus... choose where you want to mount the disk. For example in /home/old_backup. It that directory does not exist then make it. (e.g.
Now edit /etc/fstab and add the relevant lines.
#Device Mountpoint FStype Options Dump Pass# /dev/sdb1 /home/old_backup ext2 ro 2 2
The next time you boot or issue a
First you need to make sure that you have a mount directory. /mnt is what i use. (if not mkdir /mnt) Then from there you need to make sure you are mounting to correct partition by issuing the command ls /dev, and verifying the device name. After you have done this you should be able to issue the command mount /dev/sdb2 /mnt