LinuxQuestions.org
Review your favorite Linux distribution.
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 04-17-2008, 01:51 PM   #1
leswatson
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 04-17-2008, 02:14 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 04-18-2008, 05:52 AM   #3
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
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.
 
Old 04-18-2008, 05:55 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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.
 
Old 04-18-2008, 04:02 PM   #5
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
can you post teh output of the
Code:
mount
command please
 
  


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
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
NFS4 home directory is not mounted with ksu mesh2005 Linux - Software 0 01-08-2008 02:31 AM
Put a 2nd kanotix at hdb 3/,-4/home. 1st is at hdb8/,-9/home.#2 is using 1st's /home sleekmason Linux - General 3 12-09-2006 09:21 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
.forward file not working for user having it's home directoryon NFS mounted directory skverma_in Linux - General 0 02-14-2005 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 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
Open Source Consulting | Domain Registration