Sysres USB ask for CD during boot.

Post in this forum for problems at boot time, if there was no problem for burning the disc. For example can't find the CD, or strange errors when you press enter at the very first prompt.
dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Sysres USB ask for CD during boot.

Postby dabui » 21 Jan 2008, 14:57

Hi,

I followed the procedure to use sysres on a USB stick. After the BIOS routine checks, there is the sysres prompt (isolinux) i press enter, the kernel boots, the system loads kernel's modules and then it tries to mount the CDROM ! as the CD tray is empty, the system hangs indefinitely. If i put the sysres CD in the tray the system continues booting and finally arrives to the shell's prompt.

Is there any boots option to avoid this or something ? I prefer asking you people before looking at the inits scripts.

Thanks in advance,
Greg

PS:

The weird thing is that the CD i put in the tray is actually not mounted on the system.

Code: Select all

# mount
tmpfs on / type tmpfs (rw)
/dev/sdc1 on /mnt/cdrom type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,utf8)
/dev/loop0 on /mnt/livecd type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
tmpfs on /mnt/livecd/lib/firmware type tmpfs (rw)
tmpfs on /mnt/livecd/usr/portage type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
nfsd on /proc/fs/nfs type nfsd (rw,noexec,nosuid,nodev)


admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 21 Jan 2008, 20:24

Check the location of the files in your usb stick. They must not be in the isolinux directory. All files must be in the root of your fat filesystem. Also check that you did not rename sysrcd.dat.

The scripts says CDRom, because the USB-stick is considered as a CD when you boot from the usb.

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 22 Jan 2008, 09:11

I'll check the isolinux files,
cheers,
Greg

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 23 Jan 2008, 17:42

It still asks for the CD, the isolinux files and in the root of the usb stick :(

it writes attempting to mount /dev/sr0


Cheers,
Greg

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 23 Jan 2008, 22:16

When it fails and you get the minimal shell, what files are in /mnt/cdrom ?

Can you use 'dmesg' to see which device is /dev/sdc1 ?

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 24 Jan 2008, 09:10

There is not failure, actually i can put any CD on the drive it is just fine, looks like it just want to mount something. I just realized that if if i wait quite a long time, the systems continues to boot normally. Is there any kernel boot option to skip this long delay (directly specify the right device) ?

Cheers,
Greg

PS: My usb partition is /dev/sdc (not sdc1), when the system is finally up /dev/sdc is mounted on /mnt/cdrom

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 24 Jan 2008, 12:38

Yes there is an option 'scandelay' that is set to 10 seconds by default in syslinux.cfg for usb keys. Some time is necessary for usb device to initialize. If you try to load the usb device immediately after the driver was loaded, it would fail.

You can try to decrease the scandelay anyway... Just edit syslinux.cfg and replace all the scandelay=10 with scandelay=2 for instance.

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 24 Jan 2008, 14:49

It doesn't work , it still looks for the CD for ages, the CDROM led is blanking.

>>> Attempting to mount /dev/sr0

My key is prepared this way :
mkfs.vfat -F 16 -n USB /dev/sdb -I
syslinux /dev/sda

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 24 Jan 2008, 20:14

Check you used the same device name (you say both /dev/sda and /dev/sdb there)

You can also use option -ma (under windows) with syslinux as said in the handbook

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 28 Jan 2008, 09:22

Yes i said sdb but it was a typing error.

Maybe the problem comes from this:

if i do :

Code: Select all

mkfs.vfat -F 16  /dev/sda -I (pay attention, it uses "-I" here)
syslinux /dev/sda (pay attention, it is "sda", not "sda1" here)


It works, the system boots, i just have the CD issue

But if i do like in the tutorial:

Code: Select all

fdisk /dev/sda

Create primary partition, type WIN95.

Code: Select all

mkfs.vfat -F 16 /dev/sda1 (pay attention, it is
"sda1", not "sda" here)
syslinux /dev/sda1 (pay attention, it is "sda1", not "sda" here)


It doesn't work there is no syslinux boot prompt...

Maybe the problem comes from this...

Greg

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 28 Jan 2008, 14:21

Yes the partitionning of the usb key really matters. There are instructions about it in this how-to:
http://www.sysresccd.org/Howto_install-usb-stick

dabui
Posts: 9
Joined: 21 Jan 2008, 14:37

Postby dabui » 28 Jan 2008, 16:47

Conclusion:

BIOS bug.

Cheers mates,
Greg

puntarenas
Posts: 2
Joined: 24 Mar 2008, 23:21

Postby puntarenas » 24 Mar 2008, 23:31

dabui wrote:Conclusion:

BIOS bug.

Interesting, I'm having the same issue here on a Gigabyte 965P-DS4 Rev2. When booting from my USB-stick (dev/sdb1) SysRescCD boots fine but it takes ages until "Attempting to mount media: /dev/sr0" times out :(

Now I don't know if this is due to a buggy BIOS, but is there any workaround or possibly a switch to leave the cdrom alone?

MiniMe
Posts: 8
Joined: 26 Mar 2008, 09:00

Postby MiniMe » 26 Mar 2008, 09:16

puntarenas wrote:Interesting, I'm having the same issue here on a Gigabyte 965P-DS4 Rev2. When booting from my USB-stick (dev/sdb1) SysRescCD boots fine but it takes ages until "Attempting to mount media: /dev/sr0" times out :(

Now I don't know if this is due to a buggy BIOS, but is there any workaround or possibly a switch to leave the cdrom alone?


I've got the same problem here (MSI-P6N SLI). I don't think it has anything to do with the BIOS (not at this stage of the startup sequence). A workaround would be using the "skipmount=/dev/sr0" option, but it is only available in the current beta. When 1.0.1 is released, you could also make it a default option by adding it to "syslinux.cfg"...

puntarenas
Posts: 2
Joined: 24 Mar 2008, 23:21

Postby puntarenas » 27 Mar 2008, 20:54

MiniMe wrote:A workaround would be using the "skipmount=/dev/sr0" option, but it is only available in the current beta.

I'm using 1.0.1 Beta7 on my stick, but unfortunately "skipmount=/dev/sr0" doesn't do anything.

If this is a BIOS bug, what should I ask my vendor to fix?


Return to “Boot problems”

Who is online

Users browsing this forum: No registered users and 3 guests