Ask your questions here.
Post a reply

Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 10:58 am

Hi all

I have installed on Wheezy with cpu i386, Snapshot:
Code:
http://sourceforge.net/projects/refracta/files/tools/refractasnapshot-base_9.0.9-7_all.deb/download
http://sourceforge.net/projects/refracta/files/tools/refractasnapshot-gui_9.0.9-8_all.deb/download


I build liveiso, and don't change any option.

After finished liveiso, check iso with:
Code:
home/snapshot# fdisk -l -u  *.iso
Disk snapshot-20140330_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   *           0     1497087      748544   17  Hidden HPFS/NTFS


When write file.iso on to usb with cat file.iso > /dev/sdb
don't possible re-partitioning free space on usb.
Gparted showing all space on usb, as: not allocated

File isohybrid start from sector 64.
http://cdimage.debian.org/cdimage/unoff ... 86/iso-cd/
firmware-7.4.0-i386-netinst.iso
Code:
fdisk -l -u debian-7.4.0-i386-netinst.iso
debian-7.4.0-i386-netinst.iso: 290 MB, 290455552 bytes
64 heads, 32 sectors/track, 277 cylinders, total 567296 sectors
Units = sectors of 1 * 512 = 512 bytes

                                         Device Boot      Start         End      Blocks   Id  System
    /debian-7.4.0-i386-netinst.iso1   *          64      567295      283632   17  Hidd HPFS/NTFS


Thanks at all!

Regards :)

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 12:35 pm

J.T.Kirk wrote:Hi all
When write file.iso on to usb with cat file.iso > /dev/sdb
don't possible re-partitioning free space on usb.
Gparted showing all space on usb, as: not allocated


Yes, that's a known limitation of isohybrid files. If you want a live usb that can have multiple partitions, you need to do it differently. One way is to use a .img file instead of a .iso file, but I don't see any .img files for debian-live wheezy. Other way is to use refracta2usb.

I don't know why the start sectors are different. Can you make multiple partitions if you put the netinstall iso on the usb the same way you did it with your own iso file?

Edit: If you want to use refracta2usb, you'll need to zero the first 2MB of the usb drive first, since you imaged it with isohybrid. (See other discussions about this problem by searching this forum for "isohybrid")
Code:
dd if=/dev/zero of=/dev/<your-usb-device> bs=512 count=4096


Here's a link to the latest version of refracta2usb:
http://sourceforge.net/projects/refract ... b/download

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 2:23 pm

Hi all


What I mean to say is that, if in the file refractasnapshot.conf
is set: make_isohybrid = "yes"

Because the iso file is not isohybrid? :?:

Thanks

Regards :)

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 3:41 pm

make_isohybrid="yes" is the default setting. Your iso file should be isohybrid, just like the ones I make. I usually look at the file with hexedit if I want to check to see if it's a regular iso or isohybrid. Plain iso starts with a bunch of zeroes, and isohybrid starts with non-zero hex code. Why do you think your file is not isohybrid? Can you boot from the usb stick?

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 3:55 pm

if write file.iso onto usb, the usb same don't is

*Because when write file.iso on to usb with cat file.iso > /dev/sdb
don't possible re-partitioning free space on usb.
Gparted showing all space on usb, as: not allocated

With this command from console: isohybrid -offset 64 file.iso
the file is isohybrid, because*...! is possible re-partition free space on usb.

As with this file.isohybrid:
or

Code:
fdisk -l -u debian-7.4.0-i386-netinst.iso
debian-7.4.0-i386-netinst.iso: 290 MB, 290455552 bytes
                                          Device Boot      Start         End      Blocks   Id  System
    /debian-7.4.0-i386-netinst.iso1   *          64      567295      283632   17  Hidd HPFS/NTFS



Regards :)

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 4:27 pm

J.T.Kirk wrote:With this command from console: isohybrid -offset 64 file.iso
the file is isohybrid, because*...! is possible re-partition free space on usb.


Ah, that's the part I didn't know. Thanks.

The file is isohybrid, with or without the offset, but if you can create additional partitions with the offset, then that makes a big difference. .

I'll have to experiment with the offset, and I may add it to the isohybrid command in the script. If you want to do that on your copy, it's around line 545 of /usr/bin/refractsnapshot-gui.

Add the offset option to the command like this...
Code:
if [[ $make_isohybrid = "yes" ]]; then
      isohybrid --offset 64 "$snapshot_dir"/"$filename"
fi

Re: Snapshot Wheezy don't build isohybrid

Sun Mar 30, 2014 5:28 pm

Ok, many thanks at you, one little bug?, is resolve! ?

One little advice:

If you use xorriso instead genisoimage, is better for creating isohybrid file.

This command:
Code:
isohybrid --offset 64 "$snapshot_dir"/"$filename"


possible result unnecessary.

Thanks :)

Regards :)

Re: Snapshot Wheezy don't build isohybrid

Mon Mar 31, 2014 8:42 am

I'm struggling, and failing, to grasp the "takeaway" from this thread.
AFAIK, use of xorriso is absent from similar "___2usb" scripts across various distros.

Searching my collected notes, I see that grml-live supports (and, in fact, prefers) xorriso...
and
# ref http://www.gnu.org/software/grub/manual ... escue.html
# also "grub-mkrescue presumes presence of grub2 which, in turn, depends on xorriso v0.5.6+

Perhaps attention to xorriso depends on whether the construction involves lilo vs grub vs grub2 ?

Re: Snapshot Wheezy don't build isohybrid

Mon Mar 31, 2014 9:27 am

I did not understand what you want to say.

xorriso can create iso file hybrid in one step.

http://www.gnu.org/software/xorriso/

Thanks

Regards :)

Re: Snapshot Wheezy don't build isohybrid

Mon Mar 31, 2014 1:17 pm

Hi all

I added in /usr/bin/refractasnapshot
Code:
isohybrid  --offset 64  "$snapshot_dir"/"$filename"


but don't work!

If from console: isohybrid --offset 64 *.iso, then it works!

Another way is replace genisoimage with xorriso.

Thanks

Regards :)
Post a reply