Fedora Linux Support Community & Resources Center
  #1  
Old 29th July 2010, 05:49 PM
warlus Offline
Registered User
 
Join Date: Jul 2010
Posts: 2
linuxfedorafirefox
HD problem with fedora 12 installation (LVM partition problem?)

Hi ,

I have a fedora 12 installation , and the HD failed.

I was able to rescue one partition with fsck (sda0), but the other one (sda2) is giving me troubles - not mounted :

e2fsck -C0 -p -f -v /dev/sda2
e2fsck: Device or resource busy while trying to open /dev/sda2
Filesystem mounted or opened exclusively by another program?

[root@localhost liveuser]# fsck -C0 -p -f -v /dev/sda2
fsck from util-linux-ng 2.17.2
fsck: fsck.LVM2_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/sda2

if I do :

more /dev/sda2

it looks like the lvm partition data is there ... what would be the best way to save the data ?

�1�1�������������������������
����\
�B�
�t�L��
JvEEeIP
 LVM2 x[5A%r0N*>


id = "DWBvjn-uPfB-U8Sn-ADPb-m4AA-hQYM-BsCkh1"
seqno = 1
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 0
max_pv = 0

physical_volumes {

pv0 {
id = "9k184Z-uTiK-C4V7-sx2E-jkw6-ZNjJ-vEEeIP"
device = "/dev/sda2"

status = ["ALLOCATABLE"]
flags = []
dev_size = 77746562
pe_start = 384
pe_count = 9490
}
}

}
# Generated by LVM2 version 2.02.53(1) (2009-09-25): Thu Dec 17 18:44:26 2009

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "localhost.localdomain" # Linux localhost.localdomain 2.6.31.5-1
27.fc12.i686 #1 SMP Sat Nov 7 21:41:45 EST 2009 i686
creation_time = 1261068266 # Thu Dec 17 18:44:26 2009


id = "DWBvjn-uPfB-U8Sn-ADPb-m4AA-hQYM-BsCkh1"
seqno = 2
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 0
max_pv = 0

physical_volumes {

pv0 {
id = "9k184Z-uTiK-C4V7-sx2E-jkw6-ZNjJ-vEEeIP"
device = "/dev/sda2"

status = ["ALLOCATABLE"]
flags = []
dev_size = 77746562
pe_start = 384
pe_count = 9490
}
}

logical_volumes {

lv_root {
id = "1svxZ0-HF8b-ZWGt-RTx9-Lp8H-iaPj-LsVRXq"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
segment_count = 1

segment1 {
start_extent = 0
extent_count = 9018

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 0
]
}
}
}
}
# Generated by LVM2 version 2.02.53(1) (2009-09-25): Thu Dec 17 18:44:26 2009

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "localhost.localdomain" # Linux localhost.localdomain 2.6.31.5-1
27.fc12.i686 #1 SMP Sat Nov 7 21:41:45 EST 2009 i686
creation_time = 1261068266 # Thu Dec 17 18:44:26 2009

id = "DWBvjn-uPfB-U8Sn-ADPb-m4AA-hQYM-BsCkh1"
seqno = 3
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 0
max_pv = 0

physical_volumes {

pv0 {
id = "9k184Z-uTiK-C4V7-sx2E-jkw6-ZNjJ-vEEeIP"
device = "/dev/sda2"

status = ["ALLOCATABLE"]
flags = []
dev_size = 77746562
pe_start = 384
pe_count = 9490
}
}

logical_volumes {

lv_root {
id = "1svxZ0-HF8b-ZWGt-RTx9-Lp8H-iaPj-LsVRXq"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
segment_count = 1

segment1 {
start_extent = 0
extent_count = 9018

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 0
]
}
}

lv_swap {
id = "uTx4mA-27fO-y7Bk-610C-cng0-xPdz-F2W831"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
segment_count = 1

segment1 {
start_extent = 0
extent_count = 472

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 9018
]
}
}
}
}
# Generated by LVM2 version 2.02.53(1) (2009-09-25): Thu Dec 17 18:44:47 2009

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "localhost.localdomain" # Linux localhost.localdomain 2.6.31.5-1
27.fc12.i686 #1 SMP Sat Nov 7 21:41:45 EST 2009 i686
creation_time = 1261068287 # Thu Dec 17 18:44:47 2009





I would appriciate any kind of help !
Reply With Quote
  #2  
Old 30th July 2010, 11:01 AM
warlus Offline
Registered User
 
Join Date: Jul 2010
Posts: 2
linuxfirefox
Re: HD problem with fedora 12 installation (LVM partition problem?)

found the solution ,

there was a need to do fsck also on the lvm volume itself which stands as a seperate device:

fsck -t ext4 /sda1
fsck -t ext4 /dev/dm-0

then it can be mounted , and the data saved.

I did this with live rescue cd , which has some good utilities like test_disk

might help if anyone has this problem in the future...
Reply With Quote
Reply

Tags
fedora, installation, lvm, partition, problem

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
Fedora 11 Installation Problem with a Recovery Partition jod1006 Installation, Upgrades and Live Media 7 31st December 2009 07:41 PM
partition problem: before installation paulga Using Fedora 2 23rd November 2009 12:49 AM
Partition problem with installation. Tom Gilroy Installation, Upgrades and Live Media 3 15th April 2009 04:58 AM
installation/partition problem chico Installation, Upgrades and Live Media 8 11th January 2008 02:53 AM
partition problem during installation dtam5874 Installation, Upgrades and Live Media 6 5th December 2007 03:33 AM


Current GMT-time: 07:34 (Wednesday, 17-09-2014)

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