Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-18-2008, 07:23 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Mounting with MS_MANDLOCK flag

ive read all the current posts and i dont think this thread exists... or even if it does it passed my notice....
ive been trying for a while to mount the root filesystem with the MS_MANDLOCK flag set(for mandatory). ive already tried a function to do so, namely

#include <sys/mount.h>

mount("/dev/hdb", "/cdrom", ext2, MS_MANDLOCK | MS_REMOUNT, "");

but im not too sure this works. is there anyway of testing the superblock for these flags, or any other method to mount the system with mandatory locks. also is there anyway of modifyind the fstab to always mount the root fs with manlocks?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bootable flag noonmid27 Linux - Hardware 1 12-21-2006 09:37 AM
most-frequently-used flag lashgari Linux - General 3 06-22-2006 01:31 PM
your national flag acid_kewpie General 27 05-19-2006 11:48 AM
Use Of Secure_no_root Flag mulholland Linux - Security 0 01-12-2005 03:19 AM
bootable flag? alaios Debian 1 04-29-2004 11:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration