won't boot from USB key with nohd cheatcode [Solved]

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
bazder
White ninja
White ninja
Posts: 6
Joined: 07 Oct 2013, 22:52
Distribution: Porteus KDE4
Location: ozone

won't boot from USB key with nohd cheatcode [Solved]

Post#1 by bazder » 07 Oct 2013, 23:13

I'm using the 64bit version from a USB key and everything is fine except I don't want my hard drive mounted (or even detected). When I add nohd cheatcode to the bootprompt line it fails to boot, says it can't find a file & offers to reboot or some such. Same problem if I add nohd to the APPEND line in the porteus.cfg file. I can boot with copy2ram successfully except my hard drive is automatically mounted.

What I want ideally is copy2ram AND nohd (ie. so /dev/sda1 is NOT mounted or even listed in /etc/fstab). Is this possible?
Last edited by bazder on 08 Oct 2013, 22:31, edited 1 time in total.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: won't boot from USB key with nohd cheatcode

Post#2 by fanthom » 08 Oct 2013, 07:11

'nohd' works out of the box when you are booting from CD. when you are booting from hd/usb/flash card/etc and still want to use 'nohd' then you have to use 'from=' cheatcode to tell booting script on which partition your porteus is placed, example:

Code: Select all

nohd from=UUID:64E598A12B54F28B
please refer to /boot/docs/cheatcodes.txt for details.
Please add [Solved] to your thread title if the solution was found.

bazder
White ninja
White ninja
Posts: 6
Joined: 07 Oct 2013, 22:52
Distribution: Porteus KDE4
Location: ozone

Re: won't boot from USB key with nohd cheatcode

Post#3 by bazder » 08 Oct 2013, 16:18

The from= enabled Porteus to boot but all drives are still recognized and appear on the desktop and in /etc/fstab - they just aren't mounted. Is that all nohd is supposed to do or are the drives truly not supposed to be visible (which is what I want) ?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: won't boot from USB key with nohd cheatcode

Post#4 by fanthom » 08 Oct 2013, 17:29

please use PSC->Porteus Updater and download a fix to 001-core.xzm which will prevent partitions to be listed in /etc/fstab. devices will still be visible in file manager but guest is prompted for root password before anything is mounted.
one condition - you must be using KDE4 as other desktops (Razor, Mate, Xfce, Lxde) are udisks2 based and have a bug which allows unprivileged users to mount/unmount partitions without asking for a password.

btw: your initial problem is solved so please start another thread in case of further questions.
Please add [Solved] to your thread title if the solution was found.

bazder
White ninja
White ninja
Posts: 6
Joined: 07 Oct 2013, 22:52
Distribution: Porteus KDE4
Location: ozone

Re: won't boot from USB key with nohd cheatcode [Solved]

Post#5 by bazder » 08 Oct 2013, 22:33

total fix :D many thanks!

Post Reply