LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-31-2012, 08:34 AM   #1
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Rep: Reputation: Disabled
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
 
Old 05-31-2012, 08:39 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 05-31-2012, 08:53 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I would rather try automount ntfs. The link will exist on the desktop, the mount will be executed on demand
 
Old 05-31-2012, 09:17 AM   #4
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
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.

Last edited by bbb13; 05-31-2012 at 09:19 AM.
 
Old 05-31-2012, 12:46 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 06-06-2012, 04:33 AM   #6
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount external USB hard disk shiv_sms Linux - Newbie 3 01-22-2009 03:02 AM
how to mount external hard disk? LinuxNewbie999 *BSD 6 05-27-2008 02:19 AM
Can't mount external Hard disk bhanthenzzz07 SUSE / openSUSE 6 05-17-2008 09:27 AM
How to mount External Hard disk in Mandrake 10.0 Niversphere Linux - Newbie 9 12-11-2006 02:25 PM
mount external usn hard-disk alaios Linux - Hardware 1 04-22-2005 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration