LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2020, 08:56 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Can I transfer boot sector to a non-bootable image file and make it bootable?


I have a CD image file that is supposed to be bootable, but it's not working. I have checked the checksum and I never burned it to physical media, I'm using it in VirtualBox. So the download is OK.

I googled and found this method:

http://bootableusb.net/make-non-boot...mage-bootable/

It's a Windows application. It even runs on Wine, but it's a paid program and I want to have it done for free. Can Linux do it?

TIA
 
Old 09-18-2020, 10:06 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I'd mount the image and look at what you have to being with. Maybe just copy it all to a directory structure to later be wrapped back up. There are a few ways to boot a cd.

What is this disc image?
 
Old 09-19-2020, 03:06 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by lucmove View Post
I have a CD image file that is supposed to be bootable, but it's not working.
You need to analyse & troubleshoot your original problem better than that.
If the problem isn't related to the boot sector then transfering it won't help either.
 
Old 09-19-2020, 03:16 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Why bother asking - it's an image on VBox. Try it (on a copy) and see. If it doesn't work, try something else.
 
Old 09-19-2020, 07:55 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
It is a cd image,
Quote:
It's a Windows application. It even runs on Wine,
Quote:
I'm using it in VirtualBox. So the download is OK.
Are you saying it works in wine and not virtualbox and the download is ok because of the checksum?
 
Old 09-19-2020, 07:36 PM   #6
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by colorpurple21859 View Post
Are you saying it works in wine and not virtualbox and the download is ok because of the checksum?
UltraISO works in Wine. It runs and supposedly can make a non-bootable image bootable with the boot sector taken from another image, but it's a commercial application and the trial version I have won't do that operation specifically.

The CD image doesn't work in VirtualBox.

I already have another image that works. I was really, really, I swear REALLY a lot more interested in finding out if Linux can do that trick that UltraISO allegedly does. That was the main goal of my post. I tried doing it with dd, but it didn't work.
 
Old 09-19-2020, 11:32 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
yes it can be done in linux, first you will have to extract both iso to there respective folder, copy the the files needed for booting from the bootable iso directory to the nonbootable iso appropiate directory. Then use mkisofs or irrosis(whichever you distro has installed) with the appropiate options to recreate the iso.
 
1 members found this post helpful.
Old 09-20-2020, 04:39 AM   #8
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,491

Rep: Reputation: Disabled
Extract the files, & then remake the iso file with the right syntax to make it bootable.

https://serverfault.com/questions/89...om-a-directory

https://www.wikihow.com/Create-an-ISO-File-in-Linux

https://www.youtube.com/watch?v=2tUkmeDdXjM
 
1 members found this post helpful.
Old 09-21-2020, 02:57 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I closed this in error, sorry.

OK, if it is supposed to be bootable then I'd assume some problem in your client build. The md5 or shal pretty much tells me it was downloaded correctly.

If we knew what this image was we might know how to help.

Last edited by jefro; 09-21-2020 at 05:23 PM.
 
Old 09-21-2020, 08:15 PM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by jefro View Post
I closed this in error, sorry.
Thank you.
 
Old 09-21-2020, 08:30 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
yes if we knew the name of both the bootable image and the nonbootable image would help.
 
Old 09-22-2020, 05:19 PM   #12
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
It was a Haiku OS image I was trying to run on VirtualBox. I downloaded another image that works.

I am not marking it "solved" because I still don't know how to accomplish the boot sector transfer on Linux the way UltraISO claims to do (which I can't try because it is a commercial application and I don't own a license).
 
Old 09-23-2020, 02:52 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
No linux loader would have booted the BeOS OS. BeOS had a nero burner cue sheet that took track one and track two into a cd.
 
Old 09-23-2020, 05:24 PM   #14
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
So would it work if it were a Linux CD/image?
What if it were a Windows CD/image?
What if it were a BSD unix?
How would that be done in Linux?
 
Old 09-23-2020, 07:31 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
The answers to that is very long.
Each OS is different for the most part. I don't think you can get a single loader to boot every one of them yet.

A loader of a linux cd/dvd/usb is well documented. There are many ways a cd might bring a system to boot so each would be different answer.
 
  


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] Is MBR in the boot block/sector or is MBR the boot block/sector? ultra_reader Linux - Newbie 10 02-14-2019 03:45 PM
[SOLVED] smart detects sector errors, but does not show which sector? LBM Linux - Hardware 11 06-04-2018 04:52 AM
[SOLVED] fdisk shows logical sector size smaller than physical sector size? enine Slackware - Installation 5 09-03-2014 11:57 AM
Fdisk shows logical sector size smaller than physical sector size after clonezilla narnie Linux - Hardware 12 07-03-2013 09:01 PM
[SOLVED] How can I make 512byte/sector format on 4KiB/sector drive? delorean-bf Linux - General 14 11-20-2012 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 PM.

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