LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-278909/)

Kanon 01-17-2005 12:23 PM

Mounting
 
I got a _small_ Q here...

I have setup a system with 1 hdd devided in 3 (durring the Deb install).
  • 1. bootable
    2. swap
    3. home
What I want is to have my /www on the 3rd partition where /home resides. But not inside /home. How can I get that done? Is it just like a normal mount?

leonscape 01-17-2005 12:52 PM

Yes just like a normal mount, First though you'll have to do some work as root, to move home back onto the root partition.

So login as root, and unmount /home and make a dir in /mnt to remount it. say /mnt/home mount it then transfer the contents using mv to /home.

umount /home
mkdir /mnt/home
mount /dev/hda2 /mnt/home
cd /mnt/home
mv -f * /home/

Now we need to move any contents of www to the partition, unmount it and remount it as www.

cd /www
mv -f * /mnt/home/
umount /mnt/home
mount /dev/hda2 /www

Now change fstab mountpoint from /home to /www.

Kanon 01-17-2005 01:30 PM

Tnx for the fast reply!

Just checkn....this wil move /home to hda1 and /www to hda6 (in this case), right?

I guess I could have been more specific... I want to move /www to reside next to /home.

The reason I asked is because /home does not apear as a symlink.

leonscape 01-17-2005 02:12 PM

What I've written will change the third partition from home to www. If you want www as a new partition, you'll need to repartition the disk.

home is not a symlink its a directory, you've have it as a partition, but the home directory always exists, but its used as a mount point for a partition.

Kanon 01-18-2005 02:45 AM

Ok, then I understod you right. Hmm.... I worked on a new server until 3 in the morning. D***. Next time I'll do that.

Thanks for the great info, leonscape! :)


All times are GMT -5. The time now is 08:18 AM.