ramonflores Posted December 22, 2005 Report Share Posted December 22, 2005 In my computer coexisted Mandriva 2005, Red Hat 8.0 and MS Windows XP. But I have upgrade to Mandriva 2006 and now Red Hat do not boot. Actually it was not a upgrade, but a new installation. The disk has 4 useful partions. Using sfdisk -l /dev/hda: Device Boot Start End #cyls #blocks Id System /dev/hda1 * 0+ 1913 1914- 15374173+ 7 HPFS/NTFS /dev/hda2 * 1914 4463 2550 20482875 83 Linux /dev/hda3 4464 5738 1275 10241437+ 83 Linux /dev/hda4 5739 7296 1558 12514635 f W95 Ext'd (LBA) /dev/hda5 5739+ 5770 32- 257008+ 82 Linux swap / Solaris /dev/hda6 * 5771+ 7296 1526- 12257563+ 83 Linux with /dev/hda1 --> MS Windows XP /dev/hda2 --> Red Hat 8.0 /dev/hda3 --> /home /dev/hda6 --> Mandriva 2006 The computer uses grub, and the menu.lst says: timeout 10 color black/cyan yellow/cyan default 0 title Mandriva Free 2006 kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 noapic splash=silent vga=788 initrd (hd0,5)/boot/initrd.img title Red Hat 8.0 root (hd0,1) kernel /boot/vmlinuz-2.4.18-14 ro root=/dev/hda2 acpi=ht initrd /boot/initrd-2.4.18-14.img etc. Mandriva and MS Windows boot without problem, but when I select Red Hat it begin to boot until the following error message appears: Checking root filesystem fsck.est3/dev/hda2 The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem ... : Not a directory while trying to open /dev/hda2 Give root password for maintenance In fact the /dev/hda2 partition do not contain an ext2 filesystem, but a ext3 one. I do not what to do in the maintenance console, but I have found a strange fact: the system mix up partition information. (Repair filesystem) 1 # df -T Filesystem Type 1k-blocks Used Available Use% Mounted on /dev/hda6 ext3 2016204 3642848 15494216 20% / Any idea of what is happening? Any hint is wellcome. Ramon Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted December 22, 2005 Report Share Posted December 22, 2005 Mandriva installs by default to ext3 partition. I have a funny feeling that your /etc/fstab is saying ext2 instead of ext3 for your Red Hat partition which is why you seem to be experiencing problems. Can you access the Red Hat partition when you are booted into Mandriva? If so, check what the /etc/fstab entry in Mandriva is for /dev/hda2. This should then match the /etc/fstab entry in Red Hat. If it's different, you need to make sure it's the same. You can boot from the Mandriva CD and go into rescue mode. Then type: mount /dev/hda2 /mnt then check that your /etc/fstab file is saying ext2 or whatever the filetype is supposed to be. Then unmount it and mount the Mandriva partitions, and check the /etc/fstab file there: umount /dev/hda2 mount /dev/hda6 /mnt and check that the partition has been detected correctly here. In both mounts, you will type this to check the line: cat /mnt/etc/fstab Quote Link to comment Share on other sites More sharing options...
aRTee Posted December 22, 2005 Report Share Posted December 22, 2005 ext2 instead of ext3 cannot be the issue, they are backwards compatible, meaning that any ext3 partition can be correctly read (not written to per se) by an ext2 driver. Why do you write: "but I have found a strange fact: the system mix up partition information"? I don't get/see what's wrong there, please explain. Quote Link to comment Share on other sites More sharing options...
ramonflores Posted December 22, 2005 Author Report Share Posted December 22, 2005 Mandriva installs by default to ext3 partition. I have a funny feeling that your /etc/fstab is saying ext2 instead of ext3 for your Red Hat partition which is why you seem to be experiencing problems. Can you access the Red Hat partition when you are booted into Mandriva? If so, check what the /etc/fstab entry in Mandriva is for /dev/hda2. This should then match the /etc/fstab entry in Red Hat. If it's different, you need to make sure it's the same. You can boot from the Mandriva CD and go into rescue mode. I think this is not the problem. Mandriva boots without problems. By default it do not mounts the Red Hat partition. This is the fstab file for the Mandriva partition: [root@favo etc]# more fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/hda6 / ext3 defaults 1 1 /dev/hda3 /home ext3 defaults 1 2 /dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=utf8,noauto,ro,exec,users 0 0 /dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=utf8,noauto,ro,exec,users 0 0 none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=utf8,sync 0 0 /dev/hda1 /mnt/windows ntfs umask=0022,nls=utf8,ro 0 0 none /proc proc defaults 0 0 /dev/hda5 swap swap defaults 0 0 I can mount the Red Hat partition by hand without problems, and the fstab file seems correct: [root@favo mnt]# mount -t ext3 /dev/hda2 /mnt/outro [root@favo mnt]# cd outro/etc [root@favo etc]# more fstab /dev/hda2/ / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 /dev/hda3/ /home ext3 defaults 1 2 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0 /dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/hda5 swap swap defaults 0 0 Why do you write: "but I have found a strange fact: the system mix up partition information"? I don't get/see what's wrong there, please explain. <{POST_SNAPBACK}> The df comand says that it is mounted the /dev/hda6 partition (Mandriva), but the size corresponds to the /dev/hda2 partition (Redhat). This is what df from Mandriva says (with /dev/hda2 mounted by hand): [root@favo etc]# df -T Sist. Arq. Tipo Tam Usad Disp Uso% Montado em /dev/hda6 ext3 12G 4,2G 6,8G 39% / /dev/hda3 ext3 9,7G 3,0G 6,3G 32% /home /dev/hda1 ntfs 15G 4,7G 11G 32% /mnt/windows /dev/hda2 ext3 20G 3,5G 15G 20% /mnt/outro Quote Link to comment Share on other sites More sharing options...
ramonflores Posted January 2, 2006 Author Report Share Posted January 2, 2006 I have resolved the problem reinstalling grub of the redhat partition, with the original fstab file and the following grub.conf : default=0 timeout=10 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title Red Hat Linux 8.0 root (hd0,1) kernel /boot/vmlinuz-2.4.18-14 ro root=/dev/hda2 hdc=ide-scsi initrd /boot/initrd-2.4.18-14.img title Windows XP rootnoverify (hd0,0) chainloader +1 title Mandriva 2006 root (hd0,5) kernel /boot/vmlinuz root=/dev/hda6 noapic splash=silent vga=788 initrd /boot/initrd.img Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.