/init: line 7: can't open /dev/sr0: No medium found

Reported by gibbylinks on 2009-12-27
122
This bug affects 27 people
Affects Status Importance Assigned to Milestone
Ubuntu
Undecided
Unassigned
Nominated for Lucid by gibbylinks

Bug Description

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 affects ubuntu/lucid lynx

Seeing following error message when booting Lucid Lynx daily builds
from USB stick.

/init: line 7: can't open /dev/sr0: No medium found

Boots ok

using DELL Inspiron 1501 laptop with 2gb Ram

I get same error if image written to disk with

    * USB Startup Disk Creator
    * Create DELL recovery media
    * Unetbootin

all three packages return same error so looks like ISO at fault ?

see http://ubuntuforums.org/showthread.php?t=1345125

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAks3kkYACgkQRT+RNEgk9JhxQACfT9zIpm/O8NPk/gNVKoy+JftF
574An1lZaOutT1kVQFbqjF98bgJMIcfv
=cOYl
-----END PGP SIGNATURE-----

Kjell L. (lkjell) wrote :

It happens with Karmic as well on an USB. But only on a selective pc. However if you wait like 5 min or more it should boot fine.

Changed in ubuntu:
status: New → Confirmed

I had the same error with some desktop Acer computer.

I believe it might not be computer related, but some problem with usb-creator which fails to set-up the image correctly.

(I used Windows usb-creator)

Also, I was using Karmic Koala 32-bit desktop ISO, not Lucid.

I burned the same ISO to CD and the booting was different from the beginning... the installer menu had different options etc. And it works.

Chris S. (cszikszoy) wrote :

Disabling the floppy drive controller in the BIOS (as I have no floppy drive) fixed this issue for me.

Julien (julienmbpe) wrote :

Same bug for me on an persistant-USB drive created with usb-creator from an iso of Ubuntu Lucid Lynx 64bits (beta1)

/init: line 7: can't open /dev/sr0: No medium found
/init: line 7: can't open /dev/sr0: No medium found
stdin : error
/init: line 7: can't open /dev/sr0: No medium found
/init: line 7: can't open /dev/sr0: No medium found
stdin : error
/init: line 7: can't open /dev/sr0: No medium found
/init: line 7: can't open /dev/sr0: No medium found
stdin : error

Jan Kraeck (jan-kraeck) wrote :

built (k)ubuntu 10.04 live-usb with "usb startup disk creator (ubuntu 9.10)" and have same problem:

first:
(process: xxx): Glib-Warning ** getpwuid_r(): failed due to unknown user id(0)

then a lots of:
stdin: error0
/init: line 7: can't open /dev/sr0: No medium found

after a while:
opens ash and writes:
(initramfs)Unable to find a medium containing a live file system

antesdelalba (antesdelalba) wrote :

Same thing here on an IBM R51.

I used the same pendrive to install 10.04 on another two boxes, so it's not the key.

Nguyen Anh Minh (minhna) wrote :

I had this problem.
Desktop mainboard: ECS 780GM-A
CPU: AMD athlon II X2 240

Jorge Liechocki (jliechocki) wrote :

as well as Jan Kraeck #7:

built (k)ubuntu 10.04 live-usb with "usb startup disk creator (ubuntu 9.10)" and have same problem:

first:
(process: xxx): Glib-Warning ** getpwuid_r(): failed due to unknown user id(0)

then a lots of:
stdin: error0
/init: line 7: can't open /dev/sr0: No medium found

Disabling floppy drive, as said by Chris S., USB boot ran well.

John Hollar (john-p-hollar) wrote :

Likewise, disabling the floppy drive worked. I think its because this error is followed by a stream of

end_request: I/O error, device fd0, sector 0
Buffer I/O error on device fd0, logical block 0

over and over, which would explain the connection to the floppy. I also have no floppy drive.

Merritt Boyd (mboyd) wrote :

This is in fact a bug in casper, and not a dupe of #492301. The error message we're seeing is an annoying by-product of casper searching for its filesystem image across all removable media, some of which (the floppy drive in particular) may cause an error to be printed when queried. Whether or not you see it depends on the order casper queries the various system media, as it stops as soon as it finds the one it wants.

This bug alone shouldn't prevent the system from booting, but if casper is unable to find an image, it will keep looking in a loop, causing the error to be printed repeatedly. People seeing repetitions of this message and then dropping into an initrd shell have bigger problems, unrelated to the reasons for seeing this message on successful boots.

As has already been pointed out, disabling the floppy drive will suppress the message. A better fix would be for the casper devs to change line 44 of /scripts/casper-helpers from "eval $(fstype < $1)" to "eval $(fstype $1 2>/dev/null)".

Diver (diver) wrote :

Unfortunately my bios doesn't have an option to disable floppy drive (and I don't have one at all). I also found several other reports about this problem from people with notebooks without this option too. Shouldn't this bug be reopened and fixed in casper?

Narcis Garcia (narcisgarcia) wrote :

I'm affected with Ubuntu-Gnome 13.04 Live-USB created with usb-creator from a Ubuntu 12.04 machine.
In my case it has no relation with bug 492301 because I've also tried to boot with a multiboot USB stick (grub2 to select an ISO file in the stick; no usb-creator intervention) and the init message is the same:

/init: line 7: can't open /dev/sr0: No medium found

Can it be related with UEFI installed on the hard disk?
(my today's testing case is a notebook with Windows 7 preinstalled; BIOS hasn't any option to disable UEFI)

Ubuntu 13.04 Live-USB: error
Ubuntu 13.04 ISO in a grub-USB: error
Ubuntu 13.04 Live-DVD: boots (only acpi=off needed)
* Ubuntu 13.04 Live-USB boots if there is also the Live-DVD inserted in the optical drive (after kernel loading Live-USB jumps to get all the data from DVD; sr0).

- I've tried with Nguyen's workaround (altering casper parameters) with no success.
- Once the hard disk is formatted, problem remains.
- This is the second machine I've found in a month with the same problem (preinstalled Windows 7/8 that prevents Live-USB to boot).

gerdkolano (gerdkolano) wrote :

I've got the same problem booting 13.04 from USB , disabled both floppy and floppy controller in the BIOS.

ice (ice-simx) wrote :

[ SOLVED ]

facing same problem, ( HP Compaq 6910p )
used ubuntu-12.04-desktop-amd64 to create startup disk of ubuntu-12.04.3-desktop-amd64
but no luck so far.

as mentioned, disabled boot from floppy (as there was no option to disable floppy controller)
but nothing happened

then i tried to enable SATA Native Mode in BIOS, reboot and wait for about five minutes,
it print error message
                          timeout: killing '/sbin/modprobe -bv pci:-------- ' [197]
repeatedly, then show ubuntu logo and booted fine.

Ian! D. Allen (idallen) wrote :

Failure booting from USB using ubuntu-12.04.3-desktop-i386.iso on a Dell Inspiron 9300:
- Repeated "/init: line 7: can't open /dev/sr0: No medium found" over and over
- Error: Unable to find a medium containing a live file system
- Drops into shell prompt: (initramfs)

The USB was made with a direct "dd" onto the USB key: dd if=ubuntu-12.04.3-desktop-i386.iso of=/dev/sdb
(Same errors happened with a USB key loaded using some other Windows USB creator utility.)

Solution:
- Use F6 to interrupt the boot.
- Optional: remove the keywords "quiet splash" from the kernel line.
- Add the keywords "break debug" to the kernel line and continue the boot.
- Part way into the boot, it will drop to the "(initramfs)" prompt.
- Doing "ls -l /dev/sd*" will show only sda devices - no sdb devices.
- Wait a few minutes. Various messages will print. Keep waiting.
- After a few minutes, doing "ls -l /dev/sd*" will show the USB key (sdb* devices).
- Now, exit the shell and continue the boot.
- It comes up fine.

Seems to be a timing issue with getting the USB /dev/sdb* devices recognized right after boot. Adding the break and debug (probably only one of these is actually needed but I don't know which) slows down the process and waits long enough so that the USB device can be found by the kernel correctly.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers