[CentOS] grub, initrd and Co

Tue Jun 8 12:13:07 UTC 2010
Philippe Naudin <philippe.naudin at supagro.inra.fr>

Le Tue, 08 Jun 2010 13:42:44 +0200,
Mogens Kjaer <mk at lemo.dk> a écrit :

> On 06/08/2010 01:26 PM, Philippe Naudin wrote:
> ...
> > mount: error mounting /dev/root on /sysroot as auto: No such device
> ...
> > I have certainly forgotten something, but I am unable to find what...
> 
> What is the exact contents of your /etc/fstab file?
> 
> Mogens
> 

Please excuse the long lines below :

# cat /mnt/linux/etc/fstab
/dev/hda1               /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/hda5               /var/spool/squid/cache1 ext3    defaults,noatime,nodev,noexec   1 2
/dev/hda6               /var/spool/squid/cache2 ext3    defaults,noatime,nodev,noexec   1 2
/dev/hdc                /mnt/cdrom              auto    noauto,owner,user,ro  0  0

... and the partition table is :
# fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x44018339

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        3969     2000344+  83  Linux
/dev/hda2            3970        7938     2000376   83  Linux
/dev/hda3            7939       11907     2000376   82  Linux swap / Solaris
/dev/hda4           11908      158816    74042136    5  Extended
/dev/hda5           11908       31749    10000336+  83  Linux
/dev/hda6           31750       51591    10000336+  83  Linux

Any idea ?

Cheers,

-- 
Philippe