On Tue, 16 Jan 2001, Cameron Simpson wrote:
> On Mon, Jan 15, 2001 at 02:50:30PM -0800, Tony Mueller <[EMAIL PROTECTED]>
>wrote:
> | Here is my df:
> |
> | Filesystem 1k-blocks Used Available Use% Mounted on
> | /dev/sda6 1035660 52848 930204 5% /
> | /dev/sda3 23333 5947 16182 27% /boot
> | /dev/sda9 679880 40 645304 0% /tmp
> | /dev/sda5 2071384 1556028 410132 79% /usr
> | /dev/sda8 256667 17707 225708 7% /var
> | /dev/sda2 4134932 1878968 2045916 48% /home
> |
> | I would like to switch /usr to sda2 and /home to sda5
> | (I want /usr to be on the 4G partiton)
> | I have copied everything from /usr to /home and from /home to /usr.
> | Now I'd like to
> | mv home homeTmp -- and stay on filesystem sda2 (just rename and not
> | move anything)
> | mv usr home
> | mv homeTmp usr
> |
> | Then make the switch in fstab and reboot.
>
> If you've already moved the data (yes?) you can just change the mount points
> in the fstab and reboot. On the next boot it will mount the partitions on
> their new locations. No "mv home homeTmp" etc is necessary.
>
You don't even have to reboot. Change to single user mode, unmount
/dev/hda5 and /dev/hda2, remount them where you want them, and edit
/etc/fstab. Then you can do any other coppying you and deleting you have
to do. and change back to your normal run level. That way you don't have
to worry about anything changing on /home, or needing to access /usr while
making changes. (The mount, umount, vi, mv and cp are in /bin.)
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list