Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing gentoo from ubuntu
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
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon Mar 30, 2015 10:51 am    Post subject: installing gentoo from ubuntu Reply with quote

If I install gentoo from ubuntu do I still need to make /boot and /swap or I can point to the ubuntu partitions with the same name?

Ty
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Mon Mar 30, 2015 11:26 am    Post subject: Re: installing gentoo from ubuntu Reply with quote

h2sammo wrote:
If I install gentoo from ubuntu do I still need to make /boot and /swap or I can point to the ubuntu partitions with the same name?

Ty
See https://wiki.gentoo.org/wiki/Knowledge_Base:Sharing_partitions_between_Linux_systems
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon Mar 30, 2015 3:22 pm    Post subject: Reply with quote

Ty.

It says :The /boot partition is a candidate that has probably been considered by most users. After all, dual booting means that the boot loader must be shared. Make sure though that the Linux systems do not try to manage the boot loader configuration themselves. Instead, manage them manually (this is already the case for Gentoo Linux);

Currently I use grub based on the ubuntu install to pick between ubuntu abs windows 8.1 on the same drive. Can i share the ubuntu /boot partition with gentoo? I would assume so. How do I point to the gentoo kernel from there?

Sorry. I've been away from gentoo for a few years.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Mon Mar 30, 2015 3:28 pm    Post subject: Reply with quote

grub-mkconfig will do it for you.
Quote:
# grub2-mkconfig -o /boot/grub/grub.cfg
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Fri Apr 03, 2015 12:41 am    Post subject: Reply with quote

i tried playing with grub but it cannot see the EFI folder. any ideas?

Code:
bobby-HP-Pavilion-15-Notebook-PC / # grub2-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub2-mkconfig: line 232: /boot/grub/grub.cfg.new: No such file or directory
bobby-HP-Pavilion-15-Notebook-PC / # nano /etc/fstab
bobby-HP-Pavilion-15-Notebook-PC / # mount /dev/sda2 /media/gentoo/boot
mount: mount point /media/gentoo/boot does not exist
bobby-HP-Pavilion-15-Notebook-PC / # mount /dev/sda2 /bootbobby-HP-Pavilion-15-Notebook-PC / # grub2-install --target=x86_64 /dev/sda
grub2-install: error: /usr/lib/grub/x86_64/modinfo.sh doesn't exist. Please specify --target or --directory.
bobby-HP-Pavilion-15-Notebook-PC / # grub2-install /dev/sdaInstalling for x86_64-efi platform.
grub2-install: error: cannot find EFI directory.
bobby-HP-Pavilion-15-Notebook-PC / # ls /boot
BCD.LOG1
BCD.LOG2
EFI
System.map-genkernel-x86_64-3.18.9-gentoo
grub
initramfs-genkernel-x86_64-3.18.9-gentoo
kernel-genkernel-x86_64-3.18.9-gentoo
bobby-HP-Pavilion-15-Notebook-PC / # ls /boot/grub
bobby-HP-Pavilion-15-Notebook-PC / # ls /boot/EFI
Boot  HP  Microsoft  ubuntu
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sun Apr 26, 2015 6:13 pm    Post subject: Reply with quote

currently i have a /boot on the gentoo partition, one /boot on the ubuntu root partition and a separate /boot partition probably created by ubuntu. i am so confused as to how make all these co-exist.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10263
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Apr 26, 2015 6:17 pm    Post subject: Reply with quote

Look in the Ubuntu-created /boot directories in the Ubuntu root. If it's empty, then it's just the mount point of the Ubuntu boot partition and thus we can conclude that Ubuntu has only one, which is what you should use.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sun Apr 26, 2015 6:22 pm    Post subject: Reply with quote

Code:
bobby@bobby-HP-Pavilion-15-Notebook-PC:~$ ls /boot
abi-3.13.0-49-generic     efi   grub.bak                      memtest86+.bin  memtest86+_multiboot.bin      vmlinuz-3.13.0-49-generic
config-3.13.0-49-generic  grub  initrd.img-3.13.0-49-generic  memtest86+.elf  System.map-3.13.0-49-generic
bobby@bobby-HP-Pavilion-15-Notebook-PC:~$ sudo parted -l
Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  683MB   682MB   ntfs            Basic data partition          hidden, diag
 3      955MB   1089MB  134MB                   Microsoft reserved partition  msftres
 4      1089MB  83.7GB  82.6GB  ntfs            Basic data partition          msftdata
 8      83.7GB  189GB   105GB   ext4
 7      189GB   201GB   12.8GB  linux-swap(v1)
 2      201GB   207GB   5243MB  ext4
 6      207GB   207GB   538MB   fat32           EFI System Partition          boot
 9      207GB   312GB   105GB   ext4
 5      975GB   1000GB  25.2GB  ntfs            Basic data partition          hidden, msftdata


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label   


so if i read this correctly, the /dev/sda6 which is the separate boot partition mounts inside the /boot folder on the ubuntu partition, in a folder called efi. now do i tell gentoo that its boot location is where? and how?
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Tue May 12, 2015 5:23 pm    Post subject: Reply with quote

You can also just mount your /dev/sda6 under the gentoo /boot folder. Just edit the fstab accordingly.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
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