Help - Search - Members - Calendar
Full Version: Need GRUB4DOS help
The CD Forum > The CD Forum > USB Booting
Rootman
I multiboot between Xubuntu, PE, various floppy images and GParted, Puppy Linux and Rescue Linux on my 8gb USB pen drive. Everything works fine but my root directory is getting pretty choked with files. I understand that GRUB4DOS can use subdirectories, what I don't understand is how to make the Linux OS understand where the image files are.

I've tried to root the image into a subfolder and put all the files there but it continues to look for the image files in the real root of the drive e.g. "/" .
CODE
title Puppy Linux
find --set-root /grldr
root (hd0,0)/puppy
kernel /puppy/vmlinuz  root=/dev/ram0 initrd=initrd.gz PMEDIA=usbflash PKEYS=us
initrd /puppy/initrd.gz


What is the Grub4DOS command / syntax or Linux syntax to make the image look in the specified subdirectory for it's files?

TIA.
FM_81
QUOTE (Rootman @ Apr 18 2007, 05:00 PM) *
What is the Grub4DOS command / syntax or Linux syntax to make the image look in the specified subdirectory for it's files?

Think, this job can't do GRUB for you (like all the other loaders too), because it stands in most cases in the INITRD of the special linux itself. If you unpack and patch these, may be you've success in some cases, but it's also possible in some not.
MfG FM_81
jaclaz
You cannot "root" to anything but a root directory, i.e. :
QUOTE
root (hd0,0)/puppy

is wrong.

But you can on most (not all) distro, have:
QUOTE
kernel /puppy/vmlinuz


but in your posted menu.lst you have:
QUOTE
kernel /puppy/vmlinuz root=/dev/ram0 initrd=initrd.gz

and in following line:
QUOTE
initrd /puppy/initrd.gz


Do have a look here, a few related things are explained:
http://www.linuxforums.org/forum/linux-tut...blems-grub.html
http://www.puppylinux.org/wikka/BootMethodBackgrounder

From here:
http://www.murga-linux.com/puppy/viewtopic.php?t=8674
this example (actually for a "frugal" install:
QUOTE
# Linux bootable partition config begins
title Puppy2 from ISO (on /dev/hda4)
root (hd0,3)
kernel /Puppy2/vmlinuz root=/dev/ram0 ramdisk_size=100000 init=/etc/init fromiso=/Puppy2/puppy-2.00-seamonkey.iso noprompt noeject
initrd (hd0,3)/Puppy2/initrd.gz
# Linux bootable partition config ends

and this one:
http://www.murga-linux.com/puppy/viewtopic.php?t=12860
should better show you that it is possible to have the files in a subdir.

As always, try inputting commands one by one from command line, this way you can see how grub/grub4dos "reacts" to each one.

Then you might have some problem with the correct puppy parameters:
http://puppylinux.org/wikka/BootParms

jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.