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. |
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. |
sorry, which site are you referring to?
|
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? |
You have to be part of the sudoers group.
Quote:
Quote:
Atleast that's how mine is. |
dual booting with win 7 ( from the OEM ) has very well known problems that are well documented
overview -- 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 |
Quote:
https://help.ubuntu.com/community/Grub2 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. |
@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. |
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. |
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? |
As yancek suggested using live cd try this:
https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2 |
Quote:
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: Code:
$ su -l 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! |
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? Quote:
You could try sudo su or the suggestions above. Don't know what the problem is? |
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. |
is there a default password? I was never prompted to set one.
|
Quote:
Quote:
|
whoops double-posted.
|
Quote:
I'm posting a link on how to install Ubuntu from a flash drive. Is this what you did? https://help.ubuntu.com/community/In...n/FromUSBStick If not, you might try the method delineated here. |
I thought su & sudo weren't required on chroot env?
edit just checked both are used |
People, only thing I can say is that it's my understanding that Stuck109 is at the grub prompt when (s)he tries to execute the sudo command. And that does not work. So please forget about sudo, visudo etc
Step 1 for me would be to boot from the live CD / memory stick and make a backup of all important data of the windows setup. Step 2 would be to do a re-install of Ubuntu I'm not familiar with a Win7/Ubuntu dual boot setup so can't exist further. |
ubuntu is not my "cup of tea" but
if the OP is indeed at the " GRUB > " prompt ,then use the install dvd and boot into the rescue mode on the dvd then once you have ran Code:
chroot /mnt/ssimage and change the partition - i am guessing change (hd0,0) to (hd0,1) but a full REREAD of the Ubuntu install documentation would be a very good start and pay attention to the sections on partitioning windows 7 DOSE NOT play nice with other OS's ( as i found out with service pack 1 - windows HELL ) |
Ok so, I reinstalled Ubuntu from the flash. I now have access to both windows and ubuntu. It seems that they are both working they way they should, that was too easy, haha. Thank you all!
|
Great; please mark your thread as solved using the thread tools just above the first post on a page.
|
All times are GMT -5. The time now is 04:55 AM. |