View previous topic :: View next topic |
Author |
Message |
phillk n00b
Joined: 01 Mar 2004 Posts: 27 Location: Houston
|
Posted: Tue Aug 03, 2004 5:24 am Post subject: Need help with SATA and grub please gentoo 2004.2 |
|
|
I'm running a p4 2.4 ghz 512MB box using gentoo 2004.2. I have 4 SATA seagate drives attached to a 3ware card
I'm trying to get grub to recognize my root partition which is set to /dev/sda3. When I load the machine, it makes it to grub where I would hit enter to boot the partition. It sees the root(hd0,0) but then it says
Error 15: File not found
# grub.conf
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.26-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd (hd0,0)/boot/initrd-2.4.26-gentoo-r6
# /etc/fstab
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 1
/dev/sda3 / ReiserFS noatime 0 0
/dev/sda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
Also, because I"m running a 3ware card, do I need to add an entry somewhere to initialize the card or did genkernel do it for me when I ran 'genkernel all'?
Last edited by phillk on Tue Aug 03, 2004 7:13 pm; edited 1 time in total |
|
Back to top |
|
|
solja n00b
Joined: 20 Jul 2004 Posts: 67
|
|
Back to top |
|
|
phillk n00b
Joined: 01 Mar 2004 Posts: 27 Location: Houston
|
Posted: Tue Aug 03, 2004 5:31 am Post subject: |
|
|
it looks like the files
kernel-2.4.20
never got created in the boot directory. Shouldn't the genkernel have created it when I ran genkernel all ? |
|
Back to top |
|
|
solja n00b
Joined: 20 Jul 2004 Posts: 67
|
Posted: Tue Aug 03, 2004 5:55 am Post subject: |
|
|
at the grub boot screen hit e
and edit the kernel line:
kernel /kern after kern hit tab and it would auto complete your command line...leave root and/or real_root those are fine....this helped me when i had the same problem |
|
Back to top |
|
|
phillk n00b
Joined: 01 Mar 2004 Posts: 27 Location: Houston
|
Posted: Tue Aug 03, 2004 1:40 pm Post subject: |
|
|
I recompiled the kernel using the genkernel all command and made sure the kernel and initrd file got written to the boot partition. Now, it throws an arror saying it can't find a device to mount and says type "shell" to get a shell or something. I type modprobe 3w-xxxx and modprobe ataraid and it picks up the card
here is my fdisk -l
Disk /dev/scsi/host0/bus0/target4/lun0/disc: 240.0 GB, 240066101248 bytes
255 heads, 63 sectors/track, 29186 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target4/lun0/part1 * 1 9 72292 83 Linux
/dev/scsi/host0/bus0/target4/lun0/part2 10 134 1004062+ 82 Linux swap
/dev/scsi/host0/bus0/target4/lun0/part3 135 29186 233360190 83 Linux |
|
Back to top |
|
|
phillk n00b
Joined: 01 Mar 2004 Posts: 27 Location: Houston
|
Posted: Tue Aug 03, 2004 2:02 pm Post subject: |
|
|
This is the exact end message when I attempt to boot up.
I even tried typing in /dev/hda3 and it throws the same error.
Code: | >>Loading modules...
:: Scanning for ehci-hcd...usbcore, ehci-hcd loaded
:: Scanning for usb-ohci...usb-ohci loaded
:: Scanning for hid...input, module not found
:: Scanning for usb-storage... module not found.
:: Scanning for sbp2... module not found.
>> Mounting filesystems...
Started device management daemon v1.3.25 for /dev
>> Determining root device...
>> Block device /dev/sda3 is not a valid root device ...
>> The root block device is unspecified or not detected.
Please specify a device to boot or "shell" for a shell...
boot() :: |
thanks in advance |
|
Back to top |
|
|
|