LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-28-2013, 03:48 PM   #16
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,983

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553

Your post above (number 6) shows the directories one would expect to see in the / (root) of a Linux filesystem so that is good.
The setup command referred to earlier is used on Grub Legacy, a previous version of Grub. Ubuntu uses Grub2 so that command isn't used.

The first option on boot you refer to above would be the internal hard drive of the computer, WDC (Western Digital?), the second the CD/DVD drive and the third is obviously if you are trying to boot over a network.

The fdisk output you posted has seven columns, the first from the left is Device and below it shows 3 partitions. /dev/sda1 is the first partition where Ubuntu is installed, the second is an Extended partition which contains no data and the third is swap, similar to page file on windows.

Quote:
Should I be re-installing ubuntu rather than pressing "Try"
No. Reboot the CD and select Try.

Quote:
If I do install will I see the files on my original copy.
No. You will overwrite everything currently on it. If you want to just try to recover specific files you could do that if you know where they were. Usually they would be in the /home/user directory?? Replace 'user' with whatever the actual name of the user was. To do that enter this command in a terminal: sudo mkdir /mnt/sda1. sda1 is the partition on which all your data is so after running this command enter in a terminal: sudo mount -t ext4 /dev/sda1 /mnt/sda1. Copy/paste as it needs to be all lower case with correct spacing. You should then be able to navigate to the /home/user directory or to wherever you have your files in copy them to a CD/DVD/flash drive or whatever by opening a file manager, probably entering in a terminal: sudo nautilus. That should open the nautilus file manager.

It might be simpler to try to recover grub. After running the mount command above, you could navigate to the /boot/grub directory and look for a grub.cfg file (use the sudo nautilus command) and find the entry lines in that file beginning with menuentry and post them here.

To get more detailed information on your grub files, you could boot the Ubuntu CD and open firefox or whichever browser you have and go to the site below, read the instructions then download and run the bootinfoscript. Instructions are on the page, a link in the Description box. You could post that information here.

http://sourceforge.net/projects/bootinfoscript/
 
Old 10-28-2013, 06:27 PM   #17
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Get and use the bootinfo script.

Post the entire results.txt here.

This will give a lot of information on your drive and be of great assistance to fixing grub and also any recovery efforts that may be needed.
 
  


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
error: attempt to read or write outside of disk `hd0' blackholes Linux - Newbie 2 07-10-2013 11:00 PM
error: hd0 out of disk. (???) oznola Linux - General 7 06-27-2012 09:00 AM
Ubunutu 11.10 grub2 can boot but error hd0 no disk from bootable usb config help craig6398 Linux - Newbie 1 02-06-2012 05:10 AM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
remount USB Disk Read Write poetfreak MEPIS 1 08-30-2006 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:47 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