LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 09-24-2012, 12:10 PM   #1
Janboy
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Grub-rescue


I have installed a new hard drive on my acer 5920 laptop. I have installed windows 7 and linux 12.04. The other hard drive is in an external drive unit and when I tried to load via usb I got the message Grub Rescue. Stupidly I did not back up the data and would like to retrieve it. Can anybody help?
 
Old 09-24-2012, 12:29 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Are you just transfering the operating system(s) from 1 drive to another?
If so try clonezilla-live-cd/usb.
http://clonezilla.org/
http://clonezilla.org/clonezilla-live.php
 
Old 09-24-2012, 02:43 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,270

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
What exactly are you trying to do? You got a new hard drive so, did you then install windows 7 and Ubuntu 12.04 on this new hard drive? What other hard drive? Did you install windows 7 and Ubuntu 12.04 to the "other" external hard drive? or to the laptop internal? Are you trying to boot the external hard drive? If you have some operating system and not just data on the external and are trying to boot it, where is the bootloader? The mbr of the internal, the external mbr, the root partition?
 
Old 09-25-2012, 07:42 AM   #4
Janboy
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Grub Rescue

I have installed ubuntu 12.04 and windows 7 on the new hard drive. The hard drive removed is now in an external drive unit and when I try to load from the external unit I get the Grub Rescue error message.
 
Old 09-25-2012, 08:24 AM   #5
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
Your old drive is configured as a primary boot device, with it's own grub installed,... that's the issue...

Grub is seeing two primary boot partitions on the system, with notthing to make sense of them, and is freaking out because of it. If you migrated your data already, you can wipe the drive. It should not be mounted when you do this. It'll show as something like sdb (instead of sda). If you need stuff on it you might have to uninstall grub from that drive. Grub commands are a P.I.T.A. If you can avoid having to deal with them, just wipe the drive.

Trying to access the old, installed systems on the drive may cause a problem,... wading through all the mess for what you want... If you don't need anything on it,... fdisk it...

By the way,... If the drive is in an external enclosure, and powers up separately,... have you tried bringing up the system first,... then the external drive afterwards, so it doesn't interefere with the boot process? You should then be able to have it seen, but not mounted, and should then be able to repartition it.

At any rate,... When migrating to a new HD, it is best to have an external backup drive available to use for migrating data. You just migrate your files to backup, disconnect that backup drive, reboot the system and delete all original internal partitions. Power down. Replace the hard drive. Install new. Attach your external drive and migrate your data back. Then, you can do whatever you want with the old drive.

In your scenario,... try booting from something like Gparted Live or Parted Magic,... From there make sure to correctly ID your disk volumes (so you don't delete your new install). Use the Live CD to move data that you need,... then use the partitioning tools to remove grub from the external drive... or repartition, or whatever...
 
Old 09-25-2012, 08:36 AM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,799

Rep: Reputation: 157Reputation: 157
Oh,... Alternatively,... you could always put your old drive back... backup your data,... VERIFY your backup,... Delete your partitions entirely (Gparted or Parted Magic). Re-install your new drive,... and then... back on your merry way with the old drive in the external enclosure?!?!
 
Old 09-26-2012, 12:28 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You can either mount the drive from a running os & recover data, or, use clonezilla to copy to clone os to the drive, you do not try to boot the external drive, windows will not agree with you.

Although my debian wheezy installation was once sda it boots & I didn't make any changes to it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB error: unknown filesystem, grub rescue magnecticfield Linux - Newbie 28 07-30-2013 03:35 AM
Grub File Not found Grub Rescue Error on External Sata to USB Drive imayneed Linux - Newbie 11 08-22-2012 02:56 AM
GRUB error: unknown filesystem, grub rescue nnjond Linux - Newbie 4 12-26-2011 07:46 PM
Problem with GRUB: partition not found. Grub Rescue?? genoboss Ubuntu 117 01-04-2011 07:56 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM


All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration