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
Pages: (3) </ 1 [2] 3 >/

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

reply to topic new topic new poll
Topic: Frugal USB boot fails: 'Missing Operating System', How to configure grub for USB boot?< Next Oldest | Next Newest >
vodsonic Offline





Group: Members
Posts: 6
Joined: Jan. 2006
Posted: Jan. 26 2006,22:46 QUOTE

OK, I modified /mnt/sda1/boot/grub/device.map to contain only:
Code Sample

(hd0) /dev/sda


Then I run grub-install:
Code Sample

#grub-install /dev/sda1
/dev/sda1 does not have any corresponding BIOS drive.


I also tried changing the device.map to read:
Code Sample

(sd0) /dev/sda

but got the same result as before. I rebooted into Knoppix 4, mounted the USB thumbdrive, enabled read/write mode, and tried the same command. The result in Knoppix is a little different. First it says:
Code Sample

Probing devices to guess BIOS drives. This may take a long time.


It takes probably 15 seconds, and then says:
Code Sample

Could not find device for /boot: Not found or not a block device.


I'm stumped.
Back to top
Profile PM 
~thc Offline





Group: Members
Posts: 42
Joined: Dec. 2005
Posted: Jan. 27 2006,15:34 QUOTE

Code Sample
#grub-install /dev/sda1


are you sure that you want to install the primary grub loader (stage 1) into the bootsector of sda1? when not, try

grub-install /dev/sda

for installing it to the pendrives partition table.
Back to top
Profile PM 
vodsonic Offline





Group: Members
Posts: 6
Joined: Jan. 2006
Posted: Jan. 27 2006,16:11 QUOTE

#grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

Interestingly:

#mount /dev/sda1 /mnt/sda
mount: /dev/sda1 is not a valid block device

#mount /dev/sda1 /mnt/sda1
mount: /mnt/sda1 does not exist

This is after setting BIOS to boot from CD first, and booting with the USB thumbdrive plugged in. (If I plug the thumbdrive in AFTER booting, and try to mount it manually on /mnt/sda1 it works fine - /mnt/sda1 already exists and I don't have to create it before mounting.)

I think that "does not have any corresponding BIOS drive" and "not a valid block device" are probably the keys here. I just don't know enough to figure out what to do with them.
Back to top
Profile PM 
~thc Offline





Group: Members
Posts: 42
Joined: Dec. 2005
Posted: Jan. 28 2006,17:11 QUOTE

grub-install looks for the device.map file in /boot/grub. i think you have to tell grub-install where to look for the corresponding usb pendrive directory. try

#grub-install /dev/sda --root-directory=/mnt/sda1
Back to top
Profile PM 
Mike
Unregistered






Posted: Feb. 03 2006,22:52 QUOTE

I had the same problem and probably solved in a simpler or more
extreme way. I disconnect every other drive in my system, EXCEPT the USB drive and the CDROM. Then there seemed to be very little confusion about which drive was (hd0) or (hd-whatever). Now I have no more errors from grub and everything is happy.
Back to top
12 replies since Jan. 22 2006,20:07 < Next Oldest | Next Newest >

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

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Frugal USB boot fails: 'Missing Operating System'

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