[SOLVED] Maybe a Bug on md5sum!?

Post here if you are a new Porteus member and you're looking for some help.
nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

[SOLVED] Maybe a Bug on md5sum!?

Post#1 by nixlower0 » 08 Sep 2012, 16:54

Hello forum mates!
I liked very much Slax and Slax Remix Porteus. But I have a lil' problem with check sum. When I tried to create a booting USB flash drive with Porteus on it from my Ubuntu by using a command:

Code: Select all

$ sh ./lin_start_here.sh
I got an error advertisement after "Checking md5sums - wait a while...":

Code: Select all

checking md5sum for  boot/vmlinuz    ok
checking md5sum for  boot/initrd.xz    ok
checking md5sum for  porteus/base/000-kernel.xzm   fail!
checking md5sum for  porteus/base/001-core.xzm   fail!
checking md5sum for  porteus/base/002-xorg.xzm   fail!
checking md5sum for  porteus/base/003-lxde.xzm   fail!
checking md5sum for  porteus/base/004-tde.xzm   fail!
checking md5sum for  porteus/base/005-tdeapps.xzm   fail!
checking md5sum for  porteus/base/006-abiword.xzm   fail!
checking md5sum for  porteus/base/007-devel.xzm   fail!
checking md5sum for  porteus/base/008-firefox.xzm   fail!

Some md5sums doesn't match or some files from default ISO are missing,
please check above...
Be aware that vmlinuz, initrd.xz, 000-kernel.xzm and 001-core.xzm are
most important and booting wont be possible when they are missing.
Press enter to continue or ctrl+c to exit
I decided to continue. Then when the installation was done I checked the sums from failed fails. I found all the files have correct sums, excluding one 004-tde.xzm, the sum wasn't correct. Why that happened? It will cause any problem on Porteus booting and using?
Thank you for your answers in advance! I appreciate any answer!
Last edited by nixlower0 on 07 Mar 2013, 12:15, edited 2 times in total.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Maybe a Bug on md5sum!?

Post#2 by beny » 08 Sep 2012, 17:32

which version?

Posted after 1 minute 9 seconds:
tde? 32 bit have you downloaded the last version of porteus?

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Maybe a Bug on md5sum!?

Post#3 by nixlower0 » 08 Sep 2012, 17:39

Sorry, I forgot to mention I'm using a x32 bit version - Porteus-v1.2-i486.iso

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Maybe a Bug on md5sum!?

Post#4 by beny » 08 Sep 2012, 17:49

you can boot system,the boot installer give you a warning but i think work well try to continue in

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Maybe a Bug on md5sum!?

Post#5 by nixlower0 » 08 Sep 2012, 18:12

OK, I will try now to boot, then I'll post here what happened :)

User avatar
bigbass
Contributor
Contributor
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: Maybe a Bug on md5sum!?

Post#6 by bigbass » 08 Sep 2012, 19:30

Post by nixlower0 » 08 Sep 2012, 17:39
Sorry, I forgot to mention I'm using a x32 bit version - Porteus-v1.2-i486.iso

looks like that file slipped though the coffee filter without getting updated these are the md5sums
its a minor thing to fix

if you upgrade the kernel and initrd it would look like this

http://pastebin.com/PiWCfjfT

you could generate a new md5sum.txt the official way by running this make_iso.sh


here is one with no filters for any file(s)

Code: Select all

:> CHECKSUMS.md5
    find .  -exec md5sum {} \; >> CHECKSUMS.md5
  cat CHECKSUMS.md5 
check it easily with this

Code: Select all


md5sum -c CHECKSUMS.md5


if you want a script to do it for you for "packages and modules " here is one run it from inside the base directory
this will cover many formats I added xzm :)


Joe

Code: Select all

:> CHECKSUMS.md5
    find . -type f -regextype posix-egrep -regex '.*\.[tgblzikxm]+$' -exec md5sum {} \; >> CHECKSUMS.md5
  cat CHECKSUMS.md5 
Last edited by bigbass on 09 Sep 2012, 04:57, edited 2 times in total.

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Maybe a Bug on md5sum!?

Post#7 by nixlower0 » 08 Sep 2012, 20:19

bigbass wrote: ...
you could generate a new md5sum.txt the official way by running this make_iso.sh

if you want a script to do it for you for "general use" here is one run it from inside the base directory
this will cover many formats I added xzm :)

Code: Select all

:> CHECKSUMS.md5
    find . -type f -regextype posix-egrep -regex '.*\.[tgblzikxm]+$' -exec md5sum {} \; >> CHECKSUMS.md5
  cat CHECKSUMS.md5 
Do I need to run this script from other OS or I can run it from the same "problematic" Porteus?

P.S.: Here an image of booting screen:
Image

User avatar
bigbass
Contributor
Contributor
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: Maybe a Bug on md5sum!?

Post#8 by bigbass » 08 Sep 2012, 20:32

your are adding another question

Code: Select all

Do I need to run this script from other OS or I can run it from the same "problematic" Porteus?
The first question was how to fix the md5sums you would simply replace the file md5sums.txt with the one I posted in paste bin and if you didnt upgrade the kernel use your md5sums for the kernel and initrd since they were ok

it looks as though that was a minor problem since you got it to boot up
what you need to do now is make a save.dat following the directions in the image you posted

someone can walk you though the steps since there are many USB users here
http://porteus.org/info/docs/57-general ... d-one.html

Joe

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Maybe a Bug on md5sum!?

Post#9 by brokenman » 09 Sep 2012, 23:28

Disregard the failed md5sums during install. This was my fault and is because the path of the files it is checking is incorrect. Already addressed and will be fixed in next major update. Apologees for my insolence.
How do i become super user?
Wear your underpants on the outside and put on a cape.

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Maybe a Bug on md5sum!?

Post#10 by nixlower0 » 11 Sep 2012, 21:45

brokenman wrote:Disregard the failed md5sums during install. This was my fault and is because the path of the files it is checking is incorrect. Already addressed and will be fixed in next major update. Apologees for my insolence.
Thank you for your answer! You don't have to apologize ;) I'm not so new in GNU/Linux, but my knowledges are low, that's why I answered if a message about md5sum was normal or I need to worry about it.
Also I was worried about "save session" message, now I know if I want to use a file system different from Linux, then a "save.dat" container need to be created as answered to me comrade - bigbass
Thanks for you help. When I will have some time to read more Porteus, Slax and Slackware documentation, I will do. :oops:

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Maybe a Bug on md5sum!?

Post#11 by Hamza » 12 Sep 2012, 16:39

Also I was worried about "save session" message, now I know if I want to use a file system different from Linux, then a "save.dat" container need to be created as answered to me comrade - bigbass
It's only a suggestion very recommended. You may uses changes under FAT/NTFS but it's not recommended due to some symlinks problems and also some permissions problems. It's true and it's much better to uses a container file (.dat file) as it's a virtual "devices/partition" formatted for linux uses and he can saves all your symlinks and permissions.
NjVFQzY2Rg==

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Maybe a Bug on md5sum!?

Post#12 by Ahau » 12 Sep 2012, 19:47

Hamza, that is incorrect. A save.dat is required (not suggested) in order to run Porteus with saved changes on non-posix filesystems (e.g. FAT and NTFS). The only way to do this was posixovl, which we dropped due to massive corruption issues.

Another option to avoid the need for a save.dat would be to customize the system without saved changes, and build a module with those changes. No changes would be saved beyond those on subsequent boots, but it would capture configuration tweaks, etc.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Maybe a Bug on md5sum!?

Post#13 by Hamza » 13 Sep 2012, 18:02

Sorry :oops:
NjVFQzY2Rg==

nixlower0
Black ninja
Black ninja
Posts: 49
Joined: 08 Sep 2012, 16:37
Distribution: Porteus v2.1 RazoQt
Location: Russia

Re: Maybe a Bug on md5sum!?

Post#14 by nixlower0 » 07 Mar 2013, 12:15

Ok, I'm marking as solved.
Now I'm a happy user of Porteus 2.0 x86 :)

Post Reply