[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Remounting / read-only



on Sat, Aug 25, 2001 at 07:00:38AM -0500, Jeremy (thinker5555@yahoo.com) wrote:
> 
> Howdy group!
> 
> I was wondering how I'm supposed to remount root readonly.  From what
> I can figure I'm supposed to issue the command "mount -o remount,ro
> /", but I only get a "mount: / is busy" message.  

Do you have any processes open and writing to the root fs?  lsof should
help you here.

> I've tried it without the comma between remount and ro, and it seems
> to go through okay, but I'm not 100% sure that it's now read-only.
> How can I check on this?  

    $ cat /proc/mounts

The data used by mount to show currently mounted partitions and status
comes from /etc/fstab, which can't be updated when / is readonly ;-)

-- 
Karsten M. Self <kmself@ix.netcom.com>          http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             There is no K5 cabal
  http://gestalt-system.sourceforge.net/               http://www.kuro5hin.org
   Free Dmitry! Boycott Adobe! Repeal the DMCA!    http://www.freesklyarov.org
Geek for Hire                        http://kmself.home.netcom.com/resume.html

Attachment: pgpXAqha5TId_.pgp
Description: PGP signature


Reply to: