pdurys
Group: Members
Posts: 9
Joined: July 2004 |
|
Posted: July 12 2004,00:05 |
|
Hi There,
I have just found a small glitch in the latest DSL build. There was a number of discussions about booting from USB.
You can find them, by searching this forum, but this is not a point. After you prepare and boot your computer from USB stick, you can be stuck with number of errors.
In the linuxrc file, which is included in the miniroot.gz file there is a mistake in the name of ohci module file.
If you could look inside modules folder, you can find that correct name of this file is usb-ohci.o, but the linuxrc script tries to load /modules/usb/ohci.o
This is the reason of reported problem: "Can't find KNOPPIX filesystem..." sometimes. If you are lucky and your computer has uhci version of USB interface, you are happy, but if ohci...
Please find below short receipe how to correct this. (this is temporary, until John and Robert, would fix this permanetly)
I am using full KNOPPIX to load and access my USB Cruzer Mini, where I have copy of DSL.
We need to be a root for number of operations, thus first:
Code Sample | 1. sudo su 2. Open Terminal as root |
... and enter following commands:
Code Sample | 3. cd /root 4. mkdir /mnt/usb0 /mnt/usb1 /mnt/usb2 5. mkdir temp temp/stick |
In previous two steps we have created some folders for mounting files as well for temporary usage
Code Sample | 6. cd temp 7. mount -t vfat /dev/sda1 /mnt/usb0 |
Here /dev/sda1 is name as KNOPPIX has recognized my USB stick (yours might be different). BTW, in my case, cdrom, floppy and keydrive all are connected to PC via USB. If I am trying to automount floppy, I am receiving error because symlink is pointing to nowhere...
Code Sample | 8. mount -o loop /mnt/usb0/knoppix/boot.img /mnt/usb1 9. gunzip /mnt/usb1/miniroot.gz 10. mount /mnt/usb1/miniroot /mnt/usb2 |
Now we can edit with favourite editor (vi rulez ;-) the linuxrc file located in the /mnt/usb2 folder. You have to find the line, which looks like: insmod -f /modules/usb/ohci.o ... and change it to insmod -f /modules/usb/usb-ohci.o After that save file and...
Code Sample | 11. umount /mnt/usb2 12. gzip miniroot 13. cp -rp /mnt/usb1/miniroot.gz /mnt/usb0 14. umount /mnt/usb1 15. umount /mnt/usb0 |
Hope this helps. Pawel Durys
PS. I am still fighting with my network card, which is working pretty well under KNOPPIX, but is not recognized under DSL :-(
|