[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#403846: marked as done (support mounting / at a partition offset (-o offset=))



Your message dated Fri, 26 Sep 2014 00:59:32 +0100
with message-id <1411689572.3659.55.camel@decadent.org.uk>
and subject line Re: update-initramfs: mount/losetup are broken in initrd
has caused the Debian Bug report #403846,
regarding support mounting / at a partition offset (-o offset=)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
403846: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403846
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: update-initramfs
Version: update-initramfs
Severity: normal


my / is on sdb; sda+sdc are set up as RAID=>/dev/md0

At the moment, I boot my system on sdb; file systems of sdb have been copied
to md0.

After booting sdb, I can run successfully:
mount -o offset=2564014080 /dev/md0 /mnt/whatever

So, to boot and use md0 as root, I changed the boor arguments from
/vmlinuz ro initrd=/initrd.img root=/dev/sdb3
to
/vmlinuz ro initrd=/initrd.img root=/dev/md0 rootflags=offset=2564014080

In short, at bot time I am said that md0 is not mountable; then, I fallback to some
prompt. Ther, I try to mount md0 manually, running exactly the same command:
mount -o offset=2564014080 /dev/md0 /mnt/
and I am said from memory "invalid argument".

After 2 weeks trying EVERY THING I could think of, I have embedded losetup
from the main system in the ramdisk; once in the prompt, the procedure
became:
- losetup -o 2564014080 /dev/loop4 /dev/md0
- /scripts/dhp/losetup -o 2564014080 /dev/loop6 /dev/md0
- mount -o ro /dev/loop4 /root
- mount -o ro /dev/loop6 /root

First call is using losetup from the ramdisk made by update-initramfs; the
second one is using losetup I put in the ramdisk. 3rd call fails, 4th works.

This means losetup actually embedded in initramdisk does not support
properly the offset option. The result is that loop device can not be set
up, and everything fails.

I do not know if other scripts also have this failure (to assume that the
offset option is never passed), but please, check so.

I will do more testing within days, to see if rebuilding the ramdisk
manually and swicthing the losetup binary solves the problem; if yes, then
other scripts are OK.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: alpha
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-alpha-smp
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)


--- End Message ---
--- Begin Message ---
This bug report is over 7 years old, so I think it's safe to assume
this configuration won't be supported.

Ben.

-- 
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: