[SOLVED] Tool for creating bootable pen drive
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tool for creating bootable pen drive

    Hi Friends,

    I am running Fedora 29 Workstation 64 bit, which I keep fully updated.

    I keep downloading a lot Linux distros as iso file and then write them to DVDs and install them to a spare hard drive of mine in free time, but lately, I have been thinking of writing only one of these many iso images to a 32 gb pen drive and then install it to a hard drive when I only feel like. This way I can save a lot of DVDs. Is there a free tool which can help me write iso image to a pen drive? Thanks

    Please have a look at the iso images I downloaded in Jan 2019. I download them each Jan. Thanks.

    https://imgur.com/a/hR71vSU
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  2. #2
    Join Date
    Jun 2019
    Location
    Princetown, NY
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    ISO image writer

  3. #3
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,962
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Yes, the dd command in a terminal in Fedora (or any other Linux distro) can do that easily. Please just do a search of the forum for the dd command as of how to use it has been given in a bazillion threads on how to "burn" an image (iso file) to a USB stick.

  4. #4
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Quote Originally Posted by PabloTwo
    Yes, the dd command in a terminal in Fedora (or any other Linux distro) can do that easily. Please just do a search of the forum for the dd command as of how to use it has been given in a bazillion threads on how to "burn" an image (iso file) to a USB stick.
    Sure thanks. I will give it a go, but is there a package as well with GUI? thanks
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  5. #5
    Join Date
    Dec 2017
    Location
    USA
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    It is super easy. I like using dd because it always works.

    Open a terminal, cd to the directory with your iso image. Make sure your flash drive is unmounted and do:

    Code:
    sudo dd bs=4M if=input.iso of=/dev/sd<?>
    where input.iso is the name of the Fedora/Linux ISO you want to write to your usb/pen drive and /dev/sd<?> is your pen/usb drive.

    Do not use a number - in other words NOT of=/dev/sdc1 = because you will be overwriting the entire drive.

    So, for example, using an ISO image I have on my hard drive and used to test compatibility with a 32-bit machine:

    Code:
    sudo dd bs 4M if=Fedora-Cinnamon-Live-i386-29-1.2.iso of=/dev/sdc
    Note no / after if= but they are used after of=.

    You can use gparted to find your pen/usb drive and its letters if you're not familiar with command line options.

    Or, as ghstrydr suggested, use the built-in ISO writing tool in Fedora.

    If you don't know how to get access to it, press the "Windows"/ super key and in the window at the top of your screen type "USB" - that alone should give you the option to click on the Fedora USB-writing tool. From there just select the USB/pen drive you want to write to and the ISO file you want to write from. MAKE SURE TO CHOOSE CAREFULLY SO YOU DO NOT OVERWRITE THE WRONG DRIVE/PARTITION.

    Please post back if any of the suggestions here worked.

    Good luck.
    Last edited by gmach24; 2nd July 2019 at 03:36 PM.

  6. #6
    Join Date
    Apr 2009
    Location
    central NY, USA
    Posts
    1,284
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    It is super easy. I like using dd because it always works.
    The chief problem (as I understand) is that the Red Hat releases now are 'hybrid' releases that can adjust to UEFI or plain installations. However, rufus & inebootin are trying to "FIX" the image to a generic as they copy it, thereby actually breaking it.

    I also understand there's a Fedora Media creator that works well. That said, 'dd' sounds hard but IT IS NOT! You "if=" the /path/imagefile and "of=" the /dev/{device}
    Change - the only constant.

  7. #7
    Join Date
    Dec 2017
    Location
    USA
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Does anyone bother to read the previous messages before commenting on them and posting?

    Just curious.

  8. #8
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Quote Originally Posted by gmach24
    It is super easy. I like using dd because it always works.

    Open a terminal, cd to the directory with your iso image. Make sure your flash drive is unmounted and do:

    Code:
    sudo dd bs=4M if=input.iso of=/dev/sd<?>
    where input.iso is the name of the Fedora/Linux ISO you want to write to your usb/pen drive and /dev/sd<?> is your pen/usb drive.

    Do not use a number - in other words NOT of=/dev/sdc1 = because you will be overwriting the entire drive.

    So, for example, using an ISO image I have on my hard drive and used to test compatibility with a 32-bit machine:

    Code:
    sudo dd bs 4M if=Fedora-Cinnamon-Live-i386-29-1.2.iso of=/dev/sdc
    Great example, really easy, i will try that dd command and yes, you are right dd command is really realiable. thanks a lot.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  9. #9
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Note no / after if= but they are used after of=.
    Yes, I shall keep that in mind. Thanks.

    You can use gparted to find your pen/usb drive and its letters if you're not familiar with command line options.
    Great. GParted is something I really like.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  10. #10
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Or, as ghstrydr suggested, use the built-in ISO writing tool in Fedora.

    If you don't know how to get access to it, press the "Windows"/ super key and in the window at the top of your screen type "USB" - that alone should give you the option to click on the Fedora USB-writing tool. From there just select the USB/pen drive you want to write to and the ISO file you want to write from. MAKE SURE TO CHOOSE CAREFULLY SO YOU DO NOT OVERWRITE THE WRONG DRIVE/PARTITION.
    Yes, you are right. I was able to find out one app called "Fedora Media Write" and I used it to write one Ubuntu iso to a 32 GB pen drive of mine and I was able to install Ubuntu to an empty 500 GB HDD of mine without any issues. Please have a look at the photos at the following URL.

    https://imgur.com/a/BUzqZyJ

    The reason that I keep posting screenshots of what I do as part of my response to the suggestions provided by members of this forum is just to make sure that I value them a lot and I also want to let you all guys know that despite my very limited Linux/Fedora skills, I am someone who is always eager to learn and grow and this growth is basically because of members like yourself, who selflessly help complete strangers like myself. I can't thank you enough. I can only pray for you all.

    The most amazing thing was the fact the this tool allowed me to write an Ubuntu iso to a pen drive. Initially I thought it would not allow me to write an iso other than Fedora. Simply brilliant. Thanks.

    Please post back if any of the suggestions here worked.
    Yes, all of them worked, thanks a lot.


    Good luck.
    Thanks a lot.
    Last edited by tech291083; 26th July 2019 at 08:06 AM.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  11. #11
    Join Date
    Sep 2006
    Posts
    1,859
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Quote Originally Posted by PabloTwo
    Yes, the dd command in a terminal in Fedora (or any other Linux distro) can do that easily. Please just do a search of the forum for the dd command as of how to use it has been given in a bazillion threads on how to "burn" an image (iso file) to a USB stick.
    Yes, sure. Thanks a lot
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  12. #12
    Join Date
    Aug 2010
    Location
    Al Ain, UAE
    Posts
    2,015
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Hmm, the easiest way by far, is just to copy a Linux install image!

  13. #13
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    6,173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    I wrote a bash shell script that does what you want. I am pasting it below. I call it mydd.sh and it takes two arguments.
    The first argument is the flashdrive letter for address that you have the flash drive installed, and the second argument is the iso file.
    The script without arguments will show you the devices, even with arguments, the script will ask that you confirm your action.
    After confirmation, the script runs the dd command.

    If you use c for the first argument, the it is treated as /dev/sdc.

    Code:
    #!/bin/bash
    # Author Leslie Satenstein 2019-01-12 
    # mydd.sh Licensed as gpl3 
    # Yours to modify to your hearts content.
    # Not responsbile for your goofups
    # If necessary, modify ALLOWABLE_Drives to indicate /dev/sd? range. 
    #  
    ALLOWABLE_Drives='bcdegh'            #<< if you always boot from b, then fix this up. 
    DRIVELETTER=$1
    ISOFILE=$2
    rc=0
    echo -e "\n$(basename $0 ) version 0.9 12Jan2019"
    if [[ $# -ne 2 ]];
    then
       echo
       echo  "Use to create Bootable USB. Use as: $(basename $0) singledriveletter  path_to_iso/isofile.iso"
       echo "$(basename $0) First  parameter: drive letter from $ALLOWABLE_Drives"   
       echo "$(basename $0) Second parameter: path_to_iso/isofile.iso"
       echo " You must be certain that the /dev/sd? is for a flashdrive]"
       echo " If in doubt, review below list with sudo lsblk . Reconfirm with lsusb"
       echo
       sleep 3
       echo "List of potential devices to determine drive letter"
       sudo lsblk 
       echo "Repeat: First parameter: drive letter from one of \"$ALLOWABLE_Drives\""
       echo "        Second parameter: path_to_iso/isofile.iso"
    
       exit 1
    fi
    SIZE=${#DRIVELETTER}
    if [[ 1 != $SIZE ]];
      then
      echo "Only one drive letter please!, Not $DRIVELETTER" >&2
      rc=1
    fi
    
    if [[ $ALLOWABLE_Drives != *"$1"* ]]; then
      echo "$1 not one of $ALLOWABLE_Drives "   >&2
      rc=1
    fi
    
    # -- iso file should end in dot iso --
    if [[ $ISOFILE != *.iso ]];then echo "$2 is not an *.iso file" >&2
       rc=1
    fi
    
    if [ ! -e $ISOFILE ];then echo "$ISOFILE does not exist!" >&2 ; rc=1; fi
    if [ $rc != 0 ]; then    exit 1 ; fi
    
    DEVICE="/dev/sd$DRIVELETTER"
    bs='bs=16M'
    echo "sudo dd of=$DEVICE if=$2  $bs status=progress oflag=direct,sync"
    yn="x"
       echo ""
       echo "This ISO: $2"
       echo "To this device?"
       sudo blkid $DEVICE*
       echo ""
    while [[ $yn == "x" ]]
    do
       echo -e "continue? y/n "
       read yn
       if [[ "x$yn" != "x" ]];
       then
         if [ "$yn" == "n" ];then exit 0; fi
         if [ "$yn" == "y" ]; then break; fi
       fi
       yn="x"
    done
    
    sudo dd if=$2 of=$DEVICE  $bs status=progress oflag=direct,sync
    echo "eject $DEVICE"
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  14. #14
    Join Date
    Oct 2007
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    Quote Originally Posted by gmach24
    Does anyone bother to read the previous messages before commenting on them and posting?

    Just curious.
    I second that.

  15. #15
    Join Date
    Oct 2007
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Tool for creating bootable pen drive

    You won't change the command line junkies. That's why Windows is still top of the pile.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Creating bootable USB
    By Forester in forum Using Fedora
    Replies: 6
    Last Post: 18th June 2012, 06:07 AM
  2. Need help creating a bootable cd
    By ankita_mishra in forum Using Fedora
    Replies: 5
    Last Post: 15th February 2008, 09:34 PM
  3. Creating a non-GUI Bootable USB Flash Drive
    By radicaltangent in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 10th December 2007, 01:52 PM
  4. creating bootable disks for FC4
    By drgonzo in forum EOL (End Of Life) Versions
    Replies: 6
    Last Post: 16th June 2005, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •