Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting Partitions???
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
clinger
n00b
n00b


Joined: 08 Dec 2004
Posts: 39
Location: MT

PostPosted: Thu Apr 21, 2005 5:11 pm    Post subject: Mounting Partitions??? Reply with quote

I've created my partitions:

hda1 -> /boot
hda2 -> swap
hda3 -> /
hda5 -> /home
hda6 -> /var
hda7 -> /usr
hda8 -> /tmp

Now I'm ready to mount them and I'm confused. Do I [/b]do the following:

mkdir home
mount -t ext3 /dev/hda5 /home

mkdir var
mount -t ext3 /dev/hda6 /var

...

OR is this what I'm suppose to do:

mkdir /mnt/gentoo/home
mount -t ext3 /dev/hda6 /mnt/gentoo/home

mkdir /mnt/gentoo/var
mount -t ext3 /dev/hda6 /mnt/gentoo/var

...

Are all the mount points suppose to go in /mnt/gentoo directory?
Back to top
View user's profile Send private message
ctt
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2005
Posts: 136

PostPosted: Thu Apr 21, 2005 5:16 pm    Post subject: Re: Mounting Partitions??? Reply with quote

clinger wrote:
I've created my partitions:

hda1 -> /boot
hda2 -> swap
hda3 -> /
hda5 -> /home
hda6 -> /var
hda7 -> /usr
hda8 -> /tmp

Now I'm ready to mount them and I'm confused. Do I [/b]do the following:

mkdir home
mount -t ext3 /dev/hda5 /home

mkdir var
mount -t ext3 /dev/hda6 /var

...

OR is this what I'm suppose to do:

mkdir /mnt/gentoo/home
mount -t ext3 /dev/hda6 /mnt/gentoo/home

mkdir /mnt/gentoo/var
mount -t ext3 /dev/hda6 /mnt/gentoo/var

...

Are all the mount points suppose to go in /mnt/gentoo directory?


You'll want to perform the second set of steps. As the chroot will hide anything outside of the /mnt/gentoo directory, you want to make sure all of the mountpoints are in there prior to setting up your installation environment.
_________________
- chris
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Thu Apr 21, 2005 5:19 pm    Post subject: Reply with quote

First you would mount /dev/hda3 /mnt/gentoo, then you would mkdir for each of the remaining directories and then mount them as well. Your "/" directory is always the base of the filesystem, everything else is mounted underneath it.

Since you are prepping to install gentoo, you are actually mounting your soon to be "/" at /mnt/gentoo. So in effect /mnt/gentoo will become "/" when you get to the chroot step within the install docs.. Once chrooted, you will no longer see /mnt/gentoo, only "/" and everything mounted within it.

Now, once you are done installing Gentoo and booting your computer on its own, /dev/hda3 will be mounted as "/" NOT /mnt/gentoo. Be sure to pay close attention to the fstab configuration later in the install.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
caslca
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2003
Posts: 85

PostPosted: Thu Apr 21, 2005 5:24 pm    Post subject: Reply with quote

gees, those are some partitions you've made :)

Since you're talking about /mnt/gentoo, I assume you're in the installing stages (i.e. you booted from CD), and you have NOT untarred the stage yet.

1. mount hda3 on /mnt/gentoo
2. make all of the desired folders under /mnt/gentoo
3. mount all of your partitions to corresponding folders
4. cp your stage tarball to /mnt/gentoo and "cd /mnt/gentoo"
5. untar the tarball


You can issue "swapon hda2" at any time, since swap does not have a mount point.

If you have extracted your tarball in hda3 (your root partition), then you need to boot with a live CD, mount hda3 on /mnt/gentoo, mv all directories you want on separate partitions to say "{dirname}old", then you create the folders for the partitions, mount the partitions and cp all files/folders to the new place.

Make sure after all that you edit your fstab properly, or you'll be screwed :)

e.g. say you want to do this for /usr and you have already untared a stage under hda3 ("/")
1. boot from live cd
2. mount -t filesystem /dev/hda3 /mnt/gentoo
3. cd /mnt/gentoo
4. mv usr usrold
5. mkdir usr
6. mount -t filesystem /dev/hda7 /mnt/gentoo/usr
7. mv usrold/* usr/

I'd also check for any hidden files (starting with a dot) in usrold that were not picked by 7
Back to top
View user's profile Send private message
clinger
n00b
n00b


Joined: 08 Dec 2004
Posts: 39
Location: MT

PostPosted: Thu Apr 21, 2005 5:51 pm    Post subject: Reply with quote

Thanks! Now I can move forward with my install.
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