Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev update USB mass storage not recognized anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Thu Sep 08, 2005 3:57 am    Post subject: udev update USB mass storage not recognized anymore Reply with quote

I have just merged udev 069 from 058 on a AMD64 machine. I had a Seagate external USB 2.0 drive working perfectly. /media/SEAGATE was automatically created. I don't see this anymore. Should I revert back to 058? Any workarounds for 069?
Back to top
View user's profile Send private message
knirscher
n00b
n00b


Joined: 25 Aug 2005
Posts: 16
Location: Darmstadt, Germany

PostPosted: Fri Sep 09, 2005 6:01 pm    Post subject: Reply with quote

What exactly is your setup? Please post your /etc/fstab. /media/SEAGATE looks like a directory to me. If it is one, I doubt you are having a udev prolem. Are you using ivman? Have you had a rule for your USB drive in /etc/udev/rules.d/50-udev.rules?

Might take some time for me to answer, since we are suffering from connection problems here :-(
Back to top
View user's profile Send private message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Thu Sep 22, 2005 4:45 am    Post subject: Reply with quote

Sorry for not replying to this one. When I use udev 058, a folder called /media/seagate is automatically created. When I use latest udev it is not there. I don't have any special rules for my drive. How do you create rules?
Back to top
View user's profile Send private message
knirscher
n00b
n00b


Joined: 25 Aug 2005
Posts: 16
Location: Darmstadt, Germany

PostPosted: Thu Sep 22, 2005 7:20 am    Post subject: Reply with quote

capkin wrote:
How do you create rules?


www.reactivated.net/udevrules.php

But I really wonder if you are probably using ivman?

Be sure to check /etc/udev/rules.d/ for any ._cfg00* files. If you can, compare the /etc/udev/rules.d/50-rules.udev files of the udev versions in question. I suspect this is an ivman related problem or some other automounting mechanism. Maybe the default udev rules were changed and the program - or whatever it is - that creates /media/SEAGATE expects a device node that is no longer created. This reminds me that I would like to take a look at your /etc/fstab.
Back to top
View user's profile Send private message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Sat Sep 24, 2005 7:24 pm    Post subject: Reply with quote

Here is my fstab

Code:
capkin@tux ~ $ more /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdc2               /boot           reiserfs        defaults,noatime,notail                 1 2
/dev/hdc8               /               reiserfs        noatime                                 0 1
/dev/hdc3               none            swap            sw                                      0 0
/dev/hdc5               /home           reiserfs        noatime                                 0 0
/dev/hdc6               /usr            reiserfs        noatime                                 0 0
/dev/hdc7               /var            reiserfs        noatime                                 0 0
/dev/cdroms/cdrom0      /mnt/cdrom      auto            noauto,user                             0 0
/dev/ipod               /mnt/ipod       vfat            sync,nodev,nosuid,user,rw,noauto        0 0


# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                        0 0

/dev/hda                /media/cdrecorder       auto    user,exec,noauto,managed 0 0
Back to top
View user's profile Send private message
knirscher
n00b
n00b


Joined: 25 Aug 2005
Posts: 16
Location: Darmstadt, Germany

PostPosted: Sat Sep 24, 2005 7:48 pm    Post subject: Reply with quote

Ok, no hint for /media/SEAGATE here. You say this dir was automatically created and the drive was mounted there upon connection? This really looks like some automounting magic. Please tell me if you are using ivman or the Gnome Volume Manager or something similar. If you are looking for a simple and clean solution I would suggest you use submount.
Back to top
View user's profile Send private message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Sat Sep 24, 2005 8:05 pm    Post subject: Reply with quote

I am using ivman. Howcome with the previous version of udev /media/Seagate was automatically created but not with the latest version? I really need user level access to my storage device. Do I need to create any ivman or udev rule?
Back to top
View user's profile Send private message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Sat Sep 24, 2005 8:09 pm    Post subject: Reply with quote

How can I figure out to which device file my seagate is mapped, so that I can manually put a fstab entry.
Back to top
View user's profile Send private message
knirscher
n00b
n00b


Joined: 25 Aug 2005
Posts: 16
Location: Darmstadt, Germany

PostPosted: Sat Sep 24, 2005 9:00 pm    Post subject: Reply with quote

You have to find out... plug your drive in and observe ther logs (cat -f /var/log/everything/current). You should get some hints. The device might be /dev/sda1 or /dev/sdb1 or something similar. If you have a pure udev system, you could also just ls /dev, then connect your drive and then ls /dev again to see if any new sd* have shown up.

An entry that would allow manual mount/umount would then look like
Code:
/dev/sda1  /media/SEAGATE   auto   rw,noatime,...   0 0


It is, however, generally a good idea to make use of the udev features and follow the directions on e.g. http://www.reactivated.net/writing_udev_rules.html. There should be plenty of examples.

Basically you just put a rule like the following in /etc/udev/rules.d/10-udev.rules

Code:
BUS="scsi", KERNEL="sd?1", SYSFS{model}=" i.Beat rock", NAME="ibeat"


and this should allow you to put /dev/ibeat instead of /dev/sd?1 in your fstab. I suggest you read the udev guide on http://www.gentoo.org/doc/en/udev-guide.xml and the url above, if you want to find out more.
Back to top
View user's profile Send private message
capkin
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2005
Posts: 90

PostPosted: Sat Sep 24, 2005 9:08 pm    Post subject: Reply with quote

Got it. Thanks a lot for all your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum