LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-02-2009, 08:34 AM   #1
barfa
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
need help retriving files from botched OS upgrade


HI, I have a Acer Aspire One A110L (ssd harddrive) with Xubuntu installed. I tried to upgrade to neweset release buth something went completely wrong. I will do a fresh install but I need to save some files that was in the homefolder.
When I try to start the botched OS I manage to get into an CLI and from there I still can find the files I wanna save. Problem is I cant find the USB-stick I want to save them on. I have done 'fdisk -l' and the USBstick doesn't show up. read somewhere if I did 'lsmod' it would show if the "usb reading part of the os" was loaded or not and it seems it is not.So I tried to save the files via a live-USB w xubuntu but from that I cant find the original homedir, just a new home.

Any ideas? The files are very important, and I have a backup but it is a bit too old

Last edited by barfa; 11-02-2009 at 08:35 AM.
 
Old 11-02-2009, 09:15 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,830

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
With the live CD you will have to open a command prompt, get root privledges, and do some commands.

First, decide where you want to mount the drive. I just went through this, and used /media as a place to start.

So, I did a 'cd /media'. Then I did a 'mkdir ce' The ce part is a new folder to mount the drive to. If you do a 'ls' at this point, you should see a directory listed called /media/ce. You can call this new folder anything you like.

Now as root, do a mount command. 'mount -t filesystemtype /dev/sda1 /media/ce' You need to know what file system is on the partition you want to mount. You also need to check the /dev/sda1 ( the second part ). IDE drives are hda's ie hda1 would be the first partition, hda2 the second primary partition. If you get no messages, the command worked. Do an 'ls' in the /media/ce directroy. You should see the file structure of the mounted HD. Now you have full read access to the files.

On the memory stick, try a 'lsusb' command to see if the stick is seen by the system. If yes, you can use the same procedure to mount it to the file system. Now copy away.
 
Old 11-02-2009, 09:15 AM   #3
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 91

Rep: Reputation: 38
Boot into the Live/Recovery CD

When you do fdisk -l, find which one was your original home directory.
then mount it.

mkdir /oldhome

mount /dev/hda6 /oldhome

Your original home directory should now appear under /oldhome.

You will need to put the home directory from fdisk -l instead of /dev/hda6.

mount may need some additional options depending on the filesystem (mount -t filesystemtype).
 
Old 11-02-2009, 09:26 AM   #4
barfa
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I actually don't remember what filesystem I had, is there a command for finding out?
When I do fdisk -l it says just /dev/sda system linux

Last edited by barfa; 11-02-2009 at 09:28 AM.
 
Old 11-02-2009, 09:30 AM   #5
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,830

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
You can try the trail and error method. ext2 and ext3 are very common. You format the partitions when you install usually. If you did nothing exotic, then try each one until it mounts. It will give you an error if you pick the wrong fstype.
 
Old 11-02-2009, 09:40 AM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,721

Rep: Reputation: 192Reputation: 192
Or...

If you are more familiar with a GUI, you might try a live-cd of PCLinuxOS. It will let you boot directly as root and show you the folders and files it find graphically.
 
Old 11-02-2009, 09:45 AM   #7
barfa
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by camorri View Post
You can try the trail and error method. ext2 and ext3 are very common. You format the partitions when you install usually. If you did nothing exotic, then try each one until it mounts. It will give you an error if you pick the wrong fstype.
OK, thats a logical approach :-), I'll do that. I might have gone the exotic route and used reiser or something, but it's just 4-5 choices anyway. I'll post back tomorrow and prob this can be marked solved then.
Thanx a bunch everyone!
 
Old 11-04-2009, 06:14 AM   #8
barfa
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
OK, problem solved, thanks to all again. How do I mark this thread solved?
 
Old 11-04-2009, 08:33 AM   #9
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,830

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Done, click the 'Tags' icon at the bottom, clicked the type of 'solved you would like'.
 
  


Reply

Tags
xubuntu


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
botched glibc upgrade -- system freak out twelvenine Linux - Newbie 4 06-27-2007 11:42 PM
botched upgrade: is this a good fix? yocompia Slackware 2 04-06-2007 03:18 PM
HOWTO: Recover from botched upgrade rworkman Slackware 1 04-06-2007 03:15 PM
retriving deleted files and folders nayabingi Linux - General 2 09-27-2004 10:26 AM
Slackware 10 - Botched kernel 2.6.7 upgrade MDesigner Slackware 14 06-25-2004 05:16 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration