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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-17-2008, 01:51 PM
|
#1
|
LQ Newbie
Registered: May 2006
Posts: 1
Rep:
|
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home
I wanted a separate partition for /home. So the sda5 partion in this was mounted /home. The sda6 partition was mounted as /
The SUSE 10.3 installation, which works beautifully, however has made itself a sub-directory sda6:/home and is writing the contents of /home into two places, with sda5 acting more like a backup.
This does not make sense.
So the questions are:
What happened?,
Can I fix it by removing sda6:/home somehow?, and
Do I need to re-install?
Thanks
mack
|
|
|
04-17-2008, 02:14 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
If I understand correctly, you want /dev/sda5 to be /home and /dev/sda6 to be / (the root of the filesystem).
So, do the following:
a) if /home (/dev/sda5) has the files you want to keep as /home, and if that /home has your user directory, then delete the contents of /home on /dev/hda6 (leaving the /home folder empty to serve as the mount point for /dev/sda5).
b) edit /etc/fstab to make an entry for /dev/sda5 /home
c) mount /dev/hda5 /home
From now on, when you boot up, /dev/hda5 is /home.
If you have trouble deleting the files in /home on /dev/sda6, try booting from a liveCD to do a) and b), then reboot without the liveCD.
|
|
|
04-18-2008, 05:52 AM
|
#3
|
Member
Registered: Apr 2008
Posts: 100
Rep:
|
multiple mounts on same mountpoint
As already pointed out, you have to change /etc/fstab.
I don't think that Suse did maintain two home directories at once. It is rather that your own home mounting overlapped the existing home directory on /dev/sd6. If you unmount /dev/sda5 you will see different contents in home.
Using the same mountpoint multiple times is possible, but only the last mount can be accessed at a given time (it follows the push-pop method). Nice way to hide the contents of a directory, though.
GWN
Last edited by marquardl; 05-01-2008 at 03:54 AM.
|
|
|
04-18-2008, 05:55 AM
|
#4
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
Well, I can only hope that you're not working as root all the time, that would explain why your root partition is being used as a home partition.
|
|
|
04-18-2008, 04:02 PM
|
#5
|
Member
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963
Rep:
|
can you post teh output of the
command please
|
|
|
All times are GMT -5. The time now is 11:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|