Re: Backing up with dd, and creating a file system on a new drive.



I just got my new 500 GB drive, and am excited about being
able to back up my 160 GB old drive. Since I am new to the
LInux camp, I need to know how to set up the new drive, and
how to use dd to image the 160 GB drive to the 500 GB drive.

After I do back up the small drive, and create partitions
beyond what dd writes there, will there be a problem with
using dd to rewrite the back up at a later date with the new
partitions beyond the backup partitions?

Can I use gparted to create an ntfs volume of the drive
first, then use dd to image the small one, or can I run dd
on the unformatted drive first to create the backup
partitions?

Since you are new to Linux, you may be better off installing KK anew
on your new disk and copying your data over. However, if you want to
copy your old disk to your new one:

1st and 3rd para answer:

I assume that you have Karmic on one partition (the default setup).

You can add the 500gb disk, boot from a Ubuntu CD, create an ntfs
partition, create another partition >160gb (no need to format it) , dd
your old install onto this partition, create a swap partition,
shutdown, remove the 160gb disk, boot from the Ubuntu CD again, mount
the new KK partition, run "grub-install --root-directory=<mountpoint>
/dev/sd<newdisk>", umount the partition, reboot.

The reason for the two boots that I am suggesting is that I expect the
"grub-install ..." to pick up the 160gb disk and to create device.map
that will be incorrect after the 160gb disk is removed.

PS: I prefer (although it is not necessary) to chroot the new disk's
mount before running "grub-install" but it is most probably
unnecessary...

2nd para answer:

If you want to create a backup of the 160gb disk, you will have to
boot from a CD, create a partition on the 500gb disk > 160gb, create a
file (eg 160gbbackup), and dd the 160gb disk to 160gbbackup (you could
also pipe the dd to gzip/bzip2 to compress the image.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
    ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
    (SunManagers)
  • Re: laptop - new HD - no CD or floppy drive
    ... I put the laptop HD back in the PC and I could boot from it. ... If the primary partition has an incorrect boot sector. ... If the disk geometry is incorrect. ...
    (microsoft.public.windowsxp.hardware)
  • Re: laptop - new HD - no CD or floppy drive
    ... I put the laptop HD back in the PC and I could boot from it. ... If the primary partition has an incorrect boot sector. ... If the disk geometry is incorrect. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Joining C and D drives
    ... Are C: and D: on the same disk? ... If there are too many files, move them to your backup disk. ... Delete the D: partition. ... Change the boot order in the BIOS setup screen, ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Can I boot of an XP System disk, nested in a logical volume
    ... I'll boot of Partition Magic or some other kind of magic and fix it that-a-way. ... It's been a long time since I messed with partitions like this, but in the back of my head I have this fragment about boring registry hands-on editing, 'derived Disk ID's' and the 'Master Boot Sector' -- that's S as in 'Senile'. ... One reason for the drive letter change on cloned drives is to keep the parent drive hooked up the first time the clone is booted, being that the clone has the same Mount Manager database, and being that the Mount Manager *always* respects drive letter assignments, it will see the parent drive and its valid disk signature and assign the C: drive letter to the original C: drive, so there will be no C: letter available for the clone. ...
    (microsoft.public.windowsxp.basics)