Author |
Message |
musher0
Joined: 04 Jan 2009 Posts: 14554 Location: Gatineau (Qc), Canada
|
Posted: Wed 14 Nov 2018, 19:14 Post subject:
|
|
Hello Argolance.
Try good old zip for this kind of task? It has never failed me.
As in: Code: | cd /mnt/sdX
zip -9ry /mnt/sdX/sdY-disk.zip /mnt/sdY/* | Where:
-9 => maximum compression
-r => recurse (i.e. grab all directories and sub-directories)
-y => store symlinks as symlinks
Please also note the use of two separate partitions for this kind of task:
One should store the contents of partition sdY on partition sdX.
If you need more information about the capacities of zip for a task like
this, you can type in a console. In this doc, you will learn how to zip special types of files
(e.g. "pipes"), etc., if you need to do so.
But zip will compress ".mozilla" and similar hidden directories as usual,
no need to indicate a special parameter.
IHTH. BFN.
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 3721 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Thu 15 Nov 2018, 05:53 Post subject:
|
|
Bonjour,
Thank you for replying.
I didn't make a compressed file from the entire partition, only of its contents. I usually do this kind of task manually, using a right click menu entry "Dir2tgz" and this has never failed. This time, I did it from a live USB key session to have access to the partition and be able to format it with gparted. It was for me the opportunity to test Packit: I was not convinced, far from it!
Là, ça fait mal!!!
Cordialement.
_________________
A second life for your PCs...
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 15 Nov 2018, 06:04 Post subject:
|
|
Argolance wrote: | Today, I had to reformat a partition from ext3 to ext4. I made a compressed file (tar.xz) of its contents using Packit from a live session (stretch 7.5). When I wanted to restore the backed up files/directories, I unfortunately found that the hidden folders had not been copied/taken into account (.mozilla, .wine, .thunderbird, .filezilla, etc...) and I unfortunately lost all the data that was there.
I write this message to warn users of this very annoying issue and prevent the same thing from happening to them... |
Thanks for reporting this issue and sorry for the lost data...
However, I can't reproduce it, even in Stretch.
Are you able to reproduce it again, preferably on some small set of dirs/files?
If so, I'd appreciate a step-by-step procedure.
Also, what tool did you use to inspect/unpack the archive?
musher0 wrote: | Try good old zip for this kind of task? It has never failed me. |
Just keep in mind that although ZIP preserves RWX permissions, it won't preserve ownership nor SUID/SGID/Sticky bits.
Of course it may be negligible, depending on situation.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 15 Nov 2018, 06:16 Post subject:
|
|
Argolance wrote: | I didn't make a compressed file from the entire partition, only of its contents. I usually do this kind of task manually, using a right click menu entry "Dir2tgz" and this has never failed. |
Are you saying that you were right-clicking on each dir, separately, and PackIt it one by one?
If so, right-clicking a hidden dir (e.g. .mozilla) and using PackIt on it will produce a hidden archive (e.g. .mozilla.tar.xz), unless you specify the archive name yourself.
Perhaps that was the case?
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 3721 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Thu 15 Nov 2018, 07:37 Post subject:
|
|
Quote: | Are you saying that you were right-clicking on each dir, separately, and PackIt it one by one? | No, I selected all the files/directories of the partition, then used the "Open With" right click menu to build a tar.xz file with Packit to another partition (windows NTFS) , selected "3" (medium) as compressing value. Then, when my partition was formatted to ext4 I moved the compressed file to my new ext4 partition and just clicked on it to uncompress it back directly to the partition.
I usually configure ROX to show hidden files, may be, while selecting all files of a partition without this setting would be the reason of this issue?
_________________
A second life for your PCs...
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 15 Nov 2018, 08:09 Post subject:
|
|
Argolance wrote: | I usually configure ROX to show hidden files, may be, while selecting all files of a partition without this setting would be the reason of this issue? |
That could be it, indeed.
If showing hidden files is not enabled and you use CTRL+A, only non-hidden stuff gets selected and that's all what goes to PackIt...
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 3721 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Thu 15 Nov 2018, 09:00 Post subject:
|
|
SFR wrote: | If showing hidden files is not enabled and you use CTRL+A, only non-hidden stuff gets selected and that's all what goes to PackIt...
|
I think a warning should be added somewhere in the application to preserve the user who would ignore or forget this, as it was the case for me! But still, just because they are not displayed doesn't mean that these files/folders don't exist: it remains a big problem...
Thank you.
Cheers!
_________________
A second life for your PCs...
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 14 Mar 2019, 07:42 Post subject:
|
|
Version 1.16:
- make (un)install scripts compatibile with Fatdog build system
- added zstd support
- added sha256 checksum
First post updated.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 28 Mar 2019, 16:18 Post subject:
|
|
Version 1.17:
- removed compress and freeze support
- added 'Block size' option to mksquashfs
- various fixes and improvements
First post updated.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 14554 Location: Gatineau (Qc), Canada
|
Posted: Thu 28 Mar 2019, 18:05 Post subject:
|
|
Many thanks, SFR!
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Sat 05 Oct 2019, 06:53 Post subject:
|
|
Version 1.18:
- can create zstd compressed SFSes (requires squashfs-tools v4.4 built with zstd)
- fixed typo in one extension
First post updated.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Tue 15 Oct 2019, 12:30 Post subject:
|
|
Version 1.19:
- mksquashfs: added option to not compress (-noI -noId -noD -noF -noX)
- fixed disabling mksquashfs's "block size" combobox after choosing '(none)'
First post updated.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
mistfire
Joined: 04 Nov 2008 Posts: 1285 Location: PH
|
Posted: Thu 17 Oct 2019, 03:02 Post subject:
|
|
Hello
Can you please add zst compression in packit?
https://github.com/facebook/zstd
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1749
|
Posted: Thu 17 Oct 2019, 05:03 Post subject:
|
|
Hey Mistfire
Support for zstd is already there, since v1.16.
Can also create zstd compressed SFSes (since v1.18, req. squashfs-tools v4.4+).
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
Revolverve

Joined: 08 Nov 2008 Posts: 263 Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca
|
Posted: Fri 01 Nov 2019, 11:16 Post subject:
|
|
SFR
having recently been acquainted that UExtract handle appimage, would it be possible that packit create them too?
if not already the case!
testing it simply...
-made a squashfs from an extracted appimage
-renaming it,give it executable rights
=no go and no surprise..Exec format error
but an appimage is just an executable squashfs!
This is where i took my inspiration..
Freecad wiki;appimage
From the link:
Repackaging AppImages
If you've modified the code, and now want to re-package the AppImage with your latest changes, use the appimagetool-x86_64 tool on the extracted file system.
cd ..
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage squashfs-root
__________
could be useful feature if doable..
Thanks ,have a great one.
_________________ Help mira.ca
|
Back to top
|
|
 |
|