netkas.org forum
December 03, 2020, 02:13:25 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Information for registering users http://forum.netkas.org/index.php/topic,2246.0.html
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Multibooting linux from gpt  (Read 17268 times)
netkas
Administrator
Hero Member
*****
Offline Offline

Posts: 836



« on: December 04, 2007, 08:09:30 PM »

It's much easy then windows.
Linux kernel knows gpt pretty fine, just need gpt-enabled bootloader

E.g. lilo, it doesn't know anything about filesystem, it jsut uses premapped files.
So, need to create msdos gpt partition from diskutility, make there any linux filesystem(e.g. mkreiserfs /dev/sdaX)
copy there ur exiting linux installation, and install lilo to sdaX first sector (not to sda (mbr)) ,
Also u can use patched for gpt support grub, u can find it e.g. in ubuntu(blgo has link to this grub), install it also to first sector of partition with linux and enjoy.
Logged
BladeRunner
Not Newbie
*
Offline Offline

Posts: 31


« Reply #1 on: December 04, 2007, 10:01:12 PM »

I have searched the ubuntu blog for gpt, efi, dual boot, grub install and several others.  so far, I have found nothing that even smells like a link to a gpt-grub.

Could someone tell me what the correct search parameters are or maybe post the link here? I would greatly appreciate any help.

Thanks
Logged

Hacintosh:
CPU: Intel Pentium 4 3.00GHz [SSE3/PAE/HTT]
Codename: Prescott Package: Socket 478 mPGA
RAM: 2.0GB Disk: 307.36GB/1.13TB
Display: GeForce FX 5500 [256 MB/QE/Stock] 1600x1200@60Hz
OS: Mac OS X 10.5.3 (9D34) Kernel: Darwin 9.2.0
Build: i386 Build Date: Tue Feb 26 21:21:24 SCT 2008
Thrawnhex
Jr. Member
**
Offline Offline

Posts: 74


« Reply #2 on: December 04, 2007, 10:17:05 PM »

I think this is what you need: http://rapidshare.com/files/73207998/grub.zip.html
Logged
BladeRunner
Not Newbie
*
Offline Offline

Posts: 31


« Reply #3 on: December 04, 2007, 11:06:12 PM »

Many thanks - for both replies.  I have them and am off to test Smiley
Logged

Hacintosh:
CPU: Intel Pentium 4 3.00GHz [SSE3/PAE/HTT]
Codename: Prescott Package: Socket 478 mPGA
RAM: 2.0GB Disk: 307.36GB/1.13TB
Display: GeForce FX 5500 [256 MB/QE/Stock] 1600x1200@60Hz
OS: Mac OS X 10.5.3 (9D34) Kernel: Darwin 9.2.0
Build: i386 Build Date: Tue Feb 26 21:21:24 SCT 2008
BladeRunner
Not Newbie
*
Offline Offline

Posts: 31


« Reply #4 on: December 06, 2007, 02:32:15 AM »

I have tried several times to get linux installed in my gpt partitioned disk and all have failed.  I know I must be doing something wrong.

I use this command to partition the disk:

Code:
diskutil partitionDisk disk0  "MS-DOS FAT32" Linux 50G "Journaled HFS+" Production 100.1G "Journaled HFS+" Maintenance 40.1G "Journaled HFS+" Data 0B

Then this sequence to install pc_efi_v8 - it is clipped from a shell script I wrote.

Code:
CMD="diskutil unmountDisk /dev/disk"$X
echo "Issueing command: [$CMD] "
$CMD

# Be sure all volumes on target disk are unmounted
echo "NOTE: be sure all volumes of target disk are unmounted"
echo "      then press Enter to continue"
read hold

CMD="./startupfiletool  /dev/rdisk"$X"s"$Y" "$BOOT
echo "Issueing command: [$CMD] "
$CMD

CMD="dd if=./guid/boot1h of=/dev/rdisk"$X"s"$Y" bs=512 count=1"
echo "Issueing command: [$CMD] "
$CMD

CMD="dd if=./guid/boot0  of=/dev/disk"$X"  bs=400 count=1"
echo "Issueing command: [$CMD] "
$CMD


At this point, a "diskutil list" shows slice 1 as efi, slice 2 as msdos and the rest as mac-osx.

Next, I re-boot into the opensuse 10.3 and install suse to the ms-dos partition after formatting it to ext2.  Attempting to install grub fails.  If I select lilo it completes the install without error.  When the system re-boots, diskutil shows both partition 1 & 2 as efi and the gui disk utility would show the second partition as free space.

Nothing I have tried comes close to booting the linux partition.  I am making the changes by booting a copy of osx 10.5.1 which is installed on an external usb drive.

If anyone can tell me what I am doing wrong I would sure appreciate the help.

bladeRunner
Logged

Hacintosh:
CPU: Intel Pentium 4 3.00GHz [SSE3/PAE/HTT]
Codename: Prescott Package: Socket 478 mPGA
RAM: 2.0GB Disk: 307.36GB/1.13TB
Display: GeForce FX 5500 [256 MB/QE/Stock] 1600x1200@60Hz
OS: Mac OS X 10.5.3 (9D34) Kernel: Darwin 9.2.0
Build: i386 Build Date: Tue Feb 26 21:21:24 SCT 2008
aki
Newbie

Offline Offline

Posts: 2


« Reply #5 on: December 06, 2007, 11:12:48 AM »

I could boot linux with efi v8 GUID
I was using ubuntu (alternate version = direct install to disk)

1. Installed ubuntu
2. for some reason grub refused to install to partition so I chose not to install grub at first ...
3. booted from an ubuntu desktop version = live cd
4. chrooted my installed partition
5. installed grub to partition not MBR ... and worked !

could boot into linux from osx menu

hope that helps

Aki
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!