Displaying 20 results from an estimated 2000 matches similar to: "Resize a VM disk image"
2007 Jun 17
0
micro HOWTO build an HVM able image in one file
#
# create image file
#
dd if=/dev/zero of=hd.img bs=8225280 count=64
losetup /dev/loop0 hd.img
fdisk /dev/loop0
Device Boot Start End Blocks Id System
/dev/loop0p1 * 63 1028159 514048+ 83 Linux
# start sector = 63
# end sector = 1028159
# delta sectors = 1028159 - 63 + 1 = 1028097
2002 Mar 23
1
bad i_blocks count when FS full
I tried it on loop.
1. mount /dev/loop0 /mnt/test -t ext3
2. cp files to 100% full
3. umount /mnt/test
4. fsck.ext3 -f /dev/loop0
Inode xxxxx, i_blocks is xxx, should be yyy. Fix?
2007 Dec 19
2
Resizing a Xen DomU disk image
Hello Mailing List!
A quick question. Has anyone gotten a resize (in my case grown) a Xen
DomU disk image?
Here is the procedure I have followed:
1. Install a DomU using virt-install
Customize xvda to be all one partition ext3
2. On Dom0:
dd if=/dev/zero bs=1G count=1 >> <my_disk_image>
ll -h (Image is now 1GB larger)
xm create <DomU>
On DomU:
df -h (Size has not
2011 Jul 22
1
Make WINE detect an image as a CD drive with an audio disc
I've been trying to figure this one out for some time now without success and can't find anyone else with this exact problem, so hopefully there's a guru around here that might be able to point me in the right direction.
I've got a copy of Dark Reign I want to play on my netbook. The problem is that I only have a USB CD drive which I don't normally connect, but can for a
2012 Nov 04
1
syslinux installation problem
Hey, guys.
I have a problem when installing syslinux 4.06, and I'd be grateful if someone could tell me how to solve the problem.
My task - to install the bootloader on the virtual machine image. The image contains the MBR and the only partition with the file system ext4. The file system contains all the files for the guest OS.
To install bootloader into the image of the guest OS, I use the
2010 Jun 29
2
[LLVMdev] Confuse on getSCEVAtScope
hi all,
i have SCEVAddRec
{{(32 + @edge.8265),+,32}<Loop0>,+,4}<Loop1>
where Loop0 and Loop1 are brothers (loops at the same level of the
loopnest), and Loop0 have a computable backedge taken count.
when i call getSCEVAtScope({{(32 +
@edge.8265),+,32}<Loop0>,+,4}<Loop1> , Loop1), it just give me a
{{(32 + @edge.8265),+,32}<Loop0>,+,4}<Loop1>,
instead of
2004 Jan 26
0
[ANNOUCE] kpartx-0.0.2
Hello,
here is the second release of kpartx : the shameless perversion of util-linux's
partx.
As before it :
1) compiles against klibc
2) read partitions table like partx
3) drives the device mapper to present the partitions bdevs
Find it at http://dsit.free.fr/kpartx-0.0.2.tar.bz2
This release adds a interesting functionality : it can now read partitions
tables from regular files,
2009 Feb 24
0
why no /dev/loop0 in install chroot system?
Hi,
just out of curiosity:
Within a kickstart postinstall script, I tried to do a loop mount, which
failed. It turns out that there is no /dev/loop0 (no /dev/loop<x>).
After creating it with
mknod /dev/loop0 b 7 0
everything works fine.
Now this script executes in the chroot system. This is the system on the
hd. A plain chroot system should not have any /dev or /proc mounted. But
2008 Oct 03
2
OCFS2 with Loop device
hi there
i try to setup OCFS2 with loop device /dev/loop0
i've 4 servers running SLES10 SP2.
internal ip's: 192.168.55.1, .2, .3 and .6
my cluster.conf:
--------------------------------------------
node:
ip_port = 7777
ip_address = 192.168.55.1
number = 0
name = www
cluster = cawww
node:
ip_port = 7777
ip_address = 192.168.55.2
2008 Nov 01
2
Patching your own boot-disk from first principles
Hi,
I'm trying to build a bootable MSDOS disk and put it on a ISO with floppy and hard disk emulation. I want to use commonly available Linux tools like dd, losetup, mkdosfs, memdisk etc.
I have done the following:
1. dd if=/dev/zero of=myImage bs=1M count=50 [ Builds a 52MB image ]
2. losetup /dev/loop0 myImage [Links /dev/loop0 to myImage file ]
3. vi /grub/stage1; %!xxd; [ NULL the partion
2009 Jul 11
1
[PATCH node] fix mount_live again
fixes install from ISO
---
scripts/ovirt-functions | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index e01ee0e..3f55656 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -249,11 +249,13 @@ mount_live() {
return 0
fi
local live_dev=/dev/live
- if [ ! -e $live_dev ]
2007 Mar 26
1
Backing Up A Xen Guest
Here's the problem. We perform full tar backups of our CentOS 4/5
machines in real-time at regular intervals. And when a disaster happens,
we are able to restore those backups onto virgin filesystems, make
the /dev/null, /dev/zero and /dev/console devices .. and boot the
machine.
This has worked well on standalone systems, and also on Xen 3.0.3 guests
on CentOS 4.4 machines, where each guest
2013 Jun 12
0
Mounting RAID1 writeable with two devices missing but all data present
Hi,
I have potentially found a (minor) bug (or missing feature) in btrfs,
but it might be a misunderstanding, so I like to ask here first before
reporting in Bugzilla.
I have a btrfs file system in RAID1 mode with two missing devices, but
I know that all data is still present on the remaining device. btrfs
refuses mounting this fs in rw mode (too many missing devices), as it
probably just counts
2005 Sep 20
4
standalone bootable usb-stick
hi ya syslinuxerz
- i've been slowly working on a making a custom bootable
standalone usb-stick with X11 and kde
- it's basically builds itself off of a slackware-10.1 server
- create a custom initrd.gz ( /dev/ram0 )
http://linux-boot.net/Bootable/InitRD/
- create a custom rootfs.gz ( /dev/loop0 )
http://linux-boot.net/Bootable/RootFS/
- create X11 and kde loopfiles
2004 Oct 12
3
Problem with VBD
Hi!
$ xm create -n -f xmtest
Using config file "xmtest".
(vm
(name testdomain)
(memory 128)
(image
(linux
(kernel /boot/vmlinuz-2.6.8-foo1-XenU)
(ip :1.2.3.4:::tesmo:eth0:dhcp)
(root ''/dev/xda1 ro'')
(args 1)
)
)
(device (vbd (uname phy:loop0) (dev xda1) (mode w)))
(device (vif (mac
2013 May 24
1
Failed to create /dev/loop0p* entries for partitions inside loopback devices
centos 6 failed to create entries under /dev for newly created loopback devices. Any one know why? and how to fix/workaround it?
The steps to duplicate is pretty simple
dd if=/dev/zero of=/tmp/deleteme bs=1M count=100
losetup /dev/loop0 /tmp/deleteme
fdisk /dev/loop0?? ## created partitions 1, 2, etc.
fdisk -l /dev/loop0? ## confirmed that the partitions do exist
mkfs.ext3 /dev/loop0p1 ## failed
2007 Mar 19
1
Trying to get a cdwriter to write to loop device
I'm trying to use a shareware program called PowerISO to extract a .daa
cd image to a raw iso9660 format so that I can view the contents.
PowerISO runs like this:
________________
[nate@blackbox ~/.wine/drive_c/Program Files/PowerISO]$ sudo wine cdburn.exe
Password:
Usage:
cdburn <drive> -erase [image [options]]
cdburn <drive> image [options]
Options:
2003 Oct 07
3
Boot Failed: please change disks...
I had to create a single floppy image holding the kernel and initrd of SuSe8.0 distibution. When I boot the computer, it first loads the kernel, and starts loading the initrd. After a short while it halts saying ?Boot Failed: please change disks and press a key to continue.?
The floppy image is served by a PXE server, so I am not sure if the problem I am facing has anything to do with ?bad
2016 Mar 26
2
Follow up to adding EFI boot?
Have been trying some things, but something isn't working at least with using
Virtual Box with EFI option. With it off, the cd boots as normal, and works, but
with EFI on, it has an error that flashes on screen, and then it drops to a shell
prompt. I'm hoping it is just a dumb mistake I am making, and can be
resolved. Perhaps I've named the directories incorrectly, or there is a
2016 May 06
3
resize lvm
On May 06, 2016, at 12:29 PM, John R Pierce <pierce at hogranch.com> wrote:
On 5/6/2016 11:19 AM, Wes James wrote:
sudo resize2fs /dev/lvname/root
I get:
resize2fs: Bad magic number in super-block while trying to open
/dev/lvname/root
Couldn't find valid filesystem superblock.
what file system type is this /dev/lvname/root ?
I tried to find the type from blkid /dev/sda4