Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th January 2012, 07:01 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Retrieving data from drive; shows boot files only

A while back, I had a laptop that bit the dust. Fast forward to the present day, and I've bought a SATA to USB cable and am trying to retrieve files from the laptop's old hard drive. I've connected it all up correctly, and am able to mount the drive - however, it's being listed as a 210MB Filesystem (the drive is 120GB), and appears to only be showing the boot files (see attachment).

fdisk -l shows the drive, and vgscan doesn't list any conflicts, so it seems all is well in that regard. How would I go about digging deeper and getting at the files I want?

(If it's relevant, the drive ran F12, and I'm now on F16)

Many thanks in advance!
Attached Thumbnails
Click image for larger version

Name:	Files.png
Views:	41
Size:	116.3 KB
ID:	22599  
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #2  
Old 26th January 2012, 09:26 PM
cazo Offline
Registered User
 
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 333
linuxchrome
Re: Retrieving data from drive; shows boot files only

That looks like the boot partition from the Fedora 12 drive. You should have another partition. What's in the one that starts with _Fedora-14-i? That looks like it should be the root from a Fedora 14 (i386?) system.

It might help to post the output of
Code:
fdisk -l /dev/sdb
(if your USB drive gets mounted there).

Last edited by cazo; 26th January 2012 at 09:47 PM.
Reply With Quote
  #3  
Old 26th January 2012, 10:51 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

The Fedora 14 drive is my old Fedora install on this PC - I installed F16 on a separate partition to try it out properly first; I'll be sorting that out when I have time to.

The drive mounts at /dev/sdg:
Code:
[root@neko neko]# fdisk -l /dev/sdg

Disk /dev/sdg: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x537c5b79

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1   *          63      409662      204800   83  Linux
/dev/sdg2          409663   234436544   117013441   8e  Linux LVM
Looking back at that, I assume the * would indicate the partition it looks at by default? If so, I guess I just need to set sdg2 to be the default - how would I do that, assuming I'm on the right track?
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #4  
Old 26th January 2012, 11:06 PM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,107
linuxfirefox
Re: Retrieving data from drive; shows boot files only

No. The asterisk means that the partition is bootable, something that only applies to Microsoft products. /dev/sdg1 is /boot and /dev/sdg2 contains everything else in a LVM partition, something that fdisk doesn't understand.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #5  
Old 26th January 2012, 11:54 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

Ah - yeah, that's obvious now that I look at it!

Had a poke around the forum, and had a go at manually mounting it, like so:
Code:
[root@neko neko]# mkdir /mnt/external
[root@neko neko]# mount /dev/sdg2 -t lvm /mnt/external
mount: unknown filesystem type 'lvm'
[root@neko neko]# mount /dev/sdg2 -t ext3 /mnt/external
mount: wrong fs type, bad option, bad superblock on /dev/sdg2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
No luck, as you can tell! Any thoughts on that, or am I just going up the wrong tree completely?

(Off to read the mount manual, in the meantime!)

Edit: Have tried those commands in the order specified in man mount (mount -t type device dir), with the same outcome

Edit-the-edit: Problem possibly found; any ideas for a solution?
Code:
[root@neko neko]# mount -t auto /dev/sdg2 /mnt/external
mount: unknown filesystem type 'LVM2_member'
__________________
I generally use two tools - trial and error. They fix most things eventually!

Last edited by Bazu135; 27th January 2012 at 12:08 AM.
Reply With Quote
  #6  
Old 27th January 2012, 12:10 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: Retrieving data from drive; shows boot files only

'ls -l /dev/mapper' may show the LVM logical partitions, assuming the
lvmdiskscan is another to try.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #7  
Old 27th January 2012, 12:29 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

Code:
[root@neko neko]# ls -l /dev/mapper
total 0
crw-------. 1 root root 10, 236 Jan 26 17:27 control
lrwxrwxrwx. 1 root root       7 Jan 26 17:28 vg_neko00-lv_home -> ../dm-3
lrwxrwxrwx. 1 root root       7 Jan 26 17:28 vg_neko00-lv_root -> ../dm-1
lrwxrwxrwx. 1 root root       7 Jan 26 17:27 vg_neko00-lv_swap -> ../dm-0
lrwxrwxrwx. 1 root root       7 Jan 26 17:28 vg_neko-lv_home -> ../dm-5
lrwxrwxrwx. 1 root root       7 Jan 26 17:28 vg_neko-lv_root -> ../dm-4
lrwxrwxrwx. 1 root root       7 Jan 26 17:28 vg_neko-lv_swap -> ../dm-2

[root@neko neko]# lvmdiskscan
  /dev/vg_neko00/lv_swap [       5.44 GiB] 
  /dev/sda1              [     133.12 GiB] 
  /dev/vg_neko00/lv_root [      50.00 GiB] 
  /dev/sda2              [     500.00 MiB] 
  /dev/vg_neko/lv_swap   [       5.44 GiB] 
  /dev/sda3              [     233.36 GiB] LVM physical volume
  /dev/vg_neko00/lv_home [      42.84 GiB] 
  /dev/vg_neko/lv_root   [      50.00 GiB] 
  /dev/sda5              [     500.00 MiB] 
  /dev/vg_neko/lv_home   [     177.91 GiB] 
  /dev/sda6              [      98.30 GiB] LVM physical volume
  /dev/sdf1              [     931.51 GiB] 
  /dev/sdg1              [     200.00 MiB] 
  /dev/sdg2              [     111.59 GiB] LVM physical volume
  6 disks
  5 partitions
  0 LVM physical volume whole disks
  3 LVM physical volumes
The first command looks to have just listed bits from my F14 and F16 partitions, so I don't suppose that's given us anything helpful?
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #8  
Old 27th January 2012, 12:46 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Retrieving data from drive; shows boot files only

what you need to do is mount the logical volumes listed above.

I am assuming that your F16 system is named neko (from looking at your output above) so your old F14 system is probably the logical volumes named neko00.

It also appears that they have already been mounted for you

your old (/) root: /dev/dm-1
your old /home: /dev/dm-3

/dev/dm-0 is your old swap, it won't contain anything useful to you.

If by chance the neko00 entries are your current F16 system, and the neko entires are your old F14 system:
/dev/dm-5 is the /home
/dev/dm-4 is (/) root

You can see if they got actually mounted by running the mount command, if they didn't get mounted,

mount -t auto /dev/dm-3 /mnt/oldhome
Reply With Quote
  #9  
Old 27th January 2012, 10:20 AM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

The trouble is, those aren't the volumes I'm trying to access - it's F12 on the external drive, which is /dev/sdg2 in the output above. 'ls -l /dev/mapper' didn't detect it.
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #10  
Old 27th January 2012, 11:40 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfirefox
Re: Retrieving data from drive; shows boot files only

Have you tried system-config-lvm to mount it

Code:
su
yum install system-config-lvm
Reply With Quote
  #11  
Old 27th January 2012, 12:05 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

system-config-lvm detects /dev/sdg2 (the bit I'm after) as shown in the attached image. How would I go about mounting this?
Attached Thumbnails
Click image for larger version

Name:	lvm.png
Views:	27
Size:	68.7 KB
ID:	22603  
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #12  
Old 27th January 2012, 12:43 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfirefox
Re: Retrieving data from drive; shows boot files only

What does the logical view show?
Reply With Quote
  #13  
Old 27th January 2012, 12:55 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

As attached~

Just checked to make absolutely sure of it; vg_neko00 is my F16 installation.
Attached Thumbnails
Click image for larger version

Name:	lvm1.png
Views:	29
Size:	66.4 KB
ID:	22604  
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
  #14  
Old 27th January 2012, 01:16 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfirefox
Re: Retrieving data from drive; shows boot files only

The F14 lvm names appear to be the same, bear in mind that I'm not a lvm guru (closer to beginner).
Reply With Quote
  #15  
Old 27th January 2012, 01:38 PM
Bazu135's Avatar
Bazu135 Offline
Registered User
 
Join Date: Aug 2011
Location: Luton, UK
Age: 27
Posts: 291
linuxfirefox
Re: Retrieving data from drive; shows boot files only

That does indeed appear to be the case... Might renaming the F12 partitions resolve this problem, then?
__________________
I generally use two tools - trial and error. They fix most things eventually!
Reply With Quote
Reply

Tags
boot, data, drive, files, retrieving, shows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving data from a damaged drive NCCarlos Hardware & Laptops 4 5th July 2011 01:56 AM
libmusicbrainz3 isn't retrieving CD data Mack Using Fedora 0 28th June 2011 09:12 PM
Retrieving Deleted Data? creeping death Using Fedora 26 23rd January 2009 04:08 PM
retrieving data from FC4 partitions iamroot Using Fedora 7 22nd October 2005 06:55 AM


Current GMT-time: 16:43 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat