[LBo] /dev/sda4
Howard Rosen
hrosen33 at highstream.net
Tue Sep 5 15:45:04 CEST 2006
On Mon, 2006-09-04 at 14:18 -0400, Anita Lewis wrote:
> Devices are created as they are needed with udev. To avoid the problem
> of whether the device is /dev/sdb4 or /dev/sda4 or whatever, you can
> make it irrelevant so that the zip will always be on /dev/zip. In fact,
> that may already be in the udev rules.
>
> First check to see what the info on the device is:
>
> $ udevinfo -p /sys/block/sda/sda4 -a |less
>
> http://linuxbasics.org/tutorials/using/using_udev tells you more.
> Specifically look at the Zip section.
Once there I executed the command suggested:
udevinfo -p /sys/block/sda/sda1 -a |less
There was no infomation provided, so I did my usual mount of the zip
drive and then when the above command was again executed, and there was
a lot of useful information provided.
> Now that I'm using Edgy, the syntax has changed a bit so that it is
> using double equal signs, but I don't think you will encounter that in
> SUSE 10.1 yet.
Yes, the double "=" signs are used.
> You can tell when you look at the files in
> /etc/udev/rules.d There may be a rule already there for Zip drive, but
> it might be the one that creates the /dev/sda4 or whatever. It seems
> better to me to use /dev/zip as what it gets loaded on.
>
I didn't see a rule that appears to be for the zip drive. I'll have to
do some experimenting here.
Howard
> Then in /etc/fstab I have /dev/zip /media/zip (I decided to use /media
> rather than /mnt since that seems to be the standard now.
>
> Anita
More information about the QnA
mailing list