tonight I will get my hands on a shiny new Core 2 Duo system with a 320GB hard drive.
What would be my best option, do a full reinstall and then move my files from /home manually to the new system or could I transfer my existing system to the larger hard drive.
I cannot use the exact same partition scheme since I'm slowly but surely running out of space on all the partitions of my system at the moment, roughly had 6GB for / and 74GB for /home on a 80GB HDD.
new install
If it were me I would create the new partitions on the new drive larger than what they were on the old drive, then "dd" the raw file systems over to the new partitions and then resize them to the full capacity of the new partition with "resize2fs". It's very simple to do. If your partition names are different then they were on the old drive you'll need to modify the /etc/fstab to reflect the new names but other than that you should end up with exactly the same system, just more space available. Of course if you are running 3rd party drivers for video cards or network cards and these have changed on the new system you'll also might need to reconfigure some hardware configuration. If you have no 3rd party drivers and need no 3rd party drivers on the new system then your should should be done except for an X reconfig.
You could also rsync, specific file systems or the whole drive, or tar, or "cp -a" or ... ... . I always prefer the dd and resize2fs method so everything is exactly as I had it on the old system with little fuss. This is assuming you are replacing one machine with another.
You could also rsync, specific file systems or the whole drive, or tar, or "cp -a" or ... ... . I always prefer the dd and resize2fs method so everything is exactly as I had it on the old system with little fuss. This is assuming you are replacing one machine with another.
Ok so basically I would jjust partition the entire drive in a similar way to the old one, only larger partitions and the do
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.
Code: Select all
dd if=/dev/hda of=/dev/sda
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.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 dosince I indeed replace an old machine (IDE drives) withh a new one (SATA drives)Code: Select all
dd if=/dev/hda of=/dev/sda
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.
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.