LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2021, 10:17 AM   #1
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Rep: Reputation: Disabled
Bootable ISO


I have created a USB drive with a linux mint install that has all the apps I need.
I would like to send an ISO file to my co worker so he can make the exact USB drive.
How do I create an ISO file with the partition table so I can send a single ISO to him?

Thank you!
 
Old 01-12-2021, 10:24 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Well. Folks used to use Filezilla a bunch. Which Mint has in it's repos.

Me? I am too lazy. Plus I don't run into this scenario so much. I just copy and paste my downloaded iso and send it using

https://www.sendspace.com/

It is pretty simple to use.

In case I misunderstood.

https://forums.linuxmint.com/viewtopic.php?t=292382

Last edited by rokytnji; 01-12-2021 at 10:27 AM.
 
Old 01-12-2021, 11:08 AM   #3
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Original Poster
Rep: Reputation: Disabled
I can get it to him, but how do I make a bootable ISO from the USB stick?



Quote:
Originally Posted by rokytnji View Post
Well. Folks used to use Filezilla a bunch. Which Mint has in it's repos.

Me? I am too lazy. Plus I don't run into this scenario so much. I just copy and paste my downloaded iso and send it using

https://www.sendspace.com/

It is pretty simple to use.

In case I misunderstood.

https://forums.linuxmint.com/viewtopic.php?t=292382
 
Old 01-12-2021, 11:19 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by TVining View Post
I have created a USB drive with a linux mint install that has all the apps I need.
I would like to send an ISO file to my co worker so he can make the exact USB drive.
How do I create an ISO file with the partition table so I can send a single ISO to him?
Welcome to LQ,

You already do have a bootable USB drive.

For me, the easier thing to do would be to just clone USB to USB. I usually just use dd, as in:
Code:
$ sudo dd if=/dev/sd<top-source-drive-letter> of=/dev/<sdtop-destination-drive-letter> bs=2M
That will make an exact copy of what you do have and it will be the same, a bootable USB drive. In fact, you can test it out and confirm this. Only minor caveat is that you should not use a smaller sized USB drive than the source, and a minor quirk I've noticed is that not all (example) 8 Gig drives are the same, some have a few more or less bits available. But recommend you just try it with same or greater sized USB drive and it should work fine.

A different option is to try Clonezilla. I've never used it, but I see it touted by a lot of people. I don't know if it can deal with some few bytes of size difference for disk manufacturing tolerances.
 
Old 01-12-2021, 11:23 AM   #5
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Original Poster
Rep: Reputation: Disabled
Yes, and I want to create a bootable ISO from it so my coworker can create an identical USB. DD will make the ISO file, but there is no partition table. How do I include the partition table so that he has a bootable USB once he loads the ISO??? He's not sitting in the office next to mine, or I would just give him a stick. I want to transfer the entire ISO. I have the means to do the transfer, just need to make a BOOTABLE ISO file.

Quote:
Originally Posted by rtmistler View Post
Welcome to LQ,

You already do have a bootable USB drive.

For me, the easier thing to do would be to just clone USB to USB. I usually just use dd, as in:
Code:
$ sudo dd if=/dev/sd<top-source-drive-letter> of=/dev/<sdtop-destination-drive-letter> bs=2M
That will make an exact copy of what you do have and it will be the same, a bootable USB drive. In fact, you can test it out and confirm this. Only minor caveat is that you should not use a smaller sized USB drive than the source, and a minor quirk I've noticed is that not all (example) 8 Gig drives are the same, some have a few more or less bits available. But recommend you just try it with same or greater sized USB drive and it should work fine.

A different option is to try Clonezilla. I've never used it, but I see it touted by a lot of people. I don't know if it can deal with some few bytes of size difference for disk manufacturing tolerances.
 
Old 01-12-2021, 12:07 PM   #6
heathcliff36
Member
 
Registered: Jun 2019
Location: West Coast, USA
Distribution: Debian
Posts: 90

Rep: Reputation: Disabled
Quote:
Originally Posted by TVining View Post
Yes, and I want to create a bootable ISO from it so my coworker can create an identical USB.
You took steps to install Linux Mint onto a USB and it was successful.
Repeat those exact steps onto a different USB. Then give that USB to your co-worker.

Quote:
DD will make the ISO file, but there is no partition table. How do I include the partition table so that he has a bootable USB once he loads the ISO???
What do you mean by partition table?
What do you want your co-worker's Linux Mint USB to do which is different to your Linux Mint USB?

Quote:
He's not sitting in the office next to mine, or I would just give him a stick.
Yes.
I'm sure that would be very convenient.

Quote:
I want to transfer the entire ISO. I have the means to do the transfer, just need to make a BOOTABLE ISO file.
Send your co-worker an email of the simple basic steps you took to make a bootable Linux Mint USB.
A bootable Linux Mint USB cannot be emailed to another USB.

Each Linux distro on a computer must perform the DD command with a .iso file (preferably gpg verified) to install a bootable Linux distro onto the USB.
The Linux distro on USB cannot be emailed.
 
Old 01-12-2021, 12:19 PM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Quote:
Originally Posted by TVining View Post
Yes, and I want to create a bootable ISO from it so my coworker can create an identical USB. DD will make the ISO file, but there is no partition table. How do I include the partition table so that he has a bootable USB once he loads the ISO???
A usb drive doesn't always have a partition table. When you buy them, they are usually formatted with the whole drive as one big vfat partition, so no table is necessary. So what happens when you copy an install image onto one? I think an old-fashioned CD iso/hybrid image will still end up as a single partition, but an image designed to boot in native UEFI mode will not. In my experience, these will boot with GRUB and have a separate EFI partition and another with the software on it. And that kind of drive will have a partition table.

Last edited by hazel; 01-12-2021 at 12:20 PM.
 
Old 01-12-2021, 12:24 PM   #8
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by TVining View Post
I can get it to him, but how do I make a bootable ISO from the USB stick?
Is the USB stick bootable?

If it is then a simple "dd if=/dev/sdb of=path/to/file.iso bs=32M " (assuming the USB is /dev/sdb) will create an iso that is an exact copy of what is on the USB. Then that file can be sent and he can recreate a bootable USB for his use.

The iso will contain all the partition table and other data on your USB so when he puts it on the new USB it will "just work". He will have to use a USB that is equal in size to the image you create or larger.

This is essentially what is done when the iso image for the installer is created to make the bootable image you used to do the install.

If it is not bootable then I have no clue how to make it bootable, although the creation of the iso image is the same.
 
Old 01-12-2021, 12:48 PM   #9
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Original Poster
Rep: Reputation: Disabled
result: The source is bootable. I used the dd command below, and get the result in the photo when i use balena etcher to try to build a drive from the file.

Quote:
Originally Posted by computersavvy View Post
Is the USB stick bootable?

If it is then a simple "dd if=/dev/sdb of=path/to/file.iso bs=32M " (assuming the USB is /dev/sdb) will create an iso that is an exact copy of what is on the USB. Then that file can be sent and he can recreate a bootable USB for his use.

The iso will contain all the partition table and other data on your USB so when he puts it on the new USB it will "just work". He will have to use a USB that is equal in size to the image you create or larger.

This is essentially what is done when the iso image for the installer is created to make the bootable image you used to do the install.

If it is not bootable then I have no clue how to make it bootable, although the creation of the iso image is the same.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-01-12 13-47-20.png
Views:	17
Size:	27.7 KB
ID:	35242  

Last edited by TVining; 01-12-2021 at 12:53 PM.
 
Old 01-12-2021, 12:51 PM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
And what happens when you click continue?
 
Old 01-12-2021, 12:54 PM   #11
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Original Poster
Rep: Reputation: Disabled
I get a USB stick that won't boot.


Quote:
Originally Posted by hazel View Post
And what happens when you click continue?
 
Old 01-12-2021, 04:22 PM   #12
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489

Rep: Reputation: Disabled
I think you likely need to use a 'live' distro to build an .iso file of your installation.

Use mkisofs, (or equivalent), then run isohybrid against the resulting .iso file, then you should be able to image write it, (using dd), to another pendrive.

Last edited by fatmac; 01-12-2021 at 04:23 PM.
 
Old 01-12-2021, 06:03 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Need some more information.

Is this a live version with persistence or a "normal" installation?

Are you trying to image the drive on the same system that is currently running? If so that is probably the reason it isn't working.

Also make sure the destination USB drive is not mounted prior to running etcher.
 
Old 01-12-2021, 07:09 PM   #14
TVining
LQ Newbie
 
Registered: Jan 2021
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks!

Thank you, all!
I figured it out. As I was entering the location of the source, I was adding the partition number, which meant it would not copy the partition table.

Thanks!
 
Old 01-12-2021, 08:08 PM   #15
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by TVining View Post
Thank you, all!
I figured it out. As I was entering the location of the source, I was adding the partition number, which meant it would not copy the partition table.

Thanks!
The command I gave you was for the device, not the partition. Please read carefully.
 
  


Reply



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] How do you make a bootable ISO from a bootable USB stick? bt101 Linux - Newbie 20 09-27-2018 09:09 AM
Convert bootable USB .img file to bootable CD .iso file Chris.Bristol Linux - Software 7 01-12-2013 01:00 PM
What the hell is a bootable ISO and a bootable USB-stick? duplex Linux - Software 15 11-23-2012 08:00 PM
[SOLVED] If I dd copy a bootable usb drive to an iso will the iso be bootable? mgallatin Linux - Software 5 03-23-2011 04:46 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 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
Open Source Consulting | Domain Registration