* Prevent auto-mounting?
@ 2011-10-28 10:33 Gary Thomas
2011-10-31 14:17 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2011-10-28 10:33 UTC (permalink / raw)
To: Poky Project
How do I keep a file system from being automatically mounted?
In particular, I want to automate this sequence:
* [re]partition a disk using sfdisk
* format the partitions
* mount & use the partitions
The problem I have is that when sfdisk completes and the disk label
is reread by the kernel, some process(?) goes off and tries to mount
the partitions. This not only gets in the way of reformatting those
partitions, but it may be 100% incorrect as the disk layout may have
changed.
Any ideas what process is doing this and how I stop it?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Prevent auto-mounting?
2011-10-28 10:33 Prevent auto-mounting? Gary Thomas
@ 2011-10-31 14:17 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2011-10-31 14:17 UTC (permalink / raw)
To: Poky Project
On 2011-10-28 04:33, Gary Thomas wrote:
> How do I keep a file system from being automatically mounted?
> In particular, I want to automate this sequence:
> * [re]partition a disk using sfdisk
> * format the partitions
> * mount & use the partitions
>
> The problem I have is that when sfdisk completes and the disk label
> is reread by the kernel, some process(?) goes off and tries to mount
> the partitions. This not only gets in the way of reformatting those
> partitions, but it may be 100% incorrect as the disk layout may have
> changed.
>
> Any ideas what process is doing this and how I stop it?
>
I found that adding the device to /etc/udev/mount.blacklist prevents
the device from being mounted just after being [re]partitioned. In
my case, this command does the trick:
# echo /dev/mmcblk0p1 >>/etc/udev/mount.blacklist
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-31 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 10:33 Prevent auto-mounting? Gary Thomas
2011-10-31 14:17 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.