The block device support for /dev/uba can be found
in $LINUXSRC/drivers/block/ub.c, and the file is dated
October 19, 2004, and so is relatively new.  This file
ub.c defines the "/dev/ub" device name and assigns a
major device number of 125, from the experimental
range (see $LINUXSRC/Documentation/devicesd.txt, and
you will see that 125 is not assigned, so this is
pretty new).

#define DRV_NAME "ub"
#define DEVFS_NAME DRV_NAME
#define UB_MAJOR 125    /* Stolen from Experimental
range for a week - XXX */

Since /dev/uba does not even exist yet on my system,
I had to create the device, using mknod (is there
any other command?)

cd /dev
mknod uba  b  125  0
mknod uba1 b  125  1
mknod uba2 b  125  2
etc.

My question really is: I think that I used the correct
major device number of 125, since that is what the
file
ub.c indicates. But is my usage of the minor device
numbers 0, 1, 2, etc., correct?  These minor device
assignments seem to work for me, since when I give
the command,

mount -t vfat /dev/uba1 /media/usbthumbdrive,

the mount command succeeds, and I could see my files
in /media/usbthumbdrive. [P.S. The FHS-2.3 document
recommends mounting on /media (as SuSe does) and not
on /mnt (as RedHat does).  It's RedHat business if it
does not want to follow FHS-2.3, to which it is a
signatory].

Can anyone verify if my minor device assignments is
correct?  Thanks.

PMana

***

--- Pablo Manalastas <[EMAIL PROTECTED]> wrote:

> I compiled the new 2.6.9 kernel, and now my USB
> thumbdrive refuses to mount on /dev/sda1 as a vfat
> filesystem.  Whenever I stick the thumbdrive into
> the
> USB socket, the kernel reports a new device
> /dev/uba.
> It took me a while to get the docs on the new
> /dev/uba, and in some obscure location in the
> /usr/src/linux-2.6.9 source tree, I found the
> following major/minor device assignments for
> /dev/uba:
> 
> /dev/uba     b    125    0
> /dev/uba1    b    125    1
> /dev/uba2    b    125    2
> etc
> 
> Now, I can read, once again, my favorite thumbdrive
> under Linux-2.6.9.  Can someone confirm if these are
> really the correct major/minor device numbers to
> use?
> They seem to work for me, for now.
> 
> PMana



                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to