Live USB stick for OSX intel

classic Classic list List threaded Threaded
3 messages Options
Garrettlynch Garrettlynch
Reply | Threaded
Open this post in threaded view
|

Live USB stick for OSX intel

Hi

Trying to set up a Live USB stick for OSX intel machines following the tutorial here: http://en.wikibooks.org/wiki/Puredyne/Creating_a_live_USB_stick

I've got a Live CD working with "puredyne-911-carrot_and_coriander-CD-i386.iso" (on Macbook Pro 2), manage to get all the way through the USB install, everything looks ok, the stick gets populated with folders and files and it completes in the command prompt without any errors that I can see.  I restart holding down alt but no bootable USB stick?  I've tried installing twice, the same each time, and I've tried the stick in another newer intel mac (a 2011 imac) which doesn't show the stick ether.  When I boot into OSX it tells me the stick is "unreadable by this computer" - looking at it in Disk Utility it has two Linux partitions (I presume that's normal).

The command prompt output when I'm installing from the running Live CD is below.  Any help/suggestions as to where I'm going wrong would be much appreciated.

Garrett


(~) % sudo bouilloncube/sh/grub2/make-live-device.sh Desktop/puredyne-911-carrot_and_coriander-CD-i386.iso /dev/sdb
[?] Are you sure your target is /dev/sdb ? (y/n)y
[*] mounting ISO
[*] ISO file is 726 MB
[*] force unmounting partitions from /dev/sdb
umount: /dev/sdb: not mounted
[*] erasing target's partition table
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
umount: /dev/sdb: not mounted
[*] creating system partition of 826 MB
[*] force unmounting partition /dev/sdb1
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=puredyne
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
50512 inodes, 201652 blocks
10082 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=209715200
7 block groups
32768 blocks per group, 32768 fragments per group
7216 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[*] creating persistence partition
[*] force unmounting partition /dev/sdb2
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=live-rw
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
441504 inodes, 1763651 blocks
88182 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1807745024
54 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[*] copying live folder
[*] grub configuration
[*] device ID is a2ace92b-d270-46d1-83b1-f09036c15fa5
Installation finished. No error reported.
This is the contents of the device map /mnt/make-live-device/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
(hd1) /dev/sdb
  Using bouilloncube/sh/grub2/grub-puredyne-1010.cfg.in
/mnt/make-live-iso ~
`live/' -> `/mnt/make-live-device/live'
`live/filesystem.squashfs' -> `/mnt/make-live-device/live/filesystem.squashfs'
`live/initrd.img' -> `/mnt/make-live-device/live/initrd.img'
`live/memtest' -> `/mnt/make-live-device/live/memtest'
`live/packages.txt' -> `/mnt/make-live-device/live/packages.txt'
`live/parameters.txt' -> `/mnt/make-live-device/live/parameters.txt'
`live/vmlinuz' -> `/mnt/make-live-device/live/vmlinuz'
`LICENSE' -> `/mnt/make-live-device/LICENSE'
`extra' -> `/mnt/make-live-device/extra'
`extra/grub' -> `/mnt/make-live-device/extra/grub'
`extra/grub/grub.cfg' -> `/mnt/make-live-device/extra/grub/grub.cfg'
`extra/grub/menu.lst' -> `/mnt/make-live-device/extra/grub/menu.lst'
`extra/grub2' -> `/mnt/make-live-device/extra/grub2'
`extra/grub2/98_puredyne-live' -> `/mnt/make-live-device/extra/grub2/98_puredyne-live'
`extra/grub2/99_puredyne-iso' -> `/mnt/make-live-device/extra/grub2/99_puredyne-iso'
`extra/grub2/README.puredyne-live' -> `/mnt/make-live-device/extra/grub2/README.puredyne-live'
`md5sum.txt' -> `/mnt/make-live-device/md5sum.txt'
`pure.seed' -> `/mnt/make-live-device/pure.seed'
`README' -> `/mnt/make-live-device/README'
~ /mnt/make-live-iso
[*] cleaning up, unmounting and ...
umount: /dev/sdb: not mounted
umount: /dev/sdb2: not mounted
[*] ...done.
(~) %                
grant centauri grant centauri
Reply | Threaded
Open this post in threaded view
|

Re: [puredyne] Live USB stick for OSX intel

this is an issue we've been trying to solve, but unsuccessfully.

I have had luck booting a CD, and using the live-rw partition of a USB
for persistence.  If you are able to pass the "toram" option at boot
time, you shouldn't notice any difference running from the CD compared
to the USB.  Perhaps a longer boot time but... that is your easiest
option right now.

Apple computers use something called EFI (extensible firmware
interface) for their bios, which is why the disk isn't recognized as
being bootable.  There is someone who has made live-bootable USB
sticks that work on Apples, using the EFI boot software.
http://ccobb.net/demos/liveusb/  this is his site, and with this info
is the closest we've gotten to a working live-usb bootable on Macs....
however, even though the disk is recognized and starts to boot, it
ends up hanging part way through the boot process, and the bug hasn't
been ironed out.  No one has had regular access to an apple machine to
fix things unfortunately.

for now, try booting from a CD or DVD with the USB you've made.  You
should be able to install programs and save work no problem, and if
the list can help me out, i believe its possible to pass the "toram"
option at boot?  By doing this, the entire CD or DVD will get loaded
into RAM (i assume this is doable with such a new machine.  should
have plenty of ram) and you'll have speedy response from all programs.
 Sorry there's not a better solution yet.

-grant

On 11/30/11, Garrettlynch <[hidden email]> wrote:

> Hi
>
> Trying to set up a Live USB stick for OSX intel machines following the
> tutorial here:
> http://en.wikibooks.org/wiki/Puredyne/Creating_a_live_USB_stick
>
> I've got a Live CD working with
> "puredyne-911-carrot_and_coriander-CD-i386.iso" (on Macbook Pro 2), manage
> to get all the way through the USB install, everything looks ok, the stick
> gets populated with folders and files and it completes in the command prompt
> without any errors that I can see.  I restart holding down alt but no
> bootable USB stick?  I've tried installing twice, the same each time, and
> I've tried the stick in another newer intel mac (a 2011 imac) which doesn't
> show the stick ether.  When I boot into OSX it tells me the stick is
> "unreadable by this computer" - looking at it in Disk Utility it has two
> Linux partitions (I presume that's normal).
>
> The command prompt output when I'm installing from the running Live CD is
> below.  Any help/suggestions as to where I'm going wrong would be much
> appreciated.
>
> Garrett
>
>
> (~) % sudo bouilloncube/sh/grub2/make-live-device.sh
> Desktop/puredyne-911-carrot_and_coriander-CD-i386.iso /dev/sdb
> [?] Are you sure your target is /dev/sdb ? (y/n)y
> [*] mounting ISO
> [*] ISO file is 726 MB
> [*] force unmounting partitions from /dev/sdb
> umount: /dev/sdb: not mounted
> [*] erasing target's partition table
> Warning: Unable to open /dev/sr0 read-write (Read-only file system).
> /dev/sr0 has been opened read-only.
> umount: /dev/sdb: not mounted
> [*] creating system partition of 826 MB
> [*] force unmounting partition /dev/sdb1
> mke2fs 1.41.9 (22-Aug-2009)
> Filesystem label=puredyne
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 50512 inodes, 201652 blocks
> 10082 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=209715200
> 7 block groups
> 32768 blocks per group, 32768 fragments per group
> 7216 inodes per group
> Superblock backups stored on blocks:
> 32768, 98304, 163840
>
> Writing inode tables: done
> Writing superblocks and filesystem accounting information: done
>
> This filesystem will be automatically checked every 30 mounts or
> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
> [*] creating persistence partition
> [*] force unmounting partition /dev/sdb2
> mke2fs 1.41.9 (22-Aug-2009)
> Filesystem label=live-rw
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 441504 inodes, 1763651 blocks
> 88182 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=1807745024
> 54 block groups
> 32768 blocks per group, 32768 fragments per group
> 8176 inodes per group
> Superblock backups stored on blocks:
> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
>
> Writing inode tables: done
> Writing superblocks and filesystem accounting information: done
>
> This filesystem will be automatically checked every 28 mounts or
> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
> [*] copying live folder
> [*] grub configuration
> [*] device ID is a2ace92b-d270-46d1-83b1-f09036c15fa5
> Installation finished. No error reported.
> This is the contents of the device map
> /mnt/make-live-device/boot/grub/device.map.
> Check if this is correct or not. If any of the lines is incorrect,
> fix it and re-run the script `grub-install'.
>
> (hd0) /dev/sda
> (hd1) /dev/sdb
>   Using bouilloncube/sh/grub2/grub-puredyne-1010.cfg.in
> /mnt/make-live-iso ~
> `live/' -> `/mnt/make-live-device/live'
> `live/filesystem.squashfs' ->
> `/mnt/make-live-device/live/filesystem.squashfs'
> `live/initrd.img' -> `/mnt/make-live-device/live/initrd.img'
> `live/memtest' -> `/mnt/make-live-device/live/memtest'
> `live/packages.txt' -> `/mnt/make-live-device/live/packages.txt'
> `live/parameters.txt' -> `/mnt/make-live-device/live/parameters.txt'
> `live/vmlinuz' -> `/mnt/make-live-device/live/vmlinuz'
> `LICENSE' -> `/mnt/make-live-device/LICENSE'
> `extra' -> `/mnt/make-live-device/extra'
> `extra/grub' -> `/mnt/make-live-device/extra/grub'
> `extra/grub/grub.cfg' -> `/mnt/make-live-device/extra/grub/grub.cfg'
> `extra/grub/menu.lst' -> `/mnt/make-live-device/extra/grub/menu.lst'
> `extra/grub2' -> `/mnt/make-live-device/extra/grub2'
> `extra/grub2/98_puredyne-live' ->
> `/mnt/make-live-device/extra/grub2/98_puredyne-live'
> `extra/grub2/99_puredyne-iso' ->
> `/mnt/make-live-device/extra/grub2/99_puredyne-iso'
> `extra/grub2/README.puredyne-live' ->
> `/mnt/make-live-device/extra/grub2/README.puredyne-live'
> `md5sum.txt' -> `/mnt/make-live-device/md5sum.txt'
> `pure.seed' -> `/mnt/make-live-device/pure.seed'
> `README' -> `/mnt/make-live-device/README'
> ~ /mnt/make-live-iso
> [*] cleaning up, unmounting and ...
> umount: /dev/sdb: not mounted
> umount: /dev/sdb2: not mounted
> [*] ...done.
> (~) %
>
>
> --
> View this message in context:
> http://puredyne.466513.n3.nabble.com/Live-USB-stick-for-OSX-intel-tp3549445p3549445.html
> Sent from the Puredyne mailing list archive at Nabble.com.
> ---
> [hidden email]
> http://identi.ca/group/puredyne
> irc://irc.goto10.org/puredyne
>
---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne
Garrettlynch Garrettlynch
Reply | Threaded
Open this post in threaded view
|

Re: [puredyne] Live USB stick for OSX intel

Hi Grant

Thanks for your reply.

Apple computers use something called EFI (extensible firmware
interface) for their bios, which is why the disk isn't recognized as
being bootable.  There is someone who has made live-bootable USB
sticks that work on Apples, using the EFI boot software.
http://ccobb.net/demos/liveusb/  this is his site, and with this info
is the closest we've gotten to a working live-usb bootable on Macs....
however, even though the disk is recognized and starts to boot, it
ends up hanging part way through the boot process, and the bug hasn't
been ironed out.  No one has had regular access to an apple machine to
fix things unfortunately.

Right, this was something I came across when I was trying Ubuntu.  I did try a tutorial where I made efi/boot, dropped a 32 bit file in there and and an iso file renamed to boot.iso.  It did recognise it, booted as far as the Ubuntu log in screen and then crashed showing a sort of corrupt file on screen.  Sounds very similar to what you described.

I wonder if using the extracted iso would make any difference with Puredyne.  How do you do it, iso or extracted?  The tutorial you mentioned describes putting Ubuntu in its own directory on the USB stick.  Did you do this with Puredyne?

I'll have time to do some more tests tomorrow. The cd is really just a short term testing solution for me.

Does anyone on the list know if the Puredyne USB sticks sold on the site are bootable on OSX?  Would using terminal to copy all of one of those to other USB sticks work?

Garrett
_________________

---
[hidden email]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne