DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use several devices such as a USB hard drive and a USB iPod. I am wondering if someone could give me a pointer on how to automatically mount these devices within Debian 3.1. Right now when I plug them in my computer does nothing. How can I get my system to automatically mount these devices for me and place an icon on my desktop (similar to other distributions)?
Same problem. hal, hotplug installed:
Jan 14 14:05:57 small-daddy kernel: hub.c: new USB device 00:1f.2-2, assigned address 4
Jan 14 14:05:57 small-daddy kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jan 14 14:05:57 small-daddy kernel: usb-uhci.c: interrupt, status 3, frame# 1308
Jan 14 14:05:57 small-daddy kernel: Vendor: Maxtor 6 Model: B300R0 Rev: 0000
Jan 14 14:05:57 small-daddy kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 14 14:05:57 small-daddy kernel: WARNING: USB Mass Storage data integrity not assured
Jan 14 14:05:57 small-daddy kernel: USB Mass Storage device found at 4
Jan 14 14:05:58 small-daddy hal.hotplug[9278]: could not get mountpoint for sysfs
Jan 14 14:06:01 small-daddy usb.agent[9279]: usb-storage: already loaded
How do I get it to mount (automatically or manually)? Also, I'm a newbie, so how do I get it to unmount later. I've been looking through several posts, but generally the person figure out how to fix it, but never posts how it was done. I'm running Debian stable.
I believe that you need to use a 2.6 kernel as well for automatic mounting, also you might want to install "gnome-media" for it to automatically show on GNOME.
Code:
apt-get install kernel-image-2.6-686 gnome-media
Last edited by saman007uk; 01-14-2006 at 02:07 PM.
To get it to unmount, you either right click on the drive and unmount it if it showns up in GNOME; or just run:
Code:
umount /dev/sda
NEVER remove a usb device without unmounting it , as it could corrupt it. If you can't umount it (e.g. if you don't have root access), you should run "sync" before removing the USB device.
now if I could just get it mounted. I plug it in and I get this:
Jan 14 15:10:09 small-daddy hal.hotplug[9606]: could not get mountpoint for sysfs
Jan 14 15:10:25 small-daddy kernel: hub.c: new USB device 00:1f.2-2, assigned address 5
Jan 14 15:10:25 small-daddy kernel: WARNING: USB Mass Storage data integrity not assured
Jan 14 15:10:25 small-daddy kernel: USB Mass Storage device found at 5
Jan 14 15:10:25 small-daddy hal.hotplug[9635]: could not get mountpoint for sysfs
Jan 14 15:10:29 small-daddy usb.agent[9636]: usb-storage: already loaded
Rebooted with drive attached. Now it came up without error:
Jan 14 16:20:53 small-daddy kernel: Initializing USB Mass Storage driver...
Jan 14 16:20:53 small-daddy kernel: usb.c: registered new driver usb-storage
Jan 14 16:20:53 small-daddy kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan 14 16:20:53 small-daddy kernel: usb-uhci.c: interrupt, status 3, frame# 273
Jan 14 16:20:53 small-daddy kernel: Vendor: Maxtor 6 Model: B300R0 Rev: 0000
Jan 14 16:20:53 small-daddy kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 14 16:20:53 small-daddy kernel: WARNING: USB Mass Storage data integrity not assured
Jan 14 16:20:53 small-daddy kernel: USB Mass Storage device found at 2
Jan 14 16:20:53 small-daddy kernel: USB Mass Storage support registered.
Then I just mounted it:
mount -t ext3 /dev/sda1 /mnt
mount -t ext3 /dev/sda2 /mnt2
Jan 14 16:52:04 small-daddy kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
Jan 14 16:52:04 small-daddy kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 14 16:54:33 small-daddy kernel: kjournald starting. Commit interval 5 seconds
Jan 14 16:54:33 small-daddy kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
Jan 14 16:54:33 small-daddy kernel: EXT3-fs: recovery complete.
Jan 14 16:54:33 small-daddy kernel: EXT3-fs: mounted filesystem with ordered data mode.
I was able to mount mine as well by typing the following at the command prompt:
"mount /dev/sda1 /mnt/usb_hd/"
I still have two questions though. The first is, when I connect a device to the usb how do I know which device block (ie /dev/*) to use when mounting? sda1 seemed to work for this time but in general how can I determine this?
Second, what is the filesystem type of iPods? Mine was marketed as "For Mac or Windows"
I was just trying to get the freaking machine to acknowledge the drive was attached. And, nope, never noticed the edit button, thanks for pointing that out.
First step to automount is making sure you can even mount it..am I right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.