Hello,
For the reasons of furthering familiarity with Linux and its file system, I decided to create a small project based very loosely on
Pocket_Linux (even though it appears to be quite out of date). However, I opted to do this on a usb stick, instead of floppies.
To summarize;
1. I created two partitions on the usb and formated them ext2.
2. I compiled a Linux kernel 2.6.32.59, with minimal support as was needed for the most basic features of my laptop, and transferred it into /boot on what I chose to be my root partition on the usb stick.
3. I saved myself the hassle of building Grub from source (a couple of attempts were frustrating, as they were producing compiler errors) by simply transferring my present Debian's Grub to the usb stick with...
Code:
grub-install /dev/sdb --root-directory=/mnt/temp
.../mnt/temp being where I had mounted /sdb1, which I had chosen to be my root partition.
4. Then I booted from the usb, correctly suspecting that I would be presented with the grub cli screen.
It is at this point that I run into trouble, as Grub insists on a different drive/device naming protocol which is utterly confusing, especially since even that has changed from an earlier version (Legacy) with which I never had any contact, but for which there abounds lots of web pages that will lead you up a dead end.
Anyway...
I did this at the Grub prompt;
Code:
set root=(hd0,1)
linux /boot/vmlinuz root=/dev/sdb1
boot
Well, to my surprise, I actually DO boot up my personal kernel, but there's a problem, it seems, with the second line of the above code, specifically, the...
...part. I do get a list of "available partitions". In fact here's what appears after my kernel has booted...
Code:
VFS: Cannot open root device "sdb1" or unkown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
0300 156290904 hda driver: ide-gd
0301 78280442 hda1
0302 1 hda2
0305 76005376 hda5
0306 2002944 hda6
1f00 4096 mtdblock0 (driver?)
0800 8192 sda driver: sd
1f01 131072 mtdblock1 (driver?)
1f02 16384 mtdblock2 (driver?)
I have tried some variations on the "root=" option, but no to avail. How can I know what is what, and how to set the correct root partition (which I know to be my "linux format" sdb1)?
Any help? My thanks in advance...