General TC > Programming & Scripting - Unofficial
mkisofs rebuild TinyCore-10.0.iso
midas007:
Here is my study to rebuild the iso .
--- Code: ---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/
--- End code ---
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: ---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 .
--- End code ---
----------------------------------------------------------------------------------------------------------
below is rebuild.
--- Code: ---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
--- End code ---
[EDIT]: Added code tags. Rich
jazzbiker:
Hi, midas007!
Try to look into the Corebook, section 11.3 Packing.
Good luck!
Rich:
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]
--- End quote ---
It will appear like this in your post:
--- 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
--- End code ---
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.
Rich:
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.
midas007:
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
--- End quote ---
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
--- End quote ---
P.S3 : my iso command.
--- Code: ---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
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version