HOME and /mnt/home [SOLVED]?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

HOME and /mnt/home [SOLVED]?

#1 Post by Argolance »

Bonjour,
HOME and(or) HOME?
/mnt/home?
~=/root? (as far as I know, the command `ls $HOME` gives the contents of /root...)?

How do I have to understand this strange thing and then explain it to new users? :roll:
Silly question?

Cordialement.
Last edited by Argolance on Fri 25 Aug 2017, 17:10, edited 1 time in total.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#2 Post by Sailor Enceladus »

Just don't, or they'll start asking about apt-get and full installs and other "big Linux distro" things and will drive you insane. What is really needed is one of those mind-zapper things from Men In Black so that they'll start their Linux experience fresh with Puppy. ;)

Image

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#3 Post by foxpup »

/mnt/home is the first home. It is where the sytem is installed. It is in the outside world. It is like your house.
/root/ is the first place of your system. It is the inner home. It is the entrance. It is like the hall of your house.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#4 Post by Argolance »

Thank you guys!
foxpup wrote:/mnt/home is the first home. It is where the sytem is installed. It is in the outside world. It is like your house.
/root/ is the first place of your system. It is the inner home. It is the entrance. It is like the hall of your house.
I like it! But why the same name and such an ambiguity? :shock:

Cordialement.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#5 Post by foxpup »

Argolance wrote: But why the same name and such an ambiguity? :shock:
And what about / ? It is at the top of the filestructure. Doesn't that feel like root ?

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#6 Post by jafadmin »

"/mnt/home" is the acreage, "$HOME" is the house ..

I thought airvy1 knew this??!?

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

HOME and HOME?

#7 Post by L18L »

HOME and HOME?

Sorry, I can see only HOME and home.
Case is important.

Code: Select all

# whoami
root
# echo $HOME
/root
# 
Puppy's default user is root, for him HOME is /root

In other sytems root is not user, but administrator only.
User argo would have his HOME in /home/argo.

Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#8 Post by Peterm321 »

The home directory is setup when a user is created. Puppy comes with user root pre-created with /root as its default (home) directory. Another user typical puppies have is user "spot" and its home ($HOME) typically is in /root/spot.

Code: Select all

Usage: adduser [OPTIONS] USER [GROUP]

Create new user, or add USER to GROUP

	-h DIR		Home directory
	-g GECOS	GECOS field
	-s SHELL	Login shell
	-G GRP		Add user to existing group
	-S		Create a system user
	-D		Don't assign a password
	-H		Don't create home directory
	-u UID		User id
The home directories and users of a linux system can be viewed in the /etc/passwd file

Code: Select all

leafpad /etc/passwd

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#9 Post by nic007 »

If one is running with a savefile/folder the partition which hosts the puppy files is called /mnt/home. This is where the confusion comes in. Should not be called /mnt/home but should remain the name of the drive eg: /mnt/sda1. Either this or the description of the house icon on the desktop should be something else and perhaps the icon in itself should be replaced with a file explorer icon.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#10 Post by mikeslr »

Hi,

To recap: Other distributions were modeled after Unix running from a MAINFRAME and being used by several groups and several users within each group. They have to distinguish between root (both the top of the operating system and the people having administrative privileges) and users (those who have limited privileges as to what they can look at and what they can do to the entire operating system and computer).

Corresponding to Window's Documents and Settings, each user is assigned a folder named, his/her Home Folder.

Moreover, originally computers (mainframes) only had one hard-drive. When peripheral hard-drives were added, the main hard-drive was named "Home".

Puppy was designed with the expectation that there would only be one user on an operating system, and that user would have root=administrative privileges. There was no reason to create a structure holding any 'user' folders. So, whatever "Documents and Settings" would have been placed in /user on a Multi-user system, was simply placed in /root. Since /root is the user's home folder, it is referred to as 'home'.

referring to /mnt/home as Home, was just a carry-over of previous terminology.

If it helps, you can explain it this way.

/mnt/home is like your hometown.

/root (as home) is like the actual home you live in.

What really adds to the confusion is the dual usage of root. It refers to both the top level of a drive/partition, and the top level of an operating system. "Everything hangs from root". Root was a very poor word choice. The only time I can envision the roots of a tree being at the top is after a hurricane.

mikesLr

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

/ ?

#11 Post by foxpup »

And what is "/" then?

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

Re: / ?

#12 Post by nic007 »

foxpup wrote:And what is "/" then?
That's the very top level of the filesystem. Root is actually a "directory" of /

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#13 Post by tallboy »

~ is also a sign for home
Attachments
slash.jpg
(30.11 KiB) Downloaded 113 times
root.jpg
(30.42 KiB) Downloaded 118 times
True freedom is a live Puppy on a multisession CD/DVD.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#14 Post by Argolance »

Bonsoir,
Thank you a lot to all of you! :)
Very interesting thread indeed! It shows that things are not so obvious and need some explanation/clarification.
I think this is done now... and well done!

Cordialement.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#15 Post by musher0 »

Allô, Argolance.

And you told me you were retiring from Puppy... Ha! :lol: ;)

À la prochaine.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#16 Post by tallboy »

Argolance wrote:It shows that things are not so obvious and need some explanation/clarification.
Well, we all need a bit of clarification from time to time! :lol:
this forum wrote:Our users have posted a total of 953491 articles
We have 37571 registered users
There have been 30985 users online since yesterday
tallboy
True freedom is a live Puppy on a multisession CD/DVD.

Post Reply