I have a bunch of disk images, made with ddrescue, on an EXT partition, and I want to reduce their size without losing data, while still being mountable. How can I fill the empty space in the image's filesystem with zeros, and then convert the file into a sparse file so this empty space is not actually stored on disk?
> du -s --si --apparent-size Jimage.image 120G Jimage.image > du -s --si Jimage.image 121G Jimage.image
This actually only has 50G of real data on it, though, so the second measurement should be much smaller.
This supposedly will fill empty space with zeros: cat /dev/zero > zero.file rm zero.file But if sparse files are handled transparently, it might actually create a sparse file without writing anything to the virtual disk, ironically preventing me from turning the virtual disk image into a sparse file itself. :) Does it? Note: For some reason, sudo dd if=/dev/zero of=./zero.file works when cat does not on a mounted disk image.
I know there are many threads about recovering damaged superblocks. I've spent 3 evenings reading them and trying what they suggest. Invariably the commands do nothing except to report bad or missing superblocks. I've removed the physical disk from the machine and am working with a dd image file (/mnt/image). I can mount what used to be hdc1 and read its files with no problem. I'm trying to recover partions hdc6 and hdc7.$ mmls /mnt/image -b
DOS Partition Table Offset Sector: 0 Units are in 512-byte sectors
I created a VM disk image with kvm-img, but I forget what was the max size of that disk image when I created it. Currently, its size is 6.2G, I want to install some large packages in that VM, so I want to make sure the disk image can expand to an adequate size.
I want to create a compressed ISO image file and mount that file to one of the virtual drives and access the content (read-only) without worrying about manual decompression/extraction.For Windows and Linux (Ubuntu) OSes.
I'm using Ubuntu 9.1 to try to make a disk image of my Windows operating system that I'd like to save to an external hard drive. Currently, I'm just running Ubuntu off the cd. Having checked the "Ubuntu Software Centre" on my computer, I notice that it has Brasero installed, and I was wondering:
1) First off, where can I find it? (Is there a search function in Ubuntu like Windows?)
2) Is Brasero a good choice to create a disk image?
i ahve to boot it from the command like an executable but i dont know how to exactly and when i thought i had it figured out i didnt know how to write the name of the file in the disk ubuntu just kept saying file or directory not found
I have a Windows XP pc that has become corrupted and I have a image of the drive that I want to restore, however Drive Image won't allow me to restore to the main system drive. I was wondering if it is possible to use the Live CD and then do the restore through Ubuntu. I know it's probably a long shot but thought I'd ask anyway.
I'm using andLinux and for whatever reason, emacs seems to think that the file I'm editing has been changed every time I try to edit/save and keeps reprompting me. Very annoying. Is there a way to make emacs stop checking the file on the disk?
1. Make a disk image of my 9.10 system (formatted ext3, btw) on my Syology CS407 NAS so I can do a bare metal restore. Why is this a couple of clicks on my Mac and Windows boxes, but so far not easy on Jaunty? Did I miss something?
2. Drivers. Why can't I just have an automatic wrapper for Windows drivers so I can use any printer or scanner, or a simple point and click driver install for native drivers? I have my ethernet connected Brother MFC-7820N, and the Samsung CLP-315 that runs off my CS407 installed and working on my Jaunty, but it was way more work than expected. What is the easy, automatic or point and click way to install drivers?
3. Graphics drivers. I have decent cards in my big boxes, Nvidia GTX 200 series. But when I get kernel updates, I have to uninstall and reinstall the graphics driver. Is there an easy way to keep this working?
4. Is there one flavor of linux distro that has a really consistent standard for user interface? I like to be able move things around, but do like my menus to be consistent (and do I ever hate the MS ribbon!). I've really only tried Ubuntu.
Linux installs have come a long, long way from the old days, and are such a point and click operation that I just wonder what I'm doing wrong. Someone is bound to have sorted these things.
I tried installing Ubuntu 10.04 WS on my PC but it did not see any disks to install on. I believe this is because my drives are all configured as RAID. My mobo is an Asus M3A78-EMH HDMI AM2+ socket with an Athlon 2X 5000+ CPU. The chipset is AMD 780G. I have the BIOS configured for RAID drives and I already run Win XP x32 and Win 7 x64 on it. My boot drive is configured as 'RAID READY' and I have 2 RAID 1 disks consisting of pairs of SATA drives.
From what I have researched it seems that with some tuning it should be possible to install Ubuntu 10.04 but I have little Linux experience and don't want to mess up my existing drives. I have installed Linux before a few times and run it but never with RAID. Is anyone aware of an existing disk image that I will be able to install from on my system or would it be possible for someone to create one for me to use?
Vista Recovery Windows 7 GRUB Extended -->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I am trying to upload some pics on my Facebook account using Firefox. When I click on Facebook's file upload icon, Firefox bring up a 'File Upload' window. I noticed that smaller image file is previewed on the lower right hand corner, while bigger image file is not. Is there anyway I can change this behavior or maybe change what Firefox is using to browse my files?
Sorry I am not a linux user at all. I have a linux image that needs to be installed. I have the image on a USB drive. Not really sure what I should be doing, but local disk seemed to make sense, however, when I select the usb drive I get an error, that the image can not be found
I have a large qcow2 formatted disk image, which I use as storage. Often I need to move data to and from this disk image. I mount the disk using the qemu-nbd tool as follows:
modprobe nbd max_part=63 qemu-nbd -c /dev/nbd0 /host/disk100G.img mount /dev/nbd0p1 /home/rup/disk
But disk access fails every now and then in the midst of some I/O operation with an "Input/output error". At that point I have to manually unmount the disk and re-mount it so that I can run the program again:qemu-nbd -d /dev/nbd0umount joborkhaki/What could be the reason for this? Is there a better tool that I can use to maintain a qcow2 disk image?
I am new to the Linux world and I am not sure if what I am trying to do is achievable or not. I am trying to make an image of my existing drives running Linux on a USB and I want to use the same image off the USB to clone more bootable hard drives. Something like what Ghost does in windows. The problem is using 'dd' the image is too big ( I have 1tb drives ) and then I am not sure how to convert these images back on to new drives so that they boot in the OS as well. i am not sure if there is a utility that would let you do that?
Well today I decided that I couldn't wait for the offical release of 10.04 LTS, so I upgraded from 9.10 to 10.04 LTS Beta 2. After realizing that many problems had come with that update, I decided to just format my Ubuntu partition and reinstall it. Somehow my GRUB stopped working from when I formatted Ubuntu, so I whipped out the old Toshiba recovery disk for Windows Vista 32bit. After many attempts to have the recovery portion of the disk fix all of my problems and seeing no results, I decided that reinstalling Ubuntu (and GRUB) might make everything all better. Well it didn't. Grub shows my Windows partition but fails to boot it. After selecting it, it goes to a blank screen and stops responding. And to add to all of my problems, my BIOS has changed slightly. It no longer shows/or responds to F2 or F12 when I tried to give another try at that Toshiba recovery disk. That kinda sucks since I can't choose what to boot. Please help me!! I really don't want to have to format my entire hard drive and try to install Windows Vista again (Not that Vista is anything anyone should love) I have many expensive programs that can only be activated a certain amount of times. I don't even think that I could reinstall Vista since my BIOS won't let me boot the CD/DVD drive.
I have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.
I have a 2 TB disk in an external SATA dock, formatted with a single ext3 (Linux) partition, which doesn't show up in the Windows 7 Computer Management->Disk Management utility, even as a raw/blank disk. I've verified that there's nothing wrong with the disk by connecting it to my Linux machine and mounting it, and I've verified that the dock is functioning properly by connecting a different FAT32-formatted disk, which mounts flawlessly as expected.I realize that I can't actually read the ext3 partition without additional software (e.g., Ext3IFS), but why doesn't the disk show up at all? Is there some sort of stupid anti-Linux filter built in? Is there any way to force Windows to recognize the disk, so that I can at the very least use direct block access with it?
Background: I want to clone an identical 2 TB disk onto this one. Due to my hardware layout, it's much easier to have the source disk attached to one machine and the destination disk connected to another, and do the clone over the network (the network is not a bottleneck with switched gigabit ethernet), than it is to hook them both up to one machine.(1) I did this once before when both machines were running Linux, but I've since upgraded the destination machine and decided to switch back to Windows for regular desktop use. I've got Cygwin installed, and have verified that the same basic method (dd + nc) will work, but I can't do anything if Windows doesn't even consider the destination disk to exist.I only have one eSATA port on each machine. Opening them up just to do this clone is a rather large annoyance. Also, since this is my backup disk, I'd like to eventually automate the cloning from the active disk to another one that I regularly swap with a third disk that I store off-site.