Ask your questions here.
Post a reply

Re: Squashfs Larger Than 4GB

Tue Nov 10, 2015 2:01 pm

without modification log
Code:
ls: cannot access /home/snapshot/newdisk/snapshot/*.iso: No such file or directory
sed: can't read /home/snapshot/newdisk/work/myfs/home/pb/.config/geany/geany.conf: No such file or directory
rm: cannot remove ‘/home/snapshot/newdisk/work/iso/pkglist*’: No such file or directory
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/home/snapshot/newdisk/snapshot/snapshot-20151110_1413.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 28.7g free
xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
Added to ISO image: directory '/'='/home/snapshot/newdisk/work/iso'
xorriso : UPDATE : 32 files added in 1 seconds
xorriso : UPDATE : 32 files added in 1 seconds
xorriso : NOTE : Copying to System Area: 432 bytes from file '/usr/lib/ISOLINUX/isohdpfx.bin'
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: NOTE : Automatically adjusted MBR geometry to 1023/68/32
libisofs: NOTE : Aligned image size to cylinder size by 39 blocks

UNIX-SIGNAL:  SIGSEGV  errno= 0
xorriso : ABORT : Trying to shut down busy drives
xorriso : ABORT : Wait the normal burning time before any kill -9
xorriso : UPDATE :  0.00% done
xorriso : UPDATE :  0.00% done
/usr/bin/refractasnapshot: line 653:  3549 Segmentation fault      xorriso -as mkisofs -r -J -joliet-long -l ${isohybrid_opt} -partition_offset 16 -V "snapshot-live-cd" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o "$snapshot_dir"/"$filename" iso/



xorriso -file_size_limit off
Code:
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

-file_size_limit now of


xorriso -as mkisofs -file_size_limit off

Code:
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/dev/fd/1'
Media current: stdio file, sequential
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 1024g free
xorriso : FAILURE : -as mkisofs: Unrecognized option '-file_size_limit'
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'


xorriso -compliance iso_9660_level=3

Code:
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.





xorriso -as mkisofs -compliance iso_9660_level=3

Code:
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/dev/fd/1'
Media current: stdio file, sequential
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 1024g free
xorriso : FAILURE : -as mkisofs: Unrecognized option '-compliance'
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'

Re: Squashfs Larger Than 4GB

Tue Nov 10, 2015 9:04 pm

I played with it all day, and I didn't have any better luck. I think the file_size_limit option should look more like the following, but I'm not certain. Doing it this way got rid of a weird error about a missing file. The name of the missing file was whatever came after the file_size_limit option. And the -x is supposed to automatically figure out the best order for the options.

I also tried with genisoimage, and it did create a 7GB iso file, but it won't boot. Says it can't find the initrd, but if I mount the iso, the initrd is right where it should be. If you want to try it, the old code is still in refractasnapshot-gui - you just need to uncomment it and comment out the xorriso command. I'll post that section of code below the error message. No guarantee that it will work.

Code:
xorriso -x -file_size_limit 8000000000 /live/filesystem.squashfs -- -as mkisofs -r -J -joliet-long -l -partition_offset 16 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../snapshot/snapshot_$(date +%Y%m%d_%H%M).iso iso/
xorriso 1.2.2 : RockRidge filesystem manipulator, libburnia project.

-file_size_limit now at 8000000000
Drive current: -outdev 'stdio:../snapshot/snapshot_20151110_1552.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 65.2g free
Added to ISO image: directory '/'='/mnt/sdc4/work/iso'
xorriso : UPDATE : 30 files added in 1 seconds
xorriso : UPDATE : 30 files added in 1 seconds
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB
libisofs: WARNING : File "/live/filesystem.squashfs" can't be added to image because is greater than 4GB

UNIX-SIGNAL:  SIGSEGV  errno= 0
xorriso : ABORT : Trying to shut down busy drives
xorriso : ABORT : Wait the normal burning time before any kill -9
Segmentation fault



Uncomment the three lines of the genisoimage command and comment out everthing from "# If isohdpfx.bin gets moved again," down to the end of the xorriso command. (The line that starts with "| tee" and ends with "-width 300").
Code:
# 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 --auto-close --width 300)
   

# If isohdpfx.bin gets moved again, maybe use:   isohdpfx=$(find /usr/lib/ -name isohdpfx.bin)
    if [[ $make_isohybrid = "yes" ]]; then
       if [[ -f /usr/lib/syslinux/mbr/isohdpfx.bin ]] ; then
          isohybrid_opt="-isohybrid-mbr /usr/lib/syslinux/mbr/isohdpfx.bin"
       elif [[ -f /usr/lib/syslinux/isohdpfx.bin ]] ; then
          isohybrid_opt="-isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin"
       elif [[ -f /usr/lib/ISOLINUX/isohdpfx.bin ]] ; then
          isohybrid_opt="-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin"
       else
         echo "Can't create isohybrid.  File: isohdpfx.bin not found. The resulting image will be a standard iso file."
         $DIALOG --$WARNING --title="Warning" --text=" Can't create isohybrid.  File: isohdpfx.bin not found. The resulting image will be a standard iso file."
         --${BUTTON0}="OK"${BUTTON0NUM}
      fi
   fi

    xorriso -as mkisofs -r -J -joliet-long -l ${isohybrid_opt} \
    -partition_offset 16 -V "snapshot-live-cd"  -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
    -boot-load-size 4 -boot-info-table -o "$snapshot_dir"/"$filename" iso/ \
    | tee >($DIALOG --title="Creating CD/DVD image file..." --progress --pulsate --auto-close --width 300)

Re: Squashfs Larger Than 4GB

Tue Nov 10, 2015 11:57 pm

mkisofs ?
https://forum.kde.org/viewtopic.php?f=63&t=107246
Tue Aug 07, 2012
re: 4gbfile limit:

possible to circumvent this limitation by using the multi-extent (fragmentation) feature of ISO 9660 Level 3 and create ISO 9660
filesystems and single files up to 8 TB. With this, files larger than 4 GB can be split up into multiple extents (sequential series of sectors),
each not exceeding the 4 GB limit. For example, the free software such as InfraRecorder and mkisofs as well as Roxio Toast are able to
create ISO 9660 filesystems that use multi-extent files to store files larger than 4 GB on appropriate media such as recordable DVDs.

from man page of mkisofs:

-iso-level level
Set the ISO9660 conformance level. Valid numbers are 1 to 4.

<snip>
With level 3, no restrictions (other than ISO-9660:1988) do apply. Starting
with this level, genisoimage also allows files to be larger than 4 GB by implementing ISO-9660 multi-extent files.

Re: Squashfs Larger Than 4GB

Wed Nov 11, 2015 11:46 am

Wow. Full circle. I think we started with mkisofs. According to the man page, xorriso can split large files, too. I don't know xorriso well enough to do that.

I think the simple solution for the OP is to exclude a large amount of data and use a different method to back it up. Let the live iso include the operating system and user configs.
Post a reply