Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

[SOLVED] HD-Install: Error 2: Bad file or directory type

Post comments, problems, bugs here.

[SOLVED] HD-Install: Error 2: Bad file or directory type

Postby Dr.U on Wed Aug 20, 2008 10:40 pm

I've tried installing antiX-M7.2 twice, checked, re-checked and checked again that my existing grub entry for antiX is correct and I still get the same error message when I press enter after selecting antiX in my grub screen:
Code: Select all
root (hd1,6)
   Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinux root=/dev/sdb7 nomce nosplash vga=775

Error 2: Bad file or directory type

Does anyone have an idea about what the problem is :?: I'm stumped. I've tried using /boot/vmlinuz-2.6.22-1-mepis-smp as the entry in grub; I've prefixed the /boot/vmlinuz... with (hd1,6); I've even tried removing nomce and adding the line
Code: Select all
initrd /boot/initrd.img
to the grub entry -- all with the same error :evil:

Any help would be tremendously appreciated :!:

Thanks in advance,
-- Dr. U
Last edited by Dr.U on Fri Aug 22, 2008 10:50 am, edited 1 time in total.
User avatar
Dr.U
 
Posts: 8
Joined: Fri Aug 15, 2008 12:32 pm
Location: Germany

Postby anticapitalista on Wed Aug 20, 2008 10:56 pm

Try changing root=/dev/sdb7 to root=/dev/hdb7

Are you using antiX's grub or from another distro?
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 2144
Joined: Tue Sep 11, 2007 4:55 pm
Location: Greece

Postby Dr.U on Thu Aug 21, 2008 8:36 am

anticapitalista wrote:Try changing root=/dev/sdb7 to root=/dev/hdb7

Are you using antiX's grub or from another distro?

I already have tried changing
Code: Select all
root=/dev/sdb7 to root=/dev/hdb7
but the result is exactly the same (sorry for not mentioning that).

The grub that I am using is from Arch-Linux (grub version 0.97). I noticed that the menu.lst file in the antiX root/boot/grub directory says to use
Code: Select all
root=/dev/sdb7


Any other ideas? Maybe I need to try burning a new CD from the ISO file (whose md5sum is OK)...

Thanks for the reply,
-- Dr. U
User avatar
Dr.U
 
Posts: 8
Joined: Fri Aug 15, 2008 12:32 pm
Location: Germany

Postby Dr.U on Thu Aug 21, 2008 11:37 am

Well, I've found the problem: the new e2fsprogs creates 256-byte inodes which the legacy grub that I use cannot read/recognize. I must go to work now, but will try to make the appropriate correction (as described here:
http://www.linuxplanet.com/linuxplanet/tutorials/6480/1/ when I return. I will then let you know how it worked.

Regards,
-- Dr. U
User avatar
Dr.U
 
Posts: 8
Joined: Fri Aug 15, 2008 12:32 pm
Location: Germany

Postby Dr.U on Thu Aug 21, 2008 5:48 pm

Dr.U wrote:Well, I've found the problem: the new e2fsprogs creates 256-byte inodes which the legacy grub that I use cannot read/recognize. I must go to work now, but will try to make the appropriate correction (as described here:
http://www.linuxplanet.com/linuxplanet/tutorials/6480/1/ when I return. I will then let you know how it worked.

Well, the short answer is: it didn't work :(

What I did was to run
Code: Select all
mkfs.ext3 -I 128 /dev/sdb7
(as described on page 2 of the referenced article to create 128-byte inodes, which legacy grub can use). This works just fine. Unfortunately, the antiX install script reformats the partition and runs the command
Code: Select all
mkfs.ext3 /dev/sdb7
(that is the same command as above but without the -I 128 option) which, using the e2fsprogs program supplied, creates 256-byte inodes (which legacy grub cannot read). :evil:

Can I make a backup copy of my current legacy grub menu.lst file, install the (new) grub provided with antiX in the master boot area, then replace the new menu.lst file with the backup (adding, of course, the antiX entry to it) and still access my current partitions, as well as boot antiX when I wish to run it :?:

This is the only solution I can imagine and it seems to be a variation on what is suggested in the third page of the referenced article.

Thanks in advance,
-- Dr. U
User avatar
Dr.U
 
Posts: 8
Joined: Fri Aug 15, 2008 12:32 pm
Location: Germany

Postby anticapitalista on Thu Aug 21, 2008 5:56 pm

Yes try that. antiX might see your entries automatically and add them to grub menu.
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 2144
Joined: Tue Sep 11, 2007 4:55 pm
Location: Greece

Postby h2 on Thu Aug 21, 2008 7:23 pm

You're much better off installing the new non legacy grub onto mbr and letting it handle all your systems. Since all distros in the future will run the new one, and since the the new one starts old style fine, that's the most logical path.
smxi site (manuals, how-to's, faqs) :: script forums
h2
 
Posts: 80
Joined: Fri Jun 13, 2008 8:24 am

Postby Dr.U on Fri Aug 22, 2008 7:11 am

anticapitalista wrote:Yes try that. antiX might see your entries automatically and add them to grub menu.
Thanks anticapitalista and also h2! I installed the new grub in my MBR and copied my backed-up menu.lst into /boot/grub and now everything is perfect :D

Thanks for the nice work on this distro: I like lightweight WMs and quick booting OSs!

Best regards,
-- Dr. U
User avatar
Dr.U
 
Posts: 8
Joined: Fri Aug 15, 2008 12:32 pm
Location: Germany


Return to antiX-M7.2 VETËVENDOSJE!

Who is online

Users browsing this forum: No registered users and 0 guests

cron