I have windows 7 and the factory recover on 2 of the partitions That I wish to keep
fdisk -l pvs vgs lvs df -h
[root@uspk10splunk ~]# fdisk -l Disk /dev/sda: 8589 MB, 8589934592 bytes 64 heads, 32 sectors/track, 8192 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000c255c Device Boot Start End Blocks Id System /dev/sda1 * 2 501 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 502 8192 7875584 8e Linux LVM Partition 2 does not end on cylinder boundary. Disk /dev/sdb: 536.9 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x69437664 Device Boot Start End Blocks Id System /dev/sdb1 1 52216 419424988+ 8e Linux LVM Disk /dev/mapper/vg_uspk10vsp03-lv_root: 3833 MB, 3833593856 bytes 255 heads, 63 sectors/track, 466 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/vg_uspk10vsp03-lv_swap: 4227 MB, 4227858432 bytes 255 heads, 63 sectors/track, 514 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/vg_opt-lv_opt: 429.5 GB, 429488340992 bytes 255 heads, 63 sectors/track, 52215 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
[root@uspk10splunk ~]# pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg_uspk10vsp03 lvm2 a-- 7.51g 0 /dev/sdb1 vg_opt lvm2 a-- 399.99g 0
[root@uspk10splunk ~]# vgs VG #PV #LV #SN Attr VSize VFree vg_opt 1 1 0 wz--n- 399.99g 0 vg_uspk10vsp03 1 2 0 wz--n- 7.51g 0
[root@uspk10splunk ~]# lvs LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert lv_opt vg_opt -wi-ao--- 399.99g lv_root vg_uspk10vsp03 -wi-ao--- 3.57g lv_swap vg_uspk10vsp03 -wi-ao--- 3.94g
[root@uspk10splunk ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_uspk10vsp03-lv_root 3.6G 1.5G 1.9G 45% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/mapper/vg_opt-lv_opt 394G 374G 422M 100% /opt /dev/sda1 485M 32M 428M 7% /boot
df -hT Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 322M 141M 165M 46% / udev devtmpfs 10M 0 10M 0% /dev tmpfs tmpfs 100M 260K 100M 1% /run /dev/mapper/deb--srv-root ext4 322M 141M 165M 46% / tmpfs tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs tmpfs 200M 0 200M 0% /run/shm /dev/sda1 ext2 228M 18M 199M 9% /boot /dev/mapper/deb--srv-home ext4 233G 188M 221G 1% /home /dev/mapper/deb--srv-tmp ext4 368M 11M 339M 3% /tmp /dev/mapper/deb--srv-usr ext4 8,3G 481M 7,4G 6% /usr /dev/mapper/deb--srv-var ext4 2,8G 236M 2,4G 9% /var fdisk -l Disk /dev/sda: 268.4 GB, 268435456000 bytes 255 heads, 63 sectors/track, 32635 cylinders, total 524288000 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: 0x00064033 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 524285951 261892097 5 Extended /dev/sda5 501760 524285951 261892096 8e Linux LVM Disk /dev/mapper/deb--srv-root: 348 MB, 348127232 bytes 255 heads, 63 sectors/track, 42 cylinders, total 679936 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: 0x00000000 Disk /dev/mapper/deb--srv-root doesn't contain a valid partition table Disk /dev/mapper/deb--srv-swap_1: 2143 MB, 2143289344 bytes 255 heads, 63 sectors/track, 260 cylinders, total 4186112 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: 0x00000000 Disk /dev/mapper/deb--srv-swap_1 doesn't contain a valid partition table Disk /dev/mapper/deb--srv-usr: 8996 MB, 8996782080 bytes 255 heads, 63 sectors/track, 1093 cylinders, total 17571840 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: 0x00000000 Disk /dev/mapper/deb--srv-usr doesn't contain a valid partition table Disk /dev/mapper/deb--srv-var: 2998 MB, 2998927360 bytes 255 heads, 63 sectors/track, 364 cylinders, total 5857280 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: 0x00000000 Disk /dev/mapper/deb--srv-var doesn't contain a valid partition table Disk /dev/mapper/deb--srv-tmp: 398 MB, 398458880 bytes 255 heads, 63 sectors/track, 48 cylinders, total 778240 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: 0x00000000 Disk /dev/mapper/deb--srv-tmp doesn't contain a valid partition table Disk /dev/mapper/deb--srv-home: 253.3 GB, 253289824256 bytes 255 heads, 63 sectors/track, 30794 cylinders, total 494706688 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: 0x00000000 Disk /dev/mapper/deb--srv-home doesn't contain a valid partition table pvs PV VG Fmt Attr PSize PFree /dev/sda5 deb-srv lvm2 a-- 249,76g 0 lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert home deb-srv -wi-ao-- 235,89g root deb-srv -wi-ao-- 332,00m swap_1 deb-srv -wi-ao-- 2,00g tmp deb-srv -wi-ao-- 380,00m usr deb-srv -wi-ao-- 8,38g var deb-srv -wi-ao-- 2,79g
# fdisk /dev/sda Welcome to fdisk (util-linux 2.25.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sda: 55,9 GiB, 60022480896 bytes, 117231408 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 Disklabel type: dos Disk identifier: 0x00015c35 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 19531775 19529728 9,3G 83 Linux /dev/sda2 19533822 117229567 97695746 46,6G 5 Extended /dev/sda5 19533824 23558143 4024320 1,9G 82 Linux swap / Solaris /dev/sda6 23560192 117229567 93669376 44,7G 83 Linux
# dmesg|less [ 84.343741] EXT4-fs (sda2): unable to read superblock [ 84.348074] EXT4-fs (sda2): unable to read superblock [ 84.352391] EXT4-fs (sda2): unable to read superblock [ 84.357159] XFS (sda2): Invalid superblock magic number [ 84.373676] FAT-fs (sda2): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! [ 84.373891] FAT-fs (sda2): bogus logical sector size 65535 [ 84.373897] FAT-fs (sda2): Can't find a valid FAT filesystem [ 84.378220] FAT-fs (sda2): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! [ 84.378444] FAT-fs (sda2): bogus logical sector size 65535 [ 84.378449] FAT-fs (sda2): Can't find a valid FAT filesystem [ 84.386262] ntfs: (device sda2): is_boot_sector_ntfs(): Invalid boot sector checksum. [ 84.386270] ntfs: (device sda2): read_ntfs_boot_sector(): Primary boot sector is invalid. [ 84.386275] ntfs: (device sda2): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover. [ 84.386279] ntfs: (device sda2): ntfs_fill_super(): Not an NTFS volume. [ 84.390737] MINIX-fs: unable to read superblock [ 84.395176] attempt to access beyond end of device [ 84.395185] sda2: rw=16, want=3, limit=2 [ 84.395191] hfsplus: unable to find HFS+ superblock [ 84.404204] qnx4: no qnx4 filesystem (no root dir). [ 84.408959] You didn't specify the type of your ufs filesystem mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ... >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old [ 84.417367] hfs: can't find a HFS filesystem on dev sda2