unixabg / cryptmypi

Project to assist users in building an encrypted raspberry pi
GNU General Public License v3.0
63 stars 21 forks source link

Unlocked succesfully but "fsck not present, so skipping root file system" #18

Closed Ud0g-Py closed 4 years ago

Ud0g-Py commented 4 years ago

Hi! Congratulations for the great project.

Im trying to get it working but im having some troubles.

I have a Rpi4. The .img used is: kali-linux-2020.2a-rpi3-nexmon-64.img.xz Using kali-encrypted-basic-nuke, conf file is by default except by export _KERNEL_VERSION_FILTER="8l+", export _LUKSPASSWD="xxxx", export _ROOTPASSWD="xxxx", export _LUKSNUKEPASSWD="xxxx".

Im using my Rpi on local so i dont need ssh. At boot, it prompt the crypt pass. This is the output:

cryptsetup: crypt: set up successfully
done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
mount: mounting /dev/mapper/crypt on /root failed: Invalid argument
Failed to mount /dev/mapper/crypt as root file system.

BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
superuser5 commented 4 years ago

Hi,

I had simmilar issues and something was failing during the build process. yesterday i was able to build kali-encrypted-basic-dropbear and kali-encrypted-basic on the laptop running kali. theck the output for any errors.

Could you paste the full output?

thanks

unixabg commented 4 years ago

Greetings,

Hi! Congratulations for the great project.

ty

Im trying to get it working but im having some troubles.

I have a Rpi4. The .img used is: kali-linux-2020.2a-rpi3-nexmon-64.img.xz Using kali-encrypted-basic-nuke, conf file is by default except by export _KERNEL_VERSION_FILTER="8l+", export _LUKSPASSWD="xxxx", export _ROOTPASSWD="xxxx", export _LUKSNUKEPASSWD="xxxx".

Im using my Rpi on local so i dont need ssh. At boot, it prompt the crypt pass. This is the output:

cryptsetup: crypt: set up successfully
done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
mount: mounting /dev/mapper/crypt on /root failed: Invalid argument
Failed to mount /dev/mapper/crypt as root file system.

BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)

Can you submit a full build log? Full build log can be generated with something like the following (of course adjust with your example build command call):

sudo ./cryptmypi.sh examples/pios-encrypted-basic | tee pios-encrypted-basic_build-log.txt

Ud0g-Py commented 4 years ago

Hi again.

Hi,

I had simmilar issues and something was failing during the build process. yesterday i was able to build kali-encrypted-basic-dropbear and kali-encrypted-basic on the laptop running kali. theck the output for any errors.

Could you paste the full output?

thanks

Tested right now with kali-encrypted-basic and with the default img from .conf file and worked like a charm.

Greetings,

Hi! Congratulations for the great project.

ty

Im trying to get it working but im having some troubles. I have a Rpi4. The .img used is: kali-linux-2020.2a-rpi3-nexmon-64.img.xz Using kali-encrypted-basic-nuke, conf file is by default except by export _KERNEL_VERSION_FILTER="8l+", export _LUKSPASSWD="xxxx", export _ROOTPASSWD="xxxx", export _LUKSNUKEPASSWD="xxxx". Im using my Rpi on local so i dont need ssh. At boot, it prompt the crypt pass. This is the output:

cryptsetup: crypt: set up successfully
done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
mount: mounting /dev/mapper/crypt on /root failed: Invalid argument
Failed to mount /dev/mapper/crypt as root file system.

BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)

Can you submit a full build log? Full build log can be generated with something like the following (of course adjust with your example build command call):

sudo ./cryptmypi.sh examples/pios-encrypted-basic | tee pios-encrypted-basic_build-log.txt

Im going to try replicate the error. In a few hours ill post the logs.

splitstrikestream commented 4 years ago

Latest PR #20 fixes issues I found when using kali-linux-2020.2a-rpi3-nexmon-64.img.xz. You should try it when its accepted. As a reminder, keep the export _KERNEL_VERSION_FILTER="8l+"

Ud0g-Py commented 4 years ago

Sorry for delay.

Latest PR #20 fixes issues I found when using kali-linux-2020.2a-rpi3-nexmon-64.img.xz. You should try it when its accepted. As a reminder, keep the export _KERNEL_VERSION_FILTER="8l+"

Splitstrikestream is right. kali-linux-2020.2a-rpi3-nexmon-64.img.xzis the problem.

kali-encrypted-basic-nuke_2a.txt

This is the log.

I tried with 1a & 1b .img and everything is going well.

unixabg commented 4 years ago

Greetings, Latest v4.1-beta uses 2b and test runs show all well. So marking completed for now.