Search

Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud

Archives

Links

Andrey Mikhalchuk’s Blog

Technoblog about life

Feb 7, 2008 How to disable automount in linux (Re-reading the partition table failed with error 16)

Imagine you’re repartitioning a disk and when you quit fdisk writing the new partition table automount tries to mount new partitions. So instead of refreshed disk ready for newfs you get this warning:


WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next boot.

So you can forget about newfs for awhile. What do you do? Just reboot? What if you need to repartition more then one disk? Here is the solution …


The solution is to disable automount temporarily. You can easily do that with


/etc/init.d/autofs stop
/etc/init.d/haldaemon stop
#umount the device you're trying to fdisk - it might be already mounted

The second line is less trivial then the first one, isn’t it?

To disable automount permanently use this:

chkconfig autofs off
chkconfig haldaemon off
/etc/init.d/autofs stop
/etc/init.d/haldaemon stop
#umount the device you're trying to fdisk - it might be already mounted

This post is published in How To, Linux.

One Response to “How to disable automount in linux (Re-reading the partition table failed with error 16)”

  1. How to automate fdisk | Andrey Mikhalchuk's Blog Says:

    [...] 21 writes the partition table to the disk. You might be interested in reading this post as well if you’re experiencing problems with writing the partition table to the [...]

Leave a Reply

You must be logged in to post a comment.

Site Map (c) Andrey Mikhalchuk, 2005-2008