USB booting :: linuxrc script MOD question
I thought it was missing so just went ahead and added it and ran dsl. I still cannot see the waiting for usb anywhere? It just flips through very fast. I never see any text displayed "waiting"?
So basically this entire section can be deleted?
# Wait for very slow USB devices:
# Host: scsi1 Channel: 00 Id: 00 Lun: 00
# Vendor: Model: Rev:
# Type: <NULL> ANSI SCSI revision: ffffffff
wait_usb() {
case "$(cat /proc/scsi/scsi)" in
*"<NULL>"*|*ffffffff*) ;;
*) return ;;
esac
echo -n "${CRE}${BLUE}Waiting for USB devices${NORMAL}..."
for i in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .; do
sleep 1
case "$(cat /proc/scsi/scsi)" in
*"<NULL>"*|*ffffffff*) echo -n .;;
*) break ;;
esac
done
echo "${BLUE}Done.${NORMAL}"
}
Cannot figure out why I cannot see the "waiting" message? I will try it on another PC to see If I see it there
I'll be right back.
In the meantime I can delete all the script I just displayed? Isn't that USB function called for in other places?
It didn't even work at all on this PC at work. I'll have to try it on the one at home I know it does work on to see if I can see the displayed message.
If you think of anything else let me know and thanks so much for the help. If we can figure out what the problem is it would be great.
By the way I do have a grub boot loader on this version. SHould I try it without that bootloader? It should not matter.
That is the function that can be deleted.
It was never a formal part of Knoppix, it was a user contributed hack.
It is only called from one place, which we have replaced with three lines.
ok an update. I have two 64 meg lexar flash drives I created DSL on in a from a dsl boot cd.
One has the initrd around 48 meg file which boots on all of the PC's including my D820.
On the other 64 meg flash drives I have as a backup dsl. I removed the initrd from it and put back the normal minitrd.gz but modifed the linuxrc with the latest mod. And also obviously put back the Knoppix image.
Both of them are non grub booting devices and boot from syslinux.
Don't confuse these two flash drives with the ones I have been trying to get to work on the D820 which is a 4Gigs lexar and installed grub on it and did it the Wiki method II from a linux OS.
Thats the one I have been working on with you and it still will not display the waiting message.
On the 64 meg flash I modified the linuxrc file and booted it off a PC I know it works from and I don't see the waiting message there either but it does boot from from this non initrd version. It does not work on the D820.
As I said above I wanted to make sure the grub was not interferring with out tests and its not. I just had to check that.
Anyhow why am I not seeing the message?
Since you said it did not matter I did not delete that whole section you said I could delete.
Any more ideas?
OMG OMG you have done it. It works!!!!! Your a GOD!!!! Thanks so much!!!!!
Read a few remarks below:
I know for a fact the 64 meg Lexars that I created dsl on from the Live CD did not work on the D820. That is why I put the initrd on both and I had a second one as a backup.
I don't know how to thanks you but your script works 100%.
I still do not see the message but I don't care at this point because you got it to work.
For the 4gig lexar I don't think the Live CD was able to put dsl on it because of its size so I had to revert to the wiki method:
http://www.damnsmalllinux.org/wiki....h_Drive
Method II: Using GRUB as boot loader
making two partitions etc and grub. This USB stick still will not work with the modified script on the D820 although I am able to get it to boot from a couple of other PC's without the modified script.
WHat I have to figure out is how to reinstall dsl onto this 4GB Lexar stick other than the Live CD.
I think the key is to use syslinux? Is that what the LiveCD uses?
Although with syslinux I will not be able to make two partitions on that 4GB flash drive will I? Doesn't syslinux only work it there is one partition on the flash drive?
I'll have to figure out another way to install dsl on the 4GB stick and try the unmodified linuxrc file and yor modified version.
Keeping fingers crossed and thanks again for getting this to work.
Why I never see the message is unclear to me. I tried it both on my D820 which is now boots dsl with your modoifed script and a PC I know that works with or without the modified script. On that PC it always booted dsl fand with the modified linuxrc file I don't see the "waiting" message on that one either?
One more important comment I am using DSL-ISO version 3.4 and not yoru current 3.4.1.
Let me know what other testing you want me to try over the weekend.
I won't probably try anything else until later on tonight or Saturday!!!
THanks again
For your 4GB you can try the new grub usbhdd install script.
It is on dsl v4.0c1 and only works when installing from the booted cdrom. It can be found in the usual place on the menu or under Apps Tools
This new script tries to calculate cyclinders and makes 2 partitions. The second partition is a small 50MB for DSL, the first partition is the remaining size of your pendrive and is vfat. This works for me and allows Windows to see the large partiton to share data, etc.
Caution: It is a new and farily untested script.
Don't run it if your system is SATA.
It expects to find the pendrive as sda.
Try it and let me know.
Next Page...
original here.