I am currently running F12 beta on a laptop w/ a 40gig drive. I have ordered a 160gig drive as a replacement.
My partitioning is as follows
/boot - 200Mb ext4
swap - 1024Mb
/ - rest of drive ext4
If I am happy to preserve this partitioning, will I be able to duplicate the drive to the bigger 160gb one? I will then partition and mount the remaining space as a separate data ...
If you trust in wikipedia you can do so:
"dd if=/dev/hda of=/dev/hdb - Copies whole harddisk hda to another (hdb)."
It's not in the english wikipedia, don't know why. I think it should work, but I haven't tried this yet. At least try it, copy the data like above and if your PC wouldn't boot with the new harddisk, you just can attach the old one again.
Use gparted to partition and format the new drive, then use clonzilla to copy everything over. Last, after removing the old drive, boot from a Live CD and reinstall grub.
dd will waste the extra space. That is, dd a 40 GB drive install to an 80 GB and you don't get extra room on existing partitions.
One way is put both in one machine, boot from a live cd, make two directories, /mnt/src and /mnt/dest.
Then
(cd /mnt/src ; tar -cf - .) | (cd /mnt/dest ; tar -xvpf -)
The tar method is still fairly popular. Haven't used clonezilla though, and ...
The reason I suggested clonzilla is that it can clone a partition to any other partition that's at least as big as the source. I'm not sure, off hand, how it handles partitioning/formatting, so I suggested using gparted first, just to make sure it's done, and done right.
If you're going to be using gparted anyways, why not just copy and paste the partitions while you're there? Why get anything else involved if you don't have to.
That's my suggestion anyways, gparted may not be the best way or the fastest way but it's definitely the most convenient and usually a safe bet.
I also have to agree with scottro about dd, but then do I tend to avoid dd ...
i've done this with acronis true image - you can tell it which partitions to expand, you'd have to have a supported filesystem though, and i wouldn't try it with any luks-encrypted partitions as i think that would not work at all.
I understand dd will waste the space but I don't really mind, I'm going from 40gb to 160gb so 120gb data partition is enough for my purposes. Its a 'web appliance' so the extra space is mainly so I can dupe my mp3 collection to server over ampache, DLNA etc.
Thanks for the hints and all, looks like option 1 dd, option 2 clonezilla, option 3 acronis.
as for gparted, I understand I can ...
EDIT: sorry missed the fact you're using a laptop and have to ditch the old drive
still, LVM solves the problem of partition size doesn't it?
are you not using LVM?
it kinda makes all this a non-issue
just add the new drive to your volume group and carve it up however you like
Dave
Hi all Just wanted to let y'all know that the dd command worked perfectly. Took ages though as it was via an external USB to SATA converter (~4Mb/sec.... agonizing even with only 36Gb to dupe). Thanks all
Absolutely, just copy and paste the partition over then once it's done resize it to whatever you want. That's how I backup fresh installs of Windows. I resize it to almost nothing then copy it, when I need to copy it back I just resize it afterwards. Edit - BTW don't partition the disk beforehand, copy and paste the partitions to unallocated space.
This operation turned out fine. My Mythbox can now hold an additional 500 hours of HD programming. Two notes: I used the KDE partition GUI. Gpartd looked just fine, BUT it did not support copy and pasting of XFS partitions. (Which is the fs type used by my Mythbox.) KDE partition manager did. Go figure. Neither manager supports copying and pasting of the elements of extended partitions. My "/" and swap fs are contained in an...
The reason I suggested clonzilla is that it can clone a partition to any other partition that's at least as big as the source. I'm not sure, off hand, how it handles partitioning/formatting, so I suggested using gparted first, just to make sure it's done, and done right.
In FreeBSD, the standard method is dump and restore. Some VERY cursory googling indicates that this can work for Linux as well. Wondering if anyone has tried it, and if so, how were the results
If you trust in wikipedia you can do so: "dd if=/dev/hda of=/dev/hdb - Copies whole harddisk hda to another (hdb)." It's not in the english wikipedia, don't know why. I think it should work, but I haven't tried this yet. At least try it, copy the data like above and if your PC wouldn't boot with the new harddisk, you just can attach the old one again.
EDIT: sorry missed the fact you're using a laptop and have to ditch the old drive still, LVM solves the problem of partition size doesn't it? are you not using LVM? it kinda makes all this a non-issue just add the new drive to your volume group and carve it up however you like Dave
i've done this with acronis true image - you can tell it which partitions to expand, you'd have to have a supported filesystem though, and i wouldn't try it with any luks-encrypted partitions as i think that would not work at all.
Another option is to buy a USB Data Transfer Kit. It is a USB-based system comprising software and an empty external drive case. You install your upgrade drive into the case and duplicate the contents of your old drive straight to the new one. You then swap the drives; the new drive in your laptop now contains your complete OS, data, and apps, and, as a bonus, you can use the old drive in the enclosure as an external backup unit. Let me know...
Related threads on "FedoraForum.org - Fedora Core Support Forum & Community":
Thread profile page for "duplicating hard drive to bigger one" on http://www.fedoraforum.org.
This report page is a snippet summary view from a single thread "duplicating hard drive to bigger one", located on the Message Board at http://www.fedoraforum.org.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity