Ice9 wrote:Ok so basically I would jjust partition the entire drive in a similar way to the old one, only larger partitions and the do
- Code: Select all
dd if=/dev/hda of=/dev/sda
since I indeed replace an old machine (IDE drives) withh a new one (SATA drives)
I assume I can do that with a regular knoppix cd?
EDIT:
I seem to remember that you once told me to dd the partitions separately?
In my case it would only be swap, / and home
What would the typical best size be for /, 20GB enough?
I have 10GB now and it's almost full.
As you said, you don't want to dd /dev/sda or you'll just wipe out your partition tables and the drive, you want to do the individual partitions (/dev/sda1, etc). Regarding swap, just create a new one. If your swap partition is /dev/sda2 then "mkswap /dev/sda2". Of course also don't forget to set the partition type to "Linux Swap" in fdisk. Make "/" however big you want. You might consider only making it as big as you need leaving a chunk of the disk unallocated. You can always go back and increase the size if you need more (assuming the free space is just after the partition you want to make larger). This is where LVM comes in handy.
The only reason I say that is that you may want to create a new partition for something else later and you'll have that free space available to do so. Personally I usually just allocate the entire disk and deal with chopping it up later if need be. Also, some people are big fans of separating the directory structure into separate file systems (separate /, /home, /var, /tmp, /usr file systems) but for desktops I find that to be more of a pain than it is worth.
Regarding can you use KNOPPIX, sure you can, or you just add the drive to your existing machine, do the partitioning/copying (but be wary of disk writes while copying, single user mode would be wise) and then move the drive to the new machine.