-   Linux - Newbie (
-   -   Ubuntu 11.04 installed alongside Windows 7 resized partition now cannot access either (

Stuck109 04-29-2011 01:39 PM

Ubuntu 11.04 installed alongside Windows 7 resized partition now cannot access either
I have already done the installation process following the guide on Ubuntu's site, got everything up and running but the partition that I made in the installer was too small. I was then directed by a friend (a slightly less inexperienced newbie) to modify this through Easeus Partition Manager. I shrunk the Windows 7 partition to only the space that was in use, giving the newly unallocated space to the Ubuntu partition. Set the changes and rebooted the computer, then got the message "unknown filesystem, grub rescue". Now have no idea what to do with this. What happened??

I've been scouring the forums for something helpful but I can't find anything that is a comparable circumstance.

I can still access Ubuntu through my flashdrive.

yancek 04-29-2011 02:03 PM

You can reinstall Grub from your usb. You did install Ubuntu from the usb? Go to the site below to Section 13.1, Reinstalling Grub from Live CD. If you have the Ubuntu Live CD on the usb and installed from it, that should work.

My understanding of the way this works is that Grub looks at a certain point at the beginning of a partition for boot information. You changed that location when you resized so reinstalling Grub to the mbr should work if you want Grub to boot both.

Stuck109 04-29-2011 02:07 PM

sorry, which site are you referring to?

Stuck109 04-29-2011 03:12 PM

Yancek- "Go to the site below to Section 13.1, Reinstalling Grub from Live CD. If you have the Ubuntu Live CD on the usb and installed from it, that should work."

-So I went through the install as directed in this guide (tried all three methods) and made it through the install, I was told it was successful.
-Next the directions say to "Reboot" and "Refresh the GRUB 2 menu with sudo update-grub"
-I do this and I get the reply "error: unknown command 'sudo'"

what's up with this?

EDDY1 04-29-2011 03:36 PM

You have to be part of the sudoers group.

add this line in space beneath root:

<username> ALL=(ALL:ALL) ALL
Anyway do it the same way as root.
Atleast that's how mine is.

John VV 04-29-2011 05:49 PM

dual booting with win 7 ( from the OEM ) has very well known problems that are well documented
-- do to MS NOT using a real install dvd ---
1) the oem's use a hidden "rescue partition" at the front of the drive
2) the windows7 bootloader is there ( on the "rescue partition" )
3) grub is setting up the boot menu for NOT USING this "rescue partition" that the OEM's are putting their
menu.lis gets set to use the rescue partition and NOT where windows is so the "other" option in the boot menu dose not work

so during install
1) -- very very very important!!! --
order a install dvd from MS !!!!!!!
2) wait until it shows up in the "snail mail" ( the postman delivers it)
3) use the dvd to reinstall in case of emergency
-- or --
wipe the drive is reinstall win7 without this "rescue partition"

linux install

when you install linux PUT grub on the FIRST LINUX partition and NOT NOT on the MBR
-- let MS have that sp1 WILL NEED IT !!! NO IF'S and ' or butts
win7 sp1 MUST have windows bootloader on the MBR!!!!!

then change the "boot" label from the mbr to the partition YOU but grub on
that way the computer will boot from grub and NOT from MS's bootloader

yancek 04-29-2011 05:50 PM


sorry, which site are you referring to?
My fault, forgot the link. It's here. Is this the one you used?

The first option is the easiest, I've never had any problems with it. If it works and you have removed the usb so it boots the hard drive install, you should be good. Since you have another operating system, you may need to run the sudo update-grub.

EDDY1 04-29-2011 06:11 PM

@john VV
I know exactly what you're refering toI just installed wheezy on acer aspire laptop, which has 3 partitions, 1 of them hidden (PQService). Actually grub didn't want to install to it.
1stx. I gad extra space on drive, when debian installed instead of making 4th partition it resized the extended & placed itself within that partition resulting in read errors. On this 1 it installed grub.
2ndx. I wanted to reinstall wheezy the installation I erased all of the wheezy partitions including D:/ but I did it with gparted and also was able to remove the extended container as you can see it in gparted. The installation failed at grub not installing.
3rdx. I used gparted again removed all of the partitions within sda3 then removed sda3 changed boot flag to sda1 and enabled d2d in bios. D2D is supposed to be just for recovery but it allowed me to write to boot sector, thus allowing grub to install.

Stuck109 04-29-2011 06:11 PM

QUOTE= you may need to run the sudo update-grub.[/QUOTE]

Yes this is where my hang up is. My computer isn't recognizing Sudo as a command.

Stuck109 04-29-2011 06:44 PM

Here is what I see at start up

"GNU GRUB version 1.99~rcl-13ubuntu3

Minimal BASH-like editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions."

Any insights here?

EDDY1 04-29-2011 08:43 PM

As yancek suggested using live cd try this: GRUB 2

Hevithan 04-29-2011 09:21 PM


Originally Posted by Stuck109 (Post 4341276)

Yes this is where my hang up is. My computer isn't recognizing Sudo as a command.

Sudo runs from a file, That lists who may and may not use the SUDO command. Shorten it to 'SU' (assuming you know what the root password is) and it will look like this:


$ su -l
root:# update-grub

You may have to add su before update-grub. And as you are typing the password, it will NOT show that you are typing(no letters and no **** to hide it, it will appear empty), so just wait for when password shows up, and type in your ROOT password, and hit enter.
note that -l is -L (not i or 1) for login ... After you're root you can run any command you need. I am about 90% sure that's right (anyone is free to correct me :p ), Giving it a shot shouldn't hurt though. Good luck!

yancek 04-29-2011 09:33 PM

You said in your first post you can still access Ubuntu through your flash drive. Did you have the Ubuntu Live CD on the flash drive for your installation or are you using a separate CD?

After you run the commands suggested at the web site to reinstall Ubuntu do you reboot, remove the usb/flash drive/CD or whatever you are using for the purpose? Do you then boot into the installation on your hard drive successfully? If so, are you having the problem in a terminal from the hard drive installation?


My computer isn't recognizing Sudo as a command.
That's a typo here right? You didn't use uppercase S for sudo? You get this sudo error when you run: sudo update-grub??
You could try sudo su or the suggestions above. Don't know what the problem is?

Hevithan 04-29-2011 09:40 PM

I just read up a little on Ubuntu, and apparently su won't work, as the root password is not given to the user. I'd still try, but if it doesn't work||HERE|| is a link that explains sudo, how to use it, the downsides, etc ... hopefully you gain some insight with that.

and in case you are just skimming to the most recent posts ... Look above me as yancek points out, that if you are doing Sudo as opposed to sudo, that may be the problem.

Stuck109 04-29-2011 09:50 PM

is there a default password? I was never prompted to set one.

All times are GMT -5. The time now is 12:26 PM.