Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounting confusion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JoelKlabo
n00b
n00b


Joined: 27 Feb 2008
Posts: 33
Location: Silicon Valley

PostPosted: Wed Feb 27, 2008 10:35 pm    Post subject: mounting confusion Reply with quote

I am reading through the manual and I understand everything up to the section on mounting the partitions that I have just made:

Quote:
4.e. Mounting

Now that your partitions are initialized and are housing a filesystem, it is time to mount those partitions. Use the mount command. Don't forget to create the necessary mount directories for every partition you created. As an example we mount the root and boot partition:

Code Listing 5.1: Mounting partitions

# mount /dev/hda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hda1 /mnt/gentoo/boot


This may be obvious to some but as a novice; where are the names of these directories coming from? And, can anyone teach me a little about what is going on at this point? Thanks.
_________________
I want to compile a OS specifically for my hardware, how awesome is that.
Back to top
View user's profile Send private message
JoelKlabo
n00b
n00b


Joined: 27 Feb 2008
Posts: 33
Location: Silicon Valley

PostPosted: Wed Feb 27, 2008 10:42 pm    Post subject: title Reply with quote

I must admit, on a side note. The title of this topic is one of the best I have come up with.
_________________
I want to compile a OS specifically for my hardware, how awesome is that.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Wed Feb 27, 2008 10:52 pm    Post subject: Reply with quote

The names of the folders, /mnt, /mnt/gentoo, and /mnt/gentoo/boot are really arbitrary. You can name them whatever you want as long as you follow that naming scheme throughout the installation.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
JoelKlabo
n00b
n00b


Joined: 27 Feb 2008
Posts: 33
Location: Silicon Valley

PostPosted: Wed Feb 27, 2008 10:56 pm    Post subject: Reply with quote

ok so I have to mkdir to create all of those directories, and then mount all of them? Can you mount multiple directories? I know this is trivial but in the example in the manual it does not show the first directory being made, it is just already being mounted. As you can see I am confused, any additional info would be greatly appreciated. I would like to understand what is happening, if possible.
_________________
I want to compile a OS specifically for my hardware, how awesome is that.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Wed Feb 27, 2008 11:10 pm    Post subject: Reply with quote

JoelKlabo,

There are some standard names for linux folders and their contents. You can see what they are all supposed to be called and used for here

Its a convention to use /mnt for this sort of thing and the Gentoo liveCD provides /mnt/gentoo as a convienence for you as the point where your own Gentoo install will be attached the the filesystem provided by the liveCD.
You mount (attach) the top level of your install file system here.
When you do mkdir /mnt/gentoo/boot you are creating a directory called /boot inside the top level of your own install. The liveCD cannot provide this mount point as it cannot exist until your own install space is located at /mnt/gentoo
You need a mount point inside /mnt/gentoo for every partition you want to mount (except swap)
Many users have a separate /home partition, which requires you to make a /mnt/gentoo/home
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JoelKlabo
n00b
n00b


Joined: 27 Feb 2008
Posts: 33
Location: Silicon Valley

PostPosted: Wed Feb 27, 2008 11:26 pm    Post subject: Reply with quote

so are the /mnt/gentoo directories located on the cd originally? And then the hard drive mounts to them in order to copy files? mounting is a temporary action?
_________________
I want to compile a OS specifically for my hardware, how awesome is that.
Back to top
View user's profile Send private message
JoelKlabo
n00b
n00b


Joined: 27 Feb 2008
Posts: 33
Location: Silicon Valley

PostPosted: Wed Feb 27, 2008 11:33 pm    Post subject: Reply with quote

thank you very much for the reply by the way. the Linux file system site is very informative as well.
_________________
I want to compile a OS specifically for my hardware, how awesome is that.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Wed Feb 27, 2008 11:58 pm    Post subject: Reply with quote

JoelKlabo

The terns Mount Points and Directoriy are often confused by new users.

A mount point is a directory where you intend to attach a partition to make its contents accessible. Nothing more.
When the partition is mounted on the mount point, files copied there go into the partition.
When the partition is not mounted, the files go into the directory on the partition on which the directory was created.

When the liveCD starts, it creates is own root file system in RAM. The mount point /mnt/gentoo is therefore a directory in a ramdrive.
It is possible to untar the stage 3 to the space in RAM if you forget to mount your own root partition there.

Mounting can be a temporary operation e.g. if you mount a USB drive or a CDROM, however, its useful for some mounts to persist across reboots. For permanently installed media, these are written in /etc/fstab.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum