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.
Kernel 220.127.116.11, GNU (Slackware 12.0). Bash 3.1.17.
I want to search an entire subtree of /, in the file system, for all files, with extension html, created on the hard disk. In addition, these have to be the last five created. I think I could split the problem into two parts: (a) Forget about the last condition. Then this is a job for the find command. (b) Sort the output of find using the date as the key, then use 'head' to print the desired output. But even two such simple steps are enough to justify the writing of a shell script. And here lies my weakness.
My script writing knowledge is rudimentary. What's the final purpose? Well, I lately saved four or five LQ pages onto disk containing information I consider valuable to me. But I don't exactly remember where on the disk. Then: either the problem posed is really of a very simple nature or it is not, in the latter case a script being mandatory. One of the algorithm drawbacks (the one described above) is that find may be running a great deal of time. My machine resources (RAM and CPU speed are low) are scarce and there possible are a large number of HTML files on the disk.
After 2-3 partition an extended partition automatically created in which I am not able to create specified capacity i.e., say I want 150g of /photos partition, the /videos partition is automatically reduced and a free space at the end appears. Some free space is always there which i am not able to understand. Nevertheless i clicked to create, but I get an error viz. 'device not created'.
is there a way to write/unpack .qcow2 hard disk image directly to real hard drive in Linux?(I know it's possible to unpack .qcow2 to .raw and then dd to drive, but I'd like to skip .raw since its large)
i have installed ubuntu today and i am enjoying it so far but there is still some problems am having i will explain from the start ,,,i have a hp laptop it has 1 hard disk c,d the d am not planing to mess with it because it has the hp recovery and it might be helpful one day ,,,,so i downloaded ubuntu to an external hard disk then when i was installing it i selected it to be installed on C i thought it would automatically delete vista but it didn't when the restarted the computer i saw 2 options vista and ubuntu so i was wondering if anyone can tell me how do i delete the vista and keep only 1 operation system and btw i have no CD or DVD or floppy available so i cant download it on a cd then format c and install ubuntu again so i need away to delete vista from c while keeping ubuntu in c
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?
After I burn the DVD image, I put the disc on the computer and boot. The installation screen appears, the acknowledgement screen appears, then the installation checks my system and gives me a yast window with an error about something related to URLs and repositories. I cannot continue with the installation.
I am 100% new at this and thought it would be as easy as installing ubuntu (which I installed on a laptop and works flawlessly).I am trying distros and opensuse is compatible with my video card right out of the box apparently, so that's why I chose it for my desktop.Do I need to copy the dvd image to the hard disk of the computer I want to install opensuse on, and use the dvd to boot as well?
I'd like to create a boot floppy or CD to restore an image from a harddisk over the network, and it should work possibly automatically. A normal, non-IT user should be able to do it in our branch abroad.
I just invested nearly 12 hours configuring a CCTV system using CentOS 5.5 Server and Zoneminder. I have it setup just the way I want it. I would like to make a clone image of the drive just in case disaster strikes (lightning strike, failed hard disk, etc). In the Windows PC world, I use a program called Ghost to make a mirror image of a hard disk. I power the computer down, run Ghost to make a block level clone of the drive, then power it back up. Can I assume that will work with CentOS without problem?
In the computer now is a 320GB SATA drive. One partition on it is swap, and the other is ext3. There is no raid setup on the drive. I have an identical 320GB drive I could use and keep it in the computer unplugged from the power and not spinning. That way if anything ever happens, I can power down, move the power and data cable to the new drive and power it back up. Granted, I will lose any new config and database changes, but it will be a lot better than starting back at square 1 and reconfiguring the entire OS and software.
this is in the wrong section, but I wasn't sure where to put it. Since the background to my problem is kind of long winded I've split this post into two sections: Short version of problem
I have a PC that has two internal drives: one drive (drive A) is empty, and the other (drive B) has a copy of windows vista installed. At the moment the PC boots from drive A. I'd like to transfer everything from drive A to drive B, so that this new disk will boot and behave nicely and windows will still function.
Is there any easy way to do this in ubuntu? I'm guessing I can use something like dd, but will this copy the boot sector and will I have to mess around with the partition table? Long version of the problem
Today I built a new PC for my dad with two internal drives. He was previously using vista on a laptop which died a few days ago, and I'd like to install vista on one disk of the new PC, and ubuntu on the other disk.
He has a licensed copy of Vista for his laptop, but it came as a "system restore" disk, and so I can't install vista directly onto the new PC. I have an identical laptop to his, so I took out the drive from his laptop, put it in my laptop, and did a "system restore" from the disk that came with the laptop. I then took out the drive from my laptop, and put this inside the new PC. It boots up fine, and I installed all the necessary drivers and etc to make windows work.
Now instead of using a slow/small laptop drive inside the new PC, I'd like to be able to clone the data on laptop disk and this onto one of the bigger/faster internal drives of the new PC. How can I do this from ubuntu, so that the new drive will boot windows?
I'm fairly certain it can be done using dd, but how do I make sure the information in the boot sector (or partition table) is correct for the new drive? I'm asking this because when I put my laptop drive into the new PC initially, I had connected it as an external drive, and when I tried booting from this there was an error, something like "Invalid partition table" (I think). I figured that when I did a "system restore" on my laptop, the drive was the only drive available, so this would be HDA, or SDA in the boot record of that disk. But when I added it to a system where other drives were available, it was no longer at that same location, so the boot loader couldn't find the data it was looking for to load the system.
I'm trying to install debian-18.104.22.168 from hard diskand it can't find my iso image wich is on the slackware partition.i downloaded initrd.gz an vmlinuz,added some lines to lilo.conf so that i can boot but then when it searches for the iso image doesn't find it .
I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...
I would like to build a bootable system image on an attached hard disk on a running CentOS machine.The hard disk would be moved to a headless server, where only SSH access would be available. It seems that all the documented install methods assume that the installation runs on the taget machine. In this case, I would like to create a bootable system image of CentOS on a running host system. The new install mage would generally have a newer version of CentOS than the running host system where the image is created. Also, I would prefer to do a text-based install.
The reason for all this is that I have network access to several remote machines. I can ask disks to be moved between machines, but I have no physical access. In order to do software testing, I would like to have several system disks with different installed CentOS versions. It would be easer if I could build the system disks on one single machine. The hardware an all machines is very nearly identical.
I need little help on live disk creation and disk image backup.
Can I create live disk using my hard drive installation? If yes then, can I restore the fedora from the live disk to the hard drive. I mean to say that from that live disk can I install fedora again in my hard drive.
Second question is, if I create the disk image of my hard drive( including ntfs & FAT32 partition) , can I restore it in a blank drive. If so , then can os will be restored also?
I have a file on a separate hard drive and it wont allow me to delete it.how I navigate to it in the terminal so I can remove directory there? I plug my usb lead in and go /hoome/boo/Iomega_HDD (name of the hard drive)but I cant get there,it doesnt show up as a directory.
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work
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 have never used rsync before, only DD. But from what I have been reading, rsync is better becasue it will basically mirror your hard drive, thus being able to run the cloned software from the new hard drive. My problem is I do not know what is the best commands or even the basic commands to use in rsync. I am trying to make an image from a external hard drive to a usb drive. That way my chances of messing up he original software is not as risky becasue I'll just restore the image onto another hard drive. Does anyone know the best script to have rsync make an image file of a hard drive and place it on a usb drive and then restore it?