Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Create USB boot disk in OSX
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
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 334

PostPosted: Tue Jul 03, 2012 7:11 am    Post subject: Create USB boot disk in OSX Reply with quote

Hi!

I'm in need of a USB boot disk for my netbook that doesn't boot. The only other computer I have available right now is a MacBook and I've found this guide and looked at the diskutil method. Does this work for the gentoo minimal images as well or is there something I else I have to concider? I want to give it a try as soon as I get administrative rights to run dd on the MacBook.

Any help appreciated!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6075
Location: Room 101

PostPosted: Wed Jul 04, 2012 5:37 am    Post subject: Reply with quote

hrnick ...

OSX comes with 'dd' so it should be fairly staightforward ...

Code:
sudo dd if=install-x86-minimal-20120626.iso of=/dev/diskX bs=1M

.. where "diskX" is the USB stick.

Possibly a better option of bootdisk is sysrescuecd which is based on gentoo but comes with various tools (such as ddrescue, partimage, etc) and has good support for netbooks.

HTH & best ...

khay
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 334

PostPosted: Wed Jul 04, 2012 8:15 am    Post subject: Reply with quote

Thanks for your reply! I'll give it a try!
Back to top
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 463
Location: Hokkaido Japan

PostPosted: Mon Apr 06, 2015 12:38 pm    Post subject: make gentoo usb on osx Reply with quote

Here are a few more details.

Download the minimal iso
https://www.gentoo.org/downloads/

Open a Terminal (under Utilities)

Run diskutil list to get the current list of devices
Insert your flash media

Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
Code:
diskutil list


Quote:

/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *7.7 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Untitled 7.4 GB disk2s2


unmount the usb key
Code:
diskutil unmountDisk /dev/disk2

write the usb key
Code:
time sudo dd if=./install-amd64-minimal-20160630.iso of=/dev/diskN bs=1m


Quote:
262+0 records in
262+0 records out
274726912 bytes transferred in 398.002423 secs (690264 bytes/sec)

real 6m38.953s
user 0m0.005s
sys 0m3.193s


Run diskutil eject /dev/diskN and remove your flash media when the command completes
Code:
diskutil eject /dev/diskN


Quote:
Disk /dev/diskN ejected

Based on this article
http://www.webupd8.org/2009/04/4-ways-to-create-bootable-live-usb.html


Cheers,
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