LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-19-2017, 10:34 AM   #1
maxam
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
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
 
Old 06-19-2017, 12:31 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
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.
Old 06-19-2017, 12:54 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,547

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
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:
  1. 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.
  2. See if fsck can repair the filesystem on that copy.
  3. 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.
  4. Run "smartctl -A" on the drive to evaluate its overall health.
 
1 members found this post helpful.
Old 06-27-2017, 02:34 PM   #4
B-RAH
LQ Newbie
 
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13

Rep: Reputation: Disabled
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.
 
  


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
HD Mounting Error Message cmpdesignz Linux - Newbie 2 04-04-2017 01:51 PM
boot message: mount: mounting /dev/sda1 on /mnt failed: Invalid argument. stf92 Slackware 7 10-10-2014 03:51 PM
mount : mount error 2 mounting ext 3 Pivotroot: pivot_root(/sysroot,/sy TONYSUCCAR Linux - Enterprise 3 09-07-2009 05:08 AM
Error message when mounting fat32 Garda Debian 3 10-01-2006 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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