Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Bootable thumb drive

  1. #1
    Join Date
    Jun 2008
    Location
    Bay Area, California
    Posts
    339

    Default Bootable thumb drive

    I didn't know which forum was the best place for this so I put it here.

    Can someone walk me through the process of creating a bootable thumb drive from an .iso? This .iso creates an installation disk for Project Trident which is a desktop variant of Bsd. The website doesn't mention using the .iso to create a thumb drive. Is this an issue? The reason I want to use a thumb drive is that my dvd seems to have quit working properly.

    I have had trouble in the past creating bootable thumb drives because the they wouldn't boot up after writing and restoring them to a normal blank read and write mode for every day use again afterward has been extremely difficult so I would appreciate being taught to erase the files and restore the drive to normal read write mode too.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,316
    Blog Entries
    15

    Default Re: Bootable thumb drive

    Quote Originally Posted by Scott_Swinyard View Post
    I didn't know which forum was the best place for this so I put it here.

    Can someone walk me through the process of creating a bootable thumb drive from an .iso? This .iso creates an installation disk for Project Trident which is a desktop variant of Bsd. The website doesn't mention using the .iso to create a thumb drive. Is this an issue? The reason I want to use a thumb drive is that my dvd seems to have quit working properly.

    I have had trouble in the past creating bootable thumb drives because the they wouldn't boot up after writing and restoring them to a normal blank read and write mode for every day use again afterward has been extremely difficult so I would appreciate being taught to erase the files and restore the drive to normal read write mode too.
    Hi
    Is it visible with fdisk (need to be root)? For example an openSUSE iso image shows;

    Code:
    fdisk -l openSUSE-Tumbleweed-DVD-x86_64-Snapshot20190217-Media.iso
    
    Disk openSUSE-Tumbleweed-DVD-x86_64-Snapshot20190217-Media.iso: 4.3 GiB, 4600102912 bytes, 8984576 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x1a6bfd1c
    
    Device                                                     Boot Start     End Sectors  Size Id Type
    openSUSE-Tumbleweed-DVD-x86_64-Snapshot20190217-Media.iso1       3624   11435    7812  3.8M ef EFI (FAT-12/16/32)
    openSUSE-Tumbleweed-DVD-x86_64-Snapshot20190217-Media.iso2 *    11436 8984575 8973140  4.3G 17 Hidden HPFS/NTFS
    You should be able to use dd to lay the image down

    Code:
    dd if=your_iso_image.iso of=/dev/sdX
    Where sdX is the USB drive.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Bay Area, California
    Posts
    339

    Default Re: Bootable thumb drive

    fdisk -l produced this:

    Code:
    fdisk -l Trident-19.04-U1-x64-20190515.iso
    The backup GPT table is corrupt, but the primary appears OK, so that will be used.
    Disk Trident-19.04-U1-x64-20190515.iso: 3.4 GiB, 3655399424 bytes, 7139452 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: FA3DF87D-7740-11E9-8F66-AC1F6B626660
    
    DeviceStart  EndSectors SizeType
    Trident-19.04-U1-x64-20190515.iso1    80  1679    1600  800K EFI System
    Trident-19.04-U1-x64-20190515.iso2     3    32      30   15K FreeBSD boot
    
    Partition table entries are not in disk order.
    


    I downloaded it twice so....

    Also I have 2 thumb drives but no entry in /dev for any file named sdX

    I still don't remember how to insert those code: boxes. So I just copy pasted text. Sorry. Perhaps you can refresh my memory.

    Last edited by malcolmlewis; 21-May-2019 at 19:46.

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,316
    Blog Entries
    15

    Default Re: Bootable thumb drive

    Quote Originally Posted by Scott_Swinyard View Post
    fdisk -l produced this:

    Code:
    fdisk -l Trident-19.04-U1-x64-20190515.iso
    The backup GPT table is corrupt, but the primary appears OK, so that will be used.
    Disk Trident-19.04-U1-x64-20190515.iso: 3.4 GiB, 3655399424 bytes, 7139452 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: FA3DF87D-7740-11E9-8F66-AC1F6B626660
    
    DeviceStart  EndSectors SizeType
    Trident-19.04-U1-x64-20190515.iso1    80  1679    1600  800K EFI System
    Trident-19.04-U1-x64-20190515.iso2     3    32      30   15K FreeBSD boot
    
    Partition table entries are not in disk order.
    


    I downloaded it twice so....

    Also I have 2 thumb drives but no entry in /dev for any file named sdX

    I still don't remember how to insert those code: boxes. So I just copy pasted text. Sorry. Perhaps you can refresh my memory.

    Hi
    What is the output with the USB device plugged in from the command;

    Code:
    lsblk
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Bay Area, California
    Posts
    339

    Default Re: Bootable thumb drive

    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 931.5G 0 disk
    ├─sda1 8:1 0 240G 0 part /var
    ├─sda2 8:2 0 683.7G 0 part /home
    └─sda3 8:3 0 7.8G 0 part [SWAP]
    sdb 8:16 0 465.8G 0 disk
    sdc 8:32 1 1.9T 0 disk
    └─sdc1 8:33 1 1.9T 0 part
    sdd 8:48 1 57.7G 0 disk
    └─sdd1 8:49 1 57.7G 0 part /run/media/scott/Patriot
    sr0 11:0 1 4.4G 0 rom
    pktcdvd0 253:0 1 4.4G 0 disk

    sdc and sdd are the thumbs.


  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,316
    Blog Entries
    15

    Default Re: Bootable thumb drive

    Quote Originally Posted by Scott_Swinyard View Post
    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 931.5G 0 disk
    ├─sda1 8:1 0 240G 0 part /var
    ├─sda2 8:2 0 683.7G 0 part /home
    └─sda3 8:3 0 7.8G 0 part [SWAP]
    sdb 8:16 0 465.8G 0 disk
    sdc 8:32 1 1.9T 0 disk
    └─sdc1 8:33 1 1.9T 0 part
    sdd 8:48 1 57.7G 0 disk
    └─sdd1 8:49 1 57.7G 0 part /run/media/scott/Patriot
    sr0 11:0 1 4.4G 0 rom
    pktcdvd0 253:0 1 4.4G 0 disk

    sdc and sdd are the thumbs.

    Hi
    Dang a 2TB thumb drive???

    So, as root user (not your user) umount /dev/sdd1 if you want to put the image on this device, but I would get rid of the partitions as well and set as a gpt disk (since the output shows this iso is a gpt rather than dos)

    CAUTION The following will delete all data off the 64GB patriot device....

    Code:
    su -
    umount /dev/sdd1
    wipefs -a /dev/sdd1
    wipefs -a /dev/sdd
    gdisk /dev/sdd
    w
    y
    dd if=<your.iso> of=/dev/sdd
    Since we wiped all the info with wipefs, need to go back in with gdisk to set as gpt type disk rather than dos type.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Jun 2008
    Location
    Bay Area, California
    Posts
    339

    Default Re: Bootable thumb drive

    Are you saying that I need to type "gdisk /dev/sdd" into a root console and hit enter and that will bring me back to a prompt and then I simply need to type "w" and hit enter which will bring me back to a prompt and then I need to type just a "y" and hit enter to set the thumb drive as gpt or are you saying that I need to place the gdisk /dev/sdd before th "w" and "y" each time or do you mean something else entirely?

    Alright all you guys, stop laughing.

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,178
    Blog Entries
    3

    Default Re: Bootable thumb drive

    Quote Originally Posted by Scott_Swinyard View Post
    Alright all you guys, stop laughing.
    I'm not laughing. You asked reasonable questions.

    The "gdisk" with "w" is intended to fix a broken "gpt" partition table. But, in my opinion, that should be done after the "dd" (copying the iso) rather than before.

    Most linux distros are using traditional BIOS partitioning for an iso intended for writing to a USB. That's because gpt partitioning causes problems. Part of the "gpt" partition table (the secondary copy) is written to the end of the disk. But the people preparing the iso do not know what size USB disk you will use. So that's likely to always finish up as a broken gpt table.
    openSUSE Leap 15.1; KDE Plasma 5;

  9. #9
    Join Date
    Jun 2008
    Location
    Bay Area, California
    Posts
    339

    Default Re: Bootable thumb drive

    So how do I restore it to dos afterwards? Just replace the "gpt" with "dos" in the gdisk command?

  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,178
    Blog Entries
    3

    Default Re: Bootable thumb drive

    Quote Originally Posted by Scott_Swinyard View Post
    So how do I restore it to dos afterwards? Just replace the "gpt" with "dos" in the gdisk command?
    Use "gdisk".
    Use the 'x' command (extended functionality).
    Then use the 'z' command (zap the gpt structures and exit).
    openSUSE Leap 15.1; KDE Plasma 5;

Page 1 of 2 12 LastLast

Posting Permissions

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