Category: storage
Mounting an LVM Logical Volume in an Oracle VM Disk Image
# losetup /dev/loop0 System.img# kpartx -a /dev/loop0# ls -l /dev/mapper/loop0*brw-rw—- 1 root disk 253, 0 Jul 14 19:57 /dev/mapper/loop0p1brw-rw—- 1 root disk 253, 1 Jul 14 19:57 /dev/mapper/loop0p2 # file -s /dev/mapper/loop0p2/dev/mapper/loop0p2: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW # vgscan Reading all physical volumes. This may take a while… Found volume group “VolGroup00”…
Read More “Mounting an LVM Logical Volume in an Oracle VM Disk Image” »
Is there a way to somehow mount a (shutdown) Xen disk image and browse files?
Yes .. Many .. One is# losetup /dev/loop0 System.img# kpartx -a /dev/loop0 # ls -l /dev/mapper/loop0* brw-rw—- 1 root disk 253, 0 Jul 14 18:53 /dev/mapper/loop0p1brw-rw—- 1 root disk 253, 1 Jul 14 18:53 /dev/mapper/loop0p2# mount /dev/mapper/loop0p2 /mnt Another is # fdisk -l -u System.img… Device Boot Start End Blocks Id SystemSystem.img1 * 63 208844…
Read More “Is there a way to somehow mount a (shutdown) Xen disk image and browse files?” »
A basic LVM Setup
# fdisk -l Disk /dev/hda: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/hda1 * 1 13 104391 83 Linux/dev/hda2 14 522 4088542+ 8e Linux LVM Disk /dev/hdb: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders…
Accessing NTFS Partitions from Linux
This is basically done by two methods:– The NTFS kernel module – The NTFS user space programsfrom the kernel source or http://www.linux-ntfs.org/ The NTFS Kernel ModuleHave a check at the wiki page Youmight find an appropriate prebuilt driver for your current kernelversion. Then you can do normal mounts etc on NTFS partitions. Oneproblem here is…
Linux DVD9 to DVD5
Found and used dvd95 and that works quite nice with gnome – also with kde .. But has problems with some dvds..Testing k9copy. That is exclusively for KDE .. But EL and fedora does it nicely along. Hastested k9copy .. That is nice too .. But did not solve the some-dvdissues .. It seems now…
udev: what, why, how?
udev is introduced with the 2.6 kernel (ie not available in RHEL3 and before)And that is solely for device name persistence. It is mainly a problem whendisks are external / via HBA, and the names across reboots and/or clusters mightnot be the same. We have been using devlabel to be able to get some persistence…
How to Mount Volumes from a Rescued LVM Disk?
Say we have a LVM’ed /dev/sdd1 and we have to mount logical volume LogVol00 in it.. # file -s /dev/sdd1 /dev/sdd1: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW # vgscan Reading all physical volumes. This may take a while… Found volume group “VolGroup00” using metadata type lvm2 # vgchange -a y VolGroup00 2 logical…