[SOLVED] Ubuntu 11.04 installed alongside Windows 7 resized partition now cannot access either
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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'"
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"
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
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.
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.
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
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 ), 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?
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?
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.