General :: Using DD To Transfer One Partition To Another Different Size Partition
Jul 24, 2011
i have got an old computer with some partition and one have linux slackware installed; it is all included there (root and a swap file); its size is almost 4 gb. Now i have a new laptop and i do not really want to reinstall linux on it; simply i want to transfer all things from old on new computer. The size of new hd is almost 12 Gb and i want to use entire with linux slackware. I will recompile new kernel on old computer for the new. Now, i think to use dd to make one image, this follow command may be good, i think:"dd if=/dev/hda3 of=./linux_slackaware.img bs=4096 conv=noerror"I use zipslack on msdos partition (hda2) to run this command; it will make a 4 gb file image partition;Now i ask you:it is possible to transfer and to adapt this image partition on a different size image partition?The new is 12 gb size.what are the right dd command parametres?
I've got a server that needs more space. To achieve this we added space (by extending the VMware disk attached to it).Normally this isn't an issue, because we just add an new partition and LVM it from there, but this host predates our deployment of LVM everywhere.
Our current theory is that the unallocated sectors can not be assigned because they aren't part of the extended partition, and thus ... we go in a circle.So what i believe the way forward is to extend sda4 so that i can then create an sda10 inside of it. Anyone have any ideas on how to do this? I was thinking gparted may do the trick ... but being a server i'm in runlevel3, with no X...
I am relatively new to Linux and Opensuse. I created the / root partition and now it is growing and maxing out. I have partitioner available to me but how do I change the partition size when the root partition is mounted. Do I login as root and then umount or modify fstab and restart and change from command line or do I format and reinstall everything? I have room to expand but not sure how to manage this?
I just looked at the "posting permissions" and unfortunately I'm unable to insert the screen copy of the kde manager's representation of the goal I want to hit.I got a dual boot system with 4 hard disks and grub installed on /dev/sdd1. Windows xp sp2 (only used for professional audio tools, don't whip me ^^) is installed on /dev/sdc1. The disk sdc is partitioned with the following settings:
Code:
/dev/sdc1 * 1 498 4000153+ b W95 FAT32 /dev/sdc2 499 18922 147990780 f W95 Ext'd (LBA) /dev/sdc5 499 1494 8000338+ b W95 FAT32 /dev/sdc6 1495 18922 139990378+ 7 HPFS/NTFS
When I partitioned the disk I was believing 4 Go were sufficient for windows xp but after years I realized that many applications were using the C: by default (no way to change it thru regedit or another workaround, hard-coding probably) installing stuffs and under windows this is impossible to use such blessed things like the unix's symbolic links !So right now I'm a little tight with the remaining space to work with windows xp. (Of course the swap file has been moved to another partition since the first day I installed xp...)
I have is to use the 7Go of unused space on this disk to size up the /dev/sdc1 partition. When using kde partition manager I noticed that there is no way to use the unused disk space to size up /dev/sdc1 directly.Do you think if I create a partition with the 7 Go of unused space that there is a way to size up /dev/sdc1 without messing up the bootloader ? I don't think GRUB matters about the new partition, it should get the /dev/sdc7 entry. For the backup there is no problem this partition is completely backed up every two weeks (as an image) so the datas may not be lost as a real catastrophic... but if there is danger for the other partitions... that's will be more annoying... but solvable ^^
Once partitioned I believe that there will be a way to "merge" the /dev/sdc1 and /dev/sdc7 partitions and then I would enjoy a new xp partition with 7Gb of free space (it would change from my actual 300Mb !!).Technically it would be possible this is just a question of chaining the different blocks each others and refer to the new space added.The last block in /dev/sdc1 would point to the first block that starts /dev/sdc7 and "that's all"... and /dev/sdc7 would disappear as a partition.
i want to know about the partition size of linux in my system..i have pentium 4 with 512 mb ram and 15 gb hard disk for opensuse 11.1..i want to know how much space should be allocated for /,/home ,swap etc and under what kind of partition they should be formatted (like primary,logical,extended etc)...kindly help me in this regards...I have windows xp and want to install opensuse with it.
ecently I tried to increase the size of my swap partition using GParted, but it wouldn't let me. I wondering if there was another way? Currently it's 795 MB but I want it to be 1GB
a client brought in an 160GB external HDD and wanted to get the files off it, there appeared to be no partitions on the disk but i thought it may have been formatted to use the whole disk. I tried to mount it as the various FS types the client thought it may have been to no avail.
I ran testdisk on it which told me that it previously had a mac partition table and a 210GB partition on it (which is larger than the disk) could anyone enlighten me as to whether or not this is even possible, and if so how could i retrieve the data?
I decided to clone my OS partition to another hard drive using dd (without any special options). I created the target partition before cloning (25GB) but it shows up as 21GB (source/original partition's size) in df, as well as ext2 instead of ext4.
I removed an ntfs partition I had in my HD and then resized my home partition with gparted to occupy all the available space. The resulting partition is supposed to be 129GB, and gparted/partition magic see that size. But the system does not, and all tools report the old partition size and the same free space I had before resizing.
whenever I try to download anything I get the error there's not enough space on my home partition; thus I was wondering if anyone would be able to tell me how to increase its size? I'm using ubuntu via vmware workstation.Here is the output of df:
Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 254964 0 254964 0% /lib/init/rw varrun 254964 52 254912 1% /var/run
I would like to know if it is normal to experience 10MB/s data transfer rates during copying between partitions on my local hard drives (Toshiba 250GB 5400rpm SATA) while having three times faster (30MB/s) transfer rates between local partitions and USB drives (Kingston 8GB).
I have tried to automate the configuration of a usb drive with not much success.
The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.
I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.
I got a new hard disk for my laptop and I want to move my Gentoo installation from old HDD to new.
Most simple guides recommend use of dd to copy the whole partition byte by byte.
I'm moving to the new drive because I don't have enough space on the old drive, so I don't want to simply clone the partition. Instead I need the destination partition to be bigger. Would dd work well in that case?
Assuming that I use same partition types on the new drive, would I be able to use simple cp with appropriate settings?
extended sata partition shrunk at 15 partition limit, how to re-enlarge i hit the 15 partition limit, forgetting it now exists for sata drives, thinking i would add more. upon creation of the 15th, it squished the end of the extended partition to meet the last logical partition, leaving a large unallocated portion after the extended partition, which seemingly nothing can be done with, just sat being wasted space. i have since deleted a few of those partitions, but so far have still failed to find a way to recoup the unallocated space back into the extended partition.
[URL]
if necessary, i'll do it the painful long winded way of backing up and starting the extended partition again from scratch, but i really rather wouldnt have to do that. i'm sure there must be a way of telling the extended partition to once again reach the end of the drive.
I've been using Ubuntu 10.10 for just under a week. Recently, a partition called 'Data' has disappeared, and all my music and documents along with it. The folder is not to be seen in Places or on my desktop. My only way of finding it is to go to terminal. But when I try to open it there I get an error saying I don't have permission to read it. In Puppy Linux and SliTaz I can easily find the partition and read it. What should I do to bring it back in Ubuntu?
I want to convert a vfat partition into an ext4 partition. This is on my wife's machine and she deleted the Windoze partition as she now prefers Linux. Here is the (edited) output from fdisk -l:-
/dev/sda2 514048 4708351 2097152 83 Linux /dev/sda3 4708352 6805503 1048576 82 Linux swap /dev/sda4 52693200 234436544 90871672+ f W95 Ext'd (LBA) /dev/sda5 59006800 234227699 87610446 83 Linux
I want to change /dev/sda4 to 83 to free up space for Linux without losing the partitions in this 'extended' partition!
I having a problem getting my grub loader to see one of my hard drives. I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version. From /proc/partitions the old hard drive is sdd
major minor #blocks name 8 0 976762584 sda 8 1 2104483 sda1 8 2 20972857 sda2
when I tried to install Fedora on my pc, I got this error message " Defined Root partition not created a / boot/efi partition. I am trying to install it on a seperate hd. My main one has windows xp pro, but I do not want to interfer with that at all?.
I need to change my LUKS partition to NTFS as I do not need the boot partition any longer, but I need to keep sdb3 (truecrypted ext3) intact. This is how the disk looks now:
Code:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
I wonder whether to place swap partition on LVM or on standard fdisk partition which will not be in LVM.What is better and more often used on production ?
USB flash disk partition disappeared as well as partition table I'm not sure about the cause
Code:
root@u# less /var/log/syslog usb 5-1: New USB device found, idVendor=058f, idProduct=1234 usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[code]....
Where did the partition table go? The device had one ext3 partition something around 4GB(size of USB storage device). I need to restore few files from this device.
I need install a debian server that will function as a domain controller, file server, webserver (PHP + MySQL) for an internal application. The number of users are 5 but I'm predicting an increase of more than five. I mirror 2 disks 160GB and want to create separate logical partitions for / usr, / opt, / var, / tmp and logically the primary /, / boot and SWAP. What is the best size for each partition? Time: ASUS P5VD2-VM Proc 1.6GHz 4GB RAM 2x SATA 160 GB.
I have 3 Ubuntu installations & a PCLINUXOS, plus Windows XP installed on one hard disk. I still can boot to each one of them and can mount each one using Ubuntu.
The problem "may" have occurred when I reduced the size of some linux partitions using gparted. I still have plenty of space in each of those partitions.
When I started gparted all of the HD was unallocated. I did that from each ubuntu installation and the PCLINUX installation, plus LIVECDs. All indicated the space was unallocated.
When I did an fdisk -l from a Puppy Linux LiveCD I got a normal start and ends of each partition.
When I tried it from Ubuntu installation or live cd, I received the following types of responses:
Code: ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda5
Disk /dev/sda5: 28.5 GB, 28566397440 bytes 255 heads, 63 sectors/track, 3473 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System ubuntu@ubuntu:~$ sudo fdisk -u /dev/sda5
The number of cylinders for this disk is set to 3473.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Plus the Windows partition seems to go over its limits.
Since all of my OS installations are still working, I don't know how critical this is. From reading another post, I understand this might be able to be fixed by making some changes in fstab.
My Windows XP Pro laptop has been attacked! Windows will no longer update and Microsoft Security Essentials will not update either. I've been trying to resolve the issue for over two weeks with Microsoft support, but it's just taking too long. I also tried some rescue CD options (all running some form of Linux, obviously):
- BitDefender Rescue CD (removed infections, now detects nothing), - Kaspersky Rescue CD 10 (removed infections, now detects nothing), - Trinity Rescue CD (won't load AV Engine, so can't use it to do anything).
Malwarebytes cleaned a bunch of stuff, but will not clean the final threat detected (it's supposed to get deleted on reboot, but never does). Hijack.FolderOptions is stuck in the accursed registry, and it keeps causing Windows Explorer to crash. I cannot rename files or work with them or everything just crashes.
So I'm ready to reinstall XP from scratch, and add a dual boot with Xubuntu & LXDE, which I'm already running on a much older laptop.
Question: I want to rescue the files I need. My idea was:
1) Install Xubuntu with dual boot. 2) Copy over files from Windows XP partition using Xubuntu. 3) Back up files to an external drive using Xubuntu. 4) Reinstall XP Pro and format hard drive. 5) Reinstall Xubuntu with dual boot. 6) Use Xubuntu for daily use. 7) Only use XP for those tasks that require it (TomTom updates ...)
Should I be concerned about the security risk from copying files from the Windows partition to the Xubuntu partition, and from there onto an external hard drive?
Is this the way to do it, or is there a better way? I just want my laptop back in working order. Right now I can't use it for anything.