grub menu.lst for usb flash card
grub menu.lst for usb flash card
Please can someone give me a working menu.lst suggestion for an external usb flash card?
I want to install multiple Puppys on a flash drive.
I have tried installing with the grub installer and get:
title Puppy4 (on /dev/sdc1)
root (hd2,0)
kernel /boot/puppy/q1/vmlinuz root=/dev/sdc1 PMEDIA=usbflash ro vga=791
initrd /boot/puppy/q1/initrd.gz
I have put my Puppy files in /boot/puppy/q1 on the drive
But all i get is error 25: Disk read error
Any ideas? I have tried the forums but nothing seems to suggest the above is wrong. (The drive is confirmed as sdc1)
thanks
smog
I want to install multiple Puppys on a flash drive.
I have tried installing with the grub installer and get:
title Puppy4 (on /dev/sdc1)
root (hd2,0)
kernel /boot/puppy/q1/vmlinuz root=/dev/sdc1 PMEDIA=usbflash ro vga=791
initrd /boot/puppy/q1/initrd.gz
I have put my Puppy files in /boot/puppy/q1 on the drive
But all i get is error 25: Disk read error
Any ideas? I have tried the forums but nothing seems to suggest the above is wrong. (The drive is confirmed as sdc1)
thanks
smog
Is this flash drive meant to be bootable? If so, your BIOS will report it to GRUB as (hd0,0). So the appropriate menu.lst entry is:
Unfortunately, Puppy's hardware detection may not be able to drill that far down into the directory structure to find its files. You would be better off using a simpler structure like:
Code: Select all
title Puppy4 (on USB)
root (hd0,0)
kernel /boot/puppy/q1/vmlinuz 1 pmedia=usbflash
initrd /boot/puppy/q1/initrd.gz
Code: Select all
title Puppy4 (on USB)
root (hd0,0)
kernel /pup412/vmlinuz pmedia=usbflash
initrd /pup412/initrd.gz
I used TinyCoreLinux to make a quad-bootable USB pen drive:
default vesamenu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label BoxPup412
kernel /boxpup/vmlinuz
append initrd=/boxpup/initrd.gz pmedia=usbflash nosmp quiet psubdir=boxpup
label ubnentry2
menu label MacPup412_E17
kernel /macpup_e17/vmlinuz
append initrd=/macpup_e17/initrd.gz pmedia=usbflash nosmp quiet psubdir=macpup_e17
label ubnentry0
menu label tinycore@home
kernel /boot/bzImage
append initrd=/boot/tinycore.gz waitusb=10 tce=sdb1 quiet
label ubnentry1
menu label tinycore@lenovo
kernel /boot/bzImage
append initrd=/boot/tinycore.gz waitusb=10 tce=sda1 quiet
default vesamenu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label BoxPup412
kernel /boxpup/vmlinuz
append initrd=/boxpup/initrd.gz pmedia=usbflash nosmp quiet psubdir=boxpup
label ubnentry2
menu label MacPup412_E17
kernel /macpup_e17/vmlinuz
append initrd=/macpup_e17/initrd.gz pmedia=usbflash nosmp quiet psubdir=macpup_e17
label ubnentry0
menu label tinycore@home
kernel /boot/bzImage
append initrd=/boot/tinycore.gz waitusb=10 tce=sdb1 quiet
label ubnentry1
menu label tinycore@lenovo
kernel /boot/bzImage
append initrd=/boot/tinycore.gz waitusb=10 tce=sda1 quiet
T_Hobbit
:idea: Rebuilding old DOS Machine for Wing Commander Privateer and Puppy :!: Old spare parts to give away - anyone interested :?:
:idea: Rebuilding old DOS Machine for Wing Commander Privateer and Puppy :!: Old spare parts to give away - anyone interested :?:
When you first set up GRUB on the flash drive, you would have used some commands like:
These commands installed GRUB's stage1 code on the MBR of the flash drive. However, you can also put stage1 on the drive's partition boot sector. Use these commands:
The drive will still boot as before when you select it from your BIOS.
Now go into your hard drive's menu.lst and add this entry.
All of the above assumes that you only have one main hard drive and your BIOS is detecting the USB device as the second drive.
Code: Select all
grub
root (hd1,0)
setup (hd1)
quit
Code: Select all
grub
root (hd1,0)
setup (hd1,0)
quit
Now go into your hard drive's menu.lst and add this entry.
Code: Select all
Puppy on USB
root (hd1,0)
chainloader +1