LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 05:28 AM   #2
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 330
Blog Entries: 1

Rep: Reputation: 161Reputation: 161
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, 08:09 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,729

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
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, 09:40 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,220
Blog Entries: 13

Rep: Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610
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, 02:50 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,360

Rep: Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984
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, 04:05 PM   #6
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 207Reputation: 207Reputation: 207
Iso is easy to handle, perhaps that's why he want to make an ISO of it.
 
Old 08-21-2018, 04:42 AM   #7
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,211

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, 11: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, 11:10 PM   #9
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 330
Blog Entries: 1

Rep: Reputation: 161Reputation: 161
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 10:34 PM.
 
Old 08-27-2018, 03:26 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,360

Rep: Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984Reputation: 2984
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, 04:38 PM   #11
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 207Reputation: 207Reputation: 207
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11: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 08:29 AM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Linux - Newbie 1 08-26-2006 11:52 PM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Programming 1 08-25-2006 10:11 AM

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

All times are GMT -5. The time now is 09:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration