Quote:
Originally Posted by anomie
Two questions: - Why do you want to do this?
- What is the output of $ df -h ?
|
I am doing this as a security criteria. I will be migrating all of my notes, steps, etc over to a CompactFlash card here soon (actually, I have the OS on a CF already, just testing it out on my laptop running RHEL 5.2). Anyhow, I must show how nothing can be written to the CF device itself...the tmpfs partition (in this case /data) will be ran in the onboard RAM.
Here is my /etc/fstab file:
LABEL=/ / ext3 defaults,ro 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /data tmpfs uid=500,gid=500,mode=775,size=1g 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Here is the output from a df -h:
Filesystem Size Used Avail Use% Mounted on
rootfs 71G 2.0G 65G 3% /
/dev/root 71G 2.0G 65G 3% /
/dev 1013M 132K 1013M 1% /dev
tmpfs 1.0G 33M 992M 4% /data
tmpfs 1.0G 33M 992M 4% /data/var/cache/man
tmpfs 1.0G 33M 992M 4% /data/var/gdm
tmpfs 1.0G 33M 992M 4% /data/var/lock
tmpfs 1.0G 33M 992M 4% /data/var/log
tmpfs 1.0G 33M 992M 4% /data/var/run
tmpfs 1.0G 33M 992M 4% /data/tmp
tmpfs 1.0G 33M 992M 4% /data/var/cache/foomatic
tmpfs 1.0G 33M 992M 4% /data/var/cache/logwatch
tmpfs 1.0G 33M 992M 4% /data/var/db/nscd
tmpfs 1.0G 33M 992M 4% /data/var/lib/dhclient
tmpfs 1.0G 33M 992M 4% /data/var/tmp
/dev/root 71G 2.0G 65G 3% /etc/adjtime
/dev/root 71G 2.0G 65G 3% /etc/fstab
/dev/root 71G 2.0G 65G 3% /etc/ntp.conf
tmpfs 1.0G 33M 992M 4% /data/resolv.conf
tmpfs 1.0G 33M 992M 4% /data/var/account
tmpfs 1.0G 33M 992M 4% /data/var/cache/alchemist
tmpfs 1.0G 33M 992M 4% /data/var/lib/logrotate.status
tmpfs 1.0G 33M 992M 4% /data/var/lib/ntp
tmpfs 1.0G 33M 992M 4% /data/var/empty/sshd/etc/localtime
tmpfs 1.0G 33M 992M 4% /data/var/lib/random-seed
/dev/sda1 1.9G 41M 1.8G 3% /boot