LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mount external hard disk at boot (https://www.linuxquestions.org/questions/linux-hardware-18/mount-external-hard-disk-at-boot-947768/)

bbb13 05-31-2012 08:34 AM

mount external hard disk at boot
 
how do i make my external Hard Drive (2.0TB, NTFS) to mount at boot in Xubuntu 10.04? i wanna see the shortcut in my desktop as soon as X server starts.

here's my fstab:

Code:

UUID=7b43dc03-da3c-4765-9372-a189793ae3ae / ext4 defaults 0 1
UUID=ea2e0bd5-5f9a-41ee-bc19-32cdb003cb9a swap swap sw 0 0
UUID=184C82314C8209A8 /media/ExternalHD ntfs-3g nofail,user,rw,nobootwait,nosuid,nodev,uhelper=udisks 0 0

and here's my mtab:

Code:

/dev/sda1 / ext4 rw 0 0
none /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
/dev/sdb1 /media/ExternalHD fuseblk rw,noexec,nosuid,nodev,allow_other,blksize=4096 0 0

PS.i read somewhere that adding the mount -a command at rc.local should do the trick but i'm not sure what exactly i should put there

273 05-31-2012 08:39 AM

Isn't your external drive being mounted automatically at boot to /media/ExternalHD?
If so then just put a symlink on your desktop to it an you're done.
It seems to be that unmounted drives are shown on the desktop by default, I assume so that you know they're there and can take any actin you want, but mounted drives are not because you should know they're there anyhow since you explicitly mounted them.

pan64 05-31-2012 08:53 AM

I would rather try automount ntfs. The link will exist on the desktop, the mount will be executed on demand

bbb13 05-31-2012 09:17 AM

my problem is: my drive does get indeed automounted but it takes a minute or so after the X starts. also, if i plug it in after the system has booted,it also takes a minute to mount.

the desktop is calibrated to automaticaly to show removable drives.

business_kid 05-31-2012 12:46 PM

From Fstab:
Quote:

UUID=184C82314C8209A8 /media/ExternalHD ntfs-3g nofail,user,rw,nobootwait,nosuid,nodev,uhelper=udisks 0 0
Hmmm. I have reliable mounting for /dev/sdb1 with this fstab line.
Quote:

/dev/sdb1 /mnt/hd auto noatime,user 0 0
With ntfs, I'd try specifying the filesystem at that you are and see what happens. The noatime is optional.

bbb13 06-06-2012 04:33 AM

i had accidentally removed a service from autostart which was making things mount really late.can't remember the name now though,anyway it is fixed. thnx


All times are GMT -5. The time now is 04:18 PM.