# refracta.freeforums.org

place to talk about refracta

Skip to content

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!

## Is this post OK

If it's not on-topic, it's in here.
Post a reply
45 posts • Page 3 of 5 • 1, 2, 3, 4, 5

### Re: Is this post OK

by ukbrian » Thu Apr 11, 2013 5:18 pm

This is a video of an rescue ISO I made for folk using qt4-fsarchiver backup on LMDE 16 months ago and it still gets loads of downloads, last month over 130 but I also included the first saline-backup script which I demo on this video.
What I really liked about it was you could point at any Debian OS partition on your machine and create a backup file, maybe you could do the same to create a live CD/DVD?
Anthony had a mishap with it so removed it with his next version and when I ask about having it back it was another "It's never going to happen" but that was a very powerful and useful function and I've always missed it.
http://lin.me.uk/demos/saline/saline-backup-ori.tar.xz

ukbrian
  Posts: 109
  Joined: Mon Jul 25, 2011 8:22 am
  Location: Cheltenham, UK

Top

### Re: Is this post OK

by ukbrian » Thu Apr 11, 2013 5:59 pm

Last one, this one clones to a partition which I use quite a lot http://lin.me.uk/demos/saline/saline-partition.tar.xz

ukbrian
  Posts: 109
  Joined: Mon Jul 25, 2011 8:22 am
  Location: Cheltenham, UK

Top

### Re: Is this post OK

by fsmithred » Fri Apr 12, 2013 6:32 pm

Thanks. I haven't had a chance to look at these, but I will do it this weekend. I did write some code to detect the text editor, and I put it in the latest refracta2usb. (in the ibiblio testing folder)
If you don't want to try that, you can try this test script. Just give it a test file name for $boot_menu and run it in a terminal. The file should open in your text editor.

Code: Select all
  `#!/usr/bin/env bash
  # put the name of a test file between the quotes
  boot_menu=""
  # If your editor is not geany, gedit, kwrite, leafpad, medit,
  # or mousepad, put the fill path to the editor here (between the quotes)
  # and add a command-line option if needed.
  other_editor=""
  other_editor_option=
  find_editor () {
  if [[ -e /usr/bin/geany ]] ; then
  editor="/usr/bin/geany"
  editor_option="-i"
  elif [[ -e /usr/bin/gedit ]] ; then
  editor="/usr/bin/gedit"
  elif [[ -e /usr/bin/kwrite ]] ; then
  editor="/usr/bin/kwrite"
  elif [[ -e /usr/bin/leafpad ]] ; then
  editor="/usr/bin/leafpad"
  editor_option="--sync"
  elif [[ -e /usr/bin/medit ]] ; then
  editor="/usr/bin/medit"
  editor_option="-n"
  elif [[ -e /usr/bin/mousepad ]] ; then
  editor="/usr/bin/mousepad"
  elif [[ -n "$other_editor" ]] ; then
  editor="$other_editor"
  editor_option="$other_editor_option"
  else
  echo " No suitable editor found.
  You must set the other_editor variable in $0
  Exiting..."
  if $(grep -q /dev/${DEVICE}1 /proc/mounts) ; then
  pumount /dev/${DEVICE}1
  fi
  exit 0
  fi
  }
  find_editor
  "$editor" "${editor_option}" "$boot_menu"
  echo "Done!"
  exit 0
  `

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

Top

### Re: Is this post OK

by ukbrian » Sat Apr 13, 2013 3:37 pm

Code: Select all
  `boot_menu="/home/user/Documents/text.txt"`

Worked with gedit but with mousepad it opened mousepad but failed to load the file.
If I put "mousepad /home/user/Documents/text.txt" into the terminal it open the file.
Looking at what you've done with that routine set me thinking
At the end of taking a snapshot you could have a similar routine to check what burner is installed and a button "Burn ISO" that would burn the ISO that's been created.
Back to my dreamland.

ukbrian
  Posts: 109
  Joined: Mon Jul 25, 2011 8:22 am
  Location: Cheltenham, UK

Top

### Re: Is this post OK

by fsmithred » Sat Apr 13, 2013 7:51 pm

Get rid of the quotes around ${editor_option} so it looks like this. Tested with geany, leafpad and mousepad.

Code: Select all
  `"$editor" ${editor_option} "$boot_menu"`

I think there was a version of refractasnapshot that used wodim to burn the iso. Not sure if that ever got finished and uploaded. I'll have to look around and will revisit the idea.

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

Top

### Re: Is this post OK

by nadir » Sun Apr 14, 2013 12:50 am

When i used wodim to burn iso's all i did was:
wodim *iso
(while the Web knows about much more difficult ways, i never had problems).
As i don't do it anymore it might be that it stopped working
(i now simply use xfburn as a quick and easy solution to burn).
So i herd u liek mudkip?

nadir
  Posts: 1160
  Joined: Wed Mar 09, 2011 4:18 am
  Location: here

Top

### Re: Is this post OK

by fsmithred » Sun Apr 14, 2013 4:53 pm

> wodim *.iso

Found it! It was way back in 9.0.1 (maybe didn't make it into a deb).

Code: Select all
  `wodim dev="$burn_device" -v -eject driveropts=burnfree speed="$burn_speed" -data "$snapshot_dir"/"$filename" \
  | tee >(zenity --title="Burning CD..." --progress --pulsate)`

(Plus some window dressing)
I don't think I ever tested it. Got a shortage of working burners here. I could put together some test code pretty easily.

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

Top

### Re: Is this post OK

by nadir » Sun Apr 14, 2013 7:39 pm

off-topic i already read that syntax short ago, by you:
| tee >(zenity --title="Burning CD..." --progress --pulsate)
but couldn't figure out:
- why the pipe + the tee + the redirector is needed ( | tee > )
- and why the parantheses around the zenity command are needed.
I never did anything with zenity, so this ain't a big surprise. I alos am not that sure about | and tee and > (it kinda works, but i still don't fully understand it).
Some peopel seem to abuse (useless use of) | tee, but here it seems to be needed.
: confused.
So i herd u liek mudkip?

nadir
  Posts: 1160
  Joined: Wed Mar 09, 2011 4:18 am
  Location: here

Top

### Re: Is this post OK

by dzz » Sun Apr 14, 2013 10:08 pm

> Got a shortage of working burners here.

+1.. Everything here is built from scavenged junk, the burner is always first to die and last to get replaced (but only after the beer fund is sorted).. USB is faster anyway.

dzz
  Posts: 647
  Joined: Wed Apr 27, 2011 11:53 am
  Location: Devon, England

Top

### Re: Is this post OK

by ukbrian » Mon Apr 15, 2013 11:12 am

Removing the quotes worked for me

> I think there was a version of refractasnapshot that used wodim to burn the iso. Not sure if that ever got finished and uploaded. I'll have to look around and will revisit the idea.

Not such a daft idea then if you've been there already, my thinking was it saves the user going to the menu to select a burner and then having to navigate to the ISO file, more intuitive, more user friendly.
I guess to satisfy all parties you need another button to copy the ISO to USB.
If I go into gparted and prepare a partition complete with a label is there any need to have the screen afterwards that asks what you want the partition formatted to and then formats it removing the label I have previously created?
Very minor but you might want to change CD to CD/DVD in refractasnapshot-gui
line 350
# First window shows general information
$DIALOG --$QUESTION --title="$version" --${BUTTON0}="Next"${BUTTON0NUM} --${BUTTON1}="Setup"${BUTTON1NUM} \
--width 580 --text "Are you ready to create a live installable snapshot of your system? This utility will create a bootable image that you can burn to CD. The image will be stored in $snapshot_dir.

ukbrian
  Posts: 109
  Joined: Mon Jul 25, 2011 8:22 am
  Location: Cheltenham, UK

Top

Previous Next Display posts from previous:
Sort by

Post a reply
45 posts • Page 3 of 5 • 1, 2, 3, 4, 5

Return to General Nonsense

Jump to:

### Who is online

Users browsing this forum: No registered users and 0 guests

Donate Now
ProNight Style by ModphpBB3
Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
A Member of the Crowdgather Forum Community
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation
suspicion-preferred