On Apr 12, 5:49Â pm, Richard Kettlewell <
r...@greenend.org.uk> wrote:
> Harry <
simonsha...@gmail.com> writes:
> > I have a very, Â /VERY/ basic idea of partitions; other than a 1-line
> > description of benefits of the LVM feature / concept, I don't really
> > know how to handle them, especially when something (like this) goes
> > wrong. Would you be able to (*please*) guide me with the necessary
> > steps that i need to carry out *now* to fix this situation? Can't even
> > begin to tell you, how much I would appreciate yours (or any other
> > reader's) help at this point. You can reprimand me as much as you like
> > on the way, I most certainly deserve it.
>
> At a guess what's going on is that you're attempting to mount /dev/sdb2
> when in fact your filesystem is not on sdb2 at all but in a logical
> volume somewhere within it.
Oh!
> If that's the case then you can use 'lvdisplay' to get a list of logical
> volumes, which should include the device name(s) you need.
>
I issued `lvdisplay -vvv` as root and this is what I got:
(Note: /dev/sdb is the device whose first 446 bytes got messed up).
Processing: lvdisplay -vvv
O_DIRECT will be used
Setting global/locking_type to 1
Setting global/wait_for_locks to 1
File-based locking selected.
Setting global/locking_dir to /var/lock/lvm
Preparing SELinux context for /var/lock/lvm to
system_u:object_r:lvm_lock_t:s0.
Resetting SELinux context to default value.
Finding all logical volumes
/dev/sr0: Added to device cache
/dev/scd0: Aliased to /dev/sr0 in device cache (preferred
name)
/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GH22NS50_K00ABGG0301:
Aliased to /dev/scd0 in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0: Aliased to /
dev/scd0 in device cache
/dev/disk/by-label/Fedora\x2016\x20i386\x20DVD: Aliased to /
dev/scd0 in device cache
/dev/disk/by-id/wwn-0x5001480000000000: Aliased to /dev/scd0
in device cache
/dev/cdrom: Aliased to /dev/scd0 in device cache (preferred
name)
/dev/cdrw: Aliased to /dev/cdrom in device cache
/dev/dvd: Aliased to /dev/cdrom in device cache
/dev/dvdrw: Aliased to /dev/cdrom in device cache
/dev/sda: Added to device cache
/dev/disk/by-id/ata-ST250DM000-1BD141_9VYF4LT4: Aliased to /
dev/sda in device cache
/dev/disk/by-id/scsi-SATA_ST250DM000-1BD1_9VYF4LT4: Aliased
to /dev/sda in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0: Aliased to /
dev/sda in device cache
/dev/disk/by-id/wwn-0x5000c5003f95ddd9: Aliased to /dev/sda in
device cache
/dev/sda1: Added to device cache
/dev/disk/by-id/ata-ST250DM000-1BD141_9VYF4LT4-part1: Aliased
to /dev/sda1 in device cache
/dev/disk/by-id/scsi-SATA_ST250DM000-1BD1_9VYF4LT4-part1:
Aliased to /dev/sda1 in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0-part1: Aliased
to /dev/sda1 in device cache
/dev/disk/by-uuid/9c08e3e9-e9aa-43fc-a76b-36179552271d:
Aliased to /dev/sda1 in device cache
/dev/disk/by-label/_Fedora-16-i686-: Aliased to /dev/sda1 in
device cache
/dev/disk/by-id/wwn-0x5000c5003f95ddd9-part1: Aliased to /dev/
sda1 in device cache
/dev/sda2: Added to device cache
/dev/disk/by-id/ata-ST250DM000-1BD141_9VYF4LT4-part2: Aliased
to /dev/sda2 in device cache
/dev/disk/by-id/scsi-SATA_ST250DM000-1BD1_9VYF4LT4-part2:
Aliased to /dev/sda2 in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0-part2: Aliased
to /dev/sda2 in device cache
/dev/disk/by-uuid/c3d258fd-5cf3-4da7-abab-c5903f940c7a:
Aliased to /dev/sda2 in device cache
/dev/disk/by-id/wwn-0x5000c5003f95ddd9-part2: Aliased to /dev/
sda2 in device cache
/dev/sdb: Added to device cache
/dev/disk/by-id/ata-ST380211AS_6PS0ND8D: Aliased to /dev/sdb
in device cache
/dev/disk/by-id/scsi-SATA_ST380211AS_6PS0ND8D: Aliased to /dev/
sdb in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0: Aliased to /
dev/sdb in device cache
/dev/sdb1: Added to device cache
/dev/disk/by-id/ata-ST380211AS_6PS0ND8D-part1: Aliased to /dev/
sdb1 in device cache
/dev/disk/by-id/scsi-SATA_ST380211AS_6PS0ND8D-part1: Aliased
to /dev/sdb1 in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0-part1: Aliased
to /dev/sdb1 in device cache
/dev/disk/by-uuid/27e07bc8-a9f3-4a0c-bed9-e73ac1fc95f8:
Aliased to /dev/sdb1 in device cache
/dev/sdb2: Added to device cache
/dev/disk/by-id/ata-ST380211AS_6PS0ND8D-part2: Aliased to /dev/
sdb2 in device cache
/dev/disk/by-id/scsi-SATA_ST380211AS_6PS0ND8D-part2: Aliased
to /dev/sdb2 in device cache
/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0-part2: Aliased
to /dev/sdb2 in device cache
/dev/loop0: Added to device cache
/dev/disk/by-label/Fedora-16-i686-Live-Desktop.iso: Aliased
to /dev/loop0 in device cache
/dev/loop1: Added to device cache
/dev/loop2: Added to device cache
/dev/loop3: Added to device cache
/dev/loop4: Added to device cache
/dev/loop5: Added to device cache
/dev/loop6: Added to device cache
/dev/loop7: Added to device cache
Opened /dev/loop0 RO O_DIRECT
/dev/loop0: size is 0 sectors
/dev/loop0: Skipping: Too small to hold a PV
Closed /dev/loop0
Opened /dev/sda RO O_DIRECT
/dev/sda: size is 488397168 sectors
/dev/sda: block size is 4096 bytes
/dev/sda: Skipping: Partition table signature found
Closed /dev/sda
/dev/cdrom: Skipping: Unrecognised LVM device type 11
Opened /dev/loop1 RO O_DIRECT
/dev/loop1: size is 0 sectors
/dev/loop1: Skipping: Too small to hold a PV
Closed /dev/loop1
Opened /dev/sda1 RO O_DIRECT
/dev/sda1: size is 475811840 sectors
Closed /dev/sda1
/dev/sda1: size is 475811840 sectors
Opened /dev/sda1 RO O_DIRECT
/dev/sda1: block size is 4096 bytes
Closed /dev/sda1
Using /dev/sda1
Opened /dev/sda1 RO O_DIRECT
/dev/sda1: block size is 4096 bytes
/dev/sda1: No label detected
Closed /dev/sda1
Opened /dev/loop2 RO O_DIRECT
/dev/loop2: size is 0 sectors
/dev/loop2: Skipping: Too small to hold a PV
Closed /dev/loop2
Opened /dev/sda2 RO O_DIRECT
/dev/sda2: size is 12582912 sectors
Closed /dev/sda2
/dev/sda2: size is 12582912 sectors
Opened /dev/sda2 RO O_DIRECT
/dev/sda2: block size is 4096 bytes
Closed /dev/sda2
Using /dev/sda2
Opened /dev/sda2 RO O_DIRECT
/dev/sda2: block size is 4096 bytes
/dev/sda2: No label detected
Closed /dev/sda2
Opened /dev/loop3 RO O_DIRECT
/dev/loop3: size is 0 sectors
/dev/loop3: Skipping: Too small to hold a PV
Closed /dev/loop3
Opened /dev/loop4 RO O_DIRECT
/dev/loop4: size is 0 sectors
/dev/loop4: Skipping: Too small to hold a PV
Closed /dev/loop4
Opened /dev/loop5 RO O_DIRECT
/dev/loop5: size is 0 sectors
/dev/loop5: Skipping: Too small to hold a PV
Closed /dev/loop5
Opened /dev/loop6 RO O_DIRECT
/dev/loop6: size is 0 sectors
/dev/loop6: Skipping: Too small to hold a PV
Closed /dev/loop6
Opened /dev/loop7 RO O_DIRECT
/dev/loop7: size is 0 sectors
/dev/loop7: Skipping: Too small to hold a PV
Closed /dev/loop7
Opened /dev/sdb RO O_DIRECT
/dev/sdb: size is 156301488 sectors
/dev/sdb: block size is 4096 bytes
/dev/sdb: Skipping: Partition table signature found
Closed /dev/sdb
Opened /dev/sdb1 RO O_DIRECT
/dev/sdb1: size is 1024000 sectors
Closed /dev/sdb1
/dev/sdb1: size is 1024000 sectors
Opened /dev/sdb1 RO O_DIRECT
/dev/sdb1: block size is 4096 bytes
Closed /dev/sdb1
Using /dev/sdb1
Opened /dev/sdb1 RO O_DIRECT
/dev/sdb1: block size is 4096 bytes
/dev/sdb1: No label detected
Closed /dev/sdb1
Opened /dev/sdb2 RO O_DIRECT
/dev/sdb2: size is 155275264 sectors
Closed /dev/sdb2
/dev/sdb2: size is 155275264 sectors
Opened /dev/sdb2 RO O_DIRECT
/dev/sdb2: block size is 4096 bytes
Closed /dev/sdb2
Using /dev/sdb2
Opened /dev/sdb2 RO O_DIRECT
/dev/sdb2: block size is 4096 bytes
/dev/sdb2: lvm2 label detected at sector 1
lvmcache: /dev/sdb2: now in VG #orphans_lvm2 (#orphans_lvm2)
Closed /dev/sdb2
No volume groups found
Does it look good to you?
What to do now?