Page 1 of 1

[Solved] Best way to recover data if system won't start?

Posted: Sun Dec 07, 2014 2:11 pm
by inersha
Hi there,

Background:

I attempted to install the game "slingshot" through the package manager. However, the installation froze about half way through. I think it got stuck at installing some python dependencies, but I can't be sure.

Anyway, I used xkill to force the package manager to quit. Probably not the greatest of ideas.

The desktop evironment continued to function normally after this, although I did notice an error at the top when launching a terminal window. It was along the lines of /usr/bin/mint-fortune not being found.

Shortly after I restarted my computer, and this is when the problem started.

The problem:

When I boot my computer, I see an Ubuntu 14.04 (yep, not Linux Mint) loading screen with the following messages:

"The disk drive for /dev/mapper/cryptswap1 is not ready or not yet present."

"Continue to wait, or Press S to skip mounting or M for manual recovery"

Pressing S or M doesn't do anything, and I'm stuck at this error/loading screen.

Question:

1. Is there a way to fix this?
2. If not, is there an easy way to recover my data so I can do a fresh install?

Re: What is the best way to recover data if system won't sta

Posted: Sun Dec 07, 2014 9:42 pm
by WharfRat
Your data can be recovered, but since your home is encrypted you will have to run

Code: Select all

/usr/bin/ecryptfs-recover-private
from the live media with the partition mounted which will mount your /home to /temp.

If your whole installation is encrypted then it's a little more involved.

What you can try first is a chroot and see if purging the slingshot package fixes things.

I'm surprised that a repo package broke things :?

Re: What is the best way to recover data if system won't sta

Posted: Mon Dec 08, 2014 6:20 am
by inersha
WharfRat wrote:Your data can be recovered, but since your home is encrypted you will have to run

Code: Select all

/usr/bin/ecryptfs-recover-private
from the live media with the partition mounted which will mount your /home to /temp.
Okay thanks, this worked a treat. For anyone else reading and is a noob like me:

1. Put a Linux Mint ISO file on a USB using unetbootin
2. Boot the computer from this USB (press F12 or whatever when the computer is starting up)
3. Open a terminal
4. su
5. ecryptfs-recover-private
6. Copy all the files you want from their location in the /tmp folder (the terminal will tell you which folder)

Note: I didn't know what the password was for step 4, so I used the command passwd root to set a new password first.
WharfRat wrote:I'm surprised that a repo package broke things :?
Yes me too, although it could well have been something else. This was the only significant action I remember taking before things started to go wrong.