You are not logged in.

#1 2011-02-20 18:35:45

shep
Member
Registered: 2009-08-04
Posts: 33

[SOLVED]Prevent automount of OpenBSD A6 partition /dev/sda4 at boot

I managed to get a dual boot Arch/Xfce4 OpenBSD system running and have one minor issue I'm trying to resolve.

In Xfce, when removable devices is enabled in Settings->Desktop->Icons, the OpenBSD partition shows up on the desktop.

I know that hal is being deprecated  but would like to have the /dev/sda4 partition ignored.

My fstab

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 0 1

fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
36 heads, 63 sectors/track, 430676 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      292571      146254+  83  Linux
/dev/sda2          292572     4293323     2000376   82  Linux swap / Solaris
/dev/sda3         4293324   629292887   312499782   83  Linux
/dev/sda4       629292888   976773167   173740140   a6  OpenBSD

I tried setting up /usr/share/hal/fdi/preprobe/95userpolicy/10ignore-disks.fdi
with the following

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="block.device" string="/dev/sda4">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>

I have no need to access the openbsd partition in arch.
I think hal is still used (it installed as a dependency with gvfs) but the above does not work.  The desktop still shows the OpenBSD A6 partition although it is not mountable.  Is there a way to do this in the fstab ?noauto? although I do not know what to use as a mount point.  Or is there some other way to block ?udev rules? PolicyKit.conf?

Thanks in advance

Last edited by shep (2011-02-21 06:06:31)

Offline

#2 2011-02-20 21:53:30

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Prevent automount of OpenBSD A6 partition /dev/sda4 at boot

I'd try noauto in fstab. I don't know if it will work.

/dev/sda4   /mnt/bsd   ufs   noauto   0   0

Offline

#3 2011-02-21 02:31:17

shep
Member
Registered: 2009-08-04
Posts: 33

Re: [SOLVED]Prevent automount of OpenBSD A6 partition /dev/sda4 at boot

Thanks thisoldman

The /etc/fstab entry worked.  I initially made the /mnt/bsd mount point as a dummy but was actually able to mount the volume using this link
Unixwerk Access to BSD slices in Linux

#/dev/sda4 /mnt/bsd ufs ro,user,ufstype=44bsd  1 0

/dev/sda4 /mnt/bsd ufs noauto,ufstype=44bsd 0 0

I put both into the fstab and commented out the one that mounts the A6 partition just to keep file overhead down during regular use.

Last edited by shep (2011-02-21 02:31:47)

Offline

Board footer

Powered by FluxBB