LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   I can't get the UUID of my External Floppy Drive (https://www.linuxquestions.org/questions/linux-hardware-18/i-cant-get-the-uuid-of-my-external-floppy-drive-649186/)

Cyberman 06-13-2008 10:37 PM

I can't get the UUID of my External Floppy Drive
 
I'm trying to get the UUID of this USB external floppy drive I have. I've been trying a variety of commands, and nothing seems to be giving me a definite UUID. I keep getting what appears to be the UUID of the floppy disks.

How do I get the external drive's UUID?

I want to add it to fstab on a home-made reconstructor live-cd, and be able for the drive to be read as /dev/sdb anywhere I go. So, if i were to use the live-cd on some random computer, and hook up the floppy drive, it would automatically be assigned to /media/floppy.

This is because various other usb devices try to take over that name (they become /dev/sdb before the external floppy drives becomes it). And the disk I have is an auto-start disk, which takes over the next few following commands. This allows for ease of workplace transfer from one box to another. If the other usb devices take over that device name/file, then the scripts on the disk are never launched. Thus, I'd have to do everything manually whenever I wanted the scripts on the disk to be launched. And that gets annoying real quick-like.

Here's some terminal stuff I tried:

Code:

root@Linux:/home/workstation# udevinfo -a -p /dev/sdb
no valid sysfs device found

What appears to be the disk's UUID:

Code:

root@Linux:/home/workstation# vol_id --uuid /dev/sdb
4780-B8F2


aus9 06-14-2008 03:28 AM

yes until you get a better answer...as I do not have such a device ....when its connected try going into the folder for /dev/....now my fd is internal so will never have a usb designator...but I am not even sure fds get one?

but if it does have one....its got to be in /dev/ somewhere

tpreitzel 06-14-2008 03:36 AM

blkid from e2fsprogs

jschiwal 06-14-2008 03:42 AM

The UUID is for the filesystem, which is what you mount, and not the drive.

Cyberman 06-14-2008 06:35 PM

So, for the moment, I would have to use the UUID of the floppy disk instead of some identifier for the external drive?

I could do that, but I don't want to use that process for a long-term thing. I suspect if the floppy disk can hold out long enough, then that would be a nice thing.

Any other suggestions?

jschiwal 06-14-2008 10:12 PM

What kind of interface does it have. If it has an ide interface, and it's internal, then it should be fixed and you don't need to use UUID= in the mount command. After inserting disk, is there a /dev/fd0* device?

Also, look at the fdutils package; grep your udev rules for "floppy"; and read the kernel's "floppy.txt" documentation on which boot options the drive may need.


All times are GMT -5. The time now is 04:29 AM.