This could get a bit tricky, so use caution!!
Backup your /etc/fstab as fstab.bak or similar.
Instead of detaching /tmp from /dev/hda6 _live_, I would suggest removing the line that mounts /tmp from /etc/fstab. And reboot. ( If you are really brave, you can try umount /tmp rightaway )
Either way, now is the time to copy the contents of your root partition to your would-be root partition. I would choose to do it one MEG of data ( 1024*1024 bytes ) at a time.
dd if=/dev/hda1 of=/dev/hda6 bs=1048576
After mirroring, you can mount /dev/hda6 under a test directory and see if the contents are intact.
Now edit your / mountpoint on /etc/fstab and replace your root device with /dev/hda6.
mount -a -o remount
to remount all filesystems. If you use the RH mount version, you may have to use -O instead of -o, I cant remember.
Now, if everything works fine, you can mke2fs /dev/hda1 before placing it under /tmp in fstab.
Good Luck.
|