[Marketing] [IAEP] soas live cd on MacBook? How?
Sean DALY
sdaly.be at gmail.com
Sun May 24 19:40:25 EDT 2009
OK, I created a new stick with Fedora LiveUSB Creator v.3.6.5 on a
Windows machine (an EeePC which I usually boot into Sugar with that
snapshot on an SD Card) using Soas-200903051021.iso.
Then, I inserted the stick into my Mac Mini, opened the Terminal
application, and executed the following using the "bless" command
(http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/bless.8.html),
this sets the Mac to boot from the stick for the next boot only and
specifies the mountpoint and efi file. (Note: it is possible to make a
script executable from a user-friendly icon on OSX, by appending
".command" to the filename)
The following links were helpful while researching this:
http://refit.sourceforge.net/info/boot_process.html was
http://wiki.osx86project.org/wiki/index.php/EFI#EFI_in_the_Intel_Macs
<snip>
$ sudo bless --setBoot --nextonly --verbose --mount
/Volumes/FEDORA/EFI/boot --file /Volumes/FEDORA/EFI/boot/bootx64.efi
Password:
EFI found at IODeviceTree:/efi
Mount point for /Volumes/FEDORA is /Volumes/FEDORA
Mount point is '/Volumes/FEDORA'
No BootX creation requested
No boot.efi creation requested
Other partition scheme detected
No auxiliary booter partition required
Preferred system partition found: disk0s1
Returning booter information dictionary:
<CFDictionary 0x109120 [0xa04381a0]>{type = mutable, count = 3,
capacity = 3, pairs = (
0 : <CFString 0x18da0 [0xa04381a0]>{contents = "Auxiliary
Partitions"} = <CFArray 0x108e80 [0xa04381a0]>{type = immutable, count
= 0, values = (
)}
2 : <CFString 0x18d90 [0xa04381a0]>{contents = "Data Partitions"} =
<CFArray 0x109470 [0xa04381a0]>{type = immutable, count = 1, values =
(
0 : <CFString 0x108fc0 [0xa04381a0]>{contents = "disk1s1"}
)}
3 : <CFString 0x18db0 [0xa04381a0]>{contents = "System Partitions"} =
<CFArray 0x103b00 [0xa04381a0]>{type = immutable, count = 1, values =
(
0 : <CFString 0x108f20 [0xa04381a0]>{contents = "disk0s1"}
)}
)}
Relative path of /Volumes/FEDORA/EFI/boot/bootx64.efi is \EFI\boot\bootx64.efi
IOMedia disk1s1 does not have a partition UUID
IOMedia disk1s1 does not have a Volume UUID
IOMedia disk1s1 has path IODeviceTree:/PCI0 at 0/USB7 at 1D,7/@2:1
Setting EFI NVRAM:
efi-boot-next='<array><dict><key>IOMatch</key><dict><key>IOProviderClass</key><string>IOMedia</string><key>IOPathMatch</key><string>IODeviceTree:/PCI0 at 0/USB7 at 1D,7/@2:1</string></dict><key>BLLastBSDName</key><string>disk1s1</string></dict><dict><key>IOEFIDevicePathType</key><string>MediaFilePath</string><key>Path</key><string>\EFI\boot\bootx64.efi</string></dict></array>'
Setting EFI NVRAM:
IONVRAM-DELETE-PROPERTY='efi-boot-file'
Setting EFI NVRAM:
IONVRAM-DELETE-PROPERTY='efi-boot-mkext'
NVRAM variable "boot-args" not set.
$ sudo reboot
</snip>
The Mac rebooted from the stick, went through the Fedora startup but
then arrived at this which I've seen before (on netbooks) but have no
idea how to avoid:
<snip>
------------------------------------------------------
WARNING: Cannot find root file system!
------------------------------------------------------
Create symlink /dev/root and then exit this shell to continue the boot sequence
bash: no job control in this shell
bash-4.0#
</snip>
I then attempted:
<snip>
bash-4.0# ln -s /dev/disk1s1 /dev/root
</snip>
Note: the machine-specific device name disk1s1 was revealed above, but
a shortcut to get it at the OSX command line is "$ diskutil list" or
even "$ system_profiler SPUSBDataType | grep 'BSD Name:'"
However, perhaps the BSD names don't apply since Fedora and not BSD booted?
I exited the shell and obtained:
<snip>
mount: you must specify the filesystem type
Bug in initramfs /init detected. Dropping to a shell. Good luck!
bash: no job control in this shell
bash-4.0#
</snip>
The stick booted an Acer Aspire One into Sugar no problem right after.
I think this Fedora bug tracker references this problem:
https://fedorahosted.org/liveusb-creator/ticket/53
Sean.
On Sun, May 24, 2009 at 7:39 PM, Sean DALY <sdaly.be at gmail.com> wrote:
> OSX has a CLI "bless" command which may do what is necessary.
>
> I'll try to look into this, I have a recent Mac Mini
>
> Sean
>
>
> On Sun, May 24, 2009 at 6:16 PM, Jonas Smedegaard <dr at jones.dk> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: RIPEMD160
>>
>> On Sun, May 24, 2009 at 08:19:53AM -0700, Caryl Bigenho wrote:
>>>I had an idea in the shower this am (some of my best ideas come while I
>>>am in the shower). I think I may know what is going on with the Macs
>>>and live Sugar CDs and how it might be fixed.
>>>
>>>
>>>According to Apple, when you boot with the option key down, the
>>>computer looks for all bootable items, eg the Mac HD, a Windows section
>>>(via Boot Camp), an external drive, a USB stick, or a CD in the Macs
>>>optical drive. The item must contain all elements needed to be
>>>bootable. Sooo....
>>
>> Please beware that Apple might have a different interpretation for the
>> term "bootable".
>>
>> It might very well be (as was for sure with pre-Intel Macs!) that the
>> nice Apple boot selector only lists things looking Mac-like (i.e. looks
>> like a Darwin kernel).
>>
>> [...some google searching...]
>>
>> Indeed, that seems to be the case: You need to boot from a HFS+
>> partition that is "blessed". A solution seems to be here:
>> http://ubuntuforums.org/showthread.php?t=869324
>>
>>
>> Beware that if "blessing" is similar to that of classic MacOS, then it
>> includes adding a small binary piece that is *not* free software. In
>> other words, it may be illegal to publish SoaS as pre-blessed images.
>> :-(
>>
>>
>> - Jonas
>>
>> - --
>> * Jonas Smedegaard - idealist og Internet-arkitekt
>> * Tlf.: +45 40843136 Website: http://dr.jones.dk/
>>
>> [x] quote me freely [ ] ask before reusing [ ] keep private
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (GNU/Linux)
>>
>> iEYEAREDAAYFAkoZcuQACgkQn7DbMsAkQLjC1wCgh8v+TjGasKsNGHJNarJONbl1
>> U1UAn0rjHnFuaaVWKv3zLlS/qnriFqQL
>> =1ldq
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> IAEP -- It's An Education Project (not a laptop project!)
>> IAEP at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/iaep
>>
>
More information about the Marketing
mailing list