LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2020, 05:16 PM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
Trying to make a iso from and original need to know how to see the boot bytes.


I am using Imgburn to take the folders from an iso but the byte count is lower than the bytes if I just make the iso from the original disc.

I use the isolinux.bin as the boot image Which appears to work but fails after a few minutes with initrfs

I see their is a difference in the count of about 200,000 bytes

Can I read the iso and see the boot image part?

Maybe someone knows am I using the wrong boot image.
 
Old 03-02-2020, 09:47 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by bscho View Post
I am using Imgburn to take the folders from an iso but the byte count is lower than the bytes if I just make the iso from the original disc.

I use the isolinux.bin as the boot image Which appears to work but fails after a few minutes with initrfs

I see their is a difference in the count of about 200,000 bytes

Can I read the iso and see the boot image part?

Maybe someone knows am I using the wrong boot image.
Well .... What are you trying to do?

If you just wish to make a boot capable copy of an ISO file, and the original works, then "various clone methods", my favorite being just dd.
 
Old 03-02-2020, 06:14 PM   #3
elucches
Member
 
Registered: Jan 2011
Posts: 108

Rep: Reputation: 11
You can mount the iso using the loop option.
For example:
Code:
mount -o loop -t iso9660 debian-live-10.2.0-i386-standard.iso /media/iso
 
Old 03-02-2020, 08:48 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
boot bytes are not meant to be read.....but you can kind of see them like this
top section is raw
bottom section made human readable

Code:
sudo su
dd if=android-x86_64-9.0-rc2.iso  bs=512 count=1
3퐐����������������������������3���ռ|��f1�f1�fSfQW�ݎ�R�|����KR�A��U1�0���r��U�u��t
                                                                                  f���B��ZQ���?[Q��@P��SRP�|�f���D��f@����f�>@|��xpu	���{�D|�isolinux.bin missing or corrupt.
f`f1�f�{f�{fRfPSjj��f�6�{����Œ�6�{��A���{��dfa��Operating system load error.
^���>b��<
u������ �g	�?���U�1+0 records in
1+0 records out
512 bytes copied, 0.00339301 s, 151 kB/s


#### bottom section
dd if=android-x86_64-9.0-rc2.iso  bs=512 count=1 | strings
1+0 records in
1+0 records out
512 bytes copied, 7.9073e-05 s, 6.5 MB/s
fSfQ
xpu	
isolinux.bin missing or corrupt.
f`f1
{fRfP
Operating system load error.
quite a few distros use isolinux (syslinux on hd)
 
Old 03-03-2020, 04:33 AM   #5
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,507

Rep: Reputation: Disabled
Check these out.

https://wiki.osdev.org/El-Torito

https://wiki.osdev.org/Mkisofs

https://serverfault.com/questions/89...om-a-directory
 
Old 03-03-2020, 06:21 AM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by elucches View Post
You can mount the iso using the loop option.
For example:
Code:
mount -o loop -t iso9660 debian-live-10.2.0-i386-standard.iso /media/iso
I have done that but it is read only. How do I make it writable
 
Old 03-03-2020, 06:28 AM   #7
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by aus9 View Post
boot bytes are not meant to be read.....but you can kind of see them like this
top section is raw
bottom section made human readable

Code:
sudo su
dd if=android-x86_64-9.0-rc2.iso  bs=512 count=1
3퐐����������������������������3���ռ|��f1�f1�fSfQW�ݎ�R�|����KR�A��U1�0���r��U�u��t
                                                                                  f���B��ZQ���?[Q��@P��SRP�|�f���D��f@����f�>@|��xpu	���{�D|�isolinux.bin missing or corrupt.
f`f1�f�{f�{fRfPSjj��f�6�{����Œ�6�{��A���{��dfa��Operating system load error.
^���>b��<
u������ �g	�?���U�1+0 records in
1+0 records out
512 bytes copied, 0.00339301 s, 151 kB/s


#### bottom section
dd if=android-x86_64-9.0-rc2.iso  bs=512 count=1 | strings
1+0 records in
1+0 records out
512 bytes copied, 7.9073e-05 s, 6.5 MB/s
fSfQ
xpu	
isolinux.bin missing or corrupt.
f`f1
{fRfP
Operating system load error.
quite a few distros use isolinux (syslinux on hd)

Have done that but no output
where do you see it?
 
Old 03-03-2020, 02:39 PM   #8
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 bscho View Post
I have done that but it is read only. How do I make it writable
You don't. iso9660 is read-only.
 
1 members found this post helpful.
Old 03-03-2020, 04:13 PM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Copy everything to a different directory, then make changes, make new iso. Best way, you keep the original.

Or to edit in place look at man losetup. If you mess it up you will destroy your iso.
 
Old 03-03-2020, 07:02 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Quote:
Have done that but no output
where do you see it?
I changed dir to where my iso images are.

If you open a terminal, you are currently at /home/yourname

generically you could try but put actual pathway name in.

sudo dd if=/pathway2/<nameofiso>.iso bs=512 count=1 | strings
 
Old 03-05-2020, 07:51 AM   #11
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by fatmac View Post
Hi thanks for that I am stuck though with this

Especially make the boot image for PC-BIOS available at path ./prepared_for_iso/boot/loader.sys , so that it will appear in the ISO filesystem as /boot/loader.sys .

I have done this in the terminal but it objects with the boot/loader.sys part

mkisofs -R -J -c boot/bootcat -b boot/loader.sys -no-emul-boot -boot-load-size 4 -o ./bootable.iso ./prepared_for_iso

I have done the ./prepared_for_iso and put all the folders and files in that. But cannot figure out the /boot/loader.sys part

Have you any idea?

Thanks
 
Old 03-05-2020, 08:49 AM   #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,507

Rep: Reputation: Disabled
You need to have syslinux installed on your system.

https://wiki.syslinux.org/wiki/index...slinux_Project
https://wiki.syslinux.org/wiki/index.php?title=Download
https://wiki.syslinux.org/wiki/index.php?title=HowTos

(Seems like UEFI has made them change a few things since I last created a bootable CD.)
 
Old 03-06-2020, 01:42 AM   #13
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by fatmac View Post
You need to have syslinux installed on your system.

https://wiki.syslinux.org/wiki/index...slinux_Project
https://wiki.syslinux.org/wiki/index.php?title=Download
https://wiki.syslinux.org/wiki/index.php?title=HowTos

(Seems like UEFI has made them change a few things since I last created a bootable CD.)
I have done it with this way as well and it still does not work. I have done it with two distros and they both run to a point where it stops at initramfs
This is the same as when I used Imgburn to make the iso up.

I also found that I was supposed to put an image in and it I did not it would not run as it wanted tools.imz I made a img and renamed it to tools.imz and this allowed it to work but only to stop with initramfs again.

This is a big puzzle any ideas please.
 
Old 03-06-2020, 05:47 PM   #14
elucches
Member
 
Registered: Jan 2011
Posts: 108

Rep: Reputation: 11
There's also https://wiki.archlinux.org/index.php/Syslinux.
 
Old 03-06-2020, 10:17 PM   #15
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by elucches View Post
Thanks have sorted the problem. The issue was a hidden file .disk which when put through syslinux was changed to _disk

This is now solved.
 
  


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
gpg: do_plaintext(): wrote 1210414045 bytes but expected 822504068 bytes MensaWater Linux - Software 6 02-27-2018 08:48 AM
Is it okay if my sector size is "512 bytes / 4096 bytes" Altiris Slackware 5 07-31-2015 03:19 AM
i need to know where to get the original source code for linux Super Apollo Linux From Scratch 1 01-25-2006 07:42 PM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 04:19 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 > Non-*NIX Forums > Programming

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