LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2005, 01:23 PM   #1
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Rep: Reputation: 15
Question 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?
 
Old 01-17-2005, 01:52 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.

Last edited by leonscape; 01-17-2005 at 01:53 PM.
 
Old 01-17-2005, 02:30 PM   #3
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
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.
 
Old 01-17-2005, 03:12 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 01-18-2005, 03:45 AM   #5
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 05:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 08:34 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 12:00 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 04:13 PM
mounting Cybergod1983 Linux - General 1 10-08-2001 04:28 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration