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

Post here if you are a new Porteus member and you're looking for some help.
User avatar
HimekawaHina
Ronin
Ronin
Posts: 2
Joined: 31 Mar 2023, 23:41
Distribution: Porteus v5.0

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

Post#1 by HimekawaHina » 31 Mar 2023, 23:50

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?
Last edited by HimekawaHina on 01 Apr 2023, 14:16, edited 1 time in total.

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Prevent porteus from detecting and loading internal HDDs?

Post#2 by babam » 01 Apr 2023, 01:31

Use the nohd cheatcode
Sorry, my English is bad.

User avatar
HimekawaHina
Ronin
Ronin
Posts: 2
Joined: 31 Mar 2023, 23:41
Distribution: Porteus v5.0

Prevent porteus from detecting and loading internal HDDs?

Post#3 by HimekawaHina » 01 Apr 2023, 14:16

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

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#4 by francois » 03 May 2023, 15:18

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
Prendre son temps, profiter de celui qui passe.

Post Reply