On Sun, 2003-12-07 at 14:35, Klaus Neumann wrote:
> Hi,
> Got a new, bigger HD. I succeeded in copying everything from hda1-3 to hdb1-3 
> using partimage. I can also boot into the new system. The only problem I have 
> now, is that my filemanagers, and df show the wrong (old) size of hdb3, about 
> 5GB free, whereas Qtparted shows the correct size of about 55 GB free. How 
> can I reclaim the missing 50 GB?
> hda3: ca. 10Gb
> hdb3: ca. 60Gb

I don't know if you can change the size of an image.

Here is how I would do it.


Install drive in box (assuming IDE1 slave for examples) and ensure BIOS
can detect it. Boot into Linux and login to your user's account. Open an
x terminal and partition and format the new drive as you wish.

$ su -
Password: 
# fdisk /dev/hdb

Exit with w to write the partition table.

Format the partitions with the chosen filesystems:

# mke2fs /dev/hdbX -> ext2
# mke2fs -j /dev/hdbX -> ext3
# mkswap -> swap
# mkreiserfs -> reiserfs
# mkfs.xfs -> xfs

Make directories for source and destination mount points. You need these
to keep out of an endless loop of copying itsself over and over.

# mkdir /mnt/source
# mkdir /mnt/destination

Mount your os partitions that you want to clone on /mnt/source
Mount your partitions on the new drive, making directory entries for
your separate partitions (/boot, /home, /var etc.). If you are just
copying a directory such as var, just cd to the directory you wish to
copy instead of mounting partitions on /mnt/source.

Now, cd to /mnt/source and pipe it over with tar.

# cd /mnt/source
# tar cf - . | (cd /mnt/destination && tar xBfp -)

Edit /etc/fstab as needed, install the boot loader if you moved a whole
distro, and it should work when it is installed in it's final position.

-- 
Phil
Our 2nd CD: http://www.cdbaby.com/naomisfancy
Naomi's Fancy performances: http://naomisfancy.virtualave.net/schedule.html


--
[EMAIL PROTECTED] mailing list

Reply via email to