[Grml-devel] about grub for grml

Michael Prokop mika at grml.org
Tue Nov 17 11:15:52 CET 2015


Hi,

Gregory, please use the Grml user mailing list for user support in
the future, this mailing list is about the *development* of Grml.
Also please subscribe to the list before sending mails to them,
otherwise the mail might get lost in the moderation queue or you
might miss answers to your mail.

Answers inline:

* Gregory Amaudruz [Fri Nov 13, 2015 at 03:41:09PM -0800]:

> 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.

[...]
> 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   ?

Uhm, I assume you're talking about grml-rescueboot and trying to
boot Grml ISOs from the local disk?

[...]
> 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
[...]

This ISO should load from disk and copy itself to RAM so you should
be able to use the underlying disk/partition fine afterwards.

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

> menuentry "Grml Rescue System (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
[...]

This one though lacks the toram boot option and therefore access to
the disk on which the ISO is booted from is blocked.

If the toram boot option doesn't work for you then we need more
details, like how is GRUB's (hd0,1) related to the USB stick, is
grml-rescueboot involved, etc.

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml-devel/attachments/20151117/f7859691/attachment.sig>


More information about the Grml-devel mailing list