Does anybody know how Knoppix mounts Unionfs and tempfs. I will really appreciate if someone can enlighten me on this subject
The output of cat /proc/mounts shows that all internal file systems are mounted with relatime option. What I read about it is that there is still some overhead compared to noatime option and is totally useless. noatime would give a little bit of performance gain with no side effects. Does anyone know where this setting come from in Knoppix ? Is it a kernel setting ?
Here is the output of cat /proc/mounts:
rootfs / rootfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/sdb1 /mnt-system vfat rw,relatime,fmask=0000,dmask=0000,allow_utime=0022 ,codepage=cp850,iocharset=iso8859-1,shortname=winnt,errors=remount-ro 0 0
tmpfs /ramdisk tmpfs rw,relatime,size=1048576k 0 0
/dev/cloop /KNOPPIX iso9660 ro,relatime 0 0
/dev/loop0 /KNOPPIX-DATA ext2 rw,relatime,errors=continue 0 0
unionfs /UNIONFS aufs rw,relatime,si=e1e6333f,noplink 0 0
unionfs /home aufs rw,relatime,si=e1e6333f,noplink 0 0
usbfs /proc/bus/usb usbfs rw,relatime 0 0
tmpfs /UNIONFS/var/run tmpfs rw,relatime,size=10240k 0 0
tmpfs /UNIONFS/var/lock tmpfs rw,relatime,size=10240k 0 0
tmpfs /UNIONFS/var/log tmpfs rw,relatime,size=102400k 0 0
tmpfs /tmp tmpfs rw,relatime,size=1048576k 0 0
udev /dev tmpfs rw,relatime,size=20480k 0 0
tmpfs /dev/shm tmpfs rw,relatime,size=1048576k 0 0
devpts /dev/pts devpts rw,relatime,mode=1777 0 0
/dev/sda6 /media/sda6 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0 000,dmask=0000,allow_utime=0022,codepage=cp850,ioc harset=iso8859-1,shortname=winnt,errors=remount-ro 0 0
Does anybody know how Knoppix mounts Unionfs and tempfs. I will really appreciate if someone can enlighten me on this subject
It's all in a shell script call 'init' inside the 'minirt.gz'. Google for 'knoppix minirt.gz cpio' etc. Hopeful you will come upon a good writeup.
Thanks for the tip kl522 - I will check it out
I checked "init" in minirt.gz and there seems to be no trace of unionfs mount options, or at least I don't get it. Does anyone have other ideas ?
I am not so interested in changing the mount option, as finding the inner workings of Knoppix. I really love this distro
Sorry allow me to be cynical here,
Which editor are you using ?
It's fine I extracted minirt and I am using geany or nano for editing. Please if you have something can you point it to me
If I were to fully describe everything, I am being punished. So why don't you tell us what you have done, every step of it ? How do you scan the whole script ? Did you use a string search ? You should be the one who tell us. When I searched for it, it is obvious to me.
Here are the steps I took:
cp /mnt-system/boot/syslinux/minirt.gz /ramdisk
mkdir /ramdisk/tmp
cd /ramdisk/tmp
zcat ../minirt.gz | cpio -i -d
geany init
There is no sign of the mount options appearing in /proc/mounts
Obviously you see something that I don't, can you please give me a direction where to look
Last edited by mecho; 08-03-2010 at 06:30 AM.
Here is the problem. What are you looking for ? Why are you looking for /proc/mounts in 'init' ?
You are looking for WRONG thing. Just search for 'unionfs' you will come up the commands which are used to mount the unionfs. But 'relatime' is not even there, likely it's just one of the default options. If you want to add custom options, you will have to add it to the relevent mount commands, after the '-o'.
/proc/mounts appearance are managed by the kernel. What and how it appear depends on the 'mount' command issued. It is not directly manipulated.
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
IBM Server Rack Cabinet 9308-RC4
$200.00
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
IBM System X3650 Server M2 2 x Xeon X5570 2.93 Ghz w/128 GB/DVDRW
$111.95
IBM X3950 X6 8x E7-8891 v2 3.2GHz 10C 512GB Server
$490.00
IBM System X3550 M4 7914AC1 Server INTEL XEON E5-2620 0 2GHz 32GB
$99.99
IBM System X3650 M4 7915AC1 Server INTEL XEON E5-2609 2.4GHz 8GB SEE NOTES
$75.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$279.99
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server
$167.99