LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-14-2006, 01:11 PM   #1
bauer172uw
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian 3.1
Posts: 17

Rep: Reputation: 0
USB Devices


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)?

Thanks for any help!

Mike
 
Old 01-14-2006, 01:39 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Code:
apt-get install hal
 
Old 01-14-2006, 01:52 PM   #3
bauer172uw
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian 3.1
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the pointer on Hal but when I try to use apt to install it I get the following message:

"hal is already the newest version."

Is there any configuration that I might need to do for Hal to automount my devices?

Could it be that I need to be part of a certain group in order to use this functionality?

I did add myself to the "hal" group but that didn't seem to make a difference.

Thanks again for the help.

Last edited by bauer172uw; 01-14-2006 at 01:57 PM.
 
Old 01-14-2006, 01:55 PM   #4
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
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.
 
Old 01-14-2006, 01:59 PM   #5
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
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.
 
Old 01-14-2006, 02:00 PM   #6
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
Oh, FYI, this drive was initialized Ext3 via my NSLU2 device. I disconnected and tried connecting to my linux box to access disk info.
 
Old 01-14-2006, 02:00 PM   #7
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
I'm running Blackbox
 
Old 01-14-2006, 02:01 PM   #8
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
dylan@small-daddy:~$ uname -a
Linux small-daddy 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 GNU/Linux
 
Old 01-14-2006, 02:02 PM   #9
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
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.
 
Old 01-14-2006, 02:21 PM   #10
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
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
 
Old 01-14-2006, 03:58 PM   #11
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
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.


Now I have access to all NSLU2's system files!
 
Old 01-14-2006, 04:50 PM   #12
bauer172uw
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian 3.1
Posts: 17

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

Thanks
Mike
 
Old 01-14-2006, 05:09 PM   #13
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
I thought you were trying to AUTO mount the USB drives? Using "mount /dev/sda ..." is not autmounting. Honestly, stop wasting people's time ...

By the way, coorbust, have you ever wondered what the Edit button is for?
 
Old 01-18-2006, 04:05 PM   #14
coorbust
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
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?
 
  


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
USB devices died after USB hub install Twistedlizzard Linux - Hardware 5 07-08-2005 06:17 AM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
No USB at all (/proc/bus/usb/devices missing) shrodi Linux - Hardware 1 05-26-2005 04:07 AM
USB scanner not in /proc/bus/usb/devices psweetma Linux - Hardware 4 02-25-2004 04:47 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 10:58 AM

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

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