Grub confused about File System
Hi,
I'm experimenting with a Slackware-based distro (Kongoni) which seems to have issues with Reiserfs. I changed the file system to ext3 using cfdisk to rewrite the partition table and mkfs.ext3 to format the partition. Now Grub refuses to boot the partition: I get Code:
Error 2: bad file or directory type. Code:
grub> find(hd0,2)/ If I boot with Puppy, I can list the contents of the Partition, but Puppy says that it is still a Rieserfs. Fdisk -l produces the following: Code:
Disk /dev/sda: 30.7 GB, 30750031872 bytes Does anyone know how I can pass on the correct information to Grub? An additional complication which may or may not have a bearing on this is that my HD is an IDE hard drive, and, as such, actually uses the hda nomenclature rather than the sda which the Puppy Grub install uses. However, I doubt that this has any bearing as I have been able to boot up using this configuration previously. |
Quote:
If both grub and puppy say you (still) have a reiser partition, I'd be prepared to believe them. They will both look at the filesystem meta-data in the partition itself to figure that out. I suspect grub can handle reiserfs (aka reiser 3), but not reiser4 - but I don't use either. |
Quote:
The partition is definitely ext3, I've run fsck.ext3 on it. On the Puppy Desktop it refers to it (in the hints when I pass the mouse over it) as Reiserfs, but the Pmount utility correctly identifies it as ext3. I'm convinced that there is some information somewhere which is identifying the partition to Grub (and the Puppy Desktop) as Reiserfs. What I think I'll do is trash my Puppy partition (which has the grub install on it) and re-install Puppy and Grub. |
Well, that didn't work.
The Puppy Desktop is now correctly listing the partition as ext3, but Grub still says "Error 2: bad file or directory type." If grub is reading erroneous information I suppose it might be in the MBR. Time to trash my MBR! |
Nope.
I trashed the MBR and rewrote it. Grub still can't see the file system. |
Since you formatted the partition and also made a new ext3 filesystem how is it going to keep essential grub files.
Normally grub files are present in the /boot/grub directory. |
Quote:
I thought that a reinstall of the grub bootloader might retain the configuration files which caused the error. The only way (in my mind) to be completely sure that the any prior information on the partitions was removed would be a completely clean install. |
I'm reading that grub has a problem with an inode size of 256, which I apparently I have unwittingly formated my ext3 partition with.
It seems that, in preparation for the next generation of file systems that the mkfs command has this as default. |
the grub located in slackware/extra has the patch to boot the 256 inode size
|
Quote:
I'll see if I can track it down. This Article by Carla Schroder discusses this issue. |
Quote:
Says "Could not find device for /boot: Not found or not a block device" Looks like I'm going to have to reformat my ext3 disk. Damn. |
can you extract the files out of the grub.tgz file, if so you might be able to rename you puppy grub files in /boot/grub and either the subdirectory of /lib or /usr/lib not sure, so you can put them back if this dosen't work. replace it with the grub files out of the tgz package. then copy the stage files to /boot/grub and rerun grub manually. Don't know if this makes any sense to you. I did it once before, a while back when I had the same problem and it worked. Don't really remember what I did but is was something like this. but then again it might be easier to reformat using puppy and don't format during the installation
|
Quote:
Thanks for your efforts, but the white towel has come flying into the centre of the ring. I've spent a couple of days on this just to avoid having to reformat and reinstall which would have taken me an hour, tops! In the end that's what I did. mkfs.ext3 -I 128 /dev/hda3 reinstall. works fine. From what I understand, this is all so that when ext4 comes along it will be simply a matter of pulling the rug out from underneath the furniture and sliding the new file format in underneath, so clearly I won't have that functionality. But in the mean time my bootloader can boot all of my OSes. |
All times are GMT -5. The time now is 11:37 AM. |