Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Dropping into the grub command line, if I do the following:
Code:
grub> find(hd0,2)/
and hit 'tab' grub cannot read the partition and cannot list the contents of the partition.
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
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 973 7815591 c W95 FAT32 (LBA)
/dev/sda2 * 974 1181 1670760 83 Linux
/dev/sda3 1182 2479 10426185 83 Linux
/dev/sda4 2480 3738 10112917+ 5 Extended
/dev/sda5 2480 3607 9060628+ 83 Linux
/dev/sda6 3608 3738 1052226 82 Linux swap / Solaris
Does Grub get the type of Partition from somewhere? It appears to read from somewhere that the Partition type is Reiserfs and then gets confused because it is an ext3 partition.
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.
Hopefully that is a typo - you need a space after the "find".
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.
Hopefully that is a typo - you need a space after the "find".
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.
Yes, Grub can boot the Reiserfs. Indeed, the Fat32 partition in my fdisk -l result is actually an xfs partition and Grub has no problem with that.
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.
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.
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.
I was hoping it wouldn't.
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.
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
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
Hey Purple!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.