Desktop CD fails to find media

Bug #217907 reported by Stefan Bader
10
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: casper

When booting the Kubuntu-Hardy-amd64 daily desktop CD (2008-04-15), both the defects check and booting the live Cd fail to find the CD media. The boot process stops on the busybox command line. At that state the isofs module is not loaded. I can load that module manually and then mount the CD. So the kernel detects the drive.

Hardware:
MB: ASUS A8N-SLI
CPU: AMD64 3200+
Drive: Toshiba DVD-ROM SD-M1612 (atapi)

casper.log does not reveal much:
/init: /init: 1: cannot open /dev/fd0: No such device or address
<repeated several times>
Unable to find a medium containing a live file system

Note: Whenever I also turned on another (scsi) CD-ROM drive (only turned it on, the CD remained in the other driver), I have not seen this failure. The same applies when starting the live-session. SCSI drive turned off gives trouble. With that drive turned on, everything works.

Tags: iso-testing
Revision history for this message
Stefan Bader (smb) wrote :

This oddly seems to be tied to udev and the amount of time it takes to create the device node. If I interrupt the process with "break=mount" wait until I see /dev/scd0 created and then exit, everything works as expected.
It is strange, though, that a second drive helped. When checking with the second drive, it also takes some time until the device nodes are created.

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

Thanks for your report. Does this still happen in Intrepid? If so, please see https://wiki.ubuntu.com/DebuggingCasper and attach the logs here.

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

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in casper:
assignee: tormodvolden → nobody
status: Incomplete → Invalid
Revision history for this message
Dion Stempfley (dtsonline) wrote :

Ubuntu 9.04 version 1.173 Trace of casper shows mountroot()->find_livefs()->get_fstype will return the error:
    /init: line 1: cannot open /dev/sda: no such file

When I add "/sbin/udevadm settle" before the loop "for sysblock in $(echo /sys/block/* ... " this goes away. Not sure if this is the right fix or the right place for it. I'll leave that to someone with more experience here.

Thx,

/Dion

Changed in casper (Ubuntu):
status: Invalid → New
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Dion, can you please attach your casper.log (for the failing case)?

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

> It is strange, though, that a second drive helped. When checking with the second drive, it also takes some time until the > device nodes are created.

Stefan, this is because the "timeout" is not based on time, but on number of iterations. More devices to check extends the time to run the given (20?) cycles and gives more time for the root device to appear. This is also why this regressed in Hardy, since the floppy modules was not loaded any longer and this shortened each checking cycle tremendously.

summary: - Kubuntu Desktop CD fails to find media
+ Desktop CD fails to find media
Revision history for this message
Dion Stempfley (dtsonline) wrote :

Attached is a casper.log before I added the "udevadm settle"

The difference between before and after is:

# diff casper.log-nosettle casper.log-settle
1,4d0
< /init: line 1: cannot open /dev/sda: no such file
< /init: line 1: cannot open /dev/sda: no such file
< /init: line 1: cannot open /dev/sr0: no such file
< /init: line 1: cannot open /dev/sr0: no such file

Revision history for this message
Dion Stempfley (dtsonline) wrote :

Here is a run with "set -x" at the top of the /scripts/casper

Revision history for this message
Dion Stempfley (dtsonline) wrote :

Was there a result or response here? I'm not sure if the "udevadm settle" is actually a fix or just masking the problem. And, I saw in some other code that the "udevadm settle" command was put in a loop structure after a call to cryptsetup. It didn't seem right there, but I don't understand udev enough to know. I wonder if the developer didn't do the same thing I did and put it in "just in case"

/Dion

Revision history for this message
Stefan Bader (smb) wrote :

In my understanding, using udevadm settle would be the right thing to do. This makes sure udev has done all the processing and device nodes have been created for the existing devices. I have not looked at the current installer code but I think it should go there if it isn't already. I have not run into this problem lately, but that is probably because things go slightly faster or because floppy has been loaded again.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

From the comments above, it seems like there is enough information for a developer to take a look and confirm that this is fixed in current releases, though its doubtful that we would update Hardy's desktop CD's with an SRU, given that the desktop install is only supported for about 8 more months, and there is a workaround available.

Setting Importance to Low, as this problem seems quite uncommon.

Changed in casper (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
delance (olivier-delance) wrote :

Could you see if your bug match this one:
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/543875

Revision history for this message
Stéphane Graber (stgraber) wrote :

Marking incomplete, can you please retry on 12.04 or 12.10, I'm pretty sure that part of the code changed a lot these past few years ;)

Thanks

Changed in casper (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for casper (Ubuntu) because there has been no activity for 60 days.]

Changed in casper (Ubuntu):
status: Incomplete → Expired
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.