Quote:
Originally posted by russell108
If possible i would uninstall linux altogether but again i dont know where to start.
|
I assumed from this, that you DID want to delete Linux.
To make Linux partitions smaller is trivial, but moving them can be a real pain.
On Knoppix, the tool to shrink a ReiserFS is resize_reiserfs. The command you use is:
resize_reiserfs -s 10000M /dev/hda<partition#>
This will resize it to 10 gigabytes. Now you have shrunk the FILESYSTEM, but not the PARTITION. To shrink the partition, you use cfdisk.
To resize the ReiserFS partition, you must DELETE it, then RECREATE it at the new size.
1) Start cfdisk (cfdisk /dev/hda)
2) Select the ReiserFS.
3) Press "d"(for delete). It will then say "Free Space".
4) Press "n"(for new partition).
5) Type in 10050. (This is 10.05 gigabytes! This leaves a little room[50megs], incase the ReiserFS didn't quite shrink below what the partition is capable of.)
6) Press "W"(Capital W, for Write Table). Then type "yes"
Congratulations, you have just shrunk your ReiserFS and Partition to roughly 10Gb.
To MOVE(as in move the beginning of the filesystem/partition) a Linux filesystem, you have to have a "Free Space" equal to the size of the filesystem you want to copy. Then copy the filesystem INTO the "Free Space". This can be akward because "Free Space" isn't always in the most ideal places.
To copy a ReiserFS into "Free Space":
1) Use cfdisk to create a partition from the "Free Space" equal to that of the FS you want to copy.
2) Run:
mkfs -ct reiserfs /dev/<new partition to copy to>
3) Using Knoppix, mount both partitions.
4) As ROOT, Run:
cp -aR /mnt/original/partition/* /mnt/new/partition/
5) After you have verified that everything copied ok, you can delete then original partition. Also you will have to adjust /etc/fstab and your bootmanager to the new changes.
All this is given with NO warranties. Destruction of your system is not desirable, but is always possible. Make backups.