Trouble with reducing /usr and /var

I wanted to expand the /tmp partition (On a Logical Volume.) on Fedora 9. So seeing 3 GB free space on /usr and /var in total, I tried to reduce them in single user mode. But it doesn’t let me unmount them.
I messed up for a long time. But someone said why I didn’t edit /etc/fstab for not mounting the file systems. So I did like this.

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
#/dev/VolGroup00/LogVol05 /home reiserfs defaults 1 2
#/dev/VolGroup00/LogVol04 /tmp reiserfs defaults 1 2
#/dev/VolGroup00/LogVol03 /var reiserfs defaults 1 2
#/dev/VolGroup00/LogVol02 /usr reiserfs defaults 1 2
UUID=eb422228-006b-488e-8aa2-78e211ec5667 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

Restarting in the single user mode after that, I could resize the file systems. But it’s not recommended since you can fail. Someone advised me to use a rescue CD and someone advised me to use Knoppix.

Leave a Reply

Your email address will not be published. Required fields are marked *

*