Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] how to get mol to boot from hfs+ partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
randomUgy
n00b
n00b


Joined: 20 Jun 2006
Posts: 5

PostPosted: Tue Jun 20, 2006 11:11 pm    Post subject: [SOLVED] how to get mol to boot from hfs+ partition? Reply with quote

Hello.

I used parted to resize the last partition on my hard drive and mkfs.hfsplus to lay down the filesystem ready to install os9 from within mol.
So far so good:
mol boots from 9.2.2, 9.0.4 and 8.6 installation cds.
The 9.2.2 and 9.0.4 installations just seem to hang before completion but 8.6 goes right thru to the end.

The problem is that once installed, mol doesn't see the partition the os is on (/dev/hda6) as bootable.
It doesn't show up in partition maps gleaned from mac-fdisk or parted and osX (which is on /hda5) cannot see it either.

I've picked up from reading bits in the forum that it might be possible to make an .dmg image of the installed os8.6 and somehow get that into linux to boot from. I don't know how...

And there was an switch in mkfs.hfsplus to add an hfs wrapper to the hfs+ partition to make it bootable for os9 which is broken in the build i'm using (from the instructions given on http://gentoo-wiki.com/HOWTO_hfsplus

am I barking up any kind of tree? please help!
_________________
i heard the strangest sound and i...just...followed...it down.


Last edited by randomUgy on Thu Jun 22, 2006 11:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 21, 2006 12:58 pm    Post subject: Reply with quote

I'm not sure what went wrong with the HFS+ partitions, but it's usually easier to use a disk image if you're not going to be booting it natively. You can create a disk image with dd, just use /dev/zero as your input and write out a file for the size of the disk. You can then use it as an actual disk in MOL which can help with disk issues.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
randomUgy
n00b
n00b


Joined: 20 Jun 2006
Posts: 5

PostPosted: Wed Jun 21, 2006 4:28 pm    Post subject: Reply with quote

Hi JoseJX. Thanx for your reply!
Unfortunately the image doesn't do the boot thing either.
I've tried to install an os from within mol a handful of times now, and only once has it completed.
Trying with 9.2.2 and returning to linux i find a whole stream of:
+ ablk: Unknown gestalt 'digt'
+ ablk: Unknown gestalt 'info'
messages and a:
+ Gestalt selector 'util' skipped (unit==NULL)

What are they trying to tell me?

Btw, i'm using kernel 2.6.16-r9 and mol 0.9.71-pre8 on a mini
_________________
i heard the strangest sound and i...just...followed...it down.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 21, 2006 6:02 pm    Post subject: Reply with quote

Can you post your emerge info? Gestalt doesn't appear in the source, so I'm not sure where you're getting that from. What did you compile MOL with? What did you change in the molrc files? How did you create the disk images?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
randomUgy
n00b
n00b


Joined: 20 Jun 2006
Posts: 5

PostPosted: Wed Jun 21, 2006 10:30 pm    Post subject: Reply with quote

mol was emerged using:
USE="sheep fbcon" emerge mol

also set were the flags for alsa, X and usb.
all other use flags are clear.

the molrc configs are as so:
molrc.macos

ram_size: 256
disable_altivec: no

blkdev: /home/ugy/macdisk.dsk -rw -boot

nothing else changed

molrc.video

resolution: 1280/1024/60
depth: 24
enable_xvideo: no
enable_console_video: yes
autoswitch_console: yes

nothing else changed

the disk image was created by:
cd /home/ugy
dd if=/dev/zero of=macdisk.dsk count=5242880
losetup /dev/loop0 macdisk.dsk
mkfs.hfsplus -v pleaseboot /dev/loop0


I apologise if I have missed anything. I don't know how to cut and paste into links!

I don't know if it's useful or not but mol has no problems booting osX from /dev/hda5

Thanks,
ugy
_________________
i heard the strangest sound and i...just...followed...it down.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jun 22, 2006 4:39 am    Post subject: Reply with quote

There's no need to do losetup, etc. What you should do instead is use the -force option and format the image as if it was a whole disk (from within the OS9 setup). See if that helps at all.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
randomUgy
n00b
n00b


Joined: 20 Jun 2006
Posts: 5

PostPosted: Thu Jun 22, 2006 10:55 am    Post subject: Reply with quote

Hooray! Toot toot etc!
Thanks Jose, it worked a treat.
OS 9.2.2 is up and running...

Still had a load of:
+ablk: Unknown gestalt 'digt'
+ablk: Unknown gestalt 'info'
messages, but it works so...

I owe you a pint,
ugy
_________________
i heard the strangest sound and i...just...followed...it down.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jun 22, 2006 11:26 am    Post subject: Reply with quote

To be honest, I have no idea what those messages are from, like I said, I don't see that phrase in the source :p

At least it's working! :)

btw, if you need to mount this image in linux, it's formatted as a whole disk. You need to use an offset from the start of the disk when mounting the image locally.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
randomUgy
n00b
n00b


Joined: 20 Jun 2006
Posts: 5

PostPosted: Thu Jun 22, 2006 11:45 pm    Post subject: Reply with quote

Using the same -force switch for the real disk partition /dev/hda6 in /etc/mol/molrc.macos works too.

blkdev: /dev/hdaX -force -rw -boot

where hdaX is an empty partition.

In every case bar one, and I attempted to install os9.2.2 about 8 times, the installation has hung with the cd spinning down around the halfway stage, leaving only a forced quit as an option.
The os looks intact however and is (so far) operational.

If the image proves to be the better option, what is the offset to use when mounting?
_________________
i heard the strangest sound and i...just...followed...it down.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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