LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-16-2010, 09:35 AM   #1
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Rep: Reputation: 15
Which script gets executed?


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?
 
Old 06-16-2010, 01:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Ummm ... your browser icon suggests that you're on a Mac.
I don't think (don't know for sure though) that the Mac
has ext3 support by default?


Cheers,
Tink
 
Old 06-17-2010, 12:19 AM   #3
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
http://www.insanelymac.com/forum/ind...howtopic=34227

Maybe this will help. Do you even have ext2/ext3/ext4 support? You might have to make that work before Mac sees any ext2 drive
 
Old 06-17-2010, 03:23 AM   #4
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
My mac has nothing to do with this. I'm not trying to connect the drive to my mac.
 
Old 06-17-2010, 04:28 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Please provide your distribution's name and version, then hopefully we will be able to help you.

And provide as well the output of "dmesg | tail --lines 20", issued 30 seconds after having plugged in your USB hard disk drive.
 
Old 06-17-2010, 08:27 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ this is usually useful:
Code:
sudo tail -f /var/log/messages
 
Old 06-18-2010, 03:45 AM   #7
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
Old 06-18-2010, 03:50 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by junglepunk View Post
Distro? I don't have one of those. But I think I'm running almost a complete bash shell. No gui.
Execute the following command in shell and post the output here:
Code:
uname -a && cat /etc/*release
 
Old 06-18-2010, 04:53 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
This seems interesting:
Quote:
ufsd: failed to mount sdb1
EXT3-fs: Unrecognized mount option "gid=1000" or missing value
Can you mount manually this drive like this ?
Code:
mount -t ext3 /dev/sdb1 /mnt

Last edited by Didier Spaier; 06-18-2010 at 04:54 AM.
 
Old 06-18-2010, 05:39 AM   #10
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Didier Spaier View Post
This seems interesting:


Can you mount manually this drive like this ?
Code:
mount -t ext3 /dev/sdb1 /mnt
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?
 
Old 06-18-2010, 05:58 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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.
 
Old 06-18-2010, 06:09 AM   #12
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
This is a nas box created by western digital. It has some custom linux version on it, but they give you full root access.

got this output from uname -a
Code:
uname -a
Linux MyBookWorld 2.6.24.4 #1 Tue Feb 10 11:00:22 GMT 2009 armv5tejl GNU/Linux
I have no idea what udev is, so I don't know how to answer that question.
 
Old 06-18-2010, 06:14 AM   #13
junglepunk
Member
 
Registered: Jun 2010
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by anishakaul View Post
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
 
Old 06-18-2010, 06:22 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
To make sure, please send output of following command, typed as root (otherwise it won't work):
Code:
udevd --version
 
Old 06-18-2010, 06:29 AM   #15
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by junglepunk View Post
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
Never heard of following before:
http://linux.softpedia.com/get/Syste...es-28795.shtml
 
  


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
script not executed by cron.daily hopefull Linux - Newbie 6 01-17-2009 09:54 AM
Getting location of the script which is currently being executed jiju.jacob Linux - Newbie 4 07-21-2008 05:48 AM
script executed inside another script dont make changes potraike Linux - Newbie 4 03-05-2008 05:27 AM
hotplug script executed 3 times Borelian Linux - Software 1 06-28-2004 11:46 PM
Simple script to be executed on startup. Korff Linux - General 2 06-03-2003 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 AM.

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