Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Snapshot Wheezy don't build isohybrid

Ask your questions here.

Re: Snapshot Wheezy don't build isohybrid

Postby fsmithred » Mon Apr 07, 2014 6:38 pm

Well, that's working the same as here. I don't know why the script dies for you at that point. (the dbus error is unrelated. I get the exact same one.)
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Snapshot Wheezy don't build isohybrid

Postby J.T.Kirk » Sat May 31, 2014 2:25 pm

Hi all

I write some lines of bash, for adding to Snapshot, possibility of create in the first instance
Livecd isohybrid.

First: update xorriso to version 1.3.6
Code: Select all
wget http://www.gnu.org/software/xorriso/xorriso-1.3.6.pl01.tar.gz
tar -zxvf xorriso-1.3.6.pl01.tar.gz
cd xorriso-1.3.6
./configure --prefix=/usr
make
make install


In the file:
Code: Select all
/usr/bin/refractasnapshot-gui


Add in section:
Code: Select all
refractasnapshot_configuration () {
work_iso=${work_iso:="/home/work/iso"}
isohybrid_mbr=${isohybrid_mbr:="/usr/lib/syslinux/isohdpfx.bin"} }


Replace this codes:
Code: Select all
# create the iso file, put either a number or date/time in the filename
# create md5sum file for the iso

    # genisoimage -r -J -l -D -o "$snapshot_dir"/"$filename" -cache-inodes \
    # -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
    # -boot-info-table -allow-limited-size iso/ | tee >($DIALOG --title="Creating CD/DVD image file..." --progress --pulsate --width 300)


With this:
Code: Select all
      xorriso -as mkisofs  -D -r -J -l  -o "$snapshot_dir"/"$filename"   \
     -b  isolinux/isolinux.bin  -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
     -isohybrid-mbr "$isohybrid_mbr" -partition_offset 16 \
     -boot-info-table  "$work_iso"/  | tee >($DIALOG --title="Creating CD/DVD image file..." --progress --pulsate --width 300)


The final result:
Code: Select all
home/snapshot# fdisk -l -u *.iso

Disk snapshot-20140530_1042.iso: 766 MB, 766509056 bytes
64 heads, 32 sectors/track, 731 cylinders, total 1497088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3e6ec0a5
                     Device Boot      Start         End      Blocks   Id  System
snapshot-20140330_1042.iso1   *           64     1497087      748544   17  Hidden HPFS/NTFS


Try the code and report if it works.


Regards :)
J.T.Kirk
 
Posts: 32
Joined: Tue Sep 11, 2012 3:42 pm

Re: Snapshot Wheezy don't build isohybrid

Postby dzz » Sat May 31, 2014 4:12 pm

@J.T.Kirk:

Your suggestion to use xorriso (as does live-build) was noted. Thanks for the code, however you might have missed this current discussion, resulting in a new snapshot version.:

new-versions-of-installer-and-snapshot-9-1-x-for-sid-t383-20.html

If you have time to look and maybe test, that would help. The change is similar to your code suggestion except xorriso has a Debian package (no need to install from source) and $isohybrid_mbr resides in a different place in newer syslinux (requiring a version test)
dzz
 
Posts: 629
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Snapshot Wheezy don't build isohybrid

Postby J.T.Kirk » Sat May 31, 2014 4:45 pm

dzz wrote:@J.T.Kirk:

Your suggestion to use xorriso (as does live-build) was noted. Thanks for the code, however you might have missed this current discussion, resulting in a new snapshot version.:

new-versions-of-installer-and-snapshot-9-1-x-for-sid-t383-20.html

If you have time to look and maybe test, that would help. The change is similar to your code suggestion except xorriso has a Debian package (no need to install from source) and $isohybrid_mbr resides in a different place in newer syslinux (requiring a version test)


Yes, I missed this discussion.
Yes, in Sid, the version of syslinux is last version:

Code: Select all
https://packages.debian.org/sid/syslinux


My few lines bash codes is for all user of Squeeze and Snapshot Refracta!

Ok, thank! :)

Regards :)
J.T.Kirk
 
Posts: 32
Joined: Tue Sep 11, 2012 3:42 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred