Chang babbled on about:
> as you can see. I made a big mistake for /usr.
> Could I move opt to / and the expand the /usr into /opt without
> formatting the resized /usr?
>
> IBM DevelopWork listed a method to have 2 mount points shem the same
> partition...
>
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/hda7              2086757     78126   1902604   4% /
> /dev/hda12              396623     41620    334522  11% /var
> /dev/hda10              774589       807    734425   0% /tmp
> /dev/hda9              1778462   1447549    240549  86% /usr
> /dev/hda8              1580769    460071   1040375  31% /opt
> /dev/hda11            10497107   3793013   6170738  38% /home
> /dev/hda6                15522      2333     12388  16% /boot

telinit 1
(wait, wait)
umount /opt
mount /dev/hda8 /mnt
cd /mnt
mv * /opt
cd /usr/local
mv * /mnt
cd /
umount /dev/hda8
mount /dev/hda8 /usr/local
telinit 3
(wait, wait)
(verify things are ok)

edit /etc/fstab
change:
/dev/hda8 <blah> /opt
to:
dev/hda8 <blah> /usr/local

there you go.. cross fingers, reboot

-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: http://linux.nf  Admin: http://hunley.homeip.net

There is no substitute for good manners, except, perhaps, fast reflexes.
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to