LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-20-2007, 10:19 PM   #1
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Rep: Reputation: 16
External Disk Mount Problem


My new Ubuntu 6.10 desktop PC has an external disk drive attached, which appears as /dev/sdb1 mounted on /media/usbdisk when I boot the PC. As part of configuring Sbackup, I've created directory /var/backup, and I want the disk to be automatically mounted here on boot.

I've added entry "/dev/sdb1 /var/backup ext3 defaults 0 0 " to /etc/fstab, and re-booted. Now, "df -m" does not list the device at all. Remove the entry from fstab, and after reboot, the device reappears mounted on /media/usbdisk. I can:
# umount /media/usbdisk
# mount /dev/sdb1 /var/backup
# cd /var/backup
# ls -al
and I see what is currently on the device.

What am I doing wrong, here? On an FC6 box I have, I had no problems setting up automatic mounting of an external disk drive. Your advice to a Ubuntu newbie appreciated.
 
Old 03-21-2007, 04:38 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
there is some daemon that does the mounting when hal/udev detects a new plugged in device. You have to reconfigure this daemon to use your desired mountpoint or disable it at all, so external devices are not automagically mounted. then your fstab line may work, but only if the mount -a command is executed after the device has been recognized.
Sorry, i don't (yet) use ubuntu, os i can't give you a concrete howto, but i'll watch this thread and come back in about 1-2 weeks, then I will accidentally have a ubuntu system set up...

until then: maybe sbackup can execute a "pre-backup-script" with which you can remount the device?
 
Old 03-22-2007, 02:44 AM   #3
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanx, Doc. If I find a solution myself, I'll post here.
 
Old 03-23-2007, 04:50 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
This might help you for automatic mounts:

http://www.reactivated.net/writing_udev_rules.html
http://ftp.kernel.org/pub/linux/util...tplug/udev-FAQ
 
Old 03-26-2007, 06:18 AM   #5
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanks everyone for your assistance with this. After also having problems with configuring Sbackup on my new ubuntu box, I've decided to revert to Fedora Core 6. The auto-mount issue has now gone away, and I'm using rsnapshot as a backup solution.

Ubuntu 6.10 desktop initially looked good, but posts to the Ubuntu forums did not help me resolve these issues.
 
  


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 an external ntfs usb hard disk dmpop Mandriva 5 03-03-2013 10:45 AM
How to mount External Hard disk in Mandrake 10.0 Niversphere Linux - Newbie 9 12-11-2006 02:25 PM
Mount external USB 2.0 hard disk with NTFS? Musikolo Linux - Hardware 8 09-15-2006 09:11 AM
How to mount the External USB disk in grub prompt? rajarishi LinuxQuestions.org Member Intro 1 06-12-2006 11:34 AM
mount external usn hard-disk alaios Linux - Hardware 1 04-22-2005 02:14 PM

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

All times are GMT -5. The time now is 10:43 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