Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Once again USB boot problem, Small HowTo boot from USB< Next Oldest | Next Newest >
pdurys Offline





Group: Members
Posts: 9
Joined: July 2004
Posted: July 12 2004,00:05 QUOTE

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 :-(
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 12 2004,05:19 QUOTE

If you are talking about the special boot floppy, bootusb.img, you are right.
Thanks for pointing this out. I just checked this and made the correction. You can grab the corrected on at:
ftp://ibiblio.org/pub....usb.img
Look for the July 12 date on this file.

You must have a Compaq computer or SiS motherboard. I was only able to test the UHCI which works on all Intel and Via based systems. If you have a chance to test, I would appreciate it. Thanks for the feedback.
Back to top
Profile PM WEB 
pdurys Offline





Group: Members
Posts: 9
Joined: July 2004
Posted: July 12 2004,12:42 QUOTE

Yes I have Compaq nc4000 notebook.
I will see what will be availalbe in the neigborhood.

In the meantime, I haven't yet solved problem with net card, but this is separate problem.

Please check the linuxrc script, for situation, where floppy is attached via USB as well. In such case the floppy symlink point to nowhere and automount is not working at all.

I have to manually mount floppy as it is visible as sdb.

Thanks for reply.
Did you correct script or change the name of file? I can't see this now.

Pawel
Back to top
Profile PM 
2 replies since July 12 2004,00:05 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Once again USB boot problem

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code