[Grml-devel] about grub for grml

Gregory Amaudruz greg6 at amaudruz.org
Sat Nov 14 00:41:09 CET 2015



I understand that on the grub file you need to put all of this, so that 
you can select the proper version when you boot.

If I have a 8GB USB stick:

1 partition of linux  of 4GB    /dev/sdb1    *

and

1 partition of win 95   4GB   /dev/sdb2

then I put all the operating systems ISO files on /dev/sdb1 and make it 
bootable.

The problem I have, is that if I boot the operating system then when it 
loads up and I want to have access to the hard drives, well I do not 
have access to /dev/sdb2  since it does some sort of a loop back on the 
entire USB stick or /dev/sdb.

Well when you load it up it would be /dev/sda   when you are installing 
the grub from linux onto the USB stick, it is /dev/sdb

But is there any way that I could make the loop back just for the first 
partiton and have access to the second partion?

I suppose I would have to mount the second partition to have access to 
it, but that is okay.

But I want to have access to the second partition. How do I do that?? 
What do I need to put in the grub entry to have access to the second 
partiton???

Because I do not have access to it. The grub entry loop back is for the 
entire USB stick!

Could you give me the 3 Grub Entries??? the GRML 64 full , the GRML 64 
small and the GRML 32 small   ?



# Begin /boot/grub/grub.cfg
set default=0
set timeout=8

insmod ext2
set root=(hd0,1)



submenu "grml64-full " {
   set isofile="/boot/iso/grml64-full_2014.11.iso"

   menuentry "Grml Rescue System 64bit" {
         iso_path="/boot/iso/grml64-full_2014.11.iso"
         export iso_path
         loopback loop (hd0,1)$iso_path
         set root=(loop)
         kernelopts=" ssh=foobarbaz toram  "
         export kernelopts
         configfile /boot/grub/loopback.cfg
   }
...
}





submenu "grml64-small" {
   set isofile="/grml/grml64-small_2014.11.iso"


menuentry "Grml Rescue System (grml64-small_2014.11.iso)" {
         insmod part_msdos msdos
         insmod diskfilter mdraid1x
         insmod xfs
         set root='mduuid/4223'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root --hint='mduuid/4223'  666
         else
           search --no-floppy --fs-uuid --set=root 666
         fi
         iso_path="/grml/grml64-small_2014.11.iso"
         export iso_path
         kernelopts=" ssh=secret nobeep toram 
ip=10.0.2.15::10.0.2.2:255.255.255.0:grml:eth0:off dns=10.0.2.3 
live-media=/dev/sda1,/dev/sdb1,/dev/md127 "
         export kernelopts
         loopback loop "/grml/grml64-small_2014.11.iso"
         set root=(loop)
         configfile /boot/grub/loopback.cfg
    }
...
}

submenu "grml32-small " {
   set isofile="/grml/grml32-small_2014.11.iso"

menuentry "Grml Rescue System (grml32-small_2014.11.iso)" {
         insmod part_msdos
         insmod ext2
         set root='hd1,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root 
--hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 
--hint-baremetal=ahci1,msdos2  d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
         else
           search --no-floppy --fs-uuid --set=root 
d0e82ae9-cb7a-4dd5-859c-b375daa9cb2f
         fi
         iso_path="/grml/grml32-small_2014.11.iso"
         export iso_path
         kernelopts="   "
         export kernelopts
         loopback loop "/grml/grml32-small_2014.11.iso"
         set root=(loop)
         configfile /boot/grub/loopback.cfg
         }
...
}












More information about the Grml-devel mailing list