casper boot doesn't work with some boot options

Bug #423616 reported by Paolo
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: casper

I'm booting a system on a USB key from an old laptop having no bios option to boot from usb, nor bios recognition of usb at boot.
This is useful to install new ubuntu distros without burning CDs even on old and very old machines, avoiding producing trash.
The usb keys are obtained by ubuntu usb live creation on FAT32 usb keys (Karmic and Jaunty).
The method used is to boot a kernel and ram image previously copied on hard disk from USB in /boot/usb-boot directory, but using as root the usb key.

In any case I wasn't able to open the system as the live cd, asking for language and keyboard - I was only able to boot the system this way :

title Xubuntu from USB
uuid 26d5b9d3-5e38-400f-906c-ea685407c590 #uuid of hard disk
kernel /boot/usb-boot/vmlinuz floppy.allowed_drive_mask=0 root=UUID=46F1-C9E3 boot=casper noprompt cdrom-detect/try-usb=true lang=it locale=it_IT
initrd /boot/usb-boot/initrd.gz
boot

where : 46F1-C9E3 is the uuid of the usb key.
floppy.allowed_drive_mask=0 is an option needed both in Karmic and Jaunty to avoid booting to stop looking for fd0 (I/O Error on fd0) - BTW - with this option the system works but complains as "Unknown option" - if option is absent, system doesn't work; I also tryed to grub-install with --no-floppy option but no effect.

The system work when only the previous option are included, but both in Jaunty and Karmic, those options do not work :

1) keyboard=it or keyb=it or xkeyboard=it (no effect)
2) bootkbd=it (system doesn't boot, and this is the standard option from https://help.ubuntu.com/community/BootOptions)
3) console-setup/layoutcode=it (system doesn't boot)
4) file=/cdrom/preseed/xubuntu.seed persistent (system doesn't boot)

When system doesn't boot, it looklikes looking for a media it can't read (/dev/sdb, /dev/sr0......), and we get a loop.

Do I need to copy extra files in /boot/usb-boot?

5) option bootkbd=it in syslinux.cfg let system booting, but no effects;
6) manual change allows to set keyboard (Applications/Settings/Keyboard) and setxkbmap it works too

For my use, the "persistent" option is not indispensable; A boot with the right keyboard would be preferable for multiple installs;

7) option xforcevesa doesn't work (no boot) option vesa has no effect

Thx

Paolo

Paolo (paolo-notari)
description: updated
Paolo (paolo-notari)
description: updated
Revision history for this message
Tormod Volden (tormodvolden) wrote :

It should not be necessary to specify root=UUID=46F1-C9E3 when booting with boot=casper. It will look through the disks and find the live CD by checking .disk/uuid.

Can you please attach casper.log (see https://wiki.ubuntu.com/DebuggingCasper)?

Changed in casper (Ubuntu):
assignee: nobody → Tormod Volden (tormodvolden)
status: New → Incomplete
Revision history for this message
Paolo (paolo-notari) wrote :

Eliminating root=UUID=nnnn works the same;

if I had one of the option (e.g. xforcevesa for this test) the system doesn't boot and stop in initramfs saying "unable to find a medium containing a live file system"

The live file system is correctely found if those problematic booting options are not sent to kernel
The system beeing unbooted, I tried to follow indications to save casper.log but :

1) I do no have a second usb port to use for saving data;

2) mounted first hd and saved casper.log, which only says it can't find media.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks. Please attach dmesg output as well (dmesg > dmesg.txt) and add "debug" to the boot options so that we can get more info in casper.log.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

You are not using an editor to edit grub.cfg or menu.lst which wraps lines so they are cut in two?

Revision history for this message
Paolo (paolo-notari) wrote :

I added debug to boot options and I see the system booting even if I have xforcevesa option;
It seems to work from a cold start, but not in rebooting.
In the pc needing vesa driver, the option has no effect - the video doesn't work correctly (in standard bootings when kernel is charged with xforcevesa the video works OK)
I'm editing menu.lst (and never edited grub.conf) from nano or gedit, or, more frequently, from grub itself at start;

Revision history for this message
Paolo (paolo-notari) wrote :

and here dmesg.txt

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The dmesg confirms that the whole kernel line is intact, so it is not an issue of line wrapping in the text editor:

[ 0.000000] Kernel command line: floppy.allowed_drive_mask=0 boot=casper noprompt cdrom-detect/try-usb=true lang=it locale=it_IT xforcevesa debug

I am not sure xforcevesa is supported any longer.

I guess the above logs are from a successful boot? Are you able to provide these logs for a failed boot?

Revision history for this message
Paolo (paolo-notari) wrote :

I do no know how to save a boot log of a failed booting

Revision history for this message
Tormod Volden (tormodvolden) wrote :

You did it comment 2, right? casper.log (when booting with "debug") and a dmesg.txt will do.

Changed in casper (Ubuntu):
assignee: Tormod Volden (tormodvolden) → nobody
importance: Undecided → Medium
status: Incomplete → New
Revision history for this message
Roland_on_Ubuntu (roland-on-ubuntu) wrote :

If this is the same problem I had, I have a fix.

My old pc cannot boot from USB. I put kernel and initrd on a spare hard disk partition, and the root filesystem.squashfs on the usb stick /dev/sdb1. This works with boot option: live-media=/dev/sdb1. This boot option is documented in: http://manpages.ubuntu.com/manpages/karmic/man7/casper7.html , but ubuntu 11.10 does not support it. I could easily fix this, and/or do not understand why the missing code disappeared. See attached patch.

Revision history for this message
Roland_on_Ubuntu (roland-on-ubuntu) wrote :

oops, I made the patch the wrong way, the 'minus' lines should be added of course.

Revision history for this message
Roland_on_Ubuntu (roland-on-ubuntu) wrote :

To see the usefulness of the live-media boot option, please refer to (my edit in) https://help.ubuntu.com/community/Installation/FromLinux

Changed in casper (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.326

---------------
casper (1.326) quantal; urgency=low

  * 22desktop_settings:
    - Rename 22screensaver to 22desktop_settings
    - Move 22gnome_panel_data's content to 22desktop_settings
    - Flush overrides in 22desktop_settings to avoid getting duplicate keys
      when using persistence.
    - Check for gsettings-desktop-schemas instead of gnome-panel-data
  * 35fix_language_selector:
    - Use sed against the original file (from rofs) instead of the target file.
      This avoids another case where the change is re-applied at every boot
      when using persistence.
  * 25adduser:
    - Remove RUNNING_UNDER_GDM from /etc/environment which was a big hack
      for back when we still used xscreensaver and was getting appended with
      every single boot.
    - Use /etc/sudoers.d instead of appending to /etc/sudoers, avoid getting
      duplicate lines with every reboot.
  * 23networking:
    - Change default /etc/network/interfaces to match that in /rofs, makes it
      easier to diff /etc when debugging casper.
  * casper-init, casper, 19-keyboard, casper-functions:
    - Remove any remaining reference to usplash as it's been deprecated for a
      long long time and just makes things harder to read.
  * casper-update-initramfs:
    - Exit when called from a non-writable media (cdrom) or when called from
      ubiquity. This fixes a > 1 minute wait when clicking "Try Ubuntu".
  * 19keyboard:
    - Add code to detect that the keyboard layout changed from the previous
      value and flush the gsettings key so that the indicator is properly
      reset. (LP: #946406)
  * 43disable_updateinitramfs:
    - Don't try to chmod a dangling symlink.
    - Only write /usr/sbin/update-initramfs if it doesn't already exist.
  * postinst:
    - Remove code generating symlink for /usr/sbin/update-initramfs to
      /usr/share/casper/casper-update-iniramfs as the diversion and symlinking
      is done in the initramfs and that code was only useful when the shim was
      first introduced. (LP: #984276)
  * scripts/casper:
    - Allow specifying live-media on the command line, helps when booting
      computers that are unable to boot a CD/USB disk. (LP: #423616)
    - Fix NFSOPTS handling by adding the needed comma and sticking it to the
      existing "ro" option of nfsmount (LP: #476208)
  * 22serialtty:
    - Move 22serialtty to 26serialtty to avoid overriding the newly generated
      upstart jobs. Note that this will spawn getty instead of login, but
      it's probably for the best as we need a specific baudrate. (LP: #747888)
 -- Stephane Graber <email address hidden> Tue, 02 Oct 2012 18:11:44 -0400

Changed in casper (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.