LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   USB Drive Does Not Automount (GNOME) (https://www.linuxquestions.org/questions/debian-26/usb-drive-does-not-automount-gnome-579043/)

carlosinfl 08-22-2007 04:52 PM

USB Drive Does Not Automount (GNOME)
 
I installed Lenny today and well...for some strange reason in Gnome my external USB hard drive is not auto mounting as it normally would in Debian in the past.

After I plug it in and wait ample time for Nautilus to pop up, I decide to check "dmesg"

Code:

SCSI device sdd: 234441648 512-byte hdwr sectors (120034 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 14 00 00
sdd: assuming drive cache: write through
SCSI device sdd: 234441648 512-byte hdwr sectors (120034 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 14 00 00
sdd: assuming drive cache: write through
 sdd: sdd1
sd 7:0:0:0: Attached scsi disk sdd

So it recognizes the USB drive and I also checked Gnome > System > Preferences > Removable Drives & Media.

It is set to auto mount this when detected so I am clueless as to why it is not doing it now. Just for fun I decided to see if I can manually mount this drive which is formated as EXT3.

Code:

tunafish:/media# ls -l
total 8
lrwxrwxrwx 1 root root    6 2007-08-21 19:41 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2007-08-21 19:41 cdrom0
drwxr-xr-x 2 root root 4096 2007-08-22 17:44 usb
tunafish:/media# mount /dev/sdd1 /media/usb/
mount: you must specify the filesystem type

What am I doing wrong?

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/sda2      /              ext3    defaults,errors=remount-ro 0      1
/dev/md0        /home          ext3    defaults        0      2
/dev/sda1      none            swap    sw              0      0
/dev/hda        /media/cdrom0  udf,iso9660 user,noauto    0      0


cgjones 08-22-2007 05:13 PM

With the drive plugged in, run the following command and post the output.
Code:

mount

carlosinfl 08-22-2007 06:04 PM

Quote:

Originally Posted by cgjones (Post 2867342)
With the drive plugged in, run the following command and post the output.
Code:

mount

Code:

carlos@tunafish:~$ mount
/dev/sda2 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /home type ext3 (rw)


cgjones 08-22-2007 06:10 PM

I may be missing something, but if you have gnome-volume-manager installed, everything else needed for automounting should be installed.

Try mounting the drive manually with the following command.
Code:

mount -t auto /dev/sdd1 /mnt

carlosinfl 08-22-2007 06:13 PM

Code:

tunafish:~# mount -t auto /dev/sdd1 /mnt
mount: you must specify the filesystem type


cgjones 08-22-2007 06:16 PM

How about this?
Code:

mount -t ext3 /dev/sdd1 /mnt

makuyl 08-23-2007 09:57 AM

Try: mount -t ext3 /dev/sdd1 /media/usb/

knobby67 08-24-2007 04:45 AM

have you used
apt-get install pmount gnome-volume-manager ?

Then reboot and all usb stuff should be detected?

amishtechie 08-25-2007 02:51 AM

Do you have the usbmount package installed?

bezdomny 02-10-2009 03:12 PM

*solved* Debian Lenny Gnome hotplug USB devices successful
 
Thanks to cgjones and amishtechie, my USB devices, including my Palm Z22, are successfully auto-mounting following one of the following commands (I'm not sure which one!), or all of them in concert:
Code:

apt-get install hal
apt-get install usbmount
apt-get install gnome-volume-manager

Again, thanks for the help, folks!

bezdomny 02-11-2009 03:24 PM

spoke too soon
 
Looks like I spoke too soon. The USB devices (plus my Windows partition, which is written into fstab) are recognized by the system (confirmed by dmesg) and appear in "Computer", but are not mounted until I open System>Preferences>Removable Drives and Media. I don't have to adjust anything in the applet, just open it. Every session. Isn't that strange? I'm going to start a new thread to try to find the answer to this.

Saptech 02-12-2009 08:22 PM

I don't have nothing but /, swap & dvd drive listed in my fstab and everytime I load my usb external hard drive, I see it using a filemanager. If I click on it, it opens a window to display the contents.

I'm using openbox wm, so I guess that is why no icon pops up on the desktop, there aren't any icons on desktop.

I believe gnome-volume-manager is giving it access.

bezdomny 02-12-2009 09:21 PM

automount
 
Saptech, thanks. I found the solution and to avoid a duplicate posting which I know the admins hate, I'll simply place a link to it here.

Thanks again, Saptech.


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