Ask your questions here.
Post a reply
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Snapshot Wheezy don't build isohybrid

Mon Mar 31, 2014 5:26 pm

> J.T.Kirk wrote:I added in /usr/bin/refractasnapshot
> Code:
>   `isohybrid --offset 64 "$snapshot_dir"/"$filename"
>   `
> but don't work!

Adding the offset to the isohybrid command inside the script works here. Check the error log for clues.

Code:
  `fdisk -l -u sid-refracted_a19-20140331_1501.iso
  Disk sid-refracted_a19-20140331_1501.iso: 517 MB, 517996544 bytes
  64 heads, 32 sectors/track, 494 cylinders, total 1011712 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: 0x1fafad51
  Device Boot Start End Blocks Id System
  sid-refracted_a19-20140331_1501.iso1 * 64 1011711 505824 17 Hidden HPFS/NTFS
  `

I used dd to put the iso on a usb stick, and I booted that stick. I was unable to create another partition on that stick during the live session - mke2fs thought that the partition was in use. When I rebooted to my regular installation and plugged the stick in, I was able to create more partitions, and I could mount those partitions, but I could not mount the first partition. That's the deal-breaker for me. I need to be able to plug the stick into a running system and add, remove or edit files. I can do that with fat32, which is what refracta2usb uses. It's also possible to do that with usb-hdd .img files (like the official debian-live usb images.)
J.T.Kirk

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

## Re: Snapshot Wheezy don't build isohybrid

Wed Apr 02, 2014 9:00 am

When booting from usb don't possibile partition free space onto usb.
Is possible creating partition from regular/(another livecd) distro.
Swap, partition ext2/3,...,
The partition creating with write isohybrid onto usb is view as filesystem iso9660,
then don't writable.
Question:
Would it be possible to replace genisoimage with xorriso, which produces a file
isohybrid in first instance?
Regards
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Snapshot Wheezy don't build isohybrid

Wed Apr 02, 2014 2:18 pm

When booting from usb it is possible to create additional partitions in the free space if the usb is prepared some way other than imaging it with an isohybrid file. Examples I gave - if the first partition is fat32 or if you imaged it with a usb-hdd image. That is a disadvantage of using isohybrid.
Isohybrid creates a read-only filesystem. That's another disadvantage. If you use isohybrid and create a second partition to use for persistence, you'll either have to hit the TAB button to add the word, persistence, every time you boot. or edit refractasnapshot.conf to use a different isodir, and edit the boot menu there. If you use fat32 or usb-hdd, you can plug the stick into a running system and edit the boot menu or other files. Also, if the first partition is read-only, then it would be impossible to do some of the things we do with a fat32 partition, such as make a multi-boot usb, patch the initrd to use loopback files (encrypted or not) for persistence, patch the initrd to use existing swap partitions, and probably some other things that I'm not remembering right now. Oh yeah - if it's fat32, you can use that partition to transfer files between linux and windows, just like an ordinary usb stick that does not have a live system on it.
I assume that it would be possible to use xorriso instead of genisoimage, but a quick look at the man page leads me to believe that it would take some time to figure out how to use xorriso. And I don't know if the resulting iso file would work with refracta2usb. I just spent the last six months working on that to get it where it is, and I don't want to have to change everything. (xorriso seems to want to use El Torrito, and it expects the isolinux directory to be a subdirectory of /boot. If you can give me the xorriso command to replace the genisoimage command in the script, I'll try it.
What is the advantage of using xorriso instead of genisoimage and isohybrid commands? And is there any advantage to isohybrid over ordinary iso other than using it as a quick way to turn a usb stick into the equivalent of a CD for the purpose of installing to hard drive?
J.T.Kirk

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

## Re: Snapshot Wheezy don't build isohybrid

Wed Apr 02, 2014 3:28 pm

> If you can give me the xorriso command to replace the genisoimage command in the script, I'll try it.

Ok

> What is the advantage of using xorriso instead of genisoimage and isohybrid commands? And is there any advantage to isohybrid over ordinary iso other than using it as a quick way to turn a usb stick into the equivalent of a CD for the purpose of installing to hard drive?

In my advice this is an advantage.
Regards
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Snapshot Wheezy don't build isohybrid

Wed Apr 02, 2014 5:48 pm

OK, so let's go back to why you think the way we're doing it does not work. You said that adding "--offset 64" to the isohybrid command in the script didn't work, but you did not explain how it did not work. Did the script fail? Did the script succeed in making an iso file, but there was no offset? Did you image a usb stick with the iso and it didn't boot? Was there anything relevant in /var/log/refractasnapshot_errors.log?
If the only problem you see is related to making additional partitions after imaging with isohybrid, I would suggest that either you don't make additional partitions or you don't image the stick directly like that, and use refracta2usb instead. You don't need additional partitions just to install to hard drive.
J.T.Kirk

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

## Re: Snapshot Wheezy don't build isohybrid

Thu Apr 03, 2014 8:27 am

> OK, so let's go back to why you think the way we're doing it does not work. You said that adding "--offset 64" to the isohybrid command in the script didn't work, but you did not explain how it did not work. Did the script fail? Did the script succeed in making an iso file, but there was no offset? Did you image a usb stick with the iso and it didn't boot? Was there anything relevant in /var/log/refractasnapshot_errors.log?

From console isohybrid --offset 64 *.iso work, but don't from program refractasnapshot.
In the var/log/ don't there is anything relevant.

> If the only problem you see is related to making additional partitions after imaging with isohybrid, I would suggest that either you don't make additional partitions or you don't image the stick directly like that, and use refracta2usb instead. You don't need additional partitions just to install to hard drive.

If write isohybrid onto usb con cat *.iso > /dev/sdb
I can use as a livecd, and enough more faster than a cdrom. Ok ?
I like this
Regards
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Snapshot Wheezy don't build isohybrid

Thu Apr 03, 2014 9:33 am

From a root terminal, run 'refracta2usb -d' to run in debug mode, and maybe we can figure out why adding the offset did not work for you. It works fine here.
J.T.Kirk

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

## Re: Snapshot Wheezy don't build isohybrid

Thu Apr 03, 2014 4:03 pm

> fsmithred wrote:From a root terminal, run 'refracta2usb -d' to run in debug mode, and maybe we can figure out why adding the offset did not work for you. It works fine here.

Hi all
http://garr.dl.sourceforge.net/project/ ... -0.9.5.deb
[email protected]
:/home/user/Download# dpkg -i refracta2usb-0.9.5.deb.deb
[email protected]
:/home/user/Download# refracta2usb -d
Don't show anything
Regards
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Snapshot Wheezy don't build isohybrid

Thu Apr 03, 2014 6:46 pm

Code:
  `dpkg -i refracta2usb-0.9.5.deb.deb`

Is that really the command you used to install it? There should only be one .deb on the filename, and the full path to the program is /usr/bin/refracta2usb. Make sure that exists. Check the error log, which is in ~/.refracta/refracta2usb.log.
J.T.Kirk

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

## Re: Snapshot Wheezy don't build isohybrid

Fri Apr 04, 2014 9:54 am

> fsmithred wrote:
> Code:
>   `dpkg -i refracta2usb-0.9.5.deb.deb`
> Is that really the command you used to install it? There should only be one .deb on the filename, and the full path to the program is /usr/bin/refracta2usb. Make sure that exists. Check the error log, which is in ~/.refracta/refracta2usb.log.

Hi all

Code:
  `locate: refracta2usb
  /usr/bin/refracta2usb
  `

Code:
  `locate refracta2usb.log
  /root/.refracta2usb/refracta2usb.log
  `

Code:
  `+ [[ -n :0 ]]
  + [[ -f /tmp/r2u_device ]]
  + [[ -d /lib/live/mount/medium ]]
  + '[' -t 0 ']'
  ++ id -u
  + [[ 0 -eq 0 ]]
  + -- --width=400 --height=160 --title=refracta2usb '--text=refracta2usb must be run by normal user, not root' --=OK
  /usr/bin/refracta2usb: line 125: --: command not found
  + exit 1
  `

When launch refractausb from console-no-root or from menù , showing anything, only cursor blink.
Thanks
Regards
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.