1 |
2008/9/6 ert256 <ert256@×××××.com>: |
2 |
> [ 06.09.2008 18:04 ], Tamer Higazi : |
3 |
>> Hi people, |
4 |
>> I have installed the latest gentoo linux distribution and I don't know |
5 |
>> what I am missing in my installation, specially the last gentoo |
6 |
>> installation worked for me fine. |
7 |
>> |
8 |
>> At booting I recive the error message: |
9 |
>> |
10 |
>> "Block device /dev/sda5 is not a valid root device." |
11 |
>> |
12 |
>> Hard disk is a SATA one, with a Core2Duo machine. |
13 |
> I had similar problem when i haven't compiled in the kernel drivers for |
14 |
> my HD controller (Sata controller). |
15 |
> Are You sure, Your kernel is configure correctly ? |
16 |
>> |
17 |
>> |
18 |
>> What am I doing wrong? |
19 |
>> |
20 |
>> for any help solving my problem, I would thank you kindly. |
21 |
>> |
22 |
>> |
23 |
>> Tamer |
24 |
>> |
25 |
>> |
26 |
>> content of my fstab: |
27 |
>> # /etc/fstab: static file system information. |
28 |
>> # |
29 |
>> # noatime turns off atimes for increased performance (atimes normally |
30 |
>> aren't |
31 |
>> # needed; notail increases performance of ReiserFS (at the expense of |
32 |
>> storage |
33 |
>> # efficiency). It's safe to drop the noatime options if you want and to |
34 |
>> # switch between notail / tail freely. |
35 |
>> # |
36 |
>> # The root filesystem should have a pass number of either 0 or 1. |
37 |
>> # All other filesystems should have a pass number of 0 or greater than 1. |
38 |
>> # |
39 |
>> # See the manpage fstab(5) for more information. |
40 |
>> # |
41 |
>> |
42 |
>> # <fs> <mountpoint> <type> <opts> |
43 |
>> <dump/pass> |
44 |
>> |
45 |
>> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. |
46 |
>> /dev/sda1 /boot ext2 noauto,noatime 1 2 |
47 |
>> /dev/sda5 / ext3 noatime 0 1 |
48 |
>> /dev/sda6 /opt ext3 noatime 0 1 |
49 |
>> /dev/sda7 /usr/local ext3 noatime 0 1 |
50 |
>> /dev/sda8 /home ext3 noatime 0 1 |
51 |
>> /dev/sda9 none swap sw 0 0 |
52 |
>> /dev/cdrom /mnt/cdrom audo noauto,ro 0 0 |
53 |
>> #/dev/fd0 /mnt/floppy auto noauto 0 0 |
54 |
>> |
55 |
>> # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
56 |
>> # POSIX shared memory (shm_open, shm_unlink). |
57 |
>> # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
58 |
>> # use almost no memory if not populated with files) |
59 |
>> shm /dev/shm tmpfs |
60 |
>> nodev,nosuid,noexec 0 0 |
61 |
>> |
62 |
>> and grub.conf: |
63 |
>> |
64 |
>> grub.conf: |
65 |
>> |
66 |
>> # This is a sample grub.conf for use with Genkernel, per the Gentoo |
67 |
>> handbook |
68 |
>> # |
69 |
>> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 |
70 |
>> |
71 |
>> # If you are not using Genkernel and you need help creating this file, you |
72 |
>> # should consult the handbook. Alternatively, consult the |
73 |
>> grub.conf.sample that |
74 |
>> # is included with the Grub documentation. |
75 |
>> |
76 |
>> default 0 |
77 |
>> timeout 30 |
78 |
>> |
79 |
>> title Gentoo Linux 2.6.25-r7 |
80 |
>> root (hd0,0) |
81 |
>> kernel /boot/kernel-genkernel-x86_64-2.6.25-gentoo-r7 root=/dev/ram0 |
82 |
>> init=/linuxrc ramdisk=8192 real_root=/dev/sda5 |
83 |
>> initrd /boot/initramfs-genkernel-x86_64-2.6.25-gentoo-r7 |
84 |
>> |
85 |
>> |
86 |
|
87 |
if you've compiled your sata driver as a module you'd have to have it |
88 |
in the initrd file or else it won't be able to load it and read data |
89 |
from the disk. i've found out that some modules like the sata driver |
90 |
are best compiled as integrated into the kernel. |
91 |
|
92 |
-- |
93 |
dott. ing. beso |