makesfs/arch2sfs

Post your comments, questions, bug reports or suggest new features for alphaOS
meowcats
Competent
Posts: 23
Joined: 09 Sep 2013, 08:45

makesfs/arch2sfs

Postby meowcats » 19 Sep 2013, 21:51

Hi can't seem to get makesfs to work for anything. example.

Code: Select all

[root@alphaos ~]# clear
[root@alphaos ~]# makesfs gnuplot
:: Cleaning packages cache
:: Downloading gnuplot
resolving dependencies...

Packages (5): gd-2.1.0-1  gstreamer0.10-0.10.36-2  gstreamer0.10-base-0.10.36-1
              wxgtk-2.8.12.1-5  gnuplot-4.6.3-1

Total Download Size:   9.10 MiB

:: Proceed with download? [Y/n] y
:: Retrieving packages ...
 gd-2.1.0-1-i686          203.0 KiB   166K/s 00:01 [######################]   2%
 gstreamer0.10-0.10....  1629.1 KiB   401K/s 00:04 [######################]  17%
 gstreamer0.10-base-...     2.8 MiB   465K/s 00:06 [######################]  31%
 wxgtk-2.8.12.1-5-i686      6.7 MiB   531K/s 00:13 [######################]  73%
 gnuplot-4.6.3-1-i686       9.1 MiB   548K/s 00:17 [######################] 100%
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
:: Moving packages to /mnt/home/gnuplot
:: Running script arch2sfs gnuplot.sfs
Extracting:
gd-2.1.0-1-i686.pkg.tar.xzusr/lib/libgd.so: Can't create 'usr/lib/libgd.so'
usr/lib/libgd.so.3: Can't create 'usr/lib/libgd.so.3'
bsdtar: Error exit delayed from previous errors.

gnuplot-4.6.3-1-i686.pkg.tar.xz
gstreamer0.10-0.10.36-2-i686.pkg.tar.xzusr/lib/libgstreamer-0.10.so.0: Can't create 'usr/lib/libgstreamer-0.10.so.0'
usr/lib/libgstreamer-0.10.so: Can't create 'usr/lib/libgstreamer-0.10.so'
usr/lib/libgstbase-0.10.so.0: Can't create 'usr/lib/libgstbase-0.10.so.0'
usr/lib/libgstbase-0.10.so: Can't create 'usr/lib/libgstbase-0.10.so'
usr/lib/libgstcontroller-0.10.so.0: Can't create 'usr/lib/libgstcontroller-0.10.so.0'
usr/lib/libgstcontroller-0.10.so: Can't create 'usr/lib/libgstcontroller-0.10.so'
usr/lib/libgstdataprotocol-0.10.so.0: Can't create 'usr/lib/libgstdataprotocol-0.10.so.0'
usr/lib/libgstdataprotocol-0.10.so: Can't create 'usr/lib/libgstdataprotocol-0.10.so'
usr/lib/libgstcheck-0.10.so.0: Can't create 'usr/lib/libgstcheck-0.10.so.0'
usr/lib/libgstcheck-0.10.so: Can't create 'usr/lib/libgstcheck-0.10.so'
usr/lib/libgstnet-0.10.so.0: Can't create 'usr/lib/libgstnet-0.10.so.0'
usr/lib/libgstnet-0.10.so: Can't create 'usr/lib/libgstnet-0.10.so'
bsdtar: Error exit delayed from previous errors.

gstreamer0.10-base-0.10.36-1-i686.pkg.tar.xzusr/lib/libgstinterfaces-0.10.so.0: Can't create 'usr/lib/libgstinterfaces-0.10.so.0'
usr/lib/libgstinterfaces-0.10.so: Can't create 'usr/lib/libgstinterfaces-0.10.so'
usr/lib/libgsttag-0.10.so.0: Can't create 'usr/lib/libgsttag-0.10.so.0'
usr/lib/libgsttag-0.10.so: Can't create 'usr/lib/libgsttag-0.10.so'
usr/lib/libgstcdda-0.10.so.0: Can't create 'usr/lib/libgstcdda-0.10.so.0'
usr/lib/libgstcdda-0.10.so: Can't create 'usr/lib/libgstcdda-0.10.so'
usr/lib/libgstfft-0.10.so.0: Can't create 'usr/lib/libgstfft-0.10.so.0'
usr/lib/libgstfft-0.10.so: Can't create 'usr/lib/libgstfft-0.10.so'
usr/lib/libgstnetbuffer-0.10.so.0: Can't create 'usr/lib/libgstnetbuffer-0.10.so.0'
usr/lib/libgstnetbuffer-0.10.so: Can't create 'usr/lib/libgstnetbuffer-0.10.so'
usr/lib/libgstrtp-0.10.so.0: Can't create 'usr/lib/libgstrtp-0.10.so.0'
usr/lib/libgstrtp-0.10.so: Can't create 'usr/lib/libgstrtp-0.10.so'
usr/lib/libgstsdp-0.10.so.0: Can't create 'usr/lib/libgstsdp-0.10.so.0'
usr/lib/libgstsdp-0.10.so: Can't create 'usr/lib/libgstsdp-0.10.so'
usr/lib/libgstrtsp-0.10.so.0: Can't create 'usr/lib/libgstrtsp-0.10.so.0'
usr/lib/libgstrtsp-0.10.so: Can't create 'usr/lib/libgstrtsp-0.10.so'
usr/lib/libgstvideo-0.10.so.0: Can't create 'usr/lib/libgstvideo-0.10.so.0'
usr/lib/libgstvideo-0.10.so: Can't create 'usr/lib/libgstvideo-0.10.so'
usr/lib/libgstpbutils-0.10.so.0: Can't create 'usr/lib/libgstpbutils-0.10.so.0'
usr/lib/libgstpbutils-0.10.so: Can't create 'usr/lib/libgstpbutils-0.10.so'
usr/lib/libgstaudio-0.10.so.0: Can't create 'usr/lib/libgstaudio-0.10.so.0'
usr/lib/libgstaudio-0.10.so: Can't create 'usr/lib/libgstaudio-0.10.so'
usr/lib/libgstriff-0.10.so.0: Can't create 'usr/lib/libgstriff-0.10.so.0'
usr/lib/libgstriff-0.10.so: Can't create 'usr/lib/libgstriff-0.10.so'
usr/lib/libgstapp-0.10.so.0: Can't create 'usr/lib/libgstapp-0.10.so.0'
usr/lib/libgstapp-0.10.so: Can't create 'usr/lib/libgstapp-0.10.so'
bsdtar: Error exit delayed from previous errors.

wxgtk-2.8.12.1-5-i686.pkg.tar.xzusr/lib/libwx_gtk2u_ogl-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_ogl-2.8.so.0'
usr/lib/libwx_gtk2u_core-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_core-2.8.so.0'
usr/lib/libwx_baseu_xml-2.8.so: Can't create 'usr/lib/libwx_baseu_xml-2.8.so'
usr/lib/libwx_gtk2u_qa-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_qa-2.8.so.0'
usr/lib/libwx_gtk2u_plot-2.8.so: Can't create 'usr/lib/libwx_gtk2u_plot-2.8.so'
usr/lib/libwx_gtk2u_ogl-2.8.so: Can't create 'usr/lib/libwx_gtk2u_ogl-2.8.so'
usr/lib/libwx_gtk2u_fl-2.8.so: Can't create 'usr/lib/libwx_gtk2u_fl-2.8.so'
usr/lib/libwx_baseu_xml-2.8.so.0: Can't create 'usr/lib/libwx_baseu_xml-2.8.so.0'
usr/lib/libwx_gtk2u_gizmos-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_gizmos-2.8.so.0'
usr/lib/libwx_gtk2u_core-2.8.so: Can't create 'usr/lib/libwx_gtk2u_core-2.8.so'
usr/lib/libwx_gtk2u_fl-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_fl-2.8.so.0'
usr/lib/libwx_gtk2u_svg-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_svg-2.8.so.0'
usr/lib/libwx_gtk2u_stc-2.8.so: Can't create 'usr/lib/libwx_gtk2u_stc-2.8.so'
usr/lib/libwx_gtk2u_gl-2.8.so: Can't create 'usr/lib/libwx_gtk2u_gl-2.8.so'
usr/lib/libwx_baseu-2.8.so.0: Can't create 'usr/lib/libwx_baseu-2.8.so.0'
usr/lib/libwx_gtk2u_xrc-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_xrc-2.8.so.0'
usr/lib/libwx_gtk2u_adv-2.8.so: Can't create 'usr/lib/libwx_gtk2u_adv-2.8.so'
usr/lib/libwx_gtk2u_richtext-2.8.so: Can't create 'usr/lib/libwx_gtk2u_richtext-2.8.so'
usr/lib/libwx_gtk2u_mmedia-2.8.so: Can't create 'usr/lib/libwx_gtk2u_mmedia-2.8.so'
usr/lib/libwx_gtk2u_stc-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_stc-2.8.so.0'
usr/lib/libwx_gtk2u_xrc-2.8.so: Can't create 'usr/lib/libwx_gtk2u_xrc-2.8.so'
usr/lib/libwx_gtk2u_gizmos_xrc-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_gizmos_xrc-2.8.so.0'
usr/lib/libwx_gtk2u_svg-2.8.so: Can't create 'usr/lib/libwx_gtk2u_svg-2.8.so'
usr/lib/libwx_gtk2u_aui-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_aui-2.8.so.0'
usr/lib/libwx_gtk2u_adv-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_adv-2.8.so.0'
usr/lib/libwx_gtk2u_gl-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_gl-2.8.so.0'
usr/lib/libwx_baseu_net-2.8.so: Can't create 'usr/lib/libwx_baseu_net-2.8.so'
usr/lib/libwx_gtk2u_mmedia-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_mmedia-2.8.so.0'
usr/lib/libwx_gtk2u_qa-2.8.so: Can't create 'usr/lib/libwx_gtk2u_qa-2.8.so'
usr/lib/libwx_baseu-2.8.so: Can't create 'usr/lib/libwx_baseu-2.8.so'
usr/lib/libwx_gtk2u_html-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_html-2.8.so.0'
usr/lib/libwx_gtk2u_media-2.8.so: Can't create 'usr/lib/libwx_gtk2u_media-2.8.so'
usr/lib/libwx_gtk2u_html-2.8.so: Can't create 'usr/lib/libwx_gtk2u_html-2.8.so'
usr/lib/libwx_gtk2u_aui-2.8.so: Can't create 'usr/lib/libwx_gtk2u_aui-2.8.so'
usr/lib/libwx_gtk2u_gizmos_xrc-2.8.so: Can't create 'usr/lib/libwx_gtk2u_gizmos_xrc-2.8.so'
usr/lib/libwx_gtk2u_media-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_media-2.8.so.0'
usr/lib/libwx_gtk2u_gizmos-2.8.so: Can't create 'usr/lib/libwx_gtk2u_gizmos-2.8.so'
usr/lib/libwx_baseu_net-2.8.so.0: Can't create 'usr/lib/libwx_baseu_net-2.8.so.0'
usr/lib/libwx_gtk2u_richtext-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_richtext-2.8.so.0'
usr/lib/libwx_gtk2u_plot-2.8.so.0: Can't create 'usr/lib/libwx_gtk2u_plot-2.8.so.0'
usr/include/wx-2.8/wx/: Failed to set file flags
usr/bin/wx-config: Can't create 'usr/bin/wx-config'
usr/bin/wxrc: Can't create 'usr/bin/wxrc'
bsdtar: Error exit delayed from previous errors.


Creating gnuplot.sfs module:
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on gnuplot.sfs, block size 524288.
[=============================================================-] 1463/1463 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 524288
   compressed data, compressed metadata, compressed fragments, compressed xattrs
   duplicates are removed
Filesystem size 12819.94 Kbytes (12.52 Mbytes)
   27.46% of uncompressed filesystem size (46693.50 Kbytes)
Inode table size 15658 bytes (15.29 Kbytes)
   30.11% of uncompressed inode table size (52010 bytes)
Directory table size 16009 bytes (15.63 Kbytes)
   39.76% of uncompressed directory table size (40268 bytes)
Number of duplicate files found 26
Number of inodes 1620
Number of files 1443
Number of fragments 70
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 177
Number of ids (unique uids + gids) 1
Number of uids 1
   root (0)
Number of gids 1
   root (0)
[root@alphaos ~]# gnuplot
gnuplot: error while loading shared libraries: libgd.so.3: cannot open shared object file: No such file or directory

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: makesfs/arch2sfs

Postby simargl » 20 Sep 2013, 08:19

I tried and it works here.

Code: Select all

[root@alphaos ~]# makesfs gnuplot
:: Cleaning packages cache
:: Downloading gnuplot
resolving dependencies...

Packages (2): gd-2.1.0-1  gnuplot-4.6.3-1

Total Download Size:   2.61 MiB

:: Proceed with download? [Y/n]
:: Retrieving packages ...
 gd-2.1.0-1-i686          203.0 KiB   199K/s 00:01 [######################]   7%
 gnuplot-4.6.3-1-i686       2.6 MiB   185K/s 00:14 [######################] 100%
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
:: Moving packages to /mnt/home/gnuplot
:: Running script arch2sfs gnuplot.sfs
Extracting:
gd-2.1.0-1-i686.pkg.tar.xz
gnuplot-4.6.3-1-i686.pkg.tar.xz

Creating gnuplot.sfs module:
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on gnuplot.sfs, block size 524288.
[=================================================================\] 91/91 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 524288
   compressed data, compressed metadata, compressed fragments, compressed xattrs
   duplicates are removed
Filesystem size 3031.07 Kbytes (2.96 Mbytes)
   48.95% of uncompressed filesystem size (6192.34 Kbytes)
Inode table size 1229 bytes (1.20 Kbytes)
   31.82% of uncompressed inode table size (3862 bytes)
Directory table size 1276 bytes (1.25 Kbytes)
   52.66% of uncompressed directory table size (2423 bytes)
Number of duplicate files found 2
Number of inodes 119
Number of files 86
Number of fragments 5
Number of symbolic links  2
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 31
Number of ids (unique uids + gids) 1
Number of uids 1
   root (0)
Number of gids 1
   root (0)
[root@alphaos ~]#

Some things you could check is if /mnt/home partition has enough free space (this is less likely to be the problem), and that bsdtar command can extract archives.

meowcats
Competent
Posts: 23
Joined: 09 Sep 2013, 08:45

Re: makesfs/arch2sfs

Postby meowcats » 20 Sep 2013, 17:10

Code: Select all

[root@alphaos openssh]# bsdtar -xf openssh-6.2p2-1-i686.pkg.tar.xz
usr/share/man/man1/slogin.1: Can't create 'usr/share/man/man1/slogin.1'
usr/bin/slogin: Can't create 'usr/bin/slogin'
bsdtar: Error exit delayed from previous errors.
[root@alphaos openssh]# tar -xf openssh-6.2p2-1-i686.pkg.tar.xz
tar: usr/share/man/man1/slogin.1: Cannot create symlink to `ssh.1.gz': Operation not permitted
tar: usr/bin/slogin: Cannot create symlink to `./ssh': Operation not permitted
tar: Exiting with failure status due to previous errors
[root@alphaos openssh]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          1.9G   19M  1.9G   1% /
/dev/sdd1        15G  852M   14G   6% /initrd/mnt/dev_save
/dev/loop1      488M  276M  203M  58% /initrd/pup_ro1
tmpfs           1.9G   19M  1.9G   1% /initrd/pup_rw
/dev/sdb2        60G   26G   34G  44% /initrd/mnt/dev_ro2
/dev/loop0       44M   44M     0 100% /initrd/pup_ro2
/dev/loop2       83M   83M     0 100% /initrd/pup_a
/dev/loop4       55M   55M     0 100% /initrd/pup_ro4
/dev/loop5       10M   10M     0 100% /initrd/pup_ro5
unionfs         1.9G   19M  1.9G   1% /
devtmpfs        1.7G     0  1.7G   0% /dev


its strange because the only files it cannot extract are in /usr/lib/

Code: Select all

[root@alphaos openssh]# du -ah
8.0K   ./dnssec-anchors-20130320-1-any.pkg.tar.xz
1.1M   ./krb5-1.11.3-1-i686.pkg.tar.xz
400K   ./ldns-1.6.16-1-i686.pkg.tar.xz
96K   ./libedit-20130601_3.1-1-i686.pkg.tar.xz
408K   ./libldap-2.4.36-1-i686.pkg.tar.xz
136K   ./libsasl-2.1.26-4-i686.pkg.tar.xz
560K   ./openssh-6.2p2-1-i686.pkg.tar.xz
8.0K   ./tmp
8.0K   ./.PKGINFO
8.0K   ./.INSTALL
8.0K   ./.MTREE
8.0K   ./etc/ssh/ssh_config
240K   ./etc/ssh/moduli
8.0K   ./etc/ssh/sshd_config
264K   ./etc/ssh
8.0K   ./etc/pam.d/sshd
16K   ./etc/pam.d
288K   ./etc
8.0K   ./usr/bin/findssl.sh
16K   ./usr/bin/ssh-copy-id
416K   ./usr/bin/ssh
64K   ./usr/bin/scp
136K   ./usr/bin/ssh-add
128K   ./usr/bin/ssh-agent
208K   ./usr/bin/ssh-keygen
240K   ./usr/bin/ssh-keyscan
536K   ./usr/bin/sshd
112K   ./usr/bin/sftp
1.9M   ./usr/bin
16K   ./usr/share/man/man1/ssh.1.gz
8.0K   ./usr/share/man/man1/scp.1.gz
8.0K   ./usr/share/man/man1/ssh-add.1.gz
8.0K   ./usr/share/man/man1/ssh-agent.1.gz
8.0K   ./usr/share/man/man1/ssh-keygen.1.gz
8.0K   ./usr/share/man/man1/ssh-keyscan.1.gz
8.0K   ./usr/share/man/man1/sftp.1.gz
8.0K   ./usr/share/man/man1/ssh-copy-id.1.gz
80K   ./usr/share/man/man1
8.0K   ./usr/share/man/man5/moduli.5.gz
16K   ./usr/share/man/man5/sshd_config.5.gz
16K   ./usr/share/man/man5/ssh_config.5.gz
48K   ./usr/share/man/man5
16K   ./usr/share/man/man8/sshd.8.gz
8.0K   ./usr/share/man/man8/sftp-server.8.gz
8.0K   ./usr/share/man/man8/ssh-keysign.8.gz
8.0K   ./usr/share/man/man8/ssh-pkcs11-helper.8.gz
48K   ./usr/share/man/man8
184K   ./usr/share/man
16K   ./usr/share/licenses/openssh/LICENCE
24K   ./usr/share/licenses/openssh
32K   ./usr/share/licenses
224K   ./usr/share
248K   ./usr/lib/ssh/ssh-keysign
112K   ./usr/lib/ssh/ssh-pkcs11-helper
64K   ./usr/lib/ssh/sftp-server
432K   ./usr/lib/ssh
8.0K   ./usr/lib/systemd/system/sshdgenkeys.service
8.0K   ./usr/lib/systemd/system/sshd@.service
8.0K   ./usr/lib/systemd/system/sshd.service
8.0K   ./usr/lib/systemd/system/sshd.socket
40K   ./usr/lib/systemd/system
48K   ./usr/lib/systemd
488K   ./usr/lib
2.6M   ./usr
8.0K   ./var/empty
16K   ./var
5.5M   .

meowcats
Competent
Posts: 23
Joined: 09 Sep 2013, 08:45

Re: makesfs/arch2sfs

Postby meowcats » 20 Sep 2013, 17:16

I think maybe I cannot have my flash drive formatted as FAT... FAT does not support symlink?

meowcats
Competent
Posts: 23
Joined: 09 Sep 2013, 08:45

Re: makesfs/arch2sfs

Postby meowcats » 20 Sep 2013, 17:23

mounting an ext4 partition and running arch2sfs on that partition seems to work..

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: makesfs/arch2sfs

Postby simargl » 20 Sep 2013, 18:44

With scripts makesfs and arch2sfs packages are extracted outside of save file to /mnt/home directory, and that is problem if /mnt/home partition is FAT32 or NTFS, it will mess up file permissions and not support symlinks.

http://askubuntu.com/questions/214562/cannot-transfer-file-due-to-filesystem-does-not-support-symbolic-links-error


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 12 guests

cron