Tuesday, July 17, 2007

remount partition as read only howto

Here's a tip on remounting partitions. Usually /boot is mounted as read-write linux filesystem by default installation. If you also feel that your /boot should not be changed, modified or upgraded, you can just remount them as read only partition without booting your linux system.

As root:

Go to /boot partition
# cd /boot

Create a dummy file
# touch newfile
# mount -o remount,ro /boot

Try adding and deleting some files now

# touch newfile2
# rm newfile

Error: Read-only file system

Now, your /boot is mounted as read-only filesystem. Make it permanently using /etc/fstab.

Cheers

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy