Skip to content

Instantly share code, notes, and snippets.

@agoddard
Last active December 19, 2015 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agoddard/9074e57ed2a80e715fb2 to your computer and use it in GitHub Desktop.
Save agoddard/9074e57ed2a80e715fb2 to your computer and use it in GitHub Desktop.
Y U NO
root@compute-710a:~# fdisk -l /dev/nova_local/ice-0000008c_disk.local
Disk /dev/nova_local/ice-0000008c_disk.local: 85.9 GB, 85899345920 bytes
16 heads, 63 sectors/track, 166440 cylinders, total 167772160 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: 0xca9ea009
Device Boot Start End Blocks Id System
/dev/nova_local/ice-0000008c_disk.local1 63 167771519 83885728+ 83 Linux
root@compute-710a:~# fsck /dev/nova_local/ice-0000008c_disk.local1
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext2: No such file or directory while trying to open /dev/nova_local/ice-0000008c_disk.local1
Possibly non-existent device?
root@compute-710a:~#
#lvdisplay output:
--- Logical volume ---
LV Name /dev/nova_local/ice-0000008c_disk.local
VG Name nova_local
LV UUID BlqHgb-sJVx-WI44-iion-MLZS-Jnab-UX7xV7
LV Write Access read/write
LV Status available
# open 0
LV Size 80.00 GiB
Current LE 20480
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:5
root@compute-710a:~# fsck /dev/nova_local/ice-0000008c_disk.local
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/mapper/nova_local-ice--0000008c_disk.local
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
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>
root@compute-710a:~# mount /dev/mapper/nova_local-ice--0000008c_disk.local /mnt/test/disk2
NTFS signature is missing.
Failed to mount '/dev/mapper/nova_local-ice--0000008c_disk.local': Invalid argument
The device '/dev/mapper/nova_local-ice--0000008c_disk.local' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@compute-710a:~# mount /dev/mapper/nova_local-ice--0000008c_disk.local1 /mnt/test/disk2
mount: special device /dev/mapper/nova_local-ice--0000008c_disk.local1 does not exist
root@compute-710a:~#
#trying kpart
root@compute-710a:~# kpartx -a /dev/mapper/nova_local-ice--0000008c_disk.local
root@compute-710a:~# file /dev/mapper/nova_local-ice--0000008c_disk.local1
/dev/mapper/nova_local-ice--0000008c_disk.local1: symbolic link to `../dm-27'
root@compute-710a:~# file /dev/dm-27
/dev/dm-27: block special
root@compute-710a:~# mount /dev/dm-27 /mnt/test/disk2
root@compute-710a:~# df -h | grep test
/dev/mapper/nova_local-ice--0000008c_disk.local1 80G 31G 46G 41% /mnt/test/disk2
@agoddard
Copy link
Author

agoddard commented Jul 2, 2013

MAGIC SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment