LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-31-2016, 11:20 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 686

Rep: Reputation: 151Reputation: 151
Burn Centos 6.8 iso to USB stick


I must be missing something simple here. I downloaded the Centos iso. I get the following files on my F25 system:

Quote:
[tim@comedian ~]$ ls CentOS-6.8-x86_64-LiveDVD/
CentOS-6.8-x86_64-LiveDVD.iso sha1sum.txt sha256sum.txt.asc
md5sum.txt sha1sum.txt.asc
md5sum.txt.asc sha256sum.txt
A quick sanity check:

Quote:
[tim@comedian ~]$ cat CentOS-6.8-x86_64-LiveDVD/md5sum.txt
f73c2c4dd333c202ca85ea66120cacdf CentOS-6.8-x86_64-bin-DVD1.iso
cdd5b1c1af837774f4fa3a105365a218 CentOS-6.8-x86_64-bin-DVD2.iso
79c7924015d842857fb8177e4b788b8b CentOS-6.8-x86_64-LiveCD.iso
b27e5eef3008fcd7069ac72d113e85d2 CentOS-6.8-x86_64-LiveDVD.iso
0ca12fe5f28c2ceed4f4084b41ff8a0b CentOS-6.8-x86_64-minimal.iso
9e0ee4c5d9d0371fa0c0809b487ee5bb CentOS-6.8-x86_64-netinstall.iso
[tim@comedian ~]$ md5sum CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso
b27e5eef3008fcd7069ac72d113e85d2 CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso
Quote:
[tim@comedian ~]$ cat CentOS-6.8-x86_64-LiveDVD/sha256sum.txt
1dda55622614a8b43b448a72f87d6cb7f79de1eff49ee8c5881a7d9db28d4e35 CentOS-6.8-x86_64-bin-DVD1.iso
0aba869427b4ce04e100d72744daf7fea1f7be2e4be56b658095bd9e99e04e6d CentOS-6.8-x86_64-bin-DVD2.iso
efa82d673206cb6af377b1f929a510cc2b1ce95cdb436210121ec271e056c920 CentOS-6.8-x86_64-LiveCD.iso
52a9c8c1d250de39976dda9412293473b8349efefb31b66fecdee0fdf93866d9 CentOS-6.8-x86_64-LiveDVD.iso
ec49c297d484b9da0787e5944edc38f7c70f21c0f6a60178d8e9a8926d1949f4 CentOS-6.8-x86_64-minimal.iso
56d9cc5757ed1443af7b321967622a108978328f72e58050d31bcf1998dfd162 CentOS-6.8-x86_64-netinstall.iso
[tim@comedian ~]$ sha256sum CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso
52a9c8c1d250de39976dda9412293473b8349efefb31b66fecdee0fdf93866d9 CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso
So far so good. Now I write to USB

Quote:
sudo dd if=CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso of=/dev/sdd bs=4M
Make a coffee while the iso writes. When I eject and reconnect the USB stick, it is not visible via F25. I have tried 2 USB sticks and

Quote:
sudo dd if=CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso of=/dev/sdd
sudo dd if=CentOS-6.8-x86_64-LiveDVD/CentOS-6.8-x86_64-LiveDVD.iso of=/dev/sdd bs=1M
With the same result everytime. Maybe it is the heat and the Christmas cheer but if anyone could spot anything obvious I would be grateful

Cheers
 
Old 12-31-2016, 11:52 PM   #2
Rava
Member
 
Registered: May 2010
Location: Southern Germany
Distribution: Slackware/Porteus
Posts: 54
Blog Entries: 1

Rep: Reputation: 18
I only used the "copy iso to usb stick and erase all data on useb stick) only once, and that was an OS that would work no other way. So I do not have much of advise to give you to make it run your way, but I can give you an alternate way.

Usually I try to make it work as copying the iso as iso file and then address that iso in the bootloader file, e.g. like so for Puppy fatdog iso:
Quote:
LABEL Fatdog64 7.00 via memdisk
KERNEL memdisk
INITRD boot/Fatdog64-700.iso
APPEND iso
TEXT HELP
Run fatdog from ISO file
via memdisk (part of
syslinux)
ENDTEXT
or Slax iso:
Quote:
LABEL Slax.ISO
MENU LABEL Slax from iso
KERNEL /slax/boot/vmlinuz
APPEND from=/boot/slax-7.0.8-x86_64.iso vga=normal initrd=/slax/boot/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,xmode timezone=Europe/Bratislava
TEXT HELP
Run Slax
from local ISO file
ENDTEXT
As you can see, there are different ways to make the ISO bootable, depending on the bootloader and ISO. In very rare occasions it might even be necessary to extract the kernel and initrd so that the booting works, but usually that is not needed.
 
Old 01-01-2017, 12:02 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,274

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
What does "not visible" mean? What is the result of
Code:
mkdir /tmp/foo
mount /dev/sdd1 /tmp/foo
 
Old 01-01-2017, 12:16 AM   #4
herkalurk
Member
 
Registered: Oct 2012
Location: Portland
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 32

Rep: Reputation: 2
unetbootin.....

https://sourceforge.net/projects/unetbootin/
 
Old 01-01-2017, 12:20 AM   #5
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 686

Original Poster
Rep: Reputation: 151Reputation: 151
Quote:
Originally Posted by smallpond View Post
What does "not visible" mean? What is the result of
Code:
mkdir /tmp/foo
mount /dev/sdd1 /tmp/foo
Thanks. The volume is write protected! This gives me something to play with

Quote:
[tim@comedian ~]$ sudo mount /dev/sdd1 /tmp/foo
mount: /dev/sdd1 is write-protected, mounting read-only
[tim@comedian ~]$ ls /tmp/foo/
EFI GPL isolinux LiveOS
 
Old 01-01-2017, 11:32 PM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 686

Original Poster
Rep: Reputation: 151Reputation: 151
Sorry, no joy with this. Can anyone advise either:
  • why the drive becomes write protected after using dd (I tried again after reformatting and same issue)? Or
  • is there a way to remove the read only state?
Cheers
 
Old 01-02-2017, 08:01 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,910

Rep: Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861Reputation: 1861
I'm not sure what you are expecting? You indicate in your initial post that the iso is not visible in Fedora after creating the bootable usb but the output you posted after following the suggestions of 'smallpond' clearly show the expected directories.

Quote:
[tim@comedian ~]$ ls /tmp/foo/
EFI GPL isolinux LiveOS
The flash drive doesn't become write protected because of your use of dd, it becomes write protected because you are putting an iso9660 filesystem on it which is write protected by design. What exactly are you trying to accomplish? Have you tried booting the flash drive since that is generally the purpose of using dd on an iso?

You can't 'remove' the read-only state, what you can do if you want to modify is copy the directories/files to another directory and modify them and then re-create the iso. Again, I'm not sure what your intentions are?

Last edited by yancek; 01-02-2017 at 08:04 AM.
 
Old 01-02-2017, 05:02 PM   #8
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 686

Original Poster
Rep: Reputation: 151Reputation: 151
Looks like I need to go back to "how to write a decent question" class. For a few years now I have used dd to burn isos to USB sticks. I have got a level of confidence now and I simply plug the USB stick into the relevant computer and have a play with the live distro before installing.

This time the computer recognised that a USB stick was present but did not boot from it. When I brought the stick back to my F25 computer I could see no trace of the stick and then we get back to post #1. I also tried unetbootin with no joy.

The requirement for the ISO goes back to a dead Centos disk. When I get a new motherboard I will try Centos 7. In the meantime I will use Fedora server (which I can successfully transfer to USB). The thread is thus solved
 
Old 01-03-2017, 01:17 PM   #9
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,715

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
I find that for some unknown reason, some usb sticks containing dd'd iso images don't automount but do show up when running blkid (as root)
Code:
~$ sudo blkid -c /dev/null
. When a dd'd iso image won't boot, running isohybrid on a copy of the iso file, then dd-ing the isohybridized copy to the usb stick, sometimes gives good results
 
  


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
[SOLVED] Burn iso to USB stick offgridguy Ubuntu 7 06-11-2016 01:37 PM
Burn .MNG File To USB Stick ColJohnHannibalSmith Linux - General 3 01-25-2016 09:51 AM
I pay for windows7.iso burn to LINUX USB 8 GB STICK eurusd Linux - Software 1 01-26-2010 07:19 PM
How to burn the iso into my USB Knight Templar Linux - General 10 08-14-2007 08:14 PM
How do you burn iso files to usb cd-rw drive ??? pleasehelpme Linux - Newbie 0 12-20-2003 03:05 AM

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

All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration