View previous topic :: View next topic |
Author |
Message |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Tue Oct 05, 2004 10:35 pm Post subject: Problem with booting from an external HDD [SOLVED] |
|
|
Hi,
i have an external HDD connected to my box (USB) and some problems with booting. I read many threads on this board an did some searches with google... but anything i found, it doesn't help
The installation went ok, but then the trouble starts...
With Genkernel and Grub i get the Error
Code: | Block device /dev/sda3 is not a valid boot device. The root block device is unspecified or not detected. |
where i can/should/must enter the right boot device (/dev/sda... or /dev/sdb aren't working)
Grub ->
Code: | root (hd0,0)
kernel (hd0,0)/kernel root=/dev/ram0 real_root=/dev/sda3 ramdisk=8912 init=/linuxrc vga=795
initrd (hd0,0)/initrd |
then i tried it without ram0 and got the error
Code: | /linuxrc has to be run as the init process as the one with a PID 1. Try adding...
VFS: Cannot open root device "sda" or unknown-block(0,0)
Please append a correct "root" boot option
Kernel panic: VFS: Unable to mount root FS on unknown-block(0,0) |
Grub ->
Code: | root (hd0,0)
kernel (hd0,0)/kernel root=/dev/sda3 ramdisk=8912 init=/linuxrc vga=795
initrd (hd0,0)/initrd
|
Without initrd i don't even get that far... don't have the error message right now on hand
With Customkernel and custom initrd i get the message Code: | Attached scsi generic sg1 at scsi2 |
and than nothing happens ... it just stucks there, but i can restart with cntr, alt and del
Grub ->
Code: | root (hd0,0)
kernel (hd0,0)/kernel root=/dev/sda3 splash=0 vga=795 acpi=off
initrd (hd0,0)/initrd |
linuxrc ->
Code: | #!/bin/nash
mount -t proc /proc /proc
/bin/sleep 50000
mkdevices /dev
mkrootdev /dev/root
/bin/sfdisk -R /dev/sda
echo 0x0100 > /proc/sys/kernel/real-root-dev
mount -o defaults --ro -t ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
umount /initrd/proc |
I just don't know what's wrong and what to try next. I deactivated my SATA disk in bios, didn't changed anything... i tried it with /dev/sdb in my fstab ... didn't changed anything.
Maybe somebody has an idea... i don't.
fstab ->
Code: | /dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /proc/bus/usb usbfs defaults 0 0 |
ANY help is welcome
thank you
mC
Edit: I'm using Kernel 2.6.8.1 if it matters and i can post the config file if it is needed
Last edited by MindCrawler on Sat Jan 22, 2005 10:20 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smiley Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/14019379803fd1a225c3279.png)
Joined: 03 Dec 2003 Posts: 127
|
Posted: Mon Nov 01, 2004 4:29 am Post subject: |
|
|
Try using genkernel with the --udev option ie.
Code: | genkernel --udev all |
Then add the kernel parameters (using your first grub.conf)
Code: | gentoo=nodevfs udev |
hope that helps
smiley ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Tue Nov 02, 2004 6:58 am Post subject: |
|
|
Hi,
thank you for the reply.
I did as you said
Code: | emerge sync
etc-update
genkernel --udev all
grub-install --root-device=/boot /dev/sda1 |
but i still get the same error, saying that the blockdevice /dev/sda3 isn't a valid boot device and i should enter the right one or just type shell
I deactivated my other SATA discs, so the USB drive IS /dev/sda ...
anyway thx
mC |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smiley Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/14019379803fd1a225c3279.png)
Joined: 03 Dec 2003 Posts: 127
|
Posted: Sun Nov 07, 2004 12:09 am Post subject: |
|
|
Just making sure . . . Did you also add the kernel parameters? i.e., your grub entry should be (based of your first post:
Code: | root (hd0,0)
kernel (hd0,0)/kernel root=/dev/ram0 real_root=/dev/sda3 ramdisk=8912 init=/linuxrc vga=795 gentoo=nodevfs udev
initrd (hd0,0)/initrd |
Obviously, make sure grub refers to the actual kernel and initrd installed by genkernel.
smiley
EDIT: Everything from "kernel" to "udev" is one line, its just getting wrapped by the browser. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Sun Nov 07, 2004 6:47 am Post subject: |
|
|
hi,
yes, the kernel parameters look just the same as yours. I tried it with kernel and initrd as symlinks and as hardlinks ... neither worked
Don't know if i should try it with the 2.4 Kernel and the usb.boot patch.
I just don't get it.
mC |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
patrickbores Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/80895514340c7c2b31dcf6.png)
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 07, 2004 11:42 am Post subject: |
|
|
This only compiles the kernel and initrd, without installing them:
Code: | genkernel --udev all |
So what you really want to do is:
Code: | genkernel --udev --install initrd |
Which will build only initrd and then install it so you're actually using it next time you boot. You can also say "--install all" to compile and install both the kernel and initrd.
Hope this helps.
Patrick _________________ P.S. - this is what part of the alphabet would look like if Q and R were eliminated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Sun Nov 07, 2004 6:04 pm Post subject: |
|
|
Hi,
negative... didn't worked either.
Gonna try it with the 2.4 kernel now ... will report afterwards
mC
Edit: 2.4 Kernel didn't worked either.
Could the following message be a part of the solution?
VFS: mounting root (ext2 filesystem) readonly
my root fs is ext3 although |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
smiley Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/14019379803fd1a225c3279.png)
Joined: 03 Dec 2003 Posts: 127
|
Posted: Thu Nov 25, 2004 4:42 pm Post subject: |
|
|
Quote: | Could the following message be a part of the solution?
VFS: mounting root (ext2 filesystem) readonly
my root fs is ext3 although |
No, its talking about the initrd, which is ext2.
I got my extrernal hard drive working a couple of weeks ago, but now that I'm on vacaction at my sisters for a month, it doesn't work. The computers are very similar, but my computer at home has an intel 845 chipset, while this one has a 865 chipset. Anyway, hopefully I'll be able to figure it out.
smiley ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Mon Nov 29, 2004 7:20 pm Post subject: |
|
|
Thanks for your help.
I will try some things on weekend, that can't be such a problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
burakalpugan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Dec 2004 Posts: 1
|
Posted: Wed Dec 29, 2004 3:23 pm Post subject: |
|
|
Hi,
I've been struggling to boot from my external HDD, too. Failed with exact messages and exact methods.
Have you been able to fix this?
Cheers and happy new year.
Burak. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fetzwiesenbaer n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jul 2003 Posts: 52
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Sat Jan 22, 2005 7:07 am Post subject: |
|
|
Thank you for the link fetzwiesenbaer... worked without any problems. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 2971
|
Posted: Sat Jan 22, 2005 1:57 pm Post subject: |
|
|
MindCrawler wrote: | Thank you for the link fetzwiesenbaer... worked without any problems. |
Please edit the title of this topic, and insert [SOLVED] into the title. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MindCrawler n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2004 Posts: 13 Location: Vienna
|
Posted: Sat Jan 22, 2005 10:20 pm Post subject: |
|
|
Ok, done.
Sorry... won't happen again |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|