On Mon, 15 Jan 2001, Tony Mueller wrote:

> Sorry for not being more clear.
>
> 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.
>
> Im I going about this problem wrong??

If everything that was under /usr is now under /home and everything that was
under /home is now under /usr surely you just want to umount /dev/sda5 and
/dev/sda2 and then...

        mount /dev/sda5 /home

.. and...

        mount /dev/sda2 /usr

... you really shouldn't (can't) rename mount points while they're in use
becuase them /etc/mtab (the list of mounted filesystems) won't agree with
reality.

Better yet, just make the changes to /etc/fstab and when you reboot
everything will be where it should.

M.

>
> On Mon, Jan 15, 2001 at 12:34:39PM -0800, Tony Mueller
> <[EMAIL PROTECTED]> wrote:
> | I would like to rename a large directory without a copy taking place.
> | (i dont have disk space for both directories to exist at the same time)
> | the command:
> | mv olddir newdir
> | makes newdir first and copies all the files from olddir into it.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to