It is currently Thu Mar 23, 2017 8:19 pm



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!


Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [SOLVED] HD-Install: Error 2: Bad file or directory type
PostPosted: Wed Aug 20, 2008 10:40 pm 
Offline
User avatar

Joined: Fri Aug 15, 2008 12:32 pm
Posts: 8
Location: Germany
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:
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:
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.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 20, 2008 10:56 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5756
Location: Greece
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 8:36 am 
Offline
User avatar

Joined: Fri Aug 15, 2008 12:32 pm
Posts: 8
Location: Germany
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:
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 11:37 am 
Offline
User avatar

Joined: Fri Aug 15, 2008 12:32 pm
Posts: 8
Location: Germany
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 5:48 pm 
Offline
User avatar

Joined: Fri Aug 15, 2008 12:32 pm
Posts: 8
Location: Germany
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:
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 5:56 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5756
Location: Greece
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 7:23 pm 
Offline

Joined: Fri Jun 13, 2008 8:24 am
Posts: 73
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2008 7:11 am 
Offline
User avatar

Joined: Fri Aug 15, 2008 12:32 pm
Posts: 8
Location: Germany
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred