LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-26-2016, 01:53 AM   #1
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Rep: Reputation: 3
Duplicating an OSX ISO USB Drive in Linux


2016-06-26

I know that in Linux one can copy the ISO on a live Linux usb onto another usb which will function exactly like the master usb.

I wonder whether I can similarly duplicate an OSX 10.6 ISO on a live Apple usb using a Linux computer. I can readily foresee quite a few problems since OSX is an entirely different operating system. Also what would I use as the input iso file name?
Code:
 sudo fdisk -l
outputs the following response:

Disk /dev/sdc 16.0 GB
WARNING:GPT (GUID Partition Table) detected on '/dev/sdc'! The util doesn't support GPT. Use GNU Parted.

/dev/sdc1 ..... System=GPT.


I thought I might be able to use 'dd' for this new task. I am raising the matter because I'd like to experiment with the working OSX usb's ISO but do not wish to risk damaging the master usb itself.

Any advice or help will be much appreciated.

julianvb

Last edited by julianvb; 06-26-2016 at 01:55 AM.
 
Old 06-26-2016, 03:49 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Hi!

I have used dd to do this in the past, and it has worked without a hitch.

Best regards,
HMW
 
1 members found this post helpful.
Old 06-26-2016, 11:37 AM   #3
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
HMW,

Thanks very much for your prompt response. Since this usb appears to Linux only as a folder with a very long name which does not include 'iso', what do I use as the input file name? Can you give me an example of what you did in the past?

julianvb
 
Old 06-26-2016, 12:19 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222
Code:
lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 1149.1G  0 disk 
|-sda1   8:1    0   957M  0 part 
`-sda2   8:2    0 1148.1G  0 part /
sdb      8:16   1   986M  0 disk 
`-sdb1   8:17   1   986M  0 part 
sr0     11:0    1   4.1G  0 rom
To make image.iso
Code:
dd if=/dev/sdb of=image.iso bs=2048
Mount the .iso to look at it
Code:
mount -o loop image.iso /mounting/point
Burn to DVD (has to fit)
Code:
growisofs -dvd-compat -speed=8  -use-the-force-luke=tty -Z /dev/sr0=/path/name.iso
Burn to another usb stick (has to fit)
Code:
dd if=image.iso of=/dev/sdb bs=2048
If the first stick was 4 GB for example, then the second usb stick will read as a 4 GB stick regardless of how big it is.

Note: dd does not have any mercy.
If you select the wrong device it will overwrite it.
 
1 members found this post helpful.
Old 06-26-2016, 12:20 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I do not understand your problem, you asking for output file name? Use whatever suits you.

Code:
dd if=/dev/sdX of=myfilename bs=1M
 
1 members found this post helpful.
Old 06-26-2016, 01:41 PM   #6
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
teckk and Emerson,

Thanks for your very helpful detailed instructions and for correction my poor memory. I've just successfully extracted the master usb's ISO using the 'dd' terminal command. I named the ISO 'snow.iso'. When I requested K3B to burn this image to a DVD, it displayed the following:

Seems not to be a usable image
.

I'll appreciate any new advice or clues.

julianvb

Last edited by julianvb; 06-26-2016 at 01:45 PM.
 
Old 06-26-2016, 02:06 PM   #7
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222
You don't provide much.
If you want help then post the dd command string that you used, how big the .iso file is, if growisofs will burn it, etc.

from man growisofs
Code:
-dry-run
At dry-run growisofs performs all the steps till, but  not  including
the  first  write operation. Most notably check for "overburn" condi-
tion is performed, which implies that mkisofs is invoked  and  termi-
nated prematurely.
What the output of
Code:
file snow.iso
Can you mount the .iso and look at it's contents?
 
Old 06-26-2016, 03:01 PM   #8
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
teckk,

I just executed the growisofs command as follows:
Code:
 growisofs -dvd-compat -speed -use-the-force-luke=tty -Z /dev/sr0/=snow.iso
Linux returned
Quote:
Executing 'builtin_dd if=snow.iso of=/dev/sr0 obs=32K seek=0'
But Linux immediately returned the terminal prompt and the DVD LED blinked only once.

Code:
 file snow.iso
returned
snow.iso: x86 boot sector

Code:
 ls -l snow.iso
returned
-rw-r-r-- 1 root root 16GB Jun 26 13:18 snow.iso

I am sorry that I don't know how to mount the iso. Do you mean the master usb, by any chance?

New question: How do I format a usb stick before I burn an iso image on it?

Thanks again for your help and patience with me.

julianvb

Last edited by julianvb; 06-26-2016 at 03:14 PM.
 
Old 06-26-2016, 07:41 PM   #9
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
teckk,

Good news. When I used your dd code to burn snow.iso onto a usb stick, everything went smoothly and subsequently I was able to use the dd-burned live usb stick to start up my old MacBook Pro A1226 and to restore its OSX 10.6.3. It worked just as well as the master usb stick.

As for my unsuccessful attempt to burn a live DVD, it doesn't matter any longer. Personally I think it's much more efficient to burn usb sticks than DVD-Rs as DVD-Rs permit no failures and it's so easy to commit inadvertent human errors.

Many thanks again.

julianvb

Last edited by julianvb; 06-27-2016 at 01:17 AM.
 
Old 06-28-2016, 01:42 PM   #10
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,762
Blog Entries: 4

Rep: Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222Reputation: 1222
Good, make sure that your optical drive is /dev/sr0, that the DVD media you are using is good, the DVD drive itself works, and solve that problem too.
Quote:
I am sorry that I don't know how to mount the iso.
Re read post 4.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem making a linux iso out of a usb flash drive linux live mia_tech Linux - General 2 01-31-2014 04:59 PM
Creating linux persistent bootable USB drive from iso gusblake Linux - General 8 12-12-2010 09:14 AM
[SOLVED] how to boot to a Linux iso file image when installed onto a USB external hard drive ? james2b Linux - Newbie 2 11-30-2009 01:26 AM
Duplicating a hard drive mediocre Linux - General 1 03-24-2006 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration