Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Linux Mint 17.2, and 18.3(different Machine) and am trying to use the dd command to burn iso to USB. I have tried formatting the USB first, and not formatting the usb, I made a hybrid iso and tried that and when I look at the USB in Dolphin there is nothing there or it doesn't show up at all, or I get about 10 lines of errors about mounting the usb. Here are the things I have tried:
I realize there are other ways(?) to do this but I am working on learning Linux and I want to learn to do this this way.
Thank you in advance for any and all help and for your time.
what is /dev/sdg, you got that many usb ports? if it is correct then go with it.
Code:
lsblk // to get your usb port with your usb stick plugged in.
//being inside of the same directory the iso is at.
sudo dd if=mint.iso of=/dev/sdx && sync
that's always worked for me, and the 'x' indicates the letter a,b,c etc.
make sure the usb stick is NOT mounted. Just plug it in and do not use a file manager or anything to read it first. get its address using lsblk and then issue the commands to dd to it. reboot and do your thing to select it on boot to boot into it to see if that worked. you do not have to go through the install process, ( said for that just in case )
bw-userx is correct, but also to note that you were correct with the form of the command you entered a few times as shown in your history. Perhaps you did get the path to your USB stick incorrectly, perhaps the ISO file you have is not a boot capable one, or perhaps the ISO file you downloaded is flawed or has some other problem. Most Linux distributions provide an MD5 sum to check the ISO file and verify you have downloaded it all, and downloaded it correctly.
My only guess is that you did perform the sudo dd if=<filename>.iso /dev/sd<drive-letter> and it did not result in a bootable USB?
Thank you all so much for the rapid replies. I am not totally new to linux, I have been using it for a long time. I always check the midsum on my downloads. Don't know why it came up with /dev/sdg, since fdisk gave me that I just went with it. I think the problem was in formating it then checking it with dolphin or Kde partition manager, hence it was mounted. I tried unmounting before running dd and it worked. The other thing is it never showed up in dolphin even though it was a working USB??? Thank you all again, I wanted a bootable USB so I could copy some files off a windows laptop that wouldn't boot.
"I made a hybrid iso " What exactly do you mean here?
After looking at the iso in ARK I could only see where the iso was meant to be a CD. After some research I found out about Hybrid iso's that are able to be burned to CD or USB (see 1087-1089) of my terminal post. I am not sure if I had unmounted the USB first the original iso may have worked. I will try and post the results. If I just plug in the USB and use fdisk will it be mounted, even if I don't use dolphin or KDE partition manager?
everyone please go back and read post #1.
the commands look ok to me.
i'll say it again, it is totally normal that the resulting usb medium won't show up in the filemanager or can't be browsed with it.
if you need to get some data off it, you can mount it first.
i just tried with any old iso, the command:
Just to clarify a bit, if you use dd to put an iso image on to usb, then the usb now has the filing system appropriate to an optical disk. As far as Linux is concerned, it looks like an optical drive run off a usb port. Naturally, it won't be treated as a random-access memory device any more.
Incidentally, if ever you need to turn it back into a conventional memory device, a partition editor probably won't do it. It will see the device has the iso9660 filing system and assume you're trying to partition a DVD! The secret is to destroy the filing system ID before using the partition editor, with
dd if=/dev/zero bs=1M count=10 of=/dev/sdx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.