Post here if you are a new Porteus member and you're looking for some help.
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#1
by LightningShock » 05 Sep 2017, 16:34
Hello, when I load porteus from my save file USM is simply bricked, it list the same apps I searched the last time it worked fine no matter what I search(search button does nothing at all) if I downloading something from that bricked list it does check for dependencies, then it takes an instant to download, because it downloads nothing, but still gives a success message. updating all databases does that(i removed update skipping so I don't have to wait 3 hours to show you this):
Code: Select all
Starting slackware database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
awk: fatal: cannot open file `/var/usm/slackware/CHECKSUMS.md5' for reading (No such file or directory)
md5sum: /var/usm/slackware/MANIFEST.bz2: No such file or directory
File verification was good.
Optimizing manifest
grep: /var/usm/slackware/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/slackware/MANIFEST': No such file or directory
grep: /var/usm/slackware/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackware/LIBS.TXT: No such file or directory
grep: /var/usm/slackware/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackware/LIBS.TXT: No such file or directory
awk: fatal: cannot open file `/var/usm/slackware/PACKAGES.TXT' for reading (No such file or directory)
slackware database updated.
Updating config file
Starting slackwarepatches database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5 DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
awk: fatal: cannot open file `/var/usm/slackwarepatches/CHECKSUMS.md5' for reading (No such file or directory)
md5sum: /var/usm/slackwarepatches/MANIFEST.bz2: No such file or directory
File verification was good.
Optimizing manifest
grep: /var/usm/slackwarepatches/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/slackwarepatches/MANIFEST': No such file or directory
grep: /var/usm/slackwarepatches/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackwarepatches/LIBS.TXT: No such file or directory
grep: /var/usm/slackwarepatches/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackwarepatches/LIBS.TXT: No such file or directory
slackwarepatches database updated.
Starting slacky database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
awk: fatal: cannot open file `/var/usm/slacky/CHECKSUMS.md5' for reading (No such file or directory)
md5sum: /var/usm/slacky/MANIFEST.bz2: No such file or directory
File verification was good.
Optimizing manifest
grep: /var/usm/slacky/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/slacky/MANIFEST': No such file or directory
grep: /var/usm/slacky/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slacky/LIBS.TXT: No such file or directory
grep: /var/usm/slacky/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slacky/LIBS.TXT: No such file or directory
slacky database updated.
Starting salix database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
Downloading: OPTIFEST.gz DONE
grep: /var/usm/salix/LIBS.TXT: No such file or directory
sed: can't read /var/usm/salix/LIBS.TXT: No such file or directory
grep: /var/usm/salix/LIBS.TXT: No such file or directory
sed: can't read /var/usm/salix/LIBS.TXT: No such file or directory
awk: fatal: cannot open file `/var/usm/salix/PACKAGES.TXT' for reading (No such file or directory)
salix database updated.
Starting alien database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
awk: fatal: cannot open file `/var/usm/alien/CHECKSUMS.md5' for reading (No such file or directory)
md5sum: /var/usm/alien/MANIFEST.bz2: No such file or directory
File verification was good.
Optimizing manifest
grep: /var/usm/alien/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/alien/MANIFEST': No such file or directory
grep: /var/usm/alien/LIBS.TXT: No such file or directory
sed: can't read /var/usm/alien/LIBS.TXT: No such file or directory
grep: /var/usm/alien/LIBS.TXT: No such file or directory
sed: can't read /var/usm/alien/LIBS.TXT: No such file or directory
awk: fatal: cannot open file `/var/usm/alien/PACKAGES.TXT' for reading (No such file or directory)
alien database updated.
Starting ponce database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
Optimizing manifest
grep: /var/usm/ponce/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/ponce/MANIFEST': No such file or directory
grep: /var/usm/ponce/LIBS.TXT: No such file or directory
sed: can't read /var/usm/ponce/LIBS.TXT: No such file or directory
grep: /var/usm/ponce/LIBS.TXT: No such file or directory
sed: can't read /var/usm/ponce/LIBS.TXT: No such file or directory
ponce database updated.
Starting slackonly database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
Downloading: CHECKSUMS.md5.gz DONE
Downloading: MANIFEST.bz2 DONE
Downloading: PACKAGES.TXT.gz DONE
Downloading: LIBS.TXT.gz DONE
awk: fatal: cannot open file `/var/usm/slackonly/CHECKSUMS.md5' for reading (No such file or directory)
md5sum: /var/usm/slackonly/MANIFEST.bz2: No such file or directory
File verification was good.
Optimizing manifest
grep: /var/usm/slackonly/MANIFEST: No such file or directory
rm: cannot remove '/var/usm/slackonly/MANIFEST': No such file or directory
grep: /var/usm/slackonly/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackonly/LIBS.TXT: No such file or directory
grep: /var/usm/slackonly/LIBS.TXT: No such file or directory
sed: can't read /var/usm/slackonly/LIBS.TXT: No such file or directory
slackonly database updated.
Starting sbo database update
awk: fatal: cannot open file `/vercheck.txt' for reading (No such file or directory)
SLACKBUILDS.TXT.gz
Downloading: SLACKBUILDS.TXT.gz DONE
sbo database updated.
Downloading: extra-deps.txt DONE
mv: cannot stat '/tmp/extra-deps.txt': No such file or directory
Downloading: ignore-deps.txt DONE
mv: cannot stat '/tmp/ignore-deps.txt': No such file or directory
Or, it gets stuck at "updating config file" If I try deleting /var/usm or pasting from a live setup.
I tried replacing /etc/usm and /var/usm with a copy from a blank setup with no success. Is there a way to reset USM from my save file without having to start from scratch with all of my other settings

? Should I make a bug report here?
Last edited by
LightningShock on 21 Sep 2017, 09:19, edited 1 time in total.
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#2
by Ed_P » 05 Sep 2017, 17:33
It looks like you have a mirror or two that needs to be updated. You can go into /etc/usm/, as root, and edit the mirrors-slackware.txt file to use a different mirror. Choose one closer to your location for example. Or you can check the scripts in this posting:
http://forum.porteus.org/viewtopic.php?p=55997 and run the sesm.sh script then try rerunning the USM update.

Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#3
by LightningShock » 05 Sep 2017, 18:24
Ed_P wrote: ↑05 Sep 2017, 17:33
It looks like you have a mirror or two that needs to be updated. You can go into /etc/usm/, as root, and edit the mirrors-slackware.txt file to use a different mirror. Choose one closer to your location for example. Or you can check the scripts in this posting:
http://forum.porteus.org/viewtopic.php?p=55997 and run the sesm.sh script then try rerunning the USM update.

Umm, I do not think so, USM in always fresh mode works just fine(but it is annoying to reboot back and forth and update every single time). It simply gets stuck because it can't find those files. I will try, but I'm afraid it going to get even worse.
update: searching works right when I start porteus, and freezes again after a short while.
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#4
by Ed_P » 05 Sep 2017, 22:23
In AF mode the /var/usm/ directories are all empty. Nothing can be searched for since nothing has been found. When you do a USM update it accesses the active mirror from each mirror file in the /etc/usm/ folder and downloads files to the /var/usm/ directories. If a mirror has a broken file you get an error like you reported.
Change the mirror-slackware.txt manually or use the sesm.sh script to update it.
Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#5
by LightningShock » 06 Sep 2017, 12:57
I did as you said, it still did not work. I made a new save file and eventually I encountered the same problem after a while of use.
However, I found the actual cause, it was a stubborn folder in /tmp called usm.xxxxxx (where those x-es are in fact generated random letters and numbers). I just deleted that folder and USM works again.
Problem solved? Not quite, now usm -u all gets stuck at the first "Updating config file", but manually updating each of them works. Note: I did make a backup and I did revert /etc/usm after I followed that procedure you provided.
Now, what can I do to make usm -u all work again?
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#6
by Ed_P » 06 Sep 2017, 14:49
I don't know what to tell you LightningShock. The /tmp folder is not saved to the save.dat file and is cleared with every reboot. And your update problem still sounds like a corrupt mirror.
Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#7
by LightningShock » 07 Sep 2017, 20:02
Ed_P wrote: ↑06 Sep 2017, 14:49
The /tmp folder is not saved to the save.dat file and is cleared with every reboot.
I know it's supposed to do that but, believe me or not, mine doesn't. Both of my save files do that. Bug?
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#8
by Ed_P » 07 Sep 2017, 21:08
Do you use changes=EXIT? It's what I use. That way if I screw up a session I can reboot and not save any changes.
What do you see when you do this command?
Code: Select all
guest@porteus:~$ ls -l /mnt/live/memory/images/changes/
This is what I see for my save.dat file.
Code: Select all
guest@porteus:~$ ls -l /mnt/live/memory/images/changes/
total 0
drwxr-xr-x 8 root root 241 Sep 6 00:03 etc/
drwxr-xr-x 3 root root 19 Sep 5 19:53 home/
drwxr-xr-x 3 guest users 21 Mar 6 2017 lib/
drwxr-xr-x 4 root root 43 Sep 1 16:57 opt/
drwx------ 15 root root 233 Sep 5 19:53 root/
drwxr-xr-x 6 root root 56 Sep 5 23:54 usr/
drwxr-xr-x 10 root root 100 Sep 6 00:03 var/
guest@porteus:~$
What kernel files are you using?
http://dl.porteus.org/x86_64/kernel/
Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#9
by LightningShock » 14 Sep 2017, 19:19
ls -l /mnt/live/memory/images/changes/ didn't find anything, however ls -l /mnt/live/memory/changes/ (that's what I found with thunar) returned this:
Code: Select all
total 12
drwxr-xr-x 2 root root 36 Sep 14 21:49 dev/
drwxr-xr-x 10 root root 234 Sep 14 21:55 etc/
drwxr-xr-x 3 root root 19 Sep 6 12:20 home/
-rw-r--r-- 1 root root 0 Sep 6 14:07 isonline
drwxr-xr-x 3 root root 21 Sep 6 12:20 lib/
drwxr-xr-x 6 root root 54 Sep 14 21:50 mnt/
drwxr-xr-x 3 root root 29 Sep 6 16:17 opt/
drwx------ 16 root root 256 Sep 6 15:01 root/
-rw-r--r-- 1 root root 8 Sep 6 14:36 searchType
-rw-r--r-- 1 root root 11 Sep 6 14:07 term1.tmp
drwxrwxrwt 25 root root 4096 Sep 14 22:05 tmp/
drwxr-xr-x 5 root root 43 Sep 8 20:01 usr/
drwxr-xr-x 11 root root 109 Sep 6 15:28 var/
uname -a returned this(note that for now I'm plugged in a VM because I need to get Nvidia to work for my home PC because nouveau is barely usable even for file browsing)
Code: Select all
Linux porteus 4.9.0-porteus #1 SMP PREEMPT Sun Dec 18 16:24:27 Local time zone must be set-- i686 Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz GenuineIntel GNU/Linux
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#10
by Ed_P » 14 Sep 2017, 21:24
LightningShock please post the output of this command:
I don't think you have a save.dat file and if you do you're not using it. If I boot in Always Fresh mode, ie no save.dat file, I get this also.
Code: Select all
guest@porteus:~$ ls -l /mnt/live/memory/images/changes/
/bin/ls: cannot access '/mnt/live/memory/images/changes/': No such file or directory
guest@porteus:~$
What format is your Porteus drive?
Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#11
by LightningShock » 16 Sep 2017, 08:03
Code: Select all
quiet BOOT_IMAGE=vmlinuz from=/multiboot/Porteus-XFCE-v3.2.2-i586 initrd=initrd.xz changes=/multiboot/Porteus-XFCE-v3.2.2-i586/porteussave.dat vga_detect
My usb drive is fat32 while my save file is xfs. Saving does work, my files don't disappear when I reboot.
Thanks in advance by the way.
LightningShock
-
Ed_P
- Contributor

- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#12
by Ed_P » 16 Sep 2017, 16:53
Interesting. Apparently the save.dat used with changes= is different than the save.dat used with changes=EXIT. Or maybe your changes exceeded the size of your save.dat at some point and the save.dat got corrupted. That's happened to me in the past.
One thing I see is your /tmp folder is huge compared to your other folders. Similar to Windows where .tmp and /temp files and folders last forever and have to be manually deleted I think you need to do the same with your /tmp folder. As root try
Code: Select all
ls -l /mnt/live/memory/changes/tmp/
rm -rf /tmp/usm
ls -l /mnt/live/memory/changes/tmp/
Technically whatever you do to the live system should reflect in the changes folder.
Another option might be to do the rm command on the /mnt/live/memory/changes/tmp/usm/ folder.
Ed_P
-
LightningShock
- White ninja

- Posts: 9
- Joined: 04 Sep 2017, 12:48
- Distribution: XFCE-v3.2.2-i586
Post#13
by LightningShock » 21 Sep 2017, 09:19
Thank you, I will take this into consideration. Long ago, my savefile(not this one) broke and it was encryped so I decided to reset as I did not have any important data. I used ext4 at that time so I decided to switch to xfs, as I've heard is more tamper proof than ext4, no problems since then, maybe apart from this mounting weirdness but I guess is a good trade for me.
LightningShock