LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-22-2021, 05:23 PM   #1
puskas
Member
 
Registered: Jan 2004
Posts: 45

Rep: Reputation: 15
Problem with burning ISO to USB


I have an USB I want to burn an ISO to. This is the info:
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.4 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data Linux 15.2 GB disk2s2

I use command:
sudo dd bs=4m if=/Users/username/Downloads/linuxmint-20.2-cinnamon-64bit.iso of=/dev/rdisk2

Then it says:
dd: /dev/rdisk2: Resource busy

I was adviced to unmount the USB but then when running the command again it want me to reject the USB. But I ignore and have to erase the USB with disk utility. It doesn't work with Scheme: Apple partition map, so I use GUID partition map and I tried both ExFAT, MS-DOS(FAT) and Mac OS Extended (Journaled). Everyone restores the USB but always puts me in the same loop again and again.

Is there any other solution to Resource busy than unmount? Or why doesn't my USB like: diskutil unmountDisk
 
Old 10-22-2021, 07:24 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I'd think it odd to use rdisk in linux.

What I think is you have a mac and you are trying to use dd.

What does diskutil list say?
 
Old 10-22-2021, 07:38 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by puskas View Post
I have an USB I want to burn an ISO to. This is the info:
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.4 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data Linux 15.2 GB disk2s2

I use command:
sudo dd bs=4m if=/Users/username/Downloads/linuxmint-20.2-cinnamon-64bit.iso of=/dev/rdisk2

Then it says:
dd: /dev/rdisk2: Resource busy

I was adviced to unmount the USB but then when running the command again it want me to reject the USB. But I ignore and have to erase the USB with disk utility. It doesn't work with Scheme: Apple partition map, so I use GUID partition map and I tried both ExFAT, MS-DOS(FAT) and Mac OS Extended (Journaled). Everyone restores the USB but always puts me in the same loop again and again.

Is there any other solution to Resource busy than unmount? Or why doesn't my USB like: diskutil unmountDisk

Try a program I use instead of trying to get those commands to work. It works with most OSs you would want it to do so with.

http://wiki.rosalab.ru/en/index.php/ROSA_ImageWriter

EDIT: BTW you may want to try a newer than year and a half old distribution as the source to boot with when done.

Last edited by HappyTux; 10-22-2021 at 07:40 PM.
 
Old 10-23-2021, 07:45 AM   #4
Punk-in-D
LQ Newbie
 
Registered: Feb 2020
Location: Netherlands
Distribution: Bodhi
Posts: 13

Rep: Reputation: 2
Could the "r" in your command be a typo?

Compare:
Quote:
I have an USB I want to burn an ISO to. This is the info:
/dev/disk2 (external, physical):
Quote:
of=/dev/rdisk2
Also agree with HappyTux, a program is safer normally. You don't want to accidentally wipe out a drive you don't intend to.

Last edited by Punk-in-D; 10-23-2021 at 07:47 AM.
 
Old 10-23-2021, 07:49 AM   #5
puskas
Member
 
Registered: Jan 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Yes, I'm using mac I've used both disk and rdisk. No difference. But this instruction uses both and says:"Note: Using /dev/rdisk instead of /dev/disk may be faster.":
https://www.lewan.com/blog/2012/02/1...-x-from-an-iso
 
Old 10-23-2021, 07:57 AM   #6
Punk-in-D
LQ Newbie
 
Registered: Feb 2020
Location: Netherlands
Distribution: Bodhi
Posts: 13

Rep: Reputation: 2
I don't know the least about working on Macs. Good luck, I hope you find a solution.
I've used Unetbootin (sourceforge)in the past for making bootable usb-sticks. That program works on some of my laptops but not all.
 
Old 10-23-2021, 09:15 AM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by puskas View Post
Yes, I'm using mac I've used both disk and rdisk. No difference. But this instruction uses both and says:"Note: Using /dev/rdisk instead of /dev/disk may be faster.":
https://www.lewan.com/blog/2012/02/1...-x-from-an-iso
Code:
MacUser2525:~$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         128.0 GB   disk0s2
   3:                  Apple_HFS Music                   639.5 GB   disk0s3
   4:                  Apple_HFS Sea_To_Do               1.2 TB     disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +128.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Catalina9600kNVMe - ... 80.7 GB    disk1s1
   2:                APFS Volume Catalina9600kNVMe       11.3 GB    disk1s2
   3:                APFS Volume Preboot                 81.1 MB    disk1s3
   4:                APFS Volume Recovery                529.0 MB   disk1s4
   5:                APFS Volume VM                      1.1 MB     disk1s5

/dev/disk2 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.6 GB    disk2
   1:                       0xEF                         3.8 MB     disk2s2

/dev/disk3 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *480.1 GB   disk3
   1:                        EFI EFI                     209.7 MB   disk3s1
   2:                 Apple_APFS Container disk4         119.3 GB   disk3s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk3s3
   4:                  Apple_HFS Files                   359.6 GB   disk3s4

/dev/disk4 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +119.3 GB   disk4
                                 Physical Store disk3s2
   1:                APFS Volume Catalina9600kSSD - Data 71.6 GB    disk4s1
   2:                APFS Volume Catalina9600kSSD        18.7 GB    disk4s2
   3:                APFS Volume Preboot                 81.1 MB    disk4s3
   4:                APFS Volume Recovery                543.1 MB   disk4s4
   5:                APFS Volume VM                      1.1 MB     disk4s5
Code:
MacUser2525:~$ sudo dd bs=4m if=/Users/MacUser2525/Downloads/linuxmint-20.2-cinnamon-64bit.iso of=/dev/rdisk2
Password:
dd: /Users/MacUser2525/Downloads/linuxmint-20.2-cinnamon-64bit.iso: No such file or directory
MacUser2525:~$ sudo dd bs=4m if=/Volumes/Sea_To_Do/Downloads/linuxmint-20.2-cinnamon-64bit.iso of=/dev/rdisk2
515+1 records in
515+1 records out
2162147328 bytes transferred in 109.312035 secs (19779591 bytes/sec)
When first putting in my spare disk Catalina came up with "The disk you inserted was not readable by this computer" I choose the Eject option. Then once I got the correct path it work fine and in couple of minutes I got the same again when it finished successfully. Open Disk utility in the utilities folder and eject the pen drive before issuing your command it should work after this.

EDIT: and now I think of it the list result after the procedure.

Code:
MacUser2525:~$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         128.0 GB   disk0s2
   3:                  Apple_HFS Music                   639.5 GB   disk0s3
   4:                  Apple_HFS Sea_To_Do               1.2 TB     disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +128.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Catalina9600kNVMe - ... 80.8 GB    disk1s1
   2:                APFS Volume Catalina9600kNVMe       11.3 GB    disk1s2
   3:                APFS Volume Preboot                 81.1 MB    disk1s3
   4:                APFS Volume Recovery                529.0 MB   disk1s4
   5:                APFS Volume VM                      1.1 MB     disk1s5

/dev/disk2 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     Apple_partition_scheme                        *15.6 GB    disk2
   1:        Apple_partition_map                         4.1 KB     disk2s1
   2:                  Apple_HFS                         4.1 MB     disk2s2

/dev/disk3 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *480.1 GB   disk3
   1:                        EFI EFI                     209.7 MB   disk3s1
   2:                 Apple_APFS Container disk4         119.3 GB   disk3s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk3s3
   4:                  Apple_HFS Files                   359.6 GB   disk3s4

/dev/disk4 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +119.3 GB   disk4
                                 Physical Store disk3s2
   1:                APFS Volume Catalina9600kSSD - Data 71.6 GB    disk4s1
   2:                APFS Volume Catalina9600kSSD        18.7 GB    disk4s2
   3:                APFS Volume Preboot                 81.1 MB    disk4s3
   4:                APFS Volume Recovery                543.1 MB   disk4s4
   5:                APFS Volume VM                      1.1 MB     disk4s5

Last edited by HappyTux; 10-23-2021 at 09:24 AM.
 
Old 01-23-2022, 05:46 PM   #8
Trihexagonal
Member
 
Registered: Jul 2017
Posts: 362
Blog Entries: 1

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by puskas View Post
Then it says:
dd: /dev/rdisk2: Resource busy

I was adviced to unmount the USB but then when running the command again it want me to reject the USB. But I ignore and have to erase the USB with disk utility. It doesn't work with Scheme: Apple partition map, so I use GUID partition map and I tried both ExFAT, MS-DOS(FAT) and Mac OS Extended (Journaled). Everyone restores the USB but always puts me in the same loop again and again.

Is there any other solution to Resource busy than unmount? Or why doesn't my USB like: diskutil unmountDisk

The USB stick you use the dd command on MUST be unmounted. Period.

It tried to tell you that and wanted you to EJECT the device, not REJECT it, but you would have none of it.

I do this all the time. Here is how to do it right:

1. Download the .iso to the Directory of your choosing. Let's say Downloads.
2. Insert the USB devise and make sure it is not mounted.
3. Use the cd command to change to that Directory.

Code:
cd /home/jitte/Downloads
4. Now as root run the following command with a change to the Linux designation. On my FreeBSD box the mount point is da0s1, da0s2, etc. It will be different on Linux, I'm not sure what yours will be so won't take a chance on telling you wrong:

Code:
dd if=./kali-linux-2021.4a-amd64.iso of=/dev/da0 bs=512k
Wait, wait, wait.

When done remove it and go in peace..
 
  


Reply



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
Extract ISO to HD, create ISO from Extractions, Boot ISO LemensTS Linux - Software 1 12-28-2010 01:10 PM
Install directly to HDD from iso on HDD/USB, with out burning cd vivinuthappa DamnSmallLinux 7 11-16-2004 10:03 AM
Trouble Burning ISO image to USB pen drive madh@ter Linux - Hardware 1 08-30-2004 10:29 AM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM
audiocd burning problem, whole system hangs while burning ichbinesderelch Linux - Software 1 11-14-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:03 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