LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-13-2012, 11:33 AM   #1
kngosling
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
issues with my grub - seems like data is lost


Everything went on well. Today morning when I rebooted my workstation, I was appalled by the grub rescue screen that appeared on boot up. I could not guess what could be the reason for this. Trying to find out a solution, I googled and browsed several sites and performed the following commands from a live cd.
sudo mount /dev/sda2 /mnt
sudo grub-install /dev/sda /mnt
I later recognized that I should have installed grub in sda1 and not in sda2. sda2 is my ubuntu partition with all my data.
On reboot, I was further taken aback by appearance of a grub prompt. On googling again, I was instructed to run find command in grub. I then got this error.
"grub>unknown command find"
Not knowing what to do, I booted again using a live CD.
I felt awwww when I saw my 2 TB file system showing only five folders leaving out the main home folder which contained all the users and the data. I assumed that I have made a mistake by installing grub on /dev/sda2 and it has replaced ubuntu and the data.
I then tried several solutions given online. Like I tried to recover using boot-repair, followed this link http://www.dedoimedo.com/computers/g...mozTocId842078 and tried to chroot. On giving chroot I get "chroot: cannot run command /bin/bash no such file or directory".
Kindly help me out.
I have also posted the results of bootinfoscript for your reference.
http://paste.ubuntu.com/1202960/
Is my presumption correct ? Has grub replaced the ubuntu partition and all its data ?
How could I bring my machine back to its original state ?
 
Old 09-13-2012, 12:42 PM   #2
aniketmeshram
LQ Newbie
 
Registered: Feb 2011
Distribution: OpenSUSE 10.3, Fedora, Ubuntu
Posts: 23

Rep: Reputation: 1
I think your sda2 might not have been replaced. the grub-install loaded the bootloader alongside your data. Have you tried to locate your files in your sda2. see if you can view your files by again going through the procedure through live CD becoming chroot. if you do, back it up some where safe. Then again try installing grub on sda1.
 
Old 09-13-2012, 12:54 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
If you are using a current version of Ubuntu you are using Grub2 which is why you got the command not found with the "find" command. That command only is available on Grub Legacy. Why do you think you should have installed Grub on sda1? What do you have on sda1? If you wanted to install the Grub bootloader to the Ubuntu partition, which bootloader were you going to use to boot? Do you have another operating system? The best way to get help is to go to the site below, read the instructions on using the bootinfoscript, download and run it using your Ubuntu Live CD and post the output (results.txt file) here if you don't understand it your self. It will include a lot of detailed information on drives/partitions and boot files.
 
Old 09-13-2012, 10:47 PM   #4
kngosling
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
If you are using a current version of Ubuntu you are using Grub2 which is why you got the command not found with the "find" command. That command only is available on Grub Legacy. Why do you think you should have installed Grub on sda1? What do you have on sda1? If you wanted to install the Grub bootloader to the Ubuntu partition, which bootloader were you going to use to boot? Do you have another operating system? The best way to get help is to go to the site below, read the instructions on using the bootinfoscript, download and run it using your Ubuntu Live CD and post the output (results.txt file) here if you don't understand it your self. It will include a lot of detailed information on drives/partitions and boot files.
I used gparted and found that sda1 was an "unknown file system" and it had a flag, bios_grub. I think this is the actual boot partition and should have reinstalled grub in it. Instead I installed grub in sda2, which actually is my ubuntu partition and the data. I have pasted the results.txt. Here it is for you again, http://paste.ubuntu.com/1202960/ , the results of bootscriptinfo.
 
  


Reply



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
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 01:51 PM
HDD partition lost. xandros DVD + me = lost data lein Linux - General 18 05-22-2007 05:47 AM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 09:41 AM
LILO/GRUB fail & Lost data pete_willis Linux - Newbie 2 11-15-2003 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration