HOME -> LINUX-PMAC -> REFORMAT


Reformat the old partition

Frist copy everything on my old partition to the new one. If I can boot from it, I have my backup, and I can safely reformat the old partition, and then recopy back everything.

tar cf - bin boot dev etc home lib sbin tmp usr var | (cd /mnt; tar xf -)
cd /mnt
mkdir proc mnt mac
vi etc/fstab
# swap hda9 and hda11
shutdown -r now

While booted into the new partition I rebuilt the filesystem on the old partition and copied back everything.

umount /dev/hda9
mke2fs /dev/hda9
mount /dev/hda9 /mnt
tar cf - bin boot dev etc home lib sbin tmp usr var | (cd /mnt; tar xf -)
cd /mnt
mkdir proc mnt mac
vi etc/fstab
# swap back hda9 and hda11
shutdown -r now

Now my old partition was as before, but finally with enough inodes. The new partition contains a backup of the old one, to be used in emergency situation. At this point I can continue with building up my Linux installation.


Last updated: 1999-08-30 by Claudio Nieder