LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-17-2011, 10:35 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Question Recovering a Ubuntu 10.10 installation


A friend of mine was upgrading his 10.10 distribution to 11.04, during the process a power cut caused interrupt and no he is unable to get in to his system. after the ubuntu screen he goes to the prompt, where he sees nothing but this

Code:
the disk drive for /is not ready yet or not present.

continue to wait
or press s to skip or press m for manual recovery
/tmp
Is there any possible way to recover this system
 
Old 08-17-2011, 05:31 PM   #2
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: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
A little more information would be a big help here.

What is the hardware? How was this upgrade being done? Is the OS installed on one partition or more?

If you have a Live CD (any recent one from any Linux distro) it would be a good idea to take a look at the files on the box and make sure they are there (probably). Then back them up, to CD/DVDs, by making an other partition on the HDD and putting them there, putting them on a thumb drive.

I would then try to use an install disk for 11.04 to do the rest of the job. No matter how the OS is now installed you need to choose Manual Partitioning. I believe Ubuntu calls this option "Something Else" to confuse the user.

You need to select the partition(s) the OS is on, indicate the correct format for that partition (what it is now, probably ext4). Most importantly you must choose to not format the drive as this will wipe it clean.

If the current install is on 2 partitions (/ and /home) this is a little easier as you can format the / partition and not the /home partition.

Frankly speaking, assuming you make a full backup of data, I would do a clean install on 2 partitions and transfer the data.

If you are up to the task you could try to rescue the upgrade in a chroot environment from a Live CD live session. You would have to be able to get the chroot to work and if the required files are missing this may not work. You may be able to add the missing files and get it to work.

You would have to make sure that there is a sources.list that is correct.

Run in the chroot environment;
Code:
apt-get update
no sudo required at this stage as you are root. And;
Code:
apt-get update
Code:
apt-get dist-upgrade
If this runs it will probably have errors. Errors or not I would be running;
Code:
dpkg --configure -a
until you either just get an other prompt as a result or the command or the errors listed are identical to the list before.

Then boot to recovery and run that same command after the tty login.

After that hit "Ctrl+d" and see if that takes you to the normal login screen.
 
Old 08-18-2011, 06:47 AM   #3
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Well There is data on the partition I am worried about, and browsing the partition from a LIVE environment Does indeed shows the files but they are un-copiable, the system says "You do not have proper rights to access these files". To add more trouble There is only one partition , the "/". so I cannot make something like another a new partition. Isn't there any way to repair the previous partition.
 
Old 08-18-2011, 08:00 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,540

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
You likely need to use admin privileges to get access. Use sudo to prefix a command and get root privileges.
If you have only one partition and want to create another, you can use GParted from the Ubuntu LiveCD. It should be under the System tab on the Desktop. Shrink the partition you currently have and then create another.

Do you want to create another partition to copy data to? or some other reason?
Trying to repair the system, widget explained a method in the above post.
 
  


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] Recovering grub after Windows installation. Encrypted partitions and LVM. 1937 Debian 6 11-04-2010 05:22 PM
recovering graphical interface ubuntu mako34 Linux - Software 22 10-28-2010 08:21 AM
Recovering Ubuntu Installation after Deleting (non-essential?) partition spsaucier Linux - Software 5 02-20-2009 04:41 PM
Recovering Linux Installation gajathealmighty Linux - General 3 05-07-2007 02:13 PM
Recovering from a failed RPM installation. Krontab Fedora 4 07-29-2005 12:28 PM

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

All times are GMT -5. The time now is 07:18 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
Open Source Consulting | Domain Registration