Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
How can I find out which script runs and automatically mounts any usb drive inserted? This script seems to be faulty because it fails on ext3 disks but functions fine on NTFS or HFS+ disks.
If I can find out which script it is maybe someone can help me fix it?
Distro? I don't think have one of those. But I think I'm running almost a complete bash shell. No gui.
Here's the output of /var/log/messages/
Code:
Jun 17 17:31:11 World user.notice [15809]: disk at /devices/platform/oxnas-ehci.0/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0
Jun 17 17:31:23 World daemon.info wixEvent[4463]: USB Status - USB device inserted.
Jun 17 17:31:26 World user.notice [15463]: ... no modules for USB Western Digital My Book
Jun 17 17:31:27 World user.notice [15481]: Setup usb-storage for USB product 1058/1100/175
And here's the output of dmesg showing the lines that appear after I plug in the disk
Code:
usb 1-1: new high speed USB device using oxnas-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access WD 20EADS External 1.75 PQ: 0 ANSI: 4
sd 2:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 3907029168 512-byte hardware sectors (2000399 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI disk
usb-storage: device scan complete
oxnas_wd810_leds_state state=1
ufsd: failed to mount sdb1
EXT3-fs: Unrecognized mount option "gid=1000" or missing value
Last edited by junglepunk; 06-18-2010 at 03:53 AM.
I have no problems mounting the device manually with that command. Though usually I don't specify the "-t ext3" part. It seems like it figures that out for itself.
The thing is. If I plug in a NTFS or even HFS+ drive those get automatically mounted. But not if I plug in a ext3 drive. Why?
Probably because some udev rule is wrong in your system (the one which set up the option "gid=100").
But knowing nothing about it (e.g. kernel and udev versions) it's really hard to figure out.
How did you install udev ? What is the kind or brand and version of your Linux system ? Did you install it yourself or was it already installed on your computer ?
Last edited by Didier Spaier; 06-18-2010 at 06:00 AM.
Execute the following command in shell and post the output here:
Code:
uname -a && cat /etc/*release
Sorry, didn't see your post immediately. Here's the output:
Code:
[root@MyBookWorld /]# uname -a && cat /etc/*release
Linux MyBookWorld 2.6.24.4 #1 Tue Feb 10 11:00:22 GMT 2009 armv5tejl GNU/Linux
cat: /etc/*release: No such file or directory
Sorry, didn't see your post immediately. Here's the output:
Code:
[root@MyBookWorld /]# uname -a && cat /etc/*release
Linux MyBookWorld 2.6.24.4 #1 Tue Feb 10 11:00:22 GMT 2009 armv5tejl GNU/Linux
cat: /etc/*release: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.