How to retain secondary hard drive mounts at reboot and keep shares?
Posted
by
Tom
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Tom
Published on 2012-06-29T04:24:38Z
Indexed on
2012/06/30
3:24 UTC
Read the original article
Hit count: 291
I'm running Ubuntu 12.04. A second hard drive connected to this computer does not mount when the computer boots. Additionally, I have set up the drive to be shared but the share is not retained, the share is lost after each boot.
My main system drive and a removable drive mount OK and shares remain between boots.
Additional information follows:
D2Linux sda1 is the secondary hard drive
L-Freeagent sdc1 is the removeable drive
Here is the contents of fstab immediately after booting (D2Linux /dev/sda1 not yet mounted):
'# /etc/fstab: static file system information. '
'# '
'# Use 'blkid' to print the universally unique identifier for a '
'# device; this may be used with UUID= as a more robust way to name devices '
'# that works even if disks are added and removed. See fstab(5). '
'# '
'# '
proc /proc proc nodev,noexec,nosuid 0 0
'# / was on /dev/sdb1 during installation '
UUID=43d29a82-66b3-40f3-91ed-735a27a60004 / ext4 errors=remount-ro 0 1
'# swap was on /dev/sdb5 during installation
UUID=cf8e3351-11d0-487a-8a6e-e499c2e88a10 none swap sw ' 0 0
Here is the output of mount with all drives mounted (I did not restore the share):
/dev/sdb1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/tom/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=tom)
/dev/sdc1 on /media/L-Freeagent type ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sda1 on /media/D2Linux type ext4 (rw,nosuid,nodev,uhelper=udisks)
Thank you!
© Ask Ubuntu or respective owner