Page 1 of 1

Prevent porteus from detecting and loading internal HDDs? [SOLVED]

Posted: 31 Mar 2023, 23:50
by HimekawaHina
Hi! First of all thanks to the devs and contributors for creating this awesome distro, its light, fast and reliable, I've been using it a lot.

My question here is if there is a way to prevent porteus from detecting and mounting the HDDs on my computer?, I have a USB installation and I do everything I need from there but I dont want it to have any contact with internal disks for security, I tried adding:

libata.noacpi=1 to porteus.conf file but it didnt work, also tried to add:

blacklist ata_piix
blacklist ata_generic
but it also didnt work after mkinitrd.

These are solutions I found on internet but after nothing working I came asking here, is there any way to do that?

Prevent porteus from detecting and loading internal HDDs?

Posted: 01 Apr 2023, 01:31
by babam
Use the nohd cheatcode

Prevent porteus from detecting and loading internal HDDs?

Posted: 01 Apr 2023, 14:16
by HimekawaHina
Solved it using the solution from user0815 here: viewtopic.php?t=8237 :celebrate3: :celebrate3: :beer:

First I had to get the ATA adress of my disks with:

Code: Select all

dmesg | grep ata
Then use that ata adress with libata.force=XX.00:disable where XX is the ata number of the disks I wanted to be disable on boot, I have two disks I wanted to be disable, so the for two disk the code had to be like this:

Code: Select all

libata.force=1.00:disable,2.00:disable
And use that code as cheat on my /boot/syslinux/porteus.cfg at the end of the APPEND line, thats it! =@ :P

Prevent porteus from detecting and loading internal HDDs? [SOLVED]

Posted: 03 May 2023, 15:18
by francois
Good shot!

But maybe you should try cheat codes. They are numerous on porteus and very useful:
http://www.porteus.org/tutorials/26-gen ... -them.html

As proposed by babam the nohd cheatcode is a very good solution.

:D