[RESOLVED] Recover ext4 GRUB

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

[RESOLVED] Recover ext4 GRUB

Postby opticyclic on Wed Sep 02, 2009 6:17 pm

I had Vista on NTFS, then reparitioned and installed Mint on ext4
I have subsequently had to reinstall Vista which has removed GRUB.

I didn't think this would be an issue as I have a SuperGrub disk and a PuppyLinux USB stick.

However, neither of those can find the grub install to fix it.
I suspect that this has something to do with ext4.

I don't have my LiveCD and can't get to it for about 2 weeks.
I'm also on a rather limited internet connection at the moment so can't really download it again.

Any suggestions?
Last edited by opticyclic on Sat Sep 05, 2009 8:34 pm, edited 1 time in total.
opticyclic
Level 3
Level 3
 
Posts: 126
Joined: Tue Jan 13, 2009 4:14 am

Linux Mint is funded by ads and donations.
 

Re: Recover ext4 GRUB

Postby Aging Technogeek on Thu Sep 03, 2009 1:13 pm

I noticed this when I first installed Gloria on ext4 Partitions. Grubs written on ext3 do not recognize ext4 partitions. The only thing I found was to make sure, in multiboot installs, that the last version installed was on an ext4 partition. Then the active grub would see and list all of my Linux partitions.

In your situation, I would say that you need a copy of the Gloria live CD to reinstall Grub to an ext4 partition. There may be another way to handle the problem, but I haven't found it yet. Possibly someone with more extensive Grub knowledge will read this and respond.
Image

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Recover ext4 GRUB

Postby DrHu on Thu Sep 03, 2009 1:43 pm

opticyclic wrote:I didn't think this would be an issue as I have a SuperGrub disk and a PuppyLinux USB stick. However, neither of those can find the grub install to fix it. I suspect that this has something to do with ext4.

I suspect that this has something to do with ext4
I think that could be..

http://www.cyberciti.biz/tips/linux-con ... ystem.html
    Use blkid to get UUID.
    How do I boot from ext4 (/boot)?
    If you have converted /boot file system (or / used for /boot), update /boot/grub.conf (/boot/grub/menu.lst). Open file and find out current kernel config file and append the following: rootfstype=ext4
--even though these notes are about converting ext3 to ext4, I think the howto boot section will still apply to ext4 & grub.
User avatar
DrHu
Level 16
Level 16
 
Posts: 6605
Joined: Wed Jun 17, 2009 8:20 pm

Re: Recover ext4 GRUB

Postby viking777 on Thu Sep 03, 2009 2:02 pm

The one and only time I tried to use ext4 I was greeted with a message that said something like "a bootable partition cannot be placed on an ext4 filesystem". Which made me think "What the hell use is ext4 then?"

I know nothing whatsoever about it, I am just telling you what occurred.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Recover ext4 GRUB

Postby opticyclic on Sat Sep 05, 2009 8:33 pm

I got my Linux Mint LiveCD then realised it was v6 without ext4 support! :x
Help was at hand though from a newer version of Puppy!

I created my bootable USB stick using Unetbootin http://unetbootin.sourceforge.net/
However, the version of Puppy Linux in the drop down doesn't include ext4 support.
BUT you can download the 5.x series iso (~110MB) which does have support and point Unetbootin at that.
http://www.puppylinux.org/downloads

Then after booting into Puppy I was able to mount the ext4 partition and do the old restore GRUB trick
Code: Select all
grub
find /boot/grub/stage1
root (hd0,4)
setup (hd0)
quit

And get back to Mint to post this :)

I might keep the Puppy USB stick for a while too as it was fun to play with (even though some of the apps aren't as pretty)
opticyclic
Level 3
Level 3
 
Posts: 126
Joined: Tue Jan 13, 2009 4:14 am


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 21 guests