Page 1 of 1

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

Posted: 07 Oct 2013, 23:13
by bazder
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?

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

Posted: 08 Oct 2013, 07:11
by fanthom
'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.

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

Posted: 08 Oct 2013, 16:18
by bazder
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) ?

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

Posted: 08 Oct 2013, 17:29
by fanthom
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.

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

Posted: 08 Oct 2013, 22:33
by bazder
total fix :D many thanks!