[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ltsp-usb



Jonas Smedegaard skrev:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08-12-2004 15:41, Ragnar Wisloff wrote:

I was able to access the pen having restarted floppyd with the
devfs-device after having changed manually the permissions. But after
removing and reinserting the pen no access was possible.

So I wonder if it is correct for floppyd to use the static /dev/sda1 or
whatever device, perhaps the correct device is the devfs one. And
possibly floppyd does not handle devfs very well.

With devfs /dev/sda1 is (or should be!) a symlink to the actual device.


Right. It might be, I don't have the client here to test. The script that runs at boot does this:

mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
chmod 666 /dev/sd*
floppyd -d /dev/sda1

But it would probably be better to do somthing like

floppyd -d /dev/scsi/.../part1

Either that symlink is not (yet?) created, or floppyd does not handle
symlinks to devices.

Yes, it could be a timing problem. Floppyd is a bit of white area on my map.

Check if /dev/sda1 actually exists after unplugging and re-plugging the
USB key. That is not always the case - guides for booting off of USB
keys tend to include adding the following after loading the USB modules
to "wakeup" the device:

/bin/sleep 5
/sbin/sfdisk -R /dev/sda || true

Yes, good point. But with the device /dev/sda1 being totally static it is there all the time. But perhaps just staring out into the wild blue yonder rather than at the usb pen.


(the fallback to true I invented myself, because it may fail and that is
fatal in an initrd)

Nice.


--
Med vennlig hilsen
Ragnar Wisløff
-------------
life is a reach. then you gybe.




Reply to: