PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 25, 2012, 06:22:25 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to stop Hal mounting HDD partitions  (Read 399 times)
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« on: February 07, 2012, 08:44:57 AM »

Sometimes Hal mounts partitions on your hard drive relating to test installs or other OSes which you don't want available in pclos. This can be stopped by giving each partition a mount point and setting its noauto flag, but that's fiddly if you have to do it for every partition created elsewhere.

An alternative is to tell HAL to leave sata and ide devices alone unless they have removable media (eg optical drives).

Put the following in a file (as root) and store it at /etc/hal/fdi/preprobe/20-nomount-hdd:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!-- store at /etc/hal/fdi/preprobe/20-nomount-hdd -->
<deviceinfo version="0.2">
    <device>
        <match key="storage.bus" string_outof="sata;ide">
        <match key="storage.removable" bool="false">
            <merge key="info.ignore" type="bool">true</merge>
        </match>
    </device>
</deviceinfo>

HAL will now ignore SATA and IDE devices which don't have removable media.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4622


MLUs Forever!


« Reply #1 on: February 07, 2012, 12:19:58 PM »

Quote
Sometimes Hal mounts partitions on your hard drive relating to test installs or other OSes which you don't want available in pclos.

Do you mean auto mount or mount when - for instance - selected in a file manager?

I have never had them automount here (KDE), which is why I ask.
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5699


I don't do Windows


« Reply #2 on: February 07, 2012, 12:33:05 PM »


HAL will now ignore SATA and IDE devices which don't have removable media.


That's a good tip. Maybe this can be incorporated in our live CDs.
Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4622


MLUs Forever!


« Reply #3 on: February 07, 2012, 12:34:32 PM »


HAL will now ignore SATA and IDE devices which don't have removable media.


That's a good tip. Maybe this can be incorporated in our live CDs.


Sad  I hope not  Sad
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« Reply #4 on: February 07, 2012, 02:58:00 PM »

Automount. They will still be mounted if specifically requested in the FM sidebar.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4622


MLUs Forever!


« Reply #5 on: February 07, 2012, 05:03:40 PM »

Automount. They will still be mounted if specifically requested in the FM sidebar.


Thanks.

I never saw that happening here with KDE4.

I have a couple automount and the rest not. The only entries in fstab are for / & /home and a NFS mount point. The non-fstab partitions are taken care of with Device Notifier settings.

Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM