LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-09-2008, 10:55 AM   #1
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Rep: Reputation: 16
auto mount external hd on boot


I would like to have an external hard drive automatically mounted during boot. The icon is displayed on the desktop, but doesn't get mounted until it is clicked on.

I have seen solutions that add the hard drive to fstab, but was wondering if there were any other solutions which didn't involve fstab.

I am running Xubuntu 8.04.

Thanks
Jason
 
Old 06-09-2008, 11:20 AM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
You could install pmount and add a command like
Code:
pmount-hal /dev/sda1 2> /dev/null
(change the device to match yours)
to one of your user's startup scripts. I recommend using Xfce's autostart script for this.

That method would use HAL for mounting the device as your user, which is basically what you do when you click on the icon.

The other option is to have it automatically mounted via fstab (which you said you didn't want) or you could have one of your boot scripts manually mount it using the mount command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do I auto-mount a drive at boot warkrime Linux - Newbie 7 08-03-2013 05:56 AM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 07:42 PM
fstab: auto mount floppy at boot blackzone Linux - Newbie 2 07-10-2006 02:17 AM
auto mount a network drive at boot Dr Gutiemouth Linux - Newbie 14 02-27-2005 02:32 PM
auto mount multiple windows on boot bax Linux - Software 13 02-23-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration