Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Change mount option - noatime instead of relatime

  1. #1
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    Change mount option - noatime instead of relatime

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    Does anybody know how Knoppix mounts Unionfs and tempfs. I will really appreciate if someone can enlighten me on this subject

  3. #3
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    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.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    Thanks for the tip kl522 - I will check it out

  5. #5
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Sorry allow me to be cynical here,

    Which editor are you using ?

  7. #7
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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

  8. #8
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    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.

  9. #9
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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.

  10. #10
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by mecho View Post
    geany init

    There is no sign of the mount options appearing in /proc/mounts
    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.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



SanDisk Ultra Luxe USB 3.1 Flash Drive – 5 Pack | Premium Metal USB Flash Drives picture

SanDisk Ultra Luxe USB 3.1 Flash Drive – 5 Pack | Premium Metal USB Flash Drives

$39.99



Microsoft Windows 11 Pro 64-Bit USB Flash Drive picture

Microsoft Windows 11 Pro 64-Bit USB Flash Drive

$24.99



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



LOT 10x SanDisk 32GB ULTRA USB 3.0 flash drive SDCZ48-032G 32 GB read 100 MB/s picture

LOT 10x SanDisk 32GB ULTRA USB 3.0 flash drive SDCZ48-032G 32 GB read 100 MB/s

$39.80



Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack

$88.90



USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$7.97



LOT 10x SanDisk 32GB Cruzer Spark USB 2.0 flash drive 32 GB SDCZ61-032G 32G picture

LOT 10x SanDisk 32GB Cruzer Spark USB 2.0 flash drive 32 GB SDCZ61-032G 32G

$34.80



Kanguru KF3WP-64G USB Flash Drive with Write Protection Switch picture

Kanguru KF3WP-64G USB Flash Drive with Write Protection Switch

$62.00



Toshiba TransMemory USB 3.0 Flash Drive – Pack of 5 | Fast, Reliable & Porta Lot picture

Toshiba TransMemory USB 3.0 Flash Drive – Pack of 5 | Fast, Reliable & Porta Lot

$69.99