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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-19-2017, 10:34 AM
|
#1
|
LQ Newbie
Registered: Jun 2017
Posts: 1
Rep:
|
I can't mount lvm, i get error message while mounting
Code:
I have HDD which installed centos in it, i wanted to get files from it using Fedora live USB.
I found some useful posts about it, first time i mount it to /mnt and changed its fstab file, and when i want again mount it, i can't mount it, it returns errors. Above i write all steps which i did.
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Path /dev/vg_dstkpi/lv_root
LV Name lv_root
VG Name vg_dstkpi
LV UUID Sq7sV4-zQsX-0CH3-9HU2-ZTES-A6nI-hvNtfY
LV Write Access read/write
LV Creation host, time dstkpi.dst.uz, 2016-05-14 18:35:10 -0400
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_dstkpi/lv_home
LV Name lv_home
VG Name vg_dstkpi
LV UUID 5wA6g6-VfJW-g6dW-SZ7P-ncwj-at1h-c098Du
LV Write Access read/write
LV Creation host, time dstkpi.dst.uz, 2016-05-14 18:35:30 -0400
LV Status available
# open 0
LV Size 94.71 GiB
Current LE 24247
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/vg_dstkpi/lv_swap
LV Name lv_swap
VG Name vg_dstkpi
LV UUID aUbOVe-gbEn-LfKH-EQOu-etPN-FyOd-bCuxb3
LV Write Access read/write
LV Creation host, time dstkpi.dst.uz, 2016-05-14 18:36:11 -0400
LV Status available
# open 2
LV Size 3.84 GiB
Current LE 984
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
After that i wanted mount it like this:
[root@localhost ~]# mount /dev/vg_dstkpi/lv_root /mnt/rescue/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_dstkpi-lv_root,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
I opened log file.
[root@localhost ~]# dmesg | tail
[ 2116.827233] ata3.00: configured for UDMA/133
[ 2116.827249] sd 2:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2116.827252] sd 2:0:0:0: [sda] tag#0 Sense Key : Medium Error [current]
[ 2116.827255] sd 2:0:0:0: [sda] tag#0 Add. Sense: Unrecovered read error - auto reallocate failed
[ 2116.827258] sd 2:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 0f b0 08 00 00 08 00
[ 2116.827260] blk_update_request: I/O error, dev sda, sector 1028104
[ 2116.827278] EXT4-fs (dm-0): can't read group descriptor 0
[ 2116.827298] ata3: EH complete
[ 2116.833657] EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities
[ 2116.833954] EXT4-fs (dm-0): couldn't mount as ext2 due to feature incompatibilities
**Here are images from disks utility:**
https://i.stack.imgur.com/jXKTi.png
**it's /dev/vg_dstkpi/lv_root:**
https://i.stack.imgur.com/VrIpn.png
|
|
|
06-19-2017, 12:31 PM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
The messages suggest it tried first as ext2 then as ext3 and MAYBE as ext4.
You don't say what kind of filesystem was on the original. Was it one of those? Or was it maybe something else like xfs? gfs? What version of CentOS was this on originally? In CentOS7 I think xfs was the default.
Also you don't say what version of Fedora live you're using.
|
|
1 members found this post helpful.
|
06-19-2017, 12:54 PM
|
#3
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,792
|
Your disk has at least one bad sector, and that one is in the first ext4 group descriptor block, preventing the mount from succeeding.
Suggested procedure: - Use ddrescue to salvage as much data as possible from /dev/vg_dstkpi/lv_root to another disk partition or LV of at least 50GiB (53.7GB) in size.
- See if fsck can repair the filesystem on that copy.
- If the repair was successful and the files appear intact, use dd to restore the copy back to the original LV. That writing should cause the drive to reallocate any bad sectors in that LV.
- Run "smartctl -A" on the drive to evaluate its overall health.
|
|
1 members found this post helpful.
|
06-27-2017, 02:34 PM
|
#4
|
LQ Newbie
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13
Rep:
|
Run fsck to repair (like rknichols said), then blkid to find the fstype. I would edit /etc/fstab (/dev/vg_dstkpi/lv_root /mnt/rescue/ {fstype} defaults 0 0), then run umount -a then mount -a
Last edited by B-RAH; 06-27-2017 at 02:37 PM.
|
|
|
All times are GMT -5. The time now is 11:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|