WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mkisofs rebuild TinyCore-10.0.iso  (Read 5392 times)

Offline midas007

  • Newbie
  • *
  • Posts: 5
mkisofs rebuild TinyCore-10.0.iso
« on: August 08, 2019, 05:31:48 AM »
Here is my study to rebuild the iso .
Code: [Select]
sudo mount -o loop TinyCore-10.0.iso  iso_contents
mkdir iso_contents_copy
rsync -a -H iso_contents/ iso_contents_copy
sudo umount iso_contents
<do someting modify core.gz>
mkisofs -o ReBuildTinyCore-10.0.iso -J -R -hfs iso_contents_copy/

seems everything good . but myvbox can't bootup from ReBuildTinyCore-10.0.iso
Of course TinyCore-10.0.iso working fine !

Can some one share any idea can make the vbox can bootup the rebuild iso directly ?


PS: update the isoinfo
Code: [Select]
isoinfo -d -i ./TinyCore-10.0.iso
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: TinyCore
Volume set id:
Publisher id:
Data preparer id:
Application id: MKISOFS ISO9660/HFS/UDF FILESYSTEM BUILDER & CDRECORD CD/DVD/BluRay CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 9085
El Torito VD version 1 found, boot catalog is in sector 44
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found
Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID ''
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 4
        Bootoff 2D 45
above is original .
----------------------------------------------------------------------------------------------------------
below is rebuild.
Code: [Select]
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: CDROM
Volume set id:
Publisher id:
Data preparer id:
Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 10197
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found

    [EDIT]: Added code tags.  Rich

« Last Edit: August 08, 2019, 05:58:47 AM by Rich »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 933
Re: mkisofs rebuild TinyCore-10.0.iso
« Reply #1 on: August 08, 2019, 05:53:13 AM »
Hi, midas007!

Try to look into the Corebook, section 11.3 Packing.
Good luck!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: mkisofs rebuild TinyCore-10.0.iso
« Reply #2 on: August 08, 2019, 06:12:40 AM »
Hi midas007
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.
« Last Edit: August 01, 2020, 10:21:06 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: mkisofs rebuild TinyCore-10.0.iso
« Reply #3 on: August 08, 2019, 06:17:15 AM »
Hi midas007
Take a look where it says  Creating ISO file  over here:
http://forum.tinycorelinux.net/index.php/topic,21921.msg137135.html#msg137135
The  \  character in that example means the next line is still part of the same command.

Offline midas007

  • Newbie
  • *
  • Posts: 5
Re: mkisofs rebuild TinyCore-10.0.iso
« Reply #4 on: August 12, 2019, 02:22:18 AM »
Thank you very much Rich.
Finally it's work by using ReBuildTinyCore-10.0.iso directly @ VBOX.
But when using "dd" to exactly write to USB disk to bootup.
It still work only on TinyCore-10.0.iso but not my ReBuildTinyCore-10.0.iso


P.S1 :  I use extract core.gz command as below
Quote
isoinfo -i ${isoimg} -x /BOOT/CORE.GZ\;1 > ${isoimg}.WorkingTree/core_x.gz
zcat ../core_x.gz | fakeroot -s ../initrd.fakeroot cpio -i -H newc -d
P.S2 : compress back to core back again by command as below.
Quote
sudo find | fakeroot -i ../initrd.fakeroot cpio -o -H newc | gzip -9 > ../core_SVN_XXX.gz
P.S3 : my iso command.
Code: [Select]
mkdir iso_contents
mkdir iso_contents_copy
sudo mount -o loop TinyCore-10.0.iso iso_contents
rsync -a -H iso_contents/ iso_contents_copy
sudo umount iso_contents
sudo rm iso_contents_copy/boot/isolinux/isolinux.cfg
sudo rm iso_contents_copy/boot/core.gz
sudo cp isolinux.cfg iso_contents_copy/boot/isolinux
sudo cp core_SVN_$SVN_REV.gz iso_contents_copy/boot/
cd iso_contents_copy
sudo mkisofs -r -l -J -R -no-emul-boot -V TC-custom -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -quiet -r -o ../linux_boot_$SVN_DATE\_V$SVN_REV.iso ./
cd ..
sudo rm iso_contents -r
sudo rm iso_contents_copy -r
ls linux_boot_$SVN_DATE\_V$SVN_REV.iso -l
« Last Edit: August 12, 2019, 02:25:33 AM by midas007 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: mkisofs rebuild TinyCore-10.0.iso
« Reply #5 on: August 12, 2019, 09:37:22 AM »
If you want to dd an iso to an usb stick, you also have to run isohybrid on it.
The only barriers that can stop you are the ones you create yourself.