I am having a Windows 7 laptop (500GB hard drive ) initially with 3 partitions ( C : around 100 GB and rest equally between D and E ) and one system reserved (very small around 400MB )(total 4).
Unaware of the fact that if we create 5 partitions in windows lead to change in basic disk to dynamic disk I did that and Created F by dividing D equally but I undo the operation by moving very small amount of data of D to E and merging all the drive to E.
Until this point I was having a * C(same) , E(around 300 GB) and F (around 100 GB (totally empty))* but not as basic one but as a dynamic disk.
Now I tried to install ubuntu onto the F drive but Ubuntu didn't find my partitions there. It showed me only 2 partitions: one was system reserved for Windows and the other of ~480 GB all of partitions as one (all because of dynamic disk). In this confused state I choose the option of lvm and clicked ok (as shown in figure). It showed me the option to write the changes or not. I clicked on Go Back and powered off the pc, But when I turned it back on I saw that Windows would not boot up and by checking the hard disk status from Ubuntu booted pen drive and seeing it as
My laptop hard drive is currently having one volume group ubuntu-vg consisting of 2 logical volume root and swap_1. I am unable to mount the root partition due to filesystem error. I have tried using logical volume manager which shows fs as none. Is there any way to recover the data from root lv?
sudo fsck /dev/ubuntu-vg/root fsck from util-linux 2.27.1 e2fsck 1.42.13 (17-May-2015) ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/mapper/ubuntu--vg-root The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> or e2fsck -b 32768 <device>
- It might have occurred that while Ubuntu created lvm2 it wipes the whole memory , please ans me if it has occurred.
- as far as i understood volume group and logical volume is just an abstraction . there can be a chance that data still resides in physical disk but i am not able to see it .
- while trying to mount the logical volume it shows me fs error .
lscmd shows me output
lrwxrwxrwx 1 root root 7 Oct 26 18:54 /dev/ubuntu-vg/root -> ../dm-0
- what will if i run
lvremovecmd to delete the logical view and then I be able to access physical volumes or they it will format the data.
ls -lL /dev/ubuntu-vg/root
brw-rw---- 1 root disk 252, 0 Oct 26 19:35 /dev/ubuntu-vg/root