LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-13-2007, 12:24 AM   #1
neddis
LQ Newbie
 
Registered: Apr 2006
Location: Eastern Oregon
Distribution: Fedora Core 6
Posts: 18

Rep: Reputation: 0
FC5 to FC6 and hard drive upgrade at the same time - problem getting old data


I run a linux box to host the my documents files for a couple of windows computers at home. I was running FC5 with kernel 2.6.20-1.2316.fc5 and a Maxtor 60GB hard drive. It was pretty much filled to the gills so I got a Seagate 250GB to replace it and I thought I would upgrade to FC6 while I was at it. I installed FC6 on the Seagate(new) drive and put the Maxtor(old) in a USB enclosure and thought it would be easy to just mount the USB drive and copy stuff off of it. It didn't quite work that way. So put the Maxtor back in the computer and still can't get it to mount the partition with all of the data on it. it will mount the boot partition just fine, but can't determine the filesystem of the hdb2 partition. Anyway, what do I do to get my data off of the old drive? Thanks in advance! Oh yeah - I'm still kindof a newbie when it comes to linux.

Last edited by neddis; 06-13-2007 at 01:25 AM.
 
Old 06-13-2007, 01:32 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You can mount the old root partition but you don't know how to mount any of the others?

Open terminal
enter fdisk -l (will give you a list of partitions - if unsure, show us by pasting the output here)

use mkdir to create a mountpoint in /mnt for each partition you want to mount
use mount (man mount) to mount them

eg... if the old home directories are in sdb2 then you do:

# mkdir /mnt/sdb2
# mount -t ext3 /dev/sdb2 /mnt/sdb2

Now you can browse to /mnt/sdb2 and see all the old files. You will probably need to fiddle with permissions to restore them properly.
 
Old 06-13-2007, 09:57 AM   #3
neddis
LQ Newbie
 
Registered: Apr 2006
Location: Eastern Oregon
Distribution: Fedora Core 6
Posts: 18

Original Poster
Rep: Reputation: 0
That's what I tried initially. I should have known something was wrong because I thought it would be that easy. I get this error: "wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or other error."

when I do fdisk -l, under system it says "Linux LVM".

it shows up in the LVM manager as uninitialized, but when I make that maxtor drive the primary drive, it boots off of it and all of my stuff is there.
 
Old 06-15-2007, 04:07 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
when I do fdisk -l, under system it says "Linux LVM".
When you report the output of a command, copy and paste (including the command).

Since you were using LVM, you missed an opportunity to simply add the new drive to the existing setup... as LVM supports dynamic resizing.

Anyhoo, you will end up needing to mount the logical volume.
What is LVM
 
Old 06-15-2007, 12:02 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I would strong suggest getting rid of LVM before you go to far. It is great until something goes wrong, then you are going to be in for a ride. If the first drive had been formated ext3 (standard non lvm) you could have mounted it in the usb enclosure. I know it is a PITA but I would reinstall FC6 without LVM and then copy your stuff over. If you do not, when you get a couple of years down the line, you will be stuck in the same situation again.

Good Luck
Lazow
 
Old 06-23-2007, 06:30 PM   #6
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
I am in an identical situation - upgraded from fc3 to fc6. Simon, you mention that the logical volume will need to be mounted. How should I understand that:

- there is some tool that will let me do that from the new filesystem - btw, Logical Volume Management only offered to delete all data on the other disk, nty
- I need to boot from the old drive and transfer all I need to a partition that is not under a LVM

thanks
 
Old 06-24-2007, 04:14 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The approach goes something like this:
Code:
vgscan
vgchange -a y

mount -t ext3 /dev/my_volume_group/foo /mnt/backup
 
Old 06-24-2007, 07:08 AM   #8
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
Thank you, that's what I needed. I'll keep in mind the vg* commands ...
 
Old 07-16-2007, 10:49 PM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I have created a thread displaying my ignorance in the hope of collecting a more definitive method for handling these migrations:
http://www.linuxquestions.org/questi...29#post2826029
... I think there may be a reoccurring issue in the making here. I wonder that there are not some higher-level tools for dealing with this.

BTW: did you have any trouble with your VG's having the same name?
 
  


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
Best way to upgrade from FC5 to FC6 clpl1980 Fedora 2 04-03-2007 08:45 AM
dist-upgrade from FC5 to FC6 shawnbishop Fedora 1 03-25-2007 01:53 PM
Upgrade or Install FC6 over FC5 anilbh Fedora - Installation 5 02-17-2007 06:26 AM
upgrade fc5 to fc6 test1 o2bfishn Fedora 6 01-13-2007 03:39 PM
Upgrade from fc5 to fc6 naveedccsp Fedora 1 10-31-2006 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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