Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

How to create bootable USB drive with .iso file?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
midnite
Guru
Guru
User avatar
Posts: 474
Joined: Sun Apr 09, 2006 1:37 pm
Location: Hong Kong

How to create bootable USB drive with .iso file?

  • Quote

Post by midnite » Thu Dec 08, 2022 4:10 am

In Windows, I used to Rufus which it was quite handy. In Linux, I think UNetbootin is the most decent software for similar purpose.

(Actually I am using a 500GB 3.5" mechanical hard disk with SATA to USB connector as the "bootable USB drive". I do not have CDROMs or USB sticks around.)
(The ISO image I would like to boot is the HDDGURU's MHDD. I need to fix some hard disk problems.)


Here are the steps. But I experience some minor and major problems.
  1. Initialise the disk with fdisk /dev/sdb
  2. In fdisk, o to create a new empty DOS partition table.
  3. In fdisk, Create a new partition with type 0b W95 FAT32. (It is a partition of 465.8GiB. Will it be a problem as it is too large?)
  4. Format the partition with mkfs.fat -F32 /dev/sdb1
  5. mount /dev/sdb1 /mnt/bootableUSB
  6. emerge -av sys-boot/unetbootin. (Minor problem when man unetbootin: No manual entry for unetbootin.)
  7. Launch UNetbootin with QT_X11_NO_MITSHM=1 targetdrive=/dev/sdb1 /usr/bin/unetbootin. (Minor problem: without targetdrive=/dev/sdb1, the "Drive" drop down menu is blank.)
  8. In UNetbootin GUI, write Diskimage ISO (mhdd32ver4.6.iso) to USB Drive /dev/sdb1.
  9. Here is the content of my bootable USB drive. I notice the ISO image is not copied to the drive. And all the files in the USB drive are smaller than the ISO image file. Is it a problem?

    Code: Select all

    # ls -l mhdd32ver4.6.iso 
    -rw-r--r-- 1 root root 1,533,952 Dec  8 11:53 mhdd32ver4.6.iso
    
    # ls -lAR /mnt/bootableUSB/
    /mnt/bootableUSB/:
    total 524,288
    -r-xr-xr-x 1 root root 116,028 Dec  8 10:54 ldlinux.c32
    -r-xr-xr-x 1 root root  69,632 Dec  8 10:54 ldlinux.sys
    -rwxr-xr-x 1 root root 179,600 Dec  8 10:54 libcom32.c32
    -rwxr-xr-x 1 root root  23,680 Dec  8 10:54 libutil.c32
    -rwxr-xr-x 1 root root  26,568 Dec  8 10:54 menu.c32
    -rwxr-xr-x 1 root root     145 Dec  8 10:54 syslinux.cfg
    -rwxr-xr-x 1 root root       0 Dec  8 10:54 ubnfilel.txt
    -rwxr-xr-x 1 root root       0 Dec  8 10:54 ubnpathl.txt
Major problem: Then I reboot my computer with the bootable USB drive, it is stuck in the UNetbootin boot menu, like the pictures in this thread. Someone was asking similar problem in another thread, but solution guide him to use another software.
- midnite.
Top
ian.au
l33t
l33t
User avatar
Posts: 621
Joined: Thu Apr 07, 2011 3:39 am
Location: Australia

  • Quote

Post by ian.au » Thu Dec 08, 2022 10:05 am

I've never used unetbootin so can offer no help with that.
I've made plenty of bootable USB's over the years, though, using the instructions in https://wiki.gentoo.org/wiki/LiveUSB
Perhaps try that method?
Top
APolozov
Apprentice
Apprentice
User avatar
Posts: 194
Joined: Thu Sep 28, 2006 3:44 pm
Location: Voronezh, Russia

  • Quote

Post by APolozov » Thu Dec 08, 2022 10:08 am

IMHO best choice for booting into ISO image is https://ventoy.net/en/index.html
Excuse my bad English, I only study it.
Top
Banana
Administrator
Administrator
User avatar
Posts: 2387
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Thu Dec 08, 2022 12:50 pm

is the iso a bootable one?

Usually this should to it:

Code: Select all

dd bs=4M if=/paht/to/image.iso of=/dev/sdX conv=fdatasync
There is no need to mount or create a partition.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
shimbob
Apprentice
Apprentice
Posts: 156
Joined: Sat Sep 13, 2003 9:08 pm

  • Quote

Post by shimbob » Thu Dec 08, 2022 7:10 pm

Another vote for Ventoy. There's no need to extract anything and you can fill your boot drive with multiple .iso to choose at boot.
Top
psycho
Guru
Guru
User avatar
Posts: 553
Joined: Fri Jun 22, 2007 1:40 am
Location: New Zealand

  • Quote

Post by psycho » Thu Dec 08, 2022 10:16 pm

All the bootable USB iso files I've been using, for many years, have worked perfectly well with simply...

Code: Select all

cp file.iso /dev/sdx
...so I don't understand the need for the more complex instructions/tools/methods that others use, but I assume they're necessary on some systems.
Top
sabayonino
Veteran
Veteran
User avatar
Posts: 1072
Joined: Tue Jan 03, 2012 5:46 pm
Contact:
Contact sabayonino
Website

  • Quote

Post by sabayonino » Fri Dec 09, 2022 4:44 pm

Code: Select all

app-cdr/isoimagewriter (0.9-r1(5){tbz2}@08/12/2022): Write hybrid ISO files onto a USB disk
.iso and raw .img are supported

QT Library required.
LRS 64/32
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic