Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Booting LiveCD 2005.1 with a USB CD-ROM Drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Sat Aug 13, 2005 9:59 pm    Post subject: [SOLVED] Booting LiveCD 2005.1 with a USB CD-ROM Drive Reply with quote

As the related thread, https://forums.gentoo.org/viewtopic-p-2647276.html#2647276, has clearly been solved, I felt it appropriate to raise an issue booting from a USB CD-ROM/DVD-ROM with 2005.1.

In the aforementioned thread, I posted:

Same problem, with 2005.1 x86, after following the above instructions:

lieut_data wrote:

boot() :: /dev/ram0
>> Mounting root...
mount: Mounting /dev/ram0 on /newroot failed: Invalid argument
!! Could not mount specified ROOT, try again
!! The root block device is unspecified or not detected.


Referencing the instructions:

obijuan wrote:

Checked to see that the USB CD-ROM was found

cat /proc/scsi/scsi
cat /proc/scsi/usb-storage/0 [your number here may vary]
cat /proc/sys/dev/cdrom/info [I found my drive name was "sr0"]
ls -l /dev/sr0 [shows that the device doesn't exist]
cat /proc/devices | grep sr [shows me the major node (?), mine is "11 sr"]
mknod /dev/sr0 b 11 0
exit
boot() :: /dev/ram0


User nonhuman posted earlier today regarding this same issue.

Any suggestions?

I notice that if, from the shell, I execute:

mount -t ramfs /dev/ram0 /newroot

I'm able to list the contents of the .iso succesfully.... but I do not know how to proceed from here.


Last edited by lieut_data on Tue Aug 16, 2005 12:10 am; edited 2 times in total
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Sat Aug 13, 2005 10:43 pm    Post subject: Reply with quote

/dev/ram0 is the initrd (in which the shell you're using lives). What you see in /dev/ram0 is not the ISO (and the fact you are mounting it as a ramfs proves it is not an iso9660 filesystem). The ISO root fs would be on device /dev/sr0. So try to use /dev/sr0 instead of /dev/ram0.
Back to top
View user's profile Send private message
mianka
n00b
n00b


Joined: 30 Mar 2004
Posts: 64
Location: Leuven Belgium

PostPosted: Sat Aug 13, 2005 11:00 pm    Post subject: booting from usb-cd Reply with quote

/dev/sr0 does not work at all here.
ASUS 5200S with usb-cd-rom/dvd
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Sun Aug 14, 2005 12:04 am    Post subject: Reply with quote

widan wrote:
/dev/ram0 is the initrd (in which the shell you're using lives). What you see in /dev/ram0 is not the ISO (and the fact you are mounting it as a ramfs proves it is not an iso9660 filesystem). The ISO root fs would be on device /dev/sr0. So try to use /dev/sr0 instead of /dev/ram0.


Thanks for the info -- I realized (as I was nodding off to sleep for the past few hours) that what I had seen didn't really look like the iso of the cd I had just burnt.

However, I had previously tried /dev/sr0 (after creating the node), with fatal results:

Quote:

>> Mounting root...
mkdir: Cannot create directory `/newroot/tmp/`: Read-only file system
mknod: //newroot/dev/console: No such file or directory
mknod: //newroot/dev/tty1: No such file or directory
>> Booting (initramfs)...umount: /sys Invalid argument
*: Failed to unmoun the initrd /sys!
..
chroot: cannot execute /bin/sh: No such file or directory
Kernel panic - not syncing: Attempted to kill init!


A reboot is required.
Back to top
View user's profile Send private message
henryzhou
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2005
Posts: 86

PostPosted: Sun Aug 14, 2005 12:12 pm    Post subject: Reply with quote

lieut_data wrote:
widan wrote:
/dev/ram0 is the initrd (in which the shell you're using lives). What you see in /dev/ram0 is not the ISO (and the fact you are mounting it as a ramfs proves it is not an iso9660 filesystem). The ISO root fs would be on device /dev/sr0. So try to use /dev/sr0 instead of /dev/ram0.


Thanks for the info -- I realized (as I was nodding off to sleep for the past few hours) that what I had seen didn't really look like the iso of the cd I had just burnt.

However, I had previously tried /dev/sr0 (after creating the node), with fatal results:

Quote:

>> Mounting root...
mkdir: Cannot create directory `/newroot/tmp/`: Read-only file system
mknod: //newroot/dev/console: No such file or directory
mknod: //newroot/dev/tty1: No such file or directory
>> Booting (initramfs)...umount: /sys Invalid argument
*: Failed to unmoun the initrd /sys!
..
chroot: cannot execute /bin/sh: No such file or directory
Kernel panic - not syncing: Attempted to kill init!


A reboot is required.



Yes, I mee the same problem. IBM X31 with NEC 3520A + IDE2USB device

Can I mount the iso file which stores on the hard disk? Is it possible?
Back to top
View user's profile Send private message
henryzhou
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2005
Posts: 86

PostPosted: Mon Aug 15, 2005 8:10 am    Post subject: Reply with quote

Any hints?

Or can I use 2005.0 universal cd to install and then update world?
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Mon Aug 15, 2005 2:08 pm    Post subject: Reply with quote

henryzhou wrote:
Any hints?

Or can I use 2005.0 universal cd to install and then update world?


Yes, using the 2005.0 live-cds and emerge -auDv world will give you the same system as starting with 2005.1.
Back to top
View user's profile Send private message
henryzhou
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2005
Posts: 86

PostPosted: Mon Aug 15, 2005 2:16 pm    Post subject: Reply with quote

lieut_data wrote:
henryzhou wrote:
Any hints?

Or can I use 2005.0 universal cd to install and then update world?


Yes, using the 2005.0 live-cds and emerge -auDv world will give you the same system as starting with 2005.1.


Thank you. But I found that the version of gcc in 2005.0 is 3.3.5 which doesn't provide the -march=pentium-m. Does it possible for me to compile gcc4 and recompile the system again? I don't know whether it would need too much time and make things complex. I just wanna gcc 3.4.x or higher version. I wanna use -march=pentium-m.

Nevertheless I'm trying to install with 2005.0, better than nothing...
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 15, 2005 2:38 pm    Post subject: Reply with quote

henryzhou wrote:

Thank you. But I found that the version of gcc in 2005.0 is 3.3.5 which doesn't provide the -march=pentium-m. Does it possible for me to compile gcc4 and recompile the system again? I don't know whether it would need too much time and make things complex. I just wanna gcc 3.4.x or higher version. I wanna use -march=pentium-m.

Nevertheless I'm trying to install with 2005.0, better than nothing...

You can use the 2005.0 install cd and do a stage1 install, which well get you the most current packages including gcc-3.4. After the bootstrap you can add the -march=pentium-m so it will be used when you do emerge -e system.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Mon Aug 15, 2005 2:43 pm    Post subject: Reply with quote

In other news, I've updated the related bug report @ https://bugs.gentoo.org/show_bug.cgi?id=83276
Back to top
View user's profile Send private message
sf_alpha
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2002
Posts: 136
Location: Bangkok, TH

PostPosted: Mon Aug 15, 2005 3:02 pm    Post subject: Reply with quote

I think it doesn't work even on SCSI Harddisk (I use usb-stick and external USB Harddrives and cannot find /dev/sda1,2 ... )

It seems to be udev problems. udevstart doesn't help at all
_________________
Gentoo Mirrors in Thailand (and AP)
http://gentoo.in.th
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 15, 2005 4:49 pm    Post subject: Reply with quote

USB is a bit slow, so it can take a few seconds before the external usb device is detected and an entry for it in /dev is created.
So waiting a bit and then try again.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Mon Aug 15, 2005 5:50 pm    Post subject: Reply with quote

nixnut wrote:
USB is a bit slow, so it can take a few seconds before the external usb device is detected and an entry for it in /dev is created.
So waiting a bit and then try again.


I'll concede the point that USB is slow, but the issue isn't being able to access the device over USB. I've already had the system at this prompt for over 15 minutes, and unless I manually create the node, it never appears.

Once created, I can mount the iso and read the contents -- without issue. Unfortunately, I can't seem to tell the LiveCD to access it.
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Mon Aug 15, 2005 6:46 pm    Post subject: Reply with quote

A post by Gordon Innes on https://bugs.gentoo.org/show_bug.cgi?id=83276#c30:

Quote:

Managed to get the 2005.1 minimal cd to boot on a USB CDROM with the following
process:

1. Boot with "doscsi scandelay debug" (note the 'debug')
2. At the debug prompt (NOT the emergency shell prompt):
# ls /dev/sr0
ls: /dev/sr0: No such file or directory
# cat /proc/sys/kernel/hotplug
/sbin/hotplug
# echo /sbin/udev > /proc/sys/kernel/hotplug
# cat /proc/sys/kernel/hotplug
/sbin/udev
3. unplug the cdrom then plug it back in.
4. At prompt again:
# ls /dev/sr0
/dev/sr0
# exit
5. Boot continues and finds livecd at /dev/sr0.

I've tried the same procedure with the the emergency shell, however it didn't work.

The important parts are the 'echo /sbin/udev > /proc/sys/kernel/hotplug' and the
replugging of the cdrom. The echo sets udev as the hotplug agent for the kernel
and the replug causes the kernel to send a new hotplug event to udev which in
turn sets up the missing device.

One way I think this can be fixed permenatly is to add the echo line to the
linuxrc right after /proc is mounted. I'm going to try and build my own version
of the livecd to test this.

Hope this helps!

G.


I'll be testing this tonight.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Mon Aug 15, 2005 6:52 pm    Post subject: Reply with quote

Was going to post a pointer myself, but you beat me to it ;)

I'll let you know how I get on building the test CD.

G.
Back to top
View user's profile Send private message
lieut_data
n00b
n00b


Joined: 26 Jun 2005
Posts: 52
Location: [Waterloo|London] Ontario, Canada

PostPosted: Mon Aug 15, 2005 11:14 pm    Post subject: Reply with quote

lieut_data wrote:

I'll be testing this tonight.


Beautiful. Great detective work, GordSki!
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Tue Aug 16, 2005 9:13 pm    Post subject: Reply with quote

I've added a pacth and a couple of spec files to the bugzilla entry: https://bugs.gentoo.org/show_bug.cgi?id=83276

As I say in the bug I've managed to boot the CD with a USB drive and I didn't notice anything badly broken.

Hopefully this will be an end to the issue.

EDIT: 'nother update from bugzilla. Looks like there's a good fix in place now and we should get some nice new CD soon :-D

G.
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Fri Dec 30, 2005 6:24 pm    Post subject: gentoo LiveCD can't startup Reply with quote

Hi!

I just tried to install amd64 gentoo on my box but don't get very far. I boot from an external USB CD-ROM and shortly after the kernel has loaded, the liveCD attempts to mount itself or somewhat. But this fails, so it goes: no root device, bye.

Well, it does some UHCI stuff before but I had no closer at it. So, what's the problem?

...and how to solve it?

Thanks
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Fri Dec 30, 2005 7:00 pm    Post subject: Reply with quote

Some more details:

>> No bootable medium found. Waiting for new devices...
>> Attempting to mount CD: - /dev/sda
>> Attempting to mount CD: - /dev/sdb
>> Attempting to mount CD: - /dev/sda
>> Attempting to mount CD: - /dev/sdb
!! Could not find CD to boot, something else needed!
>> Loading keymaps
....
>> Determing root device
!! The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell
boot() ::
Back to top
View user's profile Send private message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Fri Dec 30, 2005 7:25 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-369937.html
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Dec 30, 2005 7:31 pm    Post subject: Reply with quote

merged above three posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum