View Full Version : Adding senond hard drive from old version of fedora to fedora 9
steveblink
2008-06-08, 12:06 PM CDT
I recently had a machine that crashed that had a boot disk and a second drive. I have built a new machine and have a fresh install of fedora 9. I'd like to reinstall the second drive to get to the data. the bios sees the second drive, but I can't get to it in fedora 9. I tried fdisk -l but got a message that it's not a valid command.
How do I get the drive mounted so I can recover the data?
Seve
2008-06-08, 12:20 PM CDT
Hello:
You need to have full root privileges to successfully run fdisk
See http://www.fedorafaq.org/basics/#root
Seve
ivancat
2008-06-08, 12:21 PM CDT
to get the partitions from the 2nd hard drive mounted automatically you need to add entries to the fstab file, but first please show us the output of:
su
fdisk -l
steveblink
2008-06-08, 01:00 PM CDT
[root@localhost ~]# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b8fac
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 19457 156087540 8e Linux LVM
Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00084ffa
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 36483 293049666 8e Linux LVM
Disk /dev/dm-0: 158.7 GB, 158712463360 bytes
255 heads, 63 sectors/track, 19295 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800
Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost ~]#
The 300GB Drive is the old one I'm trying to recover the data from. Any help would be appreciated.
SteveBlink
jcliburn
2008-06-09, 08:05 PM CDT
[root@localhost ~]
Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00084ffa
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 36483 293049666 8e Linux LVM
Bummer. It's an LVM volume, which will somewhat complicate your efforts to mount the disk. You've got to figure out what the volgroup and logvol numbers are. The commands go something like this.
# vgscan
# vgchange -a y
# mount -t ext3 /dev/VolGroupXX/LogVolYY /mnt
where XX and YY correspond to the group and volume of the disk.
I haven't messed with LVM in awhile though, because I don't like the added complication when things go wrong. I guess if I used it more I'd find it easier to deal with.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.