# 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!

## refractasnapshot

Refracta Development, Scripts, etc.
Post a reply
11 posts • Page 1 of 2 • 1, 2

### refractasnapshot

by nadir » Sun Apr 15, 2012 8:04 pm

I used refractasnapshot to make a snapshot of my running system, which worked well so far.
I can't start tor, which i have installed, because it can't create a log file in /var/log/tor on it's own.
In the excludes list is a similar note about clamav.
27 #- /var/log/*
28 # The next three lines exclude everything in /var/log
29 # except /var/log/clamav/ (or anything else beginning with "c") and
30 # /var/log/gdm (or anything beginning with "g").
31 # If clamav log files are excluded, freshclam will give errors at boot.
32 - /var/log/[a-b,A-Z]*
33 - /var/log/[d-f]*
34 - /var/log/[h-z]*
As far i can see right now (still fiddling).
So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by nadir » Sun Apr 15, 2012 8:56 pm

I then installed refractainstaller-base and refractainstaller-gui
I pick "expert", with a separate /boot and /home, / and /home encrypted,
and after i type "Yes" it stops.
Here is the error log:
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
df: `/filesystem.squashfs': No such file or directory
I opened /usr/bin/refractainstaller-gui and searched for df and for squash,
but could not find a hint.
As far i see i don't have that problem with the "easy" installer (easy as opposed to expert). It is copying the files, and i expect it to succeed.
So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by fsmithred » Mon Apr 16, 2012 1:46 am

Clunky, but should do it:

Code: Select all
  `32 - /var/log/[a-b,A-Z]*
  33 - /var/log/[d-f]*
  34 - /var/log/[h-s]*
  35 - /var/log/[u-z]*
  `

I don't know about the other. The cleanup function is the only place that df gets used in the installer.

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

Top

### Re: refractasnapshot

by nadir » Mon Apr 16, 2012 3:42 pm

Thanks. yup, should do it
(i for one could remove the exclusion of /var/log alltogether, for my special case. To snapshot my desktop i need >2 Gigs, and the few bytes in the log dir don't hurd)
Any idea where exactly
/filesystem.squashfs
is getting used during the installation? I know i ain't got one, but don't know the script well.
So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by fsmithred » Mon Apr 16, 2012 6:29 pm

When you're running live, you can find filesystem.squashfs in /live/image/live, but that should be excluded from the system copy, and it shouldn't have anything to do with the cleanup function. The cleanup uses df to find things that need to be unmounted after the install is finished.

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

Top

### Re: refractasnapshot

by nadir » Mon Apr 16, 2012 7:15 pm

Uhum.
Does not seem to make much sense that it fails.
easy installation did work, like said. But i would want to encrypt it, so i need the expert installer.
I will try some things, during this week, and make notes here (what i do, what works, what fails...)
Thanks for the info.
PS: perhaps we could try it with IRC running... assuming it won't work until weekend.
So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by nadir » Mon Apr 16, 2012 8:35 pm

What can i say? I seem to get message from outer space.
I am getting asked this:

> WARNING!
> ========
> This will overwrite data on /dev/sda8 irrevocably.
> Are you sure? (Type uppercase yes): Yes

and after that the installer dies the sudden death with said df-error-messages about squashfs.
I inserted a
works till here
at line 526, after the "cleanup" function.
I can see it on the screen, it is before i am getting asked to type an uppercase yes.
I then searched for "uppercase", "WARNING" and what not, but nope, i can't find it in the script.
Where the heck is that coming from?

> boot_dev is /dev/sda5
> Cleaning up...
> did work, line 526
> Creating filesystem on /dev/sda8...
> You will need to create a passphrase.
> WARNING!
> ========
> This will overwrite data on /dev/sda8 irrevocably.
> Are you sure? (Type uppercase yes): Yes
> Exit due to error: 1
> See /var/log/refracta_install_errors.log for details

So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by nadir » Mon Apr 16, 2012 8:39 pm

PS: without encrypting / and /home it seems to work.
So i herd u liek mudkip?

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

Top

### Re: refractasnapshot

by fsmithred » Tue Apr 17, 2012 10:53 am

The WARNING is from cryptsetup.
"You will need to create a passphrase" and "Exit due to error" are from the script.
This is the command that's choking:

Code: Select all
  `cryptsetup luksFormat "$install_dev" ; check_exit`

sda8? Hm,,, I never tried running that command on a logical volume inside an extended partition before. Maybe try it manually to see what happens. You might need to encrypt the extended partition and then create logical volumes inside it. (i.e. use LVM, which can't be done with refractainstaller) Just guessing.

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

Top

### Re: refractasnapshot

by nadir » Tue Apr 17, 2012 9:39 pm

Sorry to say: but i gave up.
I changed all i could think of, nothing worked.
I inserted a Debian-Stable and encrypted it with the installer.
I got enough machines to try it again, just to figure out how to do it
(in case i will need it again).
At least i now got a cool live-CD/DVD (with my usual environment).
After having looked a bit closer at the scripts: you really did a good job there.
So i herd u liek mudkip?

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

Top

Next Display posts from previous:
Sort by

Post a reply
11 posts • Page 1 of 2 • 1, 2

Return to Discuss

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