Click to See Complete Forum and Search --> : different partitions for linux


bluesky
11-14-2001, 10:51 PM
I 'd like to make partitions for my linux system: (1) swap (2) /boot (3) / (4) /usr and (5) /home.

The problem was when I addusers, the new users went into the "home subdirectory" under the root directory (/). I was assuming that they should all go to the home directory(/home). So what happened?

It seemed that redhat only installed in the (/) partition.

[ 14 November 2001: Message edited by: bluesky ]

Dark Ninja
11-14-2001, 11:15 PM
Well, I know in Mandrake there is an expert mode where you have to tell Mandrake that you want /home to be /home. It can't figure it out for itself. Since Mandrake is based off of RedHat, it may be something like that. I'm not sure. (It is all done in setup, BTW.)


Dark Ninja

jdctx
11-15-2001, 12:04 AM
It may just appear that way one way to tell if in fact it did create seperate partitions is to do a df in command prompt

if it shows something like

/dev/hda1 12344 44566
/dev/hda4 * *
/dev/hda5 44568 89998
/dev/hda6 89999 99999

you probably have what you need and users are going to the proper directory

DMR
11-15-2001, 12:17 AM
Originally posted by bluesky:
[Q] I was assuming that they should all go to the home directory(/home).[/QB] "/home" and "the home sub directory under the root directory" are the same thing. That forward slash in "/home" indicates the root directory, just as it would in any other context. You can have a separate physical partition for home, but the filesystem that you created on that partition will be mounted under /, if that's the way it is set up in your /etc/fstab file.

bluesky
11-15-2001, 01:15 AM
Reply to DMR. It is possible as you posted but when logged in as root I clicked on the home icon (in kde), I saw the home directory which is separatge from the root directory. The root directory included a subdirectory "home" and a sub-directory "root".

So it seemed apparent that in the layout, home directory (/home) is separate from the sub-directory "home" in the root directory (/).

I have used linux for a while, but suddenly I was caught by this. really amazed me. :(

I probably will try the expert mode installation as Dark Ninja suggested, although I am no expert.

[ 15 November 2001: Message edited by: bluesky ]

Siskmarek
11-15-2001, 02:36 AM
bluesky: Everything is okay. :)

No, really. It is!

Don't confuse root (/) with root's home (/root). Root's home is kept separate from the user's home (/home) for reasons I don't care to elaborate on.

The only way home (/home) would not be on its own partition is if you never defined a partition for home (/home) to solely occupy.

So if all the partitions I defined in the repartitioning tool of my distro installation program were root (/), user (/usr), and boot (/boot), then the home (/home) directory would be kept on the root (/) parition.

But since you gave home (/home) its own partition you're okay. The transition from going from root (/) to home (/home) is seamless, just like going from root (/) to boot (/boot) is seamless, et cetera.

Go ahead and check your /etc/fstab file. I'm sure an entry for home (/home) is in there!

I don't know if you've reinstalled or not by now, but just remember you're okay!

~ Siskie

Icarus
11-15-2001, 09:15 AM
Um...what he said! :D

Check your fstab and see if it is mounting the /home partition you created, as stated before I'm sure it is there.

bluesky
11-15-2001, 10:24 AM
Mahdi. It isn't that the /home was not there but because the users went to the sub-directory home( in root directory ), and this is not what I want.

Do you see what I mean? the reason for home as a separate partition is to store data AND the home for all the users including the webmaster.

mjb0314
11-15-2001, 10:49 AM
Before you make the mistake of reinstalling, please post your /etc/fstab file.

I have my box set up the same, with /home on a separate partition. If I cd to / in an xterm and issue the ls command, the /home directory will show up as a normal directory.

THAT'S THE WAY IT'S SUPPOSED TO BE!!

Another example is my windows partition which shows up as /mnt/windows, which seamlessly shows up from my / directory if I issue the command ls /mnt.

[ 15 November 2001: Message edited by: mjb0314 ]

bluesky
11-15-2001, 12:55 PM
I am sorry a little hasty. Mahdi was right!!!

I also found that in redhat 7.1, expert mode = standard mode; none different!