BTS

Issue769

Title bootoption findiso fails if vol_id returns wrong information
Priority bug Status resolved
Superseder Nosy List grml.fksi, mika
Assigned To mika Topics

Created on 2009-11-08.21:56:52 by grml.fksi, last changed 2010-02-26.14:08:29 by mika.

Messages
msg2944 (view) Author: mika Date: 2010-02-26.14:08:28
Upstream of live-initramfs added my findiso code and we're using blkid 
nowadays, so closing this issue. Please feel free to reopen this bugreport if 
you encounter any further problems.

Thanks!

regards,
-mika-
msg2694 (view) Author: mru Date: 2009-11-10.18:07:47
On Monday 09 November 2009 18:50:33 Christoph Biedl wrote:

> As you're planning to abandon vol_id at all, and since this scenario
> is not very common at all:  I suggest to close this ticket as wontfix.
> In the unlikely situation somebody else encounters this problem in the
> remaining time until the next grml release, the search engines should
> lead him to this ticket.

I think its better to let the ticket stay open until we switched over to 
blkid and then close it as we want to fix-it.

Ulrich
msg2691 (view) Author: grml.fksi Date: 2009-11-09.17:50:32
Michael Prokop wrote...

> This one is related to http://bts.grml.org/grml/issue744 (switch
> from vol_id to blkid), I'm just not yet sure where we should place
> the hint about the currently possible failure of vol_id.

As you're planning to abandon vol_id at all, and since this scenario
is not very common at all:  I suggest to close this ticket as wontfix.
In the unlikely situation somebody else encounters this problem in the
remaining time until the next grml release, the search engines should
lead him to this ticket.

    Christoph
msg2686 (view) Author: mika Date: 2009-11-08.22:10:01
This one is related to http://bts.grml.org/grml/issue744 (switch from vol_id to 
blkid), I'm just not yet sure where we should place the hint about the 
currently possible failure of vol_id.
msg2684 (view) Author: grml.fksi Date: 2009-11-08.21:56:47
Severity: minor

Hi,

booting grml from hard disk using findiso= failed mysteriously on some
computers: The initrd could not locate the ISO image and therefore
dropped me into the (very) restricted shell.  The same configuration
and file layout worked like a charme on other computers.

With the help of #grml I found the reason as follows:
* The file system of that partition (here: /dev/sda1) is ext[23].
* The very first sector contains a boot sector, installed by
  (perhaps some old version of) grub.

Then, "/lib/udev/vol_id /dev/sda1" returns, at least sometimes
(...)
ID_FS_TYPE=vfat
(...)
or fails to identify the device at all.

Assuming grml's initrd does the same, this explains the error.

Solution: Clear out that sector, e.g. doing
| dd if=/dev/zero bs=512 count=1 of=/dev/sda1
and make sure your boot loader is still intact, in case of doubt:
Re-install it, preferrably on /dev/sda.

Could you please drop an according caveat in the documentation? That
would have saved a lot of frustration for me.

Suggestion:

Caveat (regarding the findiso boot option): 
Under certain circumstances grml fails to identify the partition for
the grml .iso file, thus fails to boot after the "Searching for GRML
file" message. This may happen if the filesystem where the .iso file
is stored, is ext2 or ext3. If you're sure all file names are correct
etc., please check whether "/lib/udev/vol_id <device>" actually
returns that filesystem.

Regards,
    Christoph
History
Date User Action Args
2010-02-26 14:08:29mikasetstatus: chatting -> resolved
assignedto: mika
messages: + msg2944
nosy: + mika
2009-11-10 18:07:49mrusetmessages: + msg2694
2009-11-09 17:50:33grml.fksisetmessages: + msg2691
2009-11-08 22:10:06mikasetpriority: bug
status: unread -> chatting
messages: + msg2686
title: Please add a caveat regarding findiso boot option -> bootoption findiso fails if vol_id returns wrong information
2009-11-08 21:56:52grml.fksicreate