Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Second gentoo installation /etc/fstab file help
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
bedtime
n00b
n00b


Joined: 19 Dec 2012
Posts: 71

PostPosted: Fri Jan 04, 2013 7:48 pm    Post subject: Second gentoo installation /etc/fstab file help Reply with quote

I currently have two Gentoo installations. #1 install is as follows:

sda1 /boot
sda2 swap
sda3 / (root)


The #2 Gentoo install is just awaiting the kernel to be compiled and I need to make the /etc/fstab file.

So far I have this:
sda2 swap
sda4 / (root)

My 'guess' is that I would edit the /etc/fstab file this way:

Code:
/dev/sda4   /boot        ext3    defaults,noatime     0 2
/dev/sda2   none         swap    sw                   0 0
/dev/sda4   /            ext3    noatime              0 1

# no cdrom; laptop
# /dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0




Gentoo install #1 has the grub2 bootloader installed and will be updated to catch and find both kernels, hopefully.


Am I way off? Does this seem like the correct way to do this?


Also, I m using initramfs kernel support for both #1 and #2.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 04, 2013 8:29 pm    Post subject: Reply with quote

bedtime,

Code:
/dev/sda4   /boot        ext3    defaults,noatime     0 2
/dev/sda4   /            ext3    noatime              0 1


Close.

fstab describes complete filesystems and their mount points.
If you do not have a /boot partition, becuase you use the /boot directory on the root filesystem, you do not have a /boot entry in fstab either.
_________________
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
bedtime
n00b
n00b


Joined: 19 Dec 2012
Posts: 71

PostPosted: Fri Jan 04, 2013 9:05 pm    Post subject: Reply with quote

NeddySeagoon wrote:
bedtime,

Code:
/dev/sda4   /boot        ext3    defaults,noatime     0 2
/dev/sda4   /            ext3    noatime              0 1


Close.

fstab describes complete filesystems and their mount points.
If you do not have a /boot partition, becuase you use the /boot directory on the root filesystem, you do not have a /boot entry in fstab either.

Thanks. I tried this and rebooted in Gentoo #1. I did:

Code:
# grub2-mkconfig -o /boot/grub2/grub.cfg
# mount /boot
# grub2-install /dev/sda


also tried:

Code:
[code]# grub2-mkconfig -o /boot/grub2/grub.cfg
# mount /dev/sda4 /boot
# grub2-install /dev/sda
[/code]


It didn't catch #2 Gentoo. Just #1.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 04, 2013 9:58 pm    Post subject: Reply with quote

bedtime,

Lets rewind a second ...
When you said you had two installs, I thought you had meant on separate systems.

When you have multiple installs on the same system, they should share /boot, swap and /tmp if tmp is separate.
You don't have to share /boot but it will save your from insanity if you do.

You may have at most one boot loader per drive, ok you can chainload but the start of the chain is your one bootloader.

You must make sure that both your and grub can tell the files apart in the shared /boot but its not an issue as you can name them how you want.
With a shared boot, the entry for boot is identical in both (all) /etc/fstabs
_________________
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
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Jan 04, 2013 10:43 pm    Post subject: Reply with quote

bedtime,

You can always make the menu.config entries manually for your second installation.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
bedtime
n00b
n00b


Joined: 19 Dec 2012
Posts: 71

PostPosted: Sun Jan 06, 2013 6:06 pm    Post subject: Reply with quote

Thanks to you both for the answers.

I tried to make an installation with ~x86 and it ended with far too many conflicts, so this mission has been unsuccessful and has been aborted. Reinstalling, wiping drive. I might someday figure this out, but today is not that day. Too complicated and I'm too stupid. So sorry to waste your time and I do appreciate your help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 07, 2013 6:25 pm    Post subject: Reply with quote

bedtime,

Stupid is forever and cannot be fixed. You are not that - You installed Gentoo.
It you want to admit to ignorance of Gentoo you are among friends. We were all ignorant of Gentoo at one time.
Ignorance can be fixed with help and encouragement - you will find both here.

We all remember our first steps in Gentoo and the learning process that went with it.
_________________
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
bedtime
n00b
n00b


Joined: 19 Dec 2012
Posts: 71

PostPosted: Wed Jan 09, 2013 7:51 pm    Post subject: Reply with quote

NeddySeagoon wrote:
bedtime,

Stupid is forever and cannot be fixed. You are not that - You installed Gentoo.
It you want to admit to ignorance of Gentoo you are among friends. We were all ignorant of Gentoo at one time.
Ignorance can be fixed with help and encouragement - you will find both here.

We all remember our first steps in Gentoo and the learning process that went with it.


Thanx Neddy and sorry for the negativity. I've got depression and I shouldn't be be contaminating everyone with it.

In any event I've been catching on to the Gentoo way of things so its been getting better.
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