Then try this instead:
The rest is the sameCode:grub> search --file /boot/grub/grub.cfg --set root
Then try this instead:
The rest is the sameCode:grub> search --file /boot/grub/grub.cfg --set root
Unknown command "search".
As I have mentioned, Ubuntu is on dev/sda7.
Ok this is how it went:
There are no spelling errors, just wrote it down as is.Code:grub rescue> set root=(hd0,msdos7), grub rescue> set prefix=(hd0, msdos7)/boot/grub, grub rescue> insmod normal error: missing ')' grub rescue> insmod normal) error: no such partition grub rescue> ls (partitions are still there) grub rescue> set prefix=(hd0, root=(hd0,msdos7),
EDIT: Sorry about that. Just figured out my mistake. In set prefix, I added an unnecessary space.
Fixing the wrong prefix string, now insmod normal replies:
error: unknown filesystem.
It is ext4. Any ideas?
Last edited by dorruk; February 4th, 2013 at 04:30 PM.
You somehow missed the closing ')' on 'set root'. Do you entered the comma as the last character? Don't do it. After setting both 'root' and 'prefix'
should showCode:grub> set
Code:root=(hd0,msdos7), prefix=(hd0,msdos7)/boot/grub,
That's what I exactly see at the moment. Still insmod normal won't work.
Hmm,
- You're booting from your harddisk, right? Not from GParted? If the latter, it seems that grub in your GParted doesn't support ext4. What GParted version it is?
- Are you sure /dev/sda7 is the Ubuntu partition?
Ah, sorry, I see. You installed GRUB into MBR with BOOTICE. The version of Grub on BOOTICE probably differs from the version of GRUB in Ubuntu. Can you find some LiveCD with the same Ubuntu version like in your Ubuntu partition and boot from it?
I am not sure how chroot works from Gparted Live, since you have no other linux to boot. Try this in terminal:
(I assume you will be root, or first google how to execute root commands in Gparted Live terminal)
That is a chroot procedure. Hope fully it will work.Code:mount /dev/sda7 /mnt mount --bind /proc /mnt/proc mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys chroot /mnt grub-install /dev/sda exit umount /mnt/sys umount /mnt/dev umount /mnt/proc umount /mnt
And get a new usb stick, it least 1GB and make it ubuntu live usb, and keep it.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks