Internal Zip drive not recognized
Le grand pinguin
rm at mh-freiburg.de
Wed Nov 17 00:50:52 UTC 2004
On Tue, Nov 16, 2004 at 06:36:29PM -0600, Gerry Tool wrote:
> On Tue, 2004-11-16 at 23:21 +0100, Le grand pinguin wrote:
> > On Tue, Nov 16, 2004 at 04:06:56PM -0600, Gerry Tool wrote:
> > > I have an internal 100MB zip drive connected as hdb. On other Linux
> > > systems,
> > > I access it with an entry in fstab for /dev/hdb4. This drive is not
> > > showing up in ubuntu Device Manager, so when I try to mount it I get an
> > > error "mount: special device /dev/hdb4 does not exist". My fstab entry
> > > is
> > > /dev/hdb4 /mnt/zip auto rw,user,noauto 0 0
> > >
> > > Any suggestions for getting this to mount?
> >
> > I had similar problems with my cdrom device. My solution was an
> > entry in /etc/udev/links.conf looking like this:
> >
> > # Manually create a cdrom device
> > M hdc b 22 0
> >
> > you will need to add something similar to manually add partition
> > devices as well.
> >
>
> The format of what to enter isn't obvious. Can you give me any
> information about what to enter for a zip drive at hdb with a partition
> at hdb4? the file I have has lines that all either start with L or with
> D. The file indicates it is for forming symbolic links, and what I
> really need is for the device files themselves to be created.
Well, this is out of my (often failing :-) memory:
M(ake) hdc (a) b(lock device with major number) 22 (and minor number) 0
so, this is pretty much a 'mknod hdc b 22 0'. Big question: where to get
the major/minor numbers from? I got mine from
/usr/src/linux/Documentation/devices.txt
>From there:
3 block First MFM, RLL and IDE hard disk/CD-ROM interface
0 = /dev/hda Master: whole disk (or CD-ROM)
64 = /dev/hdb Slave: whole disk (or CD-ROM)
For partitions, add to the whole disk device number:
0 = /dev/hd? Whole disk
1 = /dev/hd?1 First partition
2 = /dev/hd?2 Second partition
...
63 = /dev/hd?63 63rd partition
For Linux/i386, partitions 1-4 are the primary
partitions, and 5 and above are logical partitions.
Other versions of Linux use partitioning schemes
appropriate to their respective architectures.
So your major number would be 3, and your minor number for the whole
device (/dev/hdb) would be 64, then add 1 for each partition.
hdb 3 64
hdb1 3 65
hdb2 3 66
....
HTH Ralf Mattes
> Thanks.
>
> Gerry
>
More information about the ubuntu-users
mailing list