Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with booting from an external HDD [SOLVED]
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
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Tue Oct 05, 2004 10:35 pm    Post subject: Problem with booting from an external HDD [SOLVED] Reply with quote

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
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Mon Nov 01, 2004 4:29 am    Post subject: Reply with quote

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 8)
Back to top
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Tue Nov 02, 2004 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Sun Nov 07, 2004 12:09 am    Post subject: Reply with quote

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 8)

EDIT: Everything from "kernel" to "udev" is one line, its just getting wrapped by the browser.
Back to top
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Sun Nov 07, 2004 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 07, 2004 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Sun Nov 07, 2004 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
smiley
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2003
Posts: 127

PostPosted: Thu Nov 25, 2004 4:42 pm    Post subject: Reply with quote

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 8)
Back to top
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Mon Nov 29, 2004 7:20 pm    Post subject: Reply with quote

Thanks for your help.

I will try some things on weekend, that can't be such a problem.
Back to top
View user's profile Send private message
burakalpugan
n00b
n00b


Joined: 29 Dec 2004
Posts: 1

PostPosted: Wed Dec 29, 2004 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
fetzwiesenbaer
n00b
n00b


Joined: 25 Jul 2003
Posts: 52

PostPosted: Wed Dec 29, 2004 6:02 pm    Post subject: Reply with quote

i think this post will help you:
https://forums.gentoo.org/viewtopic.php?t=270758&highlight=usb+external
Back to top
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Sat Jan 22, 2005 7:07 am    Post subject: Reply with quote

Thank you for the link fetzwiesenbaer... worked without any problems.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2971

PostPosted: Sat Jan 22, 2005 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
MindCrawler
n00b
n00b


Joined: 05 Oct 2004
Posts: 13
Location: Vienna

PostPosted: Sat Jan 22, 2005 10:20 pm    Post subject: Reply with quote

Ok, done.

Sorry... won't happen again
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