LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-20-2018, 03:17 AM   #1
jdjon
LQ Newbie
 
Registered: Aug 2018
Distribution: Lubuntu, Bunsenlabs, OSX, Xigmanas, ...
Posts: 13

Rep: Reputation: Disabled
can I make a bootable ISO from my hard disk?


Can I make a bootable ISO image from my hard disk? I understand dd does not convert the filesystem, and I have no idea if/how I should update a bootloader. I would like to take my user environment with me on other PC's without them being editable/changeable. Can this be done? How?
 
Old 08-20-2018, 04:28 AM   #2
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
have a look at respin(formerly remastersys) and G4L.

Personally, I use dd to make (non-bootable)ISOs. Then boot the target system with a live USB, mount the ISO and copy over.
 
Old 08-20-2018, 07:09 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
There are various methods with different Linux systems. Remastersys did this with the Ubuntu derivatives and there is similar software such as Systemback and PinGuyBuilder for the Ubuntu derivatives. Other Linux systems have similar software so knowing which Linux you are using would be needed. These programs would create a bootable iso without the need for the user to add a bootloader. There are limitations on the size of the iso with some of this software.
 
Old 08-20-2018, 08:40 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I'm not sure why it needs to be an ISO file.

It can just be a binary copy of your hard disk, which you would use dd to do this. And if you have a transportable media which is large enough to contain the entire space of your hard disk, then you can use dd to make a copy of that image.
 
1 members found this post helpful.
Old 08-20-2018, 01:50 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I might be tempted to look at the ways they make live usb's. Basically they take a running system and usually compress most or all of it no a squashfs file (or other compression) and then add some stuff to make it bootable/usable.

It's not easy to modify a squashfs while mounted.
 
Old 08-20-2018, 03:05 PM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Iso is easy to handle, perhaps that's why he want to make an ISO of it.
 
Old 08-21-2018, 03:42 AM   #7
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,504

Rep: Reputation: Disabled
Several distros have remastering tools as standard that do exactly what you are looking for.

(Both distros that I use - AntiX & MX Linux).
 
Old 08-21-2018, 10:18 AM   #8
jdjon
LQ Newbie
 
Registered: Aug 2018
Distribution: Lubuntu, Bunsenlabs, OSX, Xigmanas, ...
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks for the helpful advise, especially Honest Abe.
Found a few that I will need to test out :
linux-live.org
linuxrespin.org
systemback
remastersys.org (Honest Abe)
livemagic

Slowly climbing the everest of linux ... if anyone has a foolproof guide, plz share!
 
Old 08-26-2018, 10:10 PM   #9
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
For future visitors to this thread looking for a command line solution for disk backups, I use the following to take dd backups (non-bootable ISO) -

Code:
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /PATH/TO/DRIVE/backup_image.iso.gz
Note: I run this from Runlevel 1 (rescue.target for systemd users) to minimize IO overhead, though I suppose the same command can also be used from Runlevel 3/5 (multi-user.target & graphical.target respectively for systemd) if you have booted from a live media.

Last edited by Honest Abe; 08-27-2018 at 09:34 PM.
 
Old 08-27-2018, 02:26 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I assumed that the user wanted to create a live optical image and not just a copy of a drive. Could be wrong.
 
Old 08-27-2018, 03:38 PM   #11
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Code:
mkisofs -o destination-filename.iso /home/username/folder-name
https://www.wikihow.com/Create-an-ISO-File-in-Linux

Is that what you want to do?

Code:
info mkisofs
Code:
mkisofs --help
 
  


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
bootable Hard Disk from custom ISO, installing via LIVE-USB rafthebee Debian 11 04-13-2018 10:15 PM
make bootable CD from hard disk image and mount root file system as ramfs Mr.J Linux - Embedded & Single-board computer 1 08-19-2008 07:29 AM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Linux - Newbie 1 08-26-2006 10:52 PM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Programming 1 08-25-2006 09:11 AM

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

All times are GMT -5. The time now is 10:33 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