Ask your questions here.
Post a reply

Re: Squeeze snapshot

Wed Mar 27, 2013 5:42 pm

22G? is the entire Debian repo installed? (or maybe you have been doing vid editing! One uncompessed avi can be 10G+)

I would be looking for monster vob, mpeg, wav, avi, flac.. Maybe saved application project data

Try first <umount -a> then rerun the command I posted earlier, changing "~" for "/" (EDIT: as root)

Take a look in /root, maybe you did something as root then forgot

Re: Squeeze snapshot

Wed Mar 27, 2013 6:23 pm

dzz wrote:22G? is the entire Debian repo installed? (or maybe you have been doing vid editing! One uncompessed avi can be 10G+)

I would be looking for monster vob, mpeg, wav, avi, flac.. Maybe saved application project data

Try first <umount -a> then rerun the command I posted earlier, changing "~" for "/"

Take a look in /root, maybe you did something as root then forgot

If the excludes are working properly, only the config files in /home are in the snapshot. Total in ~ is over 153gb! I have excluded /opt which is 2.5gb. I have three drives and multiple partitions in this machine. Maybe I need to umount all of them before taking the snapshot?

I thought about switching up your find command to include root but didn't want my system to explode! LOL!! You confirmed I was thinking in the right direction but would never have thought to <umount -a> which according to the man pages unmounts all of the file systems described in /etc/mtab. Dunno why it's a good idea to do that though . . .

OK. Just looked at that file and it unmounts all the other partitions. I guess I'll need to reboot after doing that . . .

Re: Squeeze snapshot

Wed Mar 27, 2013 9:43 pm

Snapshot already excludes /media/* but.. I'm not sure what happens with symlinks to mounts.. worth checking that

After umount -a "find" can't go beyond / (except what cannot be umounted) No need to reboot after, just mount -a to remount them

EDIT The "find" command I posted works on a loop-mounted squashfs, that (or a variation of) should tell you what's in the snapshot that should not be

Re: Squeeze snapshot

Thu Mar 28, 2013 3:23 am

dzz wrote:Snapshot already excludes /media/* but.. I'm not sure what happens with symlinks to mounts.. worth checking that

Mostly I use launchers on the Desktop or panel instead of symlinks.

dzz wrote:After umount -a "find" can't go beyond / (except what cannot be umounted) No need to reboot after, just mount -a to remount them

Yes, that worked a treat. Here's the printout of that command. All those partitions are on the first 1tb drive. All other partitions were unmounted. sqbu is just for file storage and has about 290gb of data on it. I have no idea why it's busy. I have been using files from there in my video project but none of the apps are currently open. Does look like avidemux has ~50mb in cache though:

Code:
# umount -a
umount: /mnt/sqbu: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /home: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /dev: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

dzz wrote:EDIT The "find" command I posted works on a loop-mounted squashfs, that (or a variation of) should tell you what's in the snapshot that should not be

I've read about loop stuff in some of the other threads but I don't understand much of it. I'm willing to try if you nursemaid me. :)

Re: Squeeze snapshot

Thu Mar 28, 2013 4:00 am

Code:
su
mkdir /media/isomount
mkdir /media/squashmount
mount -o loop path/to/iso /media/isomount
mount -o loop /media/isomount/live/filesystem.squashfs /media/squashmount

find /media/squashmount -type f -size +50M  -exec du -h {} \; 2> /dev/null

# when done
umount /media/isomount
umount /media/squashmount

# or leave them there
rmdir /media/isomount /media/squashmount

Re: Squeeze snapshot

Thu Mar 28, 2013 4:42 pm

dzz wrote:
Code:
su
mkdir /media/isomount
mkdir /media/squashmount
mount -o loop path/to/iso /media/isomount
mount -o loop /media/isomount/live/filesystem.squashfs /media/squashmount

find /media/squashmount -type f -size +50M  -exec du -h {} \; 2> /dev/null

# when done
umount /media/isomount
umount /media/squashmount

# or leave them there
rmdir /media/isomount /media/squashmount

That worked a treat! It found over 6gb of files. But something in the excludes isn't working properly. I assumed EVERYTHING in these directories would be excluded:

Code:
- /home/*/Documents/*
- /home/*/Videos/*

Yet files from them appeared on the list. I'm confused . . .

There were also some hefty files in /root/.local/share/Trash/files/ almost 4gb total! Have to figure out how to empty root trash . . .

Re: Squeeze snapshot

Thu Mar 28, 2013 5:04 pm

how to empty root trash

Code:
su
rm -rf /root/.local/share/Trash/*

That's not in default excludes yet but should probably be added
- /root/.local/share/Trash/*

Code:
- /home/*/Documents/*
- /home/*/Videos/*

is commented out (preceeding #) in default exludes.list, it's a user option to uncomment

How large is ~/.wine?

Re: Squeeze snapshot

Thu Mar 28, 2013 6:35 pm

dzz wrote:
how to empty root trash

Code:
su
rm -rf /root/.local/share/Trash/*

That did the job. Nuked everything in root trash. YEA! You're a handy guy to have around. Thanks.

dzz wrote:That's not in default excludes yet but should probably be added
- /root/.local/share/Trash/*

Agreed and just did so in the /usr/lib/refractasnapshot/snapshot_exclude.list. That is the file I should be tweaking, right?

dzz wrote:
Code:
- /home/*/Documents/*
- /home/*/Videos/*

is commented out (preceeding #) in default exludes.list, it's a user option to uncomment

Yes. And I uncommented them. Yet files from those directories were present in the snapshot iso. How is that possible if the directory is excluded? Something to do with the trailing slash?

dzz wrote:How large is ~/.wine?

~500mb. I added it to the exclude list.

Another 75mb file is .mozilla/firefox/xxxxx.default/urlclassifier3.sqlite. I also excluded ,mozillabackup.

I'm going to give snapshot another run after I go over the excludes list again.

Re: Squeeze snapshot

Thu Mar 28, 2013 8:15 pm

Code:
- /home/*/Documents/*
- /home/*/Videos/*

means what is in "Documents" and "Videos". I don't understand how those dirs can be populated in your snapshot.

See my recent suggestions for extra excludes, add them to the list in the same format as the others if you want to try (but it's not yet tested like that): viewtopic.php?f=6&t=207

Deleting urlclassifier3.sqlite doesn't seem to trash the profile... it gets regenerated next startup, I watched it happen.

Re: Squeeze snapshot

Thu Mar 28, 2013 8:31 pm

I just took another snapshot with even more excludes in place and it still came to 22.7gb exactly as all the others. I just looked in /home/work/myfs/ and just about EVERYTHING is copied in there. Even the files in root trash that I have deleted. dev, media, mnt, opt, proc, selinux, srv, sys, and temp ARE empty. I'm thinking I need to delete all those files as they may be 'stale' and try again.
Post a reply