Now reiserfs is a database and has to be shrunk using a special tool:
So to reduce a partition by 30G, you would:
~# df /home
~# umount /home
~# resize_reiserfs -s -30G /dev/hda6
~# mount /dev/hda6
~# df /home
You should then see the partition shrink by 30GB. Once you have shrunk the
partition, you can delete it with fdisk and recreate it 30GB smaller (be
careful not to make the partition smaller than the size you have reduced
the filesystem by) and then make the /vfat partition.
Once you have done that, you will need to edit your fstab to include the
/vfat partition, and you need to mkfs.msdos (or mkfs.vfat - its the same
program really, explicitly declaring you want FAT32, or it will give you
~# mkfs.msdos -F 32 /dev/hda7
> I was hoping that I'd just be able to take 20 to 30 gig's off the end of
> the /home partition (which is a not inconsiderable 70 gig's in size) and
> then format the space as fat32 - Would this do the trick do you think -
> I know that this would position the fat32/vfat partition at the very end
> of the disc, but I shouldn't think that I'd need too worry about disc
> access speeds, I'm only considering this for my mp3's so it's not
> exactly what you'd call mission critical!
With any luck, with the partition resize, you shouldn't lose data.
Above is the text of an email that I got from one of the blokes at my LUG about resizing reiser partitions.
To start with, I'm using gentoo, and when I installed I also installed the reiserfs tools (reiserfsprogs), I suspect that the reiser_resize facility is in that package.
so whether you have it available, I don't know?
What I'm actually trying to do, is take space from my /home, make it a different partition, formatted as FAT32 and put all my mp3's in it, so they're available from windows as well as linux.
I thought it would be easy as I've got a copy of partition magic 8 in my windows install, and it was only when I couldn't just use that to resize my logical reiserfs formatted /home that I found out that not all linux HDD formats/filesystems are as easily manipulated as ext2 or 3.
I have got some other info about this, well about how I'm going to have to accomplish this, but I've got to wait as I foolishly decided to emerge sync/emerge -upD world/emerge -uD world when I got in from work @ stupid oclock this morning, and if you know anything about how long it can take to compile things in gentoo, then you'll understand that I've got to wait untill the latest KDE (3.3.2) has finished updating/upgrading.
Once that's done, I'll be actually doing the modifications that I want (the above text plus some other bits), if you emailed or pm'd me, I could always send you the link to our mail archives so you can read it all.