Error messages like "error: /dev/sdb: No medium found" on booting

Bug #1398025 reported by Removed by request
88
This bug affects 18 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I'm using Ubuntu 15.04 dev with udev 217-1ubuntu1 and for a few days I'm seeing on every boot errors like "error: /dev/sdb: No medium found". Here is the content of /var/log/boot.log:

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
 * Setting up X socket directories... 
[ OK ]
 * cryptswap1 (running)...  * Starting early crypto disks... 
[ OK ]

summary: - error: /dev/sdb: No medium found
+ Errors messages like "error: /dev/sdb: No medium found" on booting
tags: added: vivid
Revision history for this message
Bruce Pieterse (octoquad) wrote : Re: Errors messages like "error: /dev/sdb: No medium found" on booting

I currently get this for the Ubuntu Gnome daily image. The only difference in my case is that it is for /dev/sda on the live CD

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udev (Ubuntu):
status: New → Confirmed
Revision history for this message
Bruce Pieterse (octoquad) wrote :

Perhaps these issues are connected some how: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1401677

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1398025

tags: added: iso-testing
Martin Pitt (pitti)
affects: udev (Ubuntu) → systemd (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :

Most likely not in udev, as that doesn't ship a local-premount initramfs-tools script, but let's find out what's wrong for now. I don't see this on my systems, so I'm afraid I need to ask you to do some debugging. Can you please reboot and press the left shift key during that, so that the GRUB menu appears. Then press "e", append "debug=y" to the line starting with "linux", and press Ctrl-X to boot. Then please attach /var/log/boot.log.

Thanks!

Changed in systemd (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Removed by request (removed3425744) wrote :
Changed in systemd (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, that already helps. Can you now please enable debugging of the 'resume' initramfs hook (which seems to produce those errors) with:

  sudo sed -i '1 s/$/ -x/' /usr/share/initramfs-tools/scripts/local-premount/resume
  sudo update-initramfs -u

then reboot with the previous "debug=y" again, and re-attach /var/log/boot.log?

Please also give me the output of

  cat /etc/initramfs-tools/conf.d/resume

Thanks!

Changed in systemd (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Removed by request (removed3425744) wrote :

sworddragon@ubuntu:~$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=23b2ee46-5930-41bc-a3e5-33800a236db2

Changed in systemd (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

That's odd, now the error messages are gone entirely, even though the only change is to add "set -x" to the resume premount script to show debug output. I have a gut feeling that the update-initramfs -u (which rebuilds the initramfs) somehow "fixed" this. Unfortunately we now lost the evidence what was wrong in the first place :-(

Anyway, the script shows nothing out of the ordinary. Can you remove the -x from the file again, with

  sudo sed -i '1 s/ -x$//' /usr/share/initramfs-tools/scripts/local-premount/resume
  sudo update-initramfs -u

Just to double-check, is the error message coming back now?

affects: systemd (Ubuntu) → initramfs-tools (Ubuntu)
Changed in initramfs-tools (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Removed by request (removed3425744) wrote :

> Just to double-check, is the error message coming back now?

Yes, I'm seeing the error messages again. Also on repeating the steps from comment #7 the boot.log contains now the error messages too (which is attached on this post). Just in case it has something to do with the logging behavior: There is also a /var/log/upstart/udev.log which contains entries like this:

starting version 218
Network interface NamePolicy= disabled on kernel command line, ignoring.
specified group 'input' unknown
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
conflicting device node '/dev/mapper/cryptswap1' found, link to '/dev/dm-0' will not be created

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Ah, thanks, so that's wait-for-root. Some further questions:

Do you actually have devices /dev/sdb to sde? What kind are they, CD drives, SD card readers etc. which actually have media? Can you please do "udevadm info --export-db > /tmp/udev.txt" and attach /tmp/udev.txt here?

If you run

  sudo /usr/lib/initramfs-tools/bin/wait-for-root /dev/disk/by-uuid/bogus 3

do you get these messages as well?

Changed in initramfs-tools (Ubuntu):
importance: Undecided → Low
Revision history for this message
Removed by request (removed3425744) wrote :

> Do you actually have devices /dev/sdb to sde? What kind are they, CD drives, SD card readers etc. which actually have media?

/dev/sdb - /dev/sde are card readers with no media in it.

> If you run
>
> sudo /usr/lib/initramfs-tools/bin/wait-for-root /dev/disk/by-uuid/bogus 3
>
> do you get these messages as well?

No, the error messages doesn't appear there.

Revision history for this message
Bruce Pieterse (octoquad) wrote :

I no longer see this with a daily image and udev 218

Revision history for this message
Removed by request (removed3425744) wrote :

With udev 218-3ubuntu4 and initramfs-tools 0.103ubuntu9 I'm still seeing this bug.

summary: - Errors messages like "error: /dev/sdb: No medium found" on booting
+ Error messages like "error: /dev/sdb: No medium found" on booting
Revision history for this message
Lee Donaghy (deadite66) wrote :

Also have this problem but it doesn't show up in boot.log with debug=y
it is logged in udev.log though, /dev/sdc which is a card reader the same as sworddragon noticed.

Revision history for this message
Lee Donaghy (deadite66) wrote :
Revision history for this message
Lee Donaghy (deadite66) wrote :
Revision history for this message
Removed by request (removed3425744) wrote :

I'm also noticing that inserting a SD card does not create /dev/sdb1 but on removing the SD card the line "error: /dev/sdb: No medium found" is added to /var/log/upstart/udev.log.

Revision history for this message
Joseph (bniedem) wrote :

I noticed that whenever I boot with my external drive switched on, I also get the error "No Medium Found." So, to solve this problem, I switch off the external drive before I turn my computer on. And everything works fine.

Revision history for this message
Damiön la Bagh (kat-amsterdam) wrote :

I'm getting the same message, it delays boot by 40 seconds. When the machine does finally boot into Ubuntu the device /dev/sdc is available and working normally.

systemd-udevd[292]: error: /dev/sdc: No medium found

Model: ATA FUJITSU MHZ2500B (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Revision history for this message
Luís Louro (lapisdecor) wrote :

I also get this error on boot on Ubuntu 15.04.

starting version 216
error: /dev/sdb: No medium found
error: /dev/sdb: No medium found

I'm runing 3.19.0-25-generic Linux.
if I run sudo fdisk - l

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 321112255 320905408 153G 7 HPFS/NTFS/exFAT
/dev/sda3 601159680 625139711 23980032 11,4G 7 HPFS/NTFS/exFAT
/dev/sda4 321114110 601159679 280045570 133,5G 5 Extended
/dev/sda5 595394560 601159679 5765120 2,8G 82 Linux swap / Solaris
/dev/sda6 321114112 589627391 268513280 128G 83 Linux
/dev/sda7 589629440 595384319 5754880 2,8G 82 Linux swap / Solaris

Revision history for this message
Luís Louro (lapisdecor) wrote :

My starting version is 219, not 216.

Revision history for this message
César Díaz (cesare-diaz) wrote :

Starting version 219

error: /dev/sdb: No medium found

This error on boot on Ubuntu 15.04 over a laptop Acer Aspire 4830TG-6457

Revision history for this message
George Prowse (torqueing) wrote :

I get this for /dev/sde

fdisk shows no /dev/sde and there is no /dev/sde in fstab

Revision history for this message
AkaSchmid (akaschmid) wrote :

Hi all
I have this problem.
Is there any solution out there?

tags: added: xenial
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.