All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Create floppy emulation boot CD with grub-mkimage
Date: Sun, 17 Feb 2008 16:29:29 +0100	[thread overview]
Message-ID: <47B852D9.1060807@t-online.de> (raw)
In-Reply-To: <20080217133107.GA15576@thorin>

Robert Millan wrote:
> On Fri, Feb 15, 2008 at 11:32:49PM +0100, Christian Franke wrote:
>   
>>> I don't think it is really practical to support USB drives in 
>>> grub-mkrescue.
>>> You'd have to require root permissions, which IMO beats the point of having
>>> a separate script from grub-install in first place.
>>>       
>> It may be useful to create small rescue images which can be later put on 
>> USB key with dd.
>> (BTW: The "floppy" image actually boots from USB at least on one of my 
>> PC. It appears as hd0).
>>     
>
> Yes, but how different would those be from floppy output?  As you point out,
> floppy images work as well.
>
>   

For a BIOS which handles USB flash drives like USB hard drives, a valid 
hard disk boot sector with a partition table should be present.
With the floppy image, GRUB detects bogus partitions on (hd0), because 
boot.img contains the "floppy_probe" code in the partition table space. 
The boot sector is also not properly patched for hdd (need to replace 
jmp by nop at "boot_drive_check").

But it actually works without any change.


> Besides, dd'ing a grub image to that stick would render the rest of the device
> useless for filesystem data.
>
>   

Yes. But if you need a rescue boot device when floppy or CD cannot be 
used for some reason, you probably do not care about this :-)

It may be possible to produce a rescue image with a valid partition 
table such that a filesystem partition can be added later.

Otherwise, grub-setup/install may work to install grub on an USB flash 
drive which has partition table and filesystem.


>> The patch also adds a --joliet option, useful to access the long file 
>> names on Windows (which has no RR support).
>>     
>
> Is there any drawback in using --joliet ?  If not, I think it's better to do
> it by default to avoid "option creep".
>
>   

I'm not aware of any drawback.

Christian




  reply	other threads:[~2008-02-17 15:29 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08 18:45 [PATCH] Create floppy emulation boot CD with grub-mkimage Christian Franke
2008-02-08 19:17 ` Robert Millan
2008-02-08 22:03   ` Christian Franke
2008-02-08 22:45     ` Robert Millan
2008-02-08 23:07       ` Pavel Roskin
2008-02-08 23:10         ` Robert Millan
2008-02-08 23:17       ` Christian Franke
2008-02-08 23:35         ` Robert Millan
2008-02-09 11:56       ` Bean
2008-02-09 12:32         ` Robert Millan
2008-02-09 12:38           ` Bean
2008-02-09 16:53         ` Christian Franke
2008-02-09 17:15           ` Bean
2008-02-10 12:17             ` Christian Franke
2008-02-08 23:14 ` Robert Millan
2008-02-08 23:32   ` Christian Franke
2008-02-09 17:04     ` Christian Franke
2008-02-09 21:59       ` Robert Millan
2008-02-09 23:04         ` Pavel Roskin
2008-02-10 13:43           ` Christian Franke
2008-02-10 15:14             ` Robert Millan
2008-02-15 22:32               ` Christian Franke
2008-02-17 13:31                 ` Robert Millan
2008-02-17 15:29                   ` Christian Franke [this message]
2008-02-18  9:04                   ` tsah marco
2008-03-01 21:05                   ` Christian Franke
2008-03-03 20:46                     ` Robert Millan
2008-03-03 22:10                       ` Christian Franke
2008-03-03 22:24                         ` Robert Millan
2008-03-07 21:20                           ` Christian Franke
2008-04-13 15:13                             ` Robert Millan
  -- strict thread matches above, loose matches on Subject: below --
2008-03-04  2:11 Kalamatee
2008-03-04  2:12 ` Kalamatee
2008-03-04  9:22 Christian Franke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B852D9.1060807@t-online.de \
    --to=christian.franke@t-online.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.