On Wed, Jul 27, 2011 at 07:37:14PM +0100, ga ho wrote:
> Hi All,
> 
> On my LFS 6.4 system with Udev-130 I had to use the OPTIONS+="all_partitions" 
> in a udev rule to get my Sandisk Cruzer Micro 8GB USB stick EXT3 partition 
> /dev/ubb1 set up.
> 
> However it seems that the Udev developers in their infinite wisdom decided to 
> do away with the OPTIONS+="all_partitions" so now although udev creates the 
> /dev/ubb device it no longer creates /dev/ubb1.
> 
> Does anyone know of another work around? 
> 
> I had thought of putting a mknod command in a shell script and use a rule 
> with the RUN or PROGRAM option to execute the shell script, but the test 
> shell script I created to echo some text to a file in the /root directory 
> doesn't run.
> 
> Does Udev have log file that I could check for errors?
> 
> Thanks,
> Gary

 I've never heard of /dev/ubX until now.  All of my USB sticks have
appeared at /dev/sdX for as long as I can remember [ but, I think I
didn't get any sticks until 2007 ].  A quick google suggests that
/dev/ubX has been replaced by /dev/sdX in at least one distro, so my
first suggestion is that you check to see if the stick appears as
your next sd device.  None of my usb sticks or disks, or indeed
cameras, has more than one partition - but I've never had to worry
about any of them showing up as a device without partitions.

 Ah - further googling found the Low Performance USB Block driver
(BLK_DEV_UB) in the kernel.  The driver I'm using is usb-storage
(USB_STORAGE - you might perhaps want other choices below that, but
I don't need any for the sticks I have.).

 That, of course, may raise another problem - if your stick used to
be /dev/ubb then presumably you had something at /dev/uba and that
too might move.

 I don't know of any udev logging, my devices all show up in sys.log
and kern.log and I just go from there.

 My latest systems have udev-165, and on that the properties of a
device showing up at /dev/sdX can be accessed with
 /sbin/udevadm info --name=/dev/sdX --attribute-walk
[ again, the syntax keeps changing in different udev releases ].

I key my rules by the subsytem (usb), kernel (sd?1), and
ATTRS(product) with repeated rules for product values of
USB Flash Memory, DISK 2.0, and EHCI Host Controller - in my case
these are all duplicates for different sticks, so I can only ever
attach one stick at a time at /dev/stick.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to