/var to tmpfs

Hey,
I'm running arch on a tiny homeserver with an USB pen drive as root.
Since the write cycles are limited I would like to reduce the load on the pen drive as much as possible.
Since /var is a commonly used part of the filesystem I would like to put it in to ram.
My thougts are, that I could add another init script which handles this:
On boot it creates a tmpfs e.g. to /var_tmp, copies all stuff from /var to /var_tmp, and moves the tmpfs mount point from /var_tmp to /var.
On shutdown it should do this steps in reverse order, so that no stuff gets lost.
What do you think? How could I realise that?
Thanks,
Oli

genisis300 wrote:
do it the other way round.
copy the contents of /var to /var_tmp
mount tmpfs to /var
copy back the contents.
Or see the link above.
what is the benefit?
i actually do it this way:
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Creating /var tmpfs"
rm -rf /tmp/var
mkdir /tmp/var
mount -t tmpfs tmpfs /tmp/var -o size=500M,noatime
cp -rp /var/* /tmp/var
mount --move /tmp/var /var
rm -rf /tmp/var
add_daemon vartmpfs
stat_done
stop)
stat_busy "Syncing /var back"
rm -rf /tmp/var
mkdir /tmp/var
mount --move /var /tmp/var
rsync -a /tmp/var/* /var/
umount /tmp/var
rm -rf /tmp/var
rm_daemon vartmpfs
stat_done
restart)
$0 stop
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
what do you think?

Similar Messages

  • Tmpfs not using swap [Solved]

    i have set up /tmp as tmpfs for compiling but i get errors when i run out of memory, i was under the assumption that when tmpfs runs out of memory it uses swap space but swap never gets used even when swappiness is set to 100
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 19G 729M 18G 4% /
    none 1.9G 1.8M 1.9G 1% /dev/shm
    none 1.9G 864M 983M 47% /tmp
    none 10M 332K 9.7M 4% /var/log
    none 10M 44K 10M 1% /var/run
    none 10M 0 10M 0% /var/lock
    /dev/sda2 19G 1.6G 17G 9% /usr
    /dev/sda3 185G 3.1G 172G 2% /home
    mount
    /dev/sda1 on / type ext4 (rw,noatime)
    none on /dev type ramfs (rw,relatime)
    none on /proc type proc (rw,relatime)
    none on /sys type sysfs (rw,relatime)
    none on /dev/pts type devpts (rw)
    none on /dev/shm type tmpfs (rw)
    none on /tmp type tmpfs (rw)
    none on /var/log type tmpfs (rw,size=10m)
    none on /var/run type tmpfs (rw,size=10m)
    none on /var/lock type tmpfs (rw,size=10m)
    /dev/sda2 on /usr type ext4 (rw,noatime)
    /dev/sda3 on /home type ext4 (rw,noatime)
    free
    total used free shared buffers cached
    Mem: 3780388 1494456 2285932 0 42884 1084512
    -/+ buffers/cache: 367060 3413328
    Swap: 8000360 0 8000360
    Last edited by guzz46 (2009-08-23 23:51:48)

    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    none /tmp tmpfs defaults 0 0
    none /var/log tmpfs defaults,size=10m 0 0
    none /var/run tmpfs defaults,size=10m 0 0
    none /var/lock tmpfs defaults,size=10m 0 0
    #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    #/dev/fd0 /media/fl auto user,noauto 0 0
    /dev/sda1 / ext4 defaults,noatime 0 1
    /dev/sda2 /usr ext4 defaults,noatime 0 2
    /dev/sda3 /home ext4 defaults,noatime 0 2
    /dev/sda4 swap swap defaults 0 0
    do you have to specify tmpfs instead of none under file system?
    Edit: i also tried
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    tmpfs /tmp tmpfs defaults 0 0
    tmpfs /var/log tmpfs defaults,size=10m 0 0
    tmpfs /var/run tmpfs defaults,size=10m 0 0
    tmpfs /var/lock tmpfs defaults,size=10m 0 0
    #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    #/dev/fd0 /media/fl auto user,noauto 0 0
    /dev/sda1 / ext4 defaults,noatime 0 1
    /dev/sda2 /usr ext4 defaults,noatime 0 2
    /dev/sda3 /home ext4 defaults,noatime 0 2
    /dev/sda4 swap swap defaults 0 0
    mount
    /dev/sda1 on / type ext4 (rw,noatime)
    none on /dev type ramfs (rw,relatime)
    none on /proc type proc (rw,relatime)
    none on /sys type sysfs (rw,relatime)
    none on /dev/pts type devpts (rw)
    tmpfs on /dev/shm type tmpfs (rw)
    tmpfs on /tmp type tmpfs (rw)
    tmpfs on /var/log type tmpfs (rw,size=10m)
    tmpfs on /var/run type tmpfs (rw,size=10m)
    tmpfs on /var/lock type tmpfs (rw,size=10m)
    /dev/sda2 on /usr type ext4 (rw,noatime)
    /dev/sda3 on /home type ext4 (rw,noatime)
    but nothings changed, i'm sure it's a tmpfs because /tmp reads 1.9gb and everythings in there is gone after a reboot but it still doesn't use swap as backup
    Last edited by guzz46 (2009-08-23 12:38:43)

  • Can't mount /var/lock at boot time [SOLVED]

    I set up my fstab to mount /tmp /var/run and /var/lock to tmpfs. When I boot my computer /var/lock does not mount correctly. If I use mount -a after boot it mounts. How can I fix this?
    Last edited by namelessone (2010-12-05 01:49:30)

    dmesg doesn't show anything out of the ordinary. During boot I get the message along the lines of "failed to mount /var/lock" (it goes by really fast so I don't remember the exact wording)
    fstab says:
    tmpfs /var/lock tmpfs defaults,nodev,nosuid,noexec,mode=1777,size=10m 0 0
    tmpfs /var/run tmpfs defaults,nodev,nosuid,noexec,mode=0755,size=10m 0 0
    /dev/mapper/vol-var /var jfs defaults, noatime 0 1
    Last edited by namelessone (2010-12-04 19:57:18)

  • Anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

    Quite a few people like and use profile-sync-daemon.  I have received several requests now asking for a more general version that will allow the flexibility of syncing anything from tmpfs <--> hdd and back again.  I just uploaded the first public release of anything-sync-daemon in response to the requests.  I am currently working on the wiki page, but I have already written a full manpage that is included with the util.  As with anything, BACKUP the data you wish to sync before using it.
    What are some example directories you might want to sync to tmpfs?
    /srv/http
    /foo/bar
    /var/lib/monitorix
    AUR Package: https://aur.archlinux.org/packages.php?ID=58263
    Wiki Page: https://wiki.archlinux.org/index.php/An … ync-daemon
    Gitrepo if you just wanna browse the code (it is VERY simplistic): https://github.com/graysky2/anything-sync-daemon
    Last edited by graysky (2012-09-22 15:00:04)

    I'm having sort of troubles: it doesn't seem to mount anything into /shm...
    I told it to keep sync'ed /var/log and my chromium config (yes i don't like to have 2 daemons running, doing the same thing).
    So this is my asd.conf:
    # /etc/asd.conf
    # For documentation, see: https://wiki.archlinux.org/index.php/Anything-sync-daemon
    # Define where data will reside in tmpfs
    # Think hard about this if using utils like bleachbit as it has a nasty habbit
    # of nuking files it identifies as junk in /tmp
    # A safer location for things is actually /dev/shm
    # This location must be mounted to tmpfs and MUST have permissions of 777
    # Use NO trailing backslash!
    TMPFS="/dev/shm"
    # Define the target(s) directories in the WHATTOSYNC array
    # Do NOT define a file! These MUST be directories!
    # Note that the target directories and all subdirs under them will be included
    # In other words, this is recursive
    # Below is an example to wet your appetite
    #WHATTOSYNC=('/var/log' '/srv/http' '/home/foo/bar')
    WHATTOSYNC=('/var/log' '/home/federico/.config/chromium')
    and this is my /etc/mtab:
    rootfs / rootfs rw 0 0
    /dev/root / ext4 rw,noatime,user_xattr,acl,barrier=1,nodelalloc,data=ordered 0 0
    devtmpfs /dev devtmpfs rw,relatime,size=1027028k,nr_inodes=218985,mode=755 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
    tmpfs /tmp tmpfs rw,nosuid,nodev,noatime,size=614400k 0 0
    /var/tmp /var/tmp tmpfs rw,noatime,nodiratime 0 0
    gvfs-fuse-daemon /home/federico/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
    So, don't know where is the problem... my /var/log folder is 65Mb, but if i run df -h, then, this is its output:
    File system Dim. Usati Dispon. Uso% Montato su
    rootfs 231G 31G 189G 14% /
    /dev/root 231G 31G 189G 14% /
    devtmpfs 1003M 0 1003M 0% /dev
    run 1004M 344K 1003M 1% /run
    shm 1004M 152K 1003M 1% /dev/shm
    tmpfs 600M 9,4M 591M 2% /tmp
    /var/tmp 1004M 84K 1004M 1% /var/tmp
    Thanks for the help!

  • Can Anyone Tell Us What CPU This Blade Log Has? (SPARC T3-1B) - PLEASE

    Primary Bootstrap.
    U-Boot 1.1.4
    Custom AST2100 U-Boot 3.0 (Feb  4 2011 - 00:21:51) r62572
    DRAM:  119 MB
    Flash bank 0 at 10000000 has 32MB in 256 sectors (chipSize 1<<25, ratio 1, bufSz 64).
    Flash: 32 MB
    VUART1 at port 0x03f8, SerIRQ[4] disabled
    VUART2 at port 0x02f8, SerIRQ[3] disabled
    Protecting U-Boot flash sectors; monitor_base=100a0000.
    board_findGpioNum(): ERROR, 'BIOS_TOP_BLOCK_LOCK' does not match any pin.
    board_findGpioNum(): ERROR, 'SP_PECI_ENABLE' does not match any pin.
    H/W:   Virgoplus Service Processor; SOC: AST2100 Rev. 02 ('A3')
      PWC_SP_Broken_OD = 0;  ARM restart caused by: power-on
      The host is OFF(held) (hostWantsPwr=1, powerGood=0,
            allowPwrOn=0|0, outOfReset=0, fatalError=0).
      Reset straps=0x8c819180, def. H-PLL=264 MHz, CPU/AHB=2:1, boot CS0# normal speed
      PCI w/VGA noVBIOS;  NOR 38ns/byte;  DRAM clock is M-PLL: 264 MHz (DDR2-528)
      DRAM: 128MB data - 8MB VGA, 32-bit noECC, 2 BA 10 CA, CL=4 BL=4 ap=1, 61440 us refr, DQSipv=0x2020202
    Board Revision - 8d
    Date: 2013-11-05 (Tuesday)    Time: 16:15:08
    Reading FRUID...Valid CRC.
    ethaddr=00:21:28:BB:FD:76
    eth1addr=00:21:28:BB:FD:77
    Platform (virgo): Configuring HPC FPGA (data=0x100ed800, len=45844)
    ## Extracting HPC microcode...done
    Now programming 225844 bytes...
    HPC programming done, rc = 0
    HPC_FPGA_DONE = 1
    Net:   faradaynic#0, faradaynic#1
    Enter Diagnostics Mode ['q'uick/'n'ormal(default)/e'x'tended(manufacturing mode)] .....   0
    Diagnostics Mode - NORMAL
    <DIAGS> Memory Data Bus Test ... PASSED
    <DIAGS> Memory Address Bus Test ... PASSED
    I2C Probe Test - Motherboard
            Bus     Device                          Address Result
            ===     ============================    ======= ======
             1               PCA9548 MUX (U3004)    0xE2    PASSED
             2                 Sys FRUID (U3003)    0xA0    PASSED
             2                Power CPLD (U3301)    0x4E    PASSED
             2          CPU0 Fault LED's (U3001)    0x40    PASSED
             2          CPU1 Fault LED's (U3002)    0x42    PASSED
             2            PCA9555 (Misc) (U3005)    0x44    PASSED
             2        Temp. Sensor(LM75) (U3006)    0x90    PASSED
             2                   LTC4215 (U5102)    0x96    PASSED
             2                 DIMM IMAX (U3102)    0x12    PASSED
             6          Bank Panel Led's (U3406)    0xC6    PASSED
             6               DS1338(RTC) ( U803)    0xD0    PASSED
    <DIAGS>Testing 4eyes access .... PASSED
    <DIAGS> PHY #0 R/W Test ... PASSED
    <DIAGS> PHY #0 Link Status ... PASSED
    <DIAGS> ETHERNET PHY #0, Internal Loopback Test ... PASSED                                                           <DIAGS> USB 1.1 Test ... PASSED
    <DIAGS>Access to BIOS Flash ... PASSED
    <DIAGS> Testing PowerCPLD version ... PASSED
    checking for abnormal reboots: 0:0.
    abnormal reboot found -- too long, ignore
    Booting linux in 3 seconds...
    Un-Protect Flash Bank # 1
    flctrl: Recovery U-Boot (r56177) at 0x10040000 is valid (min. r51654).
    Trying primary image...
    Trying to boot package at 10100000
    Found kernel image at 10102000
    Found root image at 1025f9f4
    copying 0x00a8d040 bytes from 0x1025f9f4 to 0x00800000
    bootargs= root=/dev/ram  ramdisk_size=10804  console=ttyS0,9600 bigphysarea=6144 ractrends.mtdblocks=env,0x20000,0x20000,coredump,0x1500000,0x800000,persist,0x1d00000,0x200000,params,0x1f00000,0x100000,
    ## Booting image at 10102000 ...
       Image Name:   Linux-2.6.27.43
       Created:      2011-02-04   5:18:45 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1431988 Bytes =  1.4 MB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
    OK
    do_bootm_linux() armlinux.c:104
      bootm
      0x10102000
      0x00800000
    theKernel=00008000
    do_bootm_linux() armlinux.c:121 - 9
    ## Loading Ramdisk Image at 00800000 ...
    do_bootm_linux() armlinux.c:155 - 10
       Image Name:
       Created:      2011-02-04   6:07:05 UTC
       Image Type:   ARM Linux RAMDisk Image (uncompressed)
       Data Size:    11063296 Bytes = 10.6 MB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    do_bootm_linux() armlinux.c:182 - 11
    do_bootm_linux() armlinux.c:245 - 15
    arch_number = 0x00000386
    env_t       = 0x01ED0008
    boot_params = 0x40000100
    DRAM bank   = 0x00000000
    -> start    = 0x00000000
    -> size     = 0x07700000
    ethaddr     = 00:21:28:BB:FD:76
    eth1addr    = 00:21:28:BB:FD:77
    ip_addr     = 0.0.0.0
    baudrate    = 9600 bps
    Sun extensions:
      bi_UBootEnvAddr     = 0x10020000
      bi_UBootEnvSize     = 0x00020000
      bi_flashstart       = 0x10000000
      bi_flashsize        = 0x02000000
      bi_flashbanksize    = 0x02000000
      bi_flashbanks       = 0x01
      bi_flashbankwidth   = 0x01
      bi_flashsectorsize  = 0x00020000
      bi_flashsectorcount = 0x00000100
      bi_boottype         = 0x02
      bi_primarytype      = 0x02
      bi_secondarytype    = 0x00
      bi_booted           = 0x10100000
      bi_primary          = 0x100a0000
      bi_secondary        = 0xffffffff
      bi_primaryhdr       = 0x10100000
      bi_secondaryhdr     = 0xffffffff
      bi_imagearea0       = 0x100a0000
      bi_imagearea1       = 0xffffffff
      bi_maximagesize     = 0x01f60000
      bi_min_firmware_rev = 0
      bi_sptrace_base     = 0x00000000
      bi_sptrace_len      = 0x00000000
      bi_apbclockhz       = 0x03ef1480
    H/W:   Virgoplus Service Processor; SOC: AST2100 Rev. 02 ('A3')
      The host is OFF(held) (hostWantsPwr=1, powerGood=0,
            allowPwrOn=0|0, outOfReset=0, fatalError=0).
      ARM Control reg: RR=0 HV=0 IC=1 BPd=0 RomP=0 SysP=0 BE=0 WB=1 DC=0 AlinFlt=1 MMU=0
      Cache Type reg: CType=0xe WB, sep.; I: 16KB of 32B lines 4-way; D: 16KB of 32B lines 4-way
            IC locked ways(3:0): 0000b, DC locked ways: 0000b
      Reset straps=0x8c819180, def. H-PLL=264 MHz, CPU/AHB=2:1, boot CS0# normal speed
      H-PLL (params=0x04291) 264.000 MHz, M-PLL params=0x04120-->264.000 MHz
      CPUCLK: H-PLL/1=264 MHz, AHB HCLK: CPUCLK/2=132 MHz, APB PCLK: H-PLL/4= 66 MHz
      PCI w/VGA noVBIOS;  NOR 38ns/byte;  DRAM clock is M-PLL: 264 MHz (DDR2-528)
      Bus-master-mode clocks: PCI BHCLK= 33 MHz, LPC LHCLK= 33 MHz
      Stopped clocks: vidCap-1, SP-Display, HACE, PCI-host
      DRAM: 128MB data - 8MB VGA, 32-bit noECC, 2 BA 10 CA, CL=4 BL=4 ap=1, 61440 us refr, DQSipv=0x2020202
      Reset controls: HACE, PwmFt, displays, MDMA, PCI-host
      Register protect: SCU prot, DMC prot, AHBC prot, VIC U-prot
      Ethernet MAC-PHY interface mode=6 (RMII + RMII), no MII2DC+DIO pins
    do_bootm_linux() armlinux.c:260
    do_bootm_linux() armlinux.c:263
    do_bootm_linux() armlinux.c:267
    do_bootm_linux() armlinux.c:279
    do_bootm_linux() armlinux.c:283
    do_bootm_linux() armlinux.c:287
    do_bootm_linux() armlinux.c:295
    Galactic register 1: 400509c0
    Starting watchdog timer.
    Starting kernel at 0x00008000...
    do_bootm_linux() armlinux.c:320
    do_bootm_linux() armlinux.c:324 (0x00000386,0x40000100)
    Uncompressing Linux............................................................................................... done, booting the kernel.
    Linux version 2.6.27.43 (buildbot@build-slave-sh-8) (gcc version 3.3.6) #1 Fri Feb 4 00:18:12 EST 2011
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: ASPEED-AST2100
    Memory policy: ECC disabled, Data cache writeback
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 30226
    Kernel command line: root=/dev/ram  ramdisk_size=10804  console=ttyS0,9600 bigphysarea=6144 ractrends.mtdblocks=env,0x20000,0x20000,coredump,0x1500000,0x800000,persist,0x1d00000,0x200000,params,0x1f00000,0x100000,
    PID hash table entries: 512 (order: 9, 2048 bytes)
    console [ttyS0] enabled
    mach/timer.c: Just lost 80 clock interrupts.
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 119MB = 119MB total
    Memory: 82144KB available (2708K code, 246K data, 124K init)
    Calibrating delay loop... 131.48 BogoMIPS (lpj=657408)
    Mount-cache hash table entries: 512
    Initializing cgroup subsys ns
    Initializing cgroup subsys cpuacct
    CPU: Testing write buffer coherency: ok
    net_namespace: 804 bytes
    NET: Registered protocol family 16
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    NET: Registered protocol family 1
    checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
    Freeing initrd memory: 10804K
    NetWinder Floating Point Emulator V0.97 (double precision)
    bigphysarea: Allocated 6144 pages at 0xc128e000.
    squashfs: version 3.4 (2008/08/26) Phillip Lougher
    squashfs: LZMA suppport for slax.org by jro
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 181
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    io scheduler noop registered (default)
    ttyS0 at MMIO 0x1e783000 (irq = 9) is a GUC-ASPEED UART
    ttyS1 at MMIO 0x1e784000 (irq = 10) is a GUC-ASPEED UART
    brd: module loaded
    loop: module loaded
    FTGMAC100: ASPEED FTGMAC Driver, (Linux Kernel 2.6.15.7) 11/17/2008 - by ASPEED
    FTGMAC100: eth0: at 0xfe660000 IRQ:2 noWait:0, MAC 00:21:28:bb:fd:76
    FTGMAC100: eth0:ftgmac100_reset, phyAddr=0x0, miiPhyId=0x0040_61e4
    FTGMAC100: lp->rx_descs = ffc00000, lp->rx_rx_descs_dma = 67ac000
    FTGMAC100: lp->rx_buf = 00000000, lp->rx_buf_dma = 0
    FTGMAC100: lp->tx_descs = ffc01000, lp->tx_rx_descs_dma = 67bd000
    FTGMAC100: lp->tx_buf = 00000000, lp->tx_buf_dma = 0
    FTGMAC100: eth1: at 0xfe680000 IRQ:3 noWait:0, MAC 00:21:28:bb:fd:77
    FTGMAC100: eth1:ftgmac100_reset, phyAddr=0xff, miiPhyId=0x0000_0002
    FTGMAC100: lp->rx_descs = ffc02000, lp->rx_rx_descs_dma = 67c1000
    FTGMAC100: lp->rx_buf = 00000000, lp->rx_buf_dma = 0
    FTGMAC100: lp->tx_descs = ffc03000, lp->tx_rx_descs_dma = 67d4000
    FTGMAC100: lp->tx_buf = 00000000, lp->tx_buf_dma = 0
    Ractrends Flash mapping: 0x2000000 at 0x10000000
    Bank #0: Found 1 x16 devices at 0x0 in 8-bit bank
    Amd/Fujitsu Extended Query Table at 0x0040
    Bank #0: CFI does not contain boot bank location. Assuming top.
    number of CFI chips: 1
    Number of banks found = 1
    GetMTDPartitions() says string is "env,0x20000,0x20000,coredump,0x1500000,0x800000,persist,0x1d00000,0x200000,params,0x1f00000,0x100000,"
    MTD Partition 0 : fullpart @ 0x0 of Size 0x2000000
    MTD Partition 1 : env @ 0x20000 of Size 0x20000
    MTD Partition 2 : coredump @ 0x1500000 of Size 0x800000
    MTD Partition 3 : persist @ 0x1d00000 of Size 0x200000
    MTD Partition 4 : params @ 0x1f00000 of Size 0x100000
    Creating 5 MTD partitions on "Bank #0":
    0x00000000-0x02000000 : "fullpart"
    0x00020000-0x00040000 : "env"
    0x01500000-0x01d00000 : "coredump"
    0x01d00000-0x01f00000 : "persist"
    0x01f00000-0x02000000 : "params"
    wdt: AST2100 WDT is installed.
    wdt: AST2100 WDT nowayout = 1, heartbeat = 30 secs
    wdt: AST2100 WDT guardstartupshutdown = 1
    wdt: AST2100 WDT startuptimeout = 600, shutdowntimeout = 60
    wdt: AST2100 WDT was enabled at driver start, time remaining 53 secs.
    wdt: Guarding startup, setting watchdog for 600 seconds.
    nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
    CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Plase use
    nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
    sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP cubic registered
    NET: Registered protocol family 10
    ip6_tables: (C) 2000-2006 Netfilter Core Team
    NET: Registered protocol family 17
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
    All bugs added by David S. Miller <[email protected]>
    drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    RAMDISK: squashfs filesystem found at block 0
    RAMDISK: Loading 10801KiB [1 disk] into ram disk... done.
    VFS: Mounted root (squashfs filesystem) readonly.
    Freeing init memory: 124K
    INIT: version 2.86 booting
    Creating /var tmpfs
    Creating directories in /var...done.
    Creating /var/log tmpfs...done.
    Calculating module dependencies... done.
    Loading modules...
        flashinfo
        helper
    Helper Module Driver Version 1.1
    mach/timer.c: Just lost 2 clock interrupts.
    Copyright (c) 2006 American Megatrends Inc.
        dbgpersist
    Persistent Driver Debugger version 1.1
    Copyright (c) 2008 Sun Microsystems Inc.
            Loading debug: usbhub [success]
            1 debug modules loaded
        gpiomgr
        gpioint
        peci
    PECI Driver: peci_initialize_device(696) Setup device peci0.
        i2c-core
    i2c_boardinfo: module license 'unspecified' taints kernel.
        i2c-dev
    i2c /dev entries driver
        i2c-algo-as
        i2c-aspeed
    i2c-adapter i2c-0: Hardware routines registered
    Registered bus id: i2c-0
    i2c-adapter i2c-1: Hardware routines registered
    Registered bus id: i2c-1
    i2c-adapter i2c-2: Hardware routines registered
    Registered bus id: i2c-2
    i2c-adapter i2c-3: Hardware routines registered
    Registered bus id: i2c-3
    i2c-adapter i2c-4: Hardware routines registered
    Registered bus id: i2c-4
    i2c-adapter i2c-5: Hardware routines registered
    Registered bus id: i2c-5
    i2c-adapter i2c-6: Hardware routines registered
    Registered bus id: i2c-6
        i2c-boardinfo
        videocap
    AST Video Capture Driver Version 1.0
    Copyright (c) 2005-2006 American Megatrends Inc.
        usb
    Initializing USB Devices -
    USB Device Endpoint Driver
    Copyright 2006 American Megatrends Inc.
    usb_init(): --USB INITIALIZING-- version MOD-VER:2011-02-04,00:09:46 with UsbEth and EndPoint-Remapping: 1
    USB GlobalDisconnect(): Called
    (E)ethBot_ConvertMacStr: converting '002128574716'
    Init AST11 Success
    USB GlobalReconnect(): Called
    mach/timer.c: Just lost 2 clock interrupts.
    USB Driver is Successfully Initialized
        btkcs
    All modules loaded.
    ... done.
    Checking device file systems
    Finished check of device file systems
    Checking configuration files state ...
    Image date:  Fri Feb  4 01:06:21 EST 2011       Image revision: 62572
    Conf date:   Fri Feb  4 01:06:21 EST 2011       Conf revision:  62572
    Configuration files state good after upgrade.
    Starting Platform Initialization: platinit.
    Running ldconfig...done
    Starting Platform Initialization: c10init.
    Starting FRU update program, platform id phase: frutool.
    Starting spdiag Platform Init: /usr/local/bin/spdiag  Done (0)
    Setting up networking...done.
    Hostname: SUNSP-1113FMN04D.
    Setting up IP spoofing protection: rp_filter.
    Configuring IPv6...done
    Configuring network interfaces...FTGMAC100: eth0:ftgmac100_open
    mach/timer.c: Just lost 3 clock interrupts.
    FTGMAC100: eth0:ftgmac100_reset, phyAddr=0x0, miiPhyId=0x0040_61e4
    FTGMAC100: eth1:ftgmac100_open
    FTGMAC100: eth1:ftgmac100_reset, phyAddr=0xff, miiPhyId=0x0000_0002
    SIOCSIFNETMASK: Cannot assign requested address
    SIOCSIFBRDADDR: Cannot assign requested address
    Failed to bring up eth1.
    done.
    Starting Constellation Blade Daemon: c10bd.
    Running ldconfig...done
    Starting portmap daemon: portmap.
    Starting ILOM Watchdog daemon.
    wdt: WDT device opened.  Watchdog starting with heartbeat = 30 secs
    mach/timer.c: Just lost 6 clock interrupts.
    wdt: AST2100 WDT was enabled at driver open, time remaining 556 secs.
    Done
    populating memstore vars from disk
    Running plat...plat: platform=b10, chassis=c01
    Done running plat
    Identifying Product Data...done.
    Starting FRU info cache program: frucache.
    INIT: Entering runlevel: 3
    Preparsing sensor.xml...
    Starting Shared Sensor Broadcast Daemon: ssbcastd  Done
    Starting system log daemon: syslogd and klogd.
    Starting capidirect daemon: capidirectd . Done
    Starting Event Manager: eventmgr  . Done
    Starting ipmi log manager daemon: logmgr . Done
    Starting System Avoidance Daemon: sad  Done
    Starting user mgmt upgrade program: usrmgt_upgrade.
    Starting the Health Monitor Daemon...
    Starting portmap daemon: portmap.
    Starting Host console Daemon: consd . Done
    Starting capidirectd: Done.
    Starting Error Telemetry Collection Daemon: etcd . Done
    Starting Fault Diagnosis Daemon: fdd . Done
    Starting IPMI Stack: . Done
    SSH RSA Host Key Files already exist. Skipping key creation ...
    SSH DSA Host Key Files already exist. Skipping key creation ...
    Starting sshd.
    Starting OpenBSD Secure Shell server: sshd-man.
    Starting SP fishwrap cache daemon: fishwrapd . Done
    Starting Network Controller Sideband Interface Daemon: ncsid . Done
    Starting Platform Obfuscation Daemon: pod . Done
    Starting lu main daemon: lumain . Done
    Starting HT sign on daemon: htsignond . Done
    Starting webgo Web Server: webgo . Done
    Starting Detection/Diagnosis After System Boot: dasboot  Done
    Starting Shared Sensor Poller: sspoller  Done
    Starting Servicetags discoverer: stdiscoverer.
    Starting Servicetags listener: stlistener.
    Starting Dynamic FRUID Daemon: dynafrud  Done
    Starting FRU info cache program: frucache.
    SUNSP-1113FMN04D login:

    For which reason do you want to known the SP processor model ?

  • Samba won't tango

    I have a D-Link 2750 DSL router with a USB port. I'm trying to use it as network attached storage with a 32GB memory stick. My Mac (10.7.5) will mount the disk as guest, I can read files on it, and delete files, and create empty folders, but not write files. The Mac thinks that the disk is full, when it isn't.
    I tried with a friend's Mac (10.9) with the same problem. I then tried with a smaller USB stick, thinking it might be a problem with the FAT32 filesystem. Same problem.
    The Mac outputs the following diagnostic info:
    df -h
    Filesystem                          Size   Used  Avail Capacity  Mounted on
    //GUEST:@192.168.1.1/U_DISK         20Mi   20Mi    0Bi   100%    /Volumes/U_DISK
    smbutil -v view cifs://192.168.1.1
    Share                                           Type    Comments
    IPC$                                            Pipe    IPC Service (DSL Gateway)
    U_DISK                                          Disk    All Storage devices
    2 shares listed
    I telenet into the router and checked smb.conf. Seems normal.
    # USB Key folder
    [U_DISK]
      comment = All Storage devices
      writable = yes
      browseable = yes
      public = yes
      path = /mnt
    I tried cating text files > to the USB stick, and that went fine. I then did some testing on the router.
    # df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/mtdblock0            6656      6656         0 100% /
    /dev/sda1              1949304      1068   1948236   0% /mnt/usb1_1
    # mount
    /dev/mtdblock0 on / type squashfs (ro,relatime)
    /proc on /proc type proc (rw,relatime)
    tmpfs on /var type tmpfs (rw,relatime,size=420k)
    tmpfs on /mnt type tmpfs (rw,relatime,size=16k)
    sysfs on /sys type sysfs (rw,relatime)
    none on /proc/bus/usb type usbfs (rw,relatime)
    /dev/sda1 on /mnt/usb1_1 type vfat (rw,relatime,fmask=0022,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=is o8859-1)
    I'm not sure where the problem is, with the Mac's SMB implementation, on with the router's Samba implementation. I tried to overwrite the router's smb.conf, to add a couple of options that might help, but it's on a read-only filesystem. Or maybe the problem is with the FAT32 filesystem on the flash. Anyhow, my Mac still thinks the disk is full, when it isn't.
    I'm stumped.

    $ cat /var/log/samba/log.smbd
    cat: /var/log/samba/log.smbd: No such file or directory
    $ cat /var/log/samba/log.nmbd
    [2005/09/21 21:05:18, 0] nmbd/nmbd.c:main(718)
    Netbios nameserver version 3.0.20 started.
    Copyright Andrew Tridgell and the Samba Team 1994-2004
    [2005/09/21 21:05:18, 0] param/loadparm.c:map_parameter(2536)
    Unknown parameter encountered: "character set"
    [2005/09/21 21:05:18, 0] param/loadparm.c:lp_do_parameter(3277)
    Ignoring unknown parameter "character set"
    [2005/09/21 22:37:01, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
    Samba name server ASPIRIN is now a local master browser for workgroup LAN.KRONE on subnet 192.168.0.160
    [2005/09/22 01:26:09, 0] nmbd/nmbd.c:terminate(58)
    Got SIGTERM: going down...
    [2005/09/22 12:44:57, 0] nmbd/nmbd.c:main(718)
    Netbios nameserver version 3.0.20 started.
    Copyright Andrew Tridgell and the Samba Team 1994-2004
    [2005/09/22 12:44:57, 0] param/loadparm.c:map_parameter(2536)
    Unknown parameter encountered: "character set"
    [2005/09/22 12:44:57, 0] param/loadparm.c:lp_do_parameter(3277)
    Ignoring unknown parameter "character set"

  • [solved] Problem with ssd disk, deleted files don't free space?

    Hello.
    I bought some time ago an ssd disk on which i installed arch. After some free time I changed my laptop optical drive with standard hdd and moved /home and folder with data (mainly music collection) to standard drive. To my surprise my ssd was filled as it were before. My fstab from beginning have had TRIM option enabled:
    LABEL=root / ext4 rw,noatime,discard,commit=600,barrier=0 0 1
    tmpfs /var/log tmpfs defaults,size=5% 0 0
    tmpfs /var/spool tmpfs defaults,size=5% 0 0
    LABEL=karta /run/media/kaira/karta/ ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1
    LABEL=home /home ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1
    LABEL=dane /dane/ ext4 rw,noatime,barrier=0,commit=600,data=writeback 0 1
    where the last three lines were added after second disk was installed.
    And now the great mystery for me:
    du -h / |sort -h -r|head -n 5:
    3,7G /
    2,7G /usr
    1,6G /usr/lib
    845M /usr/share
    771M /var
    df:
    System plików rozm. użyte dost. %uż. zamont. na
    /dev/sdb1 118G 27G 90G 24% /
    devtmpfs 3,8G 0 3,8G 0% /dev
    tmpfs 3,8G 1,4M 3,8G 1% /dev/shm
    tmpfs 3,8G 4,0M 3,8G 1% /run
    tmpfs 3,8G 0 3,8G 0% /sys/fs/cgroup
    tmpfs 3,8G 13M 3,8G 1% /tmp
    tmpfs 389M 32K 389M 1% /var/log
    tmpfs 389M 0 389M 0% /var/spool
    /dev/sda1 50G 241M 49G 1% /home
    /dev/sdc1 30G 45M 29G 1% /run/media/kaira/karta
    27G was the state before most data was transfered to different hard drive.
    Both commands where executed after partition with music was unmounted.
    I executed also fstrim / command, but it changed nothing.
    Is this behavior normal, or maybe i didn't made something important/ my disk is damaged?
    I know that 24% fulfillment is trivial, but now it definitely should show 3,5%.
    Last edited by kaira (2013-11-01 19:45:31)

    Yes, I run this command as a root. I manage to repair this problem by mounting root partition in ubuntu live cd. I found folder which should get deleted, but it still was in filesystem. Unfortunetly I don't remeber, how i copy files. Propably i used rsync and forget to delete files. Now it's too late too check this theory, but I'm really happy with proper sizes:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sdb1 118G 3.6G 113G 4% /
    devtmpfs 3.8G 0 3.8G 0% /dev
    tmpfs 3.8G 6.0M 3.8G 1% /dev/shm
    tmpfs 3.8G 3.9M 3.8G 1% /run
    tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
    tmpfs 3.8G 356K 3.8G 1% /tmp
    tmpfs 389M 0 389M 0% /var/spool
    tmpfs 389M 32K 389M 1% /var/log
    /dev/sda2 410G 25G 381G 7% /dane
    Lesson learned - never manage important system changes after getting up, without enough sleep time.
    Thank you for you're help, and sorry for wasting time with my mistakes.

  • [SOLVED] kde 4.6 and Udisks mounting problems with Dolphin

    Hello,
    I have a problem with Dolphin in KDE 4.6 where it displays my non-Arch partitions (a / and /home used for Opensuse) as well as a CD-Rom or usb if inserted, but registers an error when I click on the device/partition icon. Specifically, I get the following error displayed at the bottom of Dolphin:
    An error occurred while accessing Hard Drive, the system responded: org.freedesktop.UDisks.Error.Failed: Error creating mount point: No such file or directory.
    Because of this error, I am unable to mount usb pendrives, access CDs, or access the non-Arch partitions. I'm not sure if this is a KDE error or if it related to Arch as I never encountered this error running KDE 4.6 in Opensuse.
    My daemons running in /etc/rc.conf
    DAEMONS=(syslog-ng dbus networkmanager netfs crond alsa kdm)
    My /etc/fstab
    #/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
    #/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
    #/dev/fd0               /media/fl   auto    user,noauto             0      0
    /dev/sda1 / ext4 defaults,noatime 0 1
    /dev/sda5 swap swap defaults 0 0
    /dev/sda6 /home ext4 defaults,noatime 0 1
    tmpfs   /tmp            tmpfs defaults,nodev,nosuid,mode=1777                   0 0
    tmpfs   /var/lock       tmpfs defaults,nodev,nosuid,noexec,mode=1777,size=10M   0 0
    tmpfs   /var/run        tmpfs defaults,nodev,nosuid,noexec,mode=0755,size=10M   0 0
    Now, I don't have hal running as a daemon as I have read that it is no longer needed in KDE 4.6. Similarly, I don't have my CD-Rom drive mounted as I read in the udev wiki that Udisks automatically mounts devices and partitions. The wiki also indicates that Udisks is supposed to require little configuration.
    I've searched the forum and Google, and I have not been able to find any information documenting a Dolphin and UDisks mounting error in KDE 4.6.
    I installed KDE through the # pacman -S kde    command, but is there some other package that I need to install in order to get Udisks working properly?
    Thanks.
    Last edited by Bordee (2011-03-24 16:09:25)

    When I enter   $ groups in a terminal I get the following
    sys adm disk lp wheel games video audio optical storage power users
    So I'm definitely part of the storage group.
    I think I found a solution. I created a /data mountpoint in fstab and a /data folder in my root directory. Now, I'm able to mount and access the contents of the /home partition from Opensuse. The reason I wanted to do this was to access music and photos and transfer them onto my Arch /home partition.
    I uncommented the cdrom, dvd, and fd0 devices in fstab and I created /media/cd, /media/dvd, and /media/fl. After inputting a # mount -a, my CDROM drive reads properly as does my USB.
    So once again, thank, you for pointing me in the right direction.
    One final thought. I was under the impression from reading the UDisks information that it automatically detected and mounted other partitions and devices without them being explicitly mounted in fstab. Was the assumption wrong? In other words, for UDisks and Dolphin to work together properly in KDE 4.6, do all of the devices that appear have to first be mounted in fstab?

  • [SOLVED] Root FS mounted RO after kernel upgrade

    For some reason, since I upgraded to the 2.6.27-2 kernel, my root filesystem has been mounting readonly.  I tried adding 'rw' to my fstab and rebooting, and remounting it with '# mount -o remount,rw /dev/sda3', but neither worked.  Can anybody help?  Here is my fstab:
    # <file system>        <dir>         <type>    <options>                  <dump> <pass>
    none                   /dev/pts      devpts    defaults                    0      0   
    none                   /dev/shm      tmpfs     size=3584M,nr_inodes=1M     0      0   
    # Do kRaZy stuff with RAM
    none                   /tmp          tmpfs     size=1792M,nr_inodes=1M     0      0
    none                   /var/tmp      tmpfs     size=64M,nr_inodes=1M       0      0
    # SWAP
    UUID=3dfab75c-89d8-4cd6-a7f5-64be91f4b616   swap   swap   defaults     0     0
    # Arch Linux
    UUID=cb7596a2-1542-4993-b948-252f5849b0d8  /      xfs   rw,noatime,nodiratime,logbufs=8      0     1
    UUID=d0a9c880-663a-4c06-9abc-717f2b4f2fcf  /boot  ext3  rw,defaults,noatime,data=ordered     0     1
    UUID=212b2e17-1ced-4dd1-a99b-de4ad1e39b5e  /home  xfs   rw,noatime,nodiratime,logbufs=8      0     1
    # Windows Vista
    UUID=DAC2AB63C2AB431D   /media/VistaOS   ntfs-3g   rw,defaults,force      0      2
    # Pacman Database
    /var/lib/pacman.db   /var/lib/pacman   ext2   loop,rw,defaults     0     0
    # VirtaulBox USB Support
    none   /proc/bus/usb   usbfs   devgid=133,devmode=664     0     0
    Also, NetworkManager doesn't work and my laptop's battery level isn't detected - but I believe those to be symptoms of the RO filesystem (I may be wrong).
    Last edited by deltaecho (2008-10-16 14:39:51)

    But I discovered a workaround. You have to remove all mount options except for defaults.
    not entirely:
    2.6.26.x
    /dev/sda4 /home xfs defaults,nodiratime,noatime,logbufs=8,biosize=16,allocsize=512m,nobarrier 0 1
    updated to
    2.6.27
    fully working with
    /dev/sda4 /home xfs nodiratime,noatime,nobarrier 0 1
    in other words only specific settings related to performance tuning. seems to be related to the bug introduced in 2.6.27
    explanation here:
    http://oss.sgi.com/cgi-bin/gitweb.cgi?p … fabf4d687e

  • Unable to create any files under '/' and /export/home as root user

    Dear Forum,
    Please help me on this problem.
    In my server I cant create any files under / and /export/home . But I can save files under /var, /tmp ,/opt
    #cd /
    #touch tempfile
    touch: tempfile cannot create
    #cd /export/
    # ls -lp
    total 2
    drwxr-xr-x   9 root     root         512 Oct 20 11:09 home/
    # cd home
    # touch testfile
    touch: testfile cannot create
    # id
    uid=0(root) gid=0(root)
    # df -kh
    Filesystem             size   used  avail capacity  Mounted on
    /dev/md/dsk/d0         9.9G   5.5G   4.2G    57%    /
    /devices                 0K     0K     0K     0%    /devices
    ctfs                     0K     0K     0K     0%    /system/contract
    proc                     0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    swap                    22G   1.2M    22G     1%    /etc/svc/volatile
    objfs                    0K     0K     0K     0%    /system/object
    /dev/md/dsk/d3         9.9G   6.8G   3.0G    70%    /usr
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                           9.9G   5.5G   4.2G    57%    /platform/sun4u-us3/lib/libc_psr.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                           9.9G   5.5G   4.2G    57%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    fd                       0K     0K     0K     0%    /dev/fd
    /dev/md/dsk/d5         7.9G   2.5G   5.3G    33%    /var
    swap                    22G   400K    22G     1%    /tmp
    swap                    22G    48K    22G     1%    /var/run
    /dev/md/dsk/d4          20G   4.7G    15G    25%    /opt
    /dev/md/dsk/d6          63G    36G    26G    58%    /data
    # more /etc/vfstab
    #device         device          mount           FS      fsck    mount   mount
    #to mount       to fsck         point           type    pass    at boot options
    fd      -       /dev/fd fd      -       no      -
    /proc   -       /proc   proc    -       no      -
    /dev/md/dsk/d1  -       -       swap    -       no      -
    /dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
    /dev/md/dsk/d3  /dev/md/rdsk/d3 /usr    ufs     1       no      -
    /dev/md/dsk/d5  /dev/md/rdsk/d5 /var    ufs     1       no      -
    /dev/md/dsk/d6  /dev/md/rdsk/d6 /data   ufs     2       yes     -
    /dev/md/dsk/d4  /dev/md/rdsk/d4 /opt    ufs     2       yes     -
    #10.183.103.11:/backup  -       /backup nfs     -       yes     rw
    /devices        -       /devices        devfs   -       no      -
    ctfs    -       /system/contract        ctfs    -       no      -
    objfs   -       /system/object  objfs   -       no      -
    swap    -       /tmp    tmpfs   -       yes     -
    10.183.103.11:/nfs_backup/NCMDB1 - /rman_backup nfs 0 yes rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768
    Regards,

    Please have the output of /etc/mnttab
    /dev/md/dsk/d0  / ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540000 1382602314
    /devices /devices        devfs dev=5400000     1382602306
    ctfs /system/contract ctfs    dev=5440001     1382602306
    proc    /proc proc    dev=5480000     1382602306
    mnttab  /etc/mnttab mntfs   dev=54c0001     1382602306
    swap /etc/svc/volatile       tmpfs xattr,dev=5500001       1382602306
    objfs   /system/object  objfs dev=5540001     1382602306
    /dev/md/dsk/d3  /usr ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540003 1382602315
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1 /platform/sun4u-us3/lib/libc_psr.so.1   lofs dev=1540000     1382602313
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1 /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 lofs    dev=1540000     1382602313
    fd      /dev/fd fd      rw,dev=5700001  1382602315
    /dev/md/dsk/d5  /var ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540005 1382602315
    swap    /tmp tmpfs   xattr,dev=5500002 1382602315
    swap /var/run        tmpfs xattr,dev=5500003       1382602315
    /dev/md/dsk/d4  /opt ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540004 1382602318
    /dev/md/dsk/d6  /data ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540006 1382602318
    -hosts  /net    autofs nosuid,indirect,ignore,nobrowse,dev=57c0001     1382602321
    auto_home /home   autofs  indirect,ignore,nobrowse,dev=57c0002 1382602321
    NCM1:vold(pid393) /vol    nfs ignore,noquota,dev=5780001      1382602322

  • [SOLVED]After doing 'resize2fs',free space of all filesystem become 0!

    Here is the output of command 'df':
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 20511356 19752988 0 100% /
    dev 3983420 0 3983420 0% /dev
    run 3986136 704 3985432 1% /run
    tmpfs 3986136 0 3986136 0% /dev/shm
    tmpfs 3986136 0 3986136 0% /sys/fs/cgroup
    tmpfs 3986136 0 3986136 0% /var/tmp
    tmpfs 6291456 8 6291448 1% /tmp
    /dev/sda2 88283240 83859216 0 100% /home
    tmpfs 797228 0 797228 0% /run/user/0
    tmpfs 797228 0 797228 0% /run/user/1000
    As you can see, the two major partitions / and /home( that is /dev/sda1 and /dev/sda2) are not full, but their 'Available' space is 0, and 'Use%' is 100%!
    How could this to happen?
    I have just used the 'resize2fs -pM' to shrink the /home, and make some space for an additional /user partition. What happened is just shown above, that's weird.
    These partitions are absolutely writable, I can delete files/directories and 'touch files', but cannot write a single bit into them. Here is the /etc/fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda1
    UUID=397e83b2-9f37-4b41-8f82-fe21b97e7f74 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda2
    UUID=7fb4c1ea-2df1-4c1d-984b-bb6ad0e39978 /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sda3
    UUID=4fb831a4-c9b6-48a6-915c-82fb2a00e3e7 none swap defaults 0 0
    # tmpfs
    tmpfs /tmp tmpfs defaults,mode=1777,size=6G 0 0
    tmpfs /var/tmp tmpfs defaults,mode=1777 0 0
    # /dev/sda1
    UUID=397e83b2-9f37-4b41-8f82-fe21b97e7f74 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda2
    UUID=7fb4c1ea-2df1-4c1d-984b-bb6ad0e39978 /home ext4 rw,relatime,data=ordered 0 2
    Last edited by victl (2014-12-07 16:55:31)

    victl wrote:
    Head_on_a_Stick wrote:
    From the ext4 ArchWiki page:
    By default 5% of a filesystem will be flagged as reserved for root user to avoid fragmentation.
    https://wiki.archlinux.org/index.php/ex … ved_blocks
    Your filesystem is 96.3% full -- I think the rest of the space is occupied by the reserved blocks.
    But I can still install new packages into the partition( which means it's writable). What I can't do is direct write into it(e.g.  Using vi)
    Thant you for helping!
    So... what? You run pacman as root which means it has extra privileges. You probably run vi as a user that doesn't have that privilege..

  • After patching disk free no loger work in a sub-zone

    I just patched(Generic_142900-06) a Solaris 10 global zone, which contains three sub-zones. Now, within two of the three sub-zones, "df -k" returned absolutely nothing:
    # truss -f df -k
    7068: execve("/usr/sbin/df", 0xFFBFFEDC, 0xFFBFFEE8) argc = 2
    7068: resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
    7068: resolvepath("/usr/sbin/df", "/usr/sbin/df", 1023) = 12
    7068: stat("/usr/sbin/df", 0xFFBFFCB8) = 0
    7068: open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
    7068: stat("/lib/libcmd.so.1", 0xFFBFF7D8) = 0
    7068: resolvepath("/lib/libcmd.so.1", "/lib/libcmd.so.1", 1023) = 16
    7068: open("/lib/libcmd.so.1", O_RDONLY) = 3
    7068: mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3E0000
    7068: mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF390000
    7068: mmap(0xFF390000, 9948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF390000
    7068: mmap(0xFF3A4000, 1027, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 16384) = 0xFF3A4000
    7068: munmap(0xFF394000, 65536) = 0
    7068: memcntl(0xFF390000, 3336, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
    7068: close(3) = 0
    7068: stat("/lib/libc.so.1", 0xFFBFF7D8) = 0
    7068: resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
    7068: open("/lib/libc.so.1", O_RDONLY) = 3
    7068: mmap(0xFF3E0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3E0000
    7068: mmap(0x00010000, 991232, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000
    7068: mmap(0xFF280000, 882477, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF280000
    7068: mmap(0xFF368000, 29469, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 884736) = 0xFF368000
    7068: mmap(0xFF370000, 2592, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF370000
    7068: munmap(0xFF358000, 65536) = 0
    7068: memcntl(0xFF280000, 139860, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
    7068: close(3) = 0
    7068: munmap(0xFF3E0000, 8192) = 0
    7068: mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3E0000
    7068: getcontext(0xFFBFF9B0)
    7068: getrlimit(RLIMIT_STACK, 0xFFBFF990) = 0
    7068: getpid() = 7068 [7067]
    7068: setustack(0xFF3E2088)
    7068: brk(0x00027090) = 0
    7068: brk(0x00029090) = 0
    7068: stat("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1", 0xFFBFF6C0) = 0
    7068: resolvepath("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1", "/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 37
    7068: open("/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1", O_RDONLY) = 3
    7068: mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
    7068: mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF380000
    7068: close(3) = 0
    7068: ioctl(1, TCGETA, 0xFFBFFE04) = 0
    7068: open("/etc/mnttab", O_RDONLY) = 3
    7068: llseek(3, 0, SEEK_CUR) = 0
    7068: llseek(3, 0, SEEK_SET) = 0
    7068: ioctl(3, (('m'<<8)|7), 0xFFBFFC64) Err#14 EFAULT
    7068: llseek(3, 0, SEEK_CUR) = 0
    7068: close(3) = 0
    7068: zone_lookup("") = 5
    7068: _exit(0)
    # cat /etc/mnttab
    / / ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540000 1268603977
    /dev /dev lofs zonedevfs,dev=5800005 1268610010
    proc /proc proc nodevices,zone=jadeape3s,dev=5540005 1268610015
    ctfs /system/contract ctfs nodevices,zone=jadeape3s,dev=5500006 1268610015
    mnttab /etc/mnttab mntfs nodevices,zone=jadeape3s,dev=5580006 1268610015
    objfs /system/object objfs nodevices,zone=jadeape3s,dev=5600006 1268610015
    swap /etc/svc/volatile tmpfs nodevices,xattr,zone=jadeape3s,dev=55c0010 1268610015
    fd /dev/fd fd rw,nodevices,zone=jadeape3s,dev=5780006 1268610018
    swap /tmp tmpfs nodevices,xattr,zone=jadeape3s,dev=55c0011 1268610019
    swap /var/run tmpfs nodevices,xattr,zone=jadeape3s,dev=55c0012 1268610019

    Hello,
    We are having exactly the same problem here, one out of two non-global zones doesn't display any output to the "df" and "mount" commands.
    Here is the "truss" output with the same infamous *"Err#14 EFAULT"* error near the end:
    bash-3.00# truss -fe df
    4702: execve("/usr/sbin/df", 0xFFBFFD74, 0xFFBFFD7C) argc = 1
    4702: envp: TERM=xterm SHELL=/sbin/sh SSH_CLIENT=10.1.1.135 4664 22
    4702: OLDPWD=/ SSH_TTY=/dev/pts/4 LC_ALL=C USER=root
    4702: PATH=/usr/sbin:/usr/bin MAIL=/var/mail//root PWD=/etc
    4702: TZ=Europe/Lisbon SHLVL=1 HOME=/ LOGNAME=root
    4702: SSH_CONNECTION=10.1.1.135 4664 192.168.0.11 22
    4702: _=/usr/bin/truss
    4702: resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
    4702: resolvepath("/usr/sbin/df", "/usr/sbin/df", 1023) = 12
    4702: stat64("/usr/sbin/df", 0xFFBFFA30) = 0
    4702: open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
    4702: stat64("/lib/libcmd.so.1", 0xFFBFF1C0) = 0
    4702: resolvepath("/lib/libcmd.so.1", "/lib/libcmd.so.1", 1023) = 16
    4702: open("/lib/libcmd.so.1", O_RDONLY) = 3
    4702: mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
    4702: mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF380000
    4702: mmap(0xFF380000, 9948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF380000
    4702: mmap(0xFF394000, 1027, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 16384) = 0xFF394000
    4702: munmap(0xFF384000, 65536) = 0
    4702: memcntl(0xFF380000, 3336, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
    4702: close(3) = 0
    4702: stat64("/lib/libc.so.1", 0xFFBFF1C0) = 0
    4702: resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
    4702: open("/lib/libc.so.1", O_RDONLY) = 3
    4702: mmap(0xFF3A0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
    4702: mmap(0x00010000, 1294336, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF200000
    4702: mmap(0xFF200000, 1237333, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF200000
    4702: mmap(0xFF330000, 35645, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1245184) = 0xFF330000
    4702: mmap(0xFF33A000, 1416, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF33A000
    4702: memcntl(0xFF200000, 145120, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
    4702: close(3) = 0
    4702: mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3F0000
    4702: mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF370000
    4702: munmap(0xFF3A0000, 32768) = 0
    4702: getcontext(0xFFBFF8A0)
    4702: getrlimit(RLIMIT_STACK, 0xFFBFF880) = 0
    4702: getpid() = 4702 [4701]
    4702: setustack(0xFF372A88)
    4702: brk(0x000290D0) = 0
    4702: brk(0x0002B0D0) = 0
    4702: stat64("/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1", 0xFFBFF058) = 0
    4702: resolvepath("/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1", "/platform/sun4v/lib/libc_psr.so.1", 1023) = 33
    4702: open("/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1", O_RDONLY) = 3
    4702: mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
    4702: munmap(0xFF3A2000, 24576) = 0
    4702: close(3) = 0
    4702: open("/etc/mnttab", O_RDONLY) = 3
    4702: llseek(3, 0, SEEK_CUR) = 0
    4702: llseek(3, 0, SEEK_SET) = 0
    4702: ioctl(3, (('m'<<8)|7), 0xFFBFFAFC) Err#14 EFAULT
    4702: llseek(3, 0, SEEK_CUR) = 0
    4702: close(3) = 0
    4702: zone_lookup("") = 1
    4702: _exit(0)
    Any hints?
    Thank you in advance.
    Regards,
    Miguel

  • [Solved] problems after "udev - systemd-tools" update

    Hello,
    After the last pacman -Syu the keyboard, the mouse and the sound card of my notebook have stopped working..
    The last update was:
    Pacchetti (10): dnsmasq-2.62-1 fakeroot-1.18.4-1 filesystem-2012.6-2
    geoip-database-20120606-1 icu-49.1.2-1 krb5-1.10.2-1
    libsystemd-185-1 mx-1.4.6-1 rsync-3.0.9-3
    systemd-tools-185-1
    the keyboard works in a tty shell, doesn't work only in X... but if i plug an USB mouse or keyboard the plugged device works also fine in X.
    this is my modules and daemons in rc.conf:
    MODULES=(acpi-cpufreq cpufreq_ondemand cpufreq_powersave vboxdrv bridge tun)
    DAEMONS=(hwclock syslog-ng dbus !network @networkmanager @netfs @crond @sensors @bluetooth gdm)
    thanks to everyone
    Last edited by Gelax! (2012-06-08 10:04:51)

    I have a SSD, I read on the forum that a possible optimization was to mount in ram /var/run and /var/lock...
    before having these problems I mounted it in this way and everything worked perfectly.
    none /var/run tmpfs mode=0755,size=10m,noatime,nosuid 0 0
    none /var/lock tmpfs mode=1777,size=10m,noatime,nosuid,nodev,noexec 0 0
    after the system upgrade i have tryed to mount /run in ram but that created these problems...
    so I just mounted /run/lock in ram and everything works fine
    Last edited by Gelax! (2012-06-08 12:16:35)

  • [SOLVED] Cannot mount ntfs drive

    Every time I try to mount my Windows 7 hdd, I receive an error:
    fuse: mount failed: Device or resource busy
    The commands I used to try to mount all resulted in the same error:
    sudo mount /dev/sdb1 /mnt/ntfs
    sudo mount -t ntfs-3g /dev/sdb1 /mnt/ntfs
    sudo mount /dev/disk/by-uuid/C0940E83940E7BE2 /mnt/ntfs
    Switching to root also did not remedy the error.  Putting the entry in fstab does not mount it at boot, giving the same error.
    fdisk -l reveals the following:
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x79109c6b
    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 97659134 48829536 83 Linux
    /dev/sda2 97659135 107426654 4883760 82 Linux swap / Solaris
    /dev/sda3 107426655 1953520064 923046705 83 Linux
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xed6ad455
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 976771071 488384512 7 HPFS/NTFS/exFAT
    Any help would be appreciated.  Thank you.
    EDIT: Solution:
    As it turns out, a couple years ago, I had a mirrored RAID.  Even when got rid of the RAID, got a new drive, reformatted and installed Arch, my secondary, NTFS drive would not mount.
    Here is exactly what fixed it:
    Issuing the command `cat /proc/mdstat` shows all RAID arrays.  Mine showed the following:
    Personalities :
    md127 : inactive sdb[1](S)
    488386496 blocks
    `sudo mdadm --stop /dev/md127` stopped the array.
    `sudo mdadm --remove /dev/md127` removed the array.
    new output of  `cat /proc/mdstat`
    Personalities :
    unused devices: <none>
    `sudo mount /dev/sdb1 /mnt/1` worked.
    Last edited by AngryKoala (2011-06-11 23:30:31)

    vadmium wrote:
    You don’t happen to have something that sdb1 partition mounted or opened somewhere else? If I try to mount my NTFS partition while it’s already mounted it gives the same “Device or resource busy”.
    What does the “mount” and “cat /proc/mounts” tell you?
    Output of mount:
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=506959,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
    /dev/sda1 on / type ext4 (rw,noatime,commit=0)
    devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,mode=1777)
    tmpfs on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777,size=10m)
    tmpfs on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755,size=10m)
    /dev/sda3 on /home type ext4 (rw,noatime,commit=0)
    Output of cat /proc/mounts:
    rootfs / rootfs rw 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=506959,mode=755 0 0
    run /run tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
    /dev/sda1 / ext4 rw,noatime,barrier=1,data=ordered 0 0
    devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
    tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
    tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k 0 0
    tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
    /dev/sda3 /home ext4 rw,noatime,barrier=1,data=ordered 0 0

  • [SOLVED] SSD discard not working

    i have a solid state disk and want to use the discard option. my fstab is this:
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    tmpfs /var/lock tmpfs nodev,nosuid 0 0
    tmpfs /var/run tmpfs nodev,nosuid 0 0
    tmpfs /var/log tmpfs nodev,nosuid 0 0
    /dev/sda2 / ext4 defaults,noatime,discard 0 1
    I also activated discard on that partition via tune2fs -o discard /dev/sda2
    however, my mount output is this:
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    /sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    /dev on /dev type devtmpfs (rw,nosuid,relatime,size=1020848k,nr_inodes=224476,mode=755)
    /run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda2 on / type ext4 (rw,noatime,user_xattr,acl,barrier=1,data=ordered)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /var/log type tmpfs (rw,nosuid,nodev,relatime)
    gvfs-fuse-daemon on /home/wombat/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
    so it looks like sda2 is mounted without discard. what's wrong here?
    Last edited by wombat23 (2012-10-03 19:26:43)

    I am glad to have helped.  I created a new partition on my ssd, and I wanted to see if my drive worked as expected.  So I tested it out using the tune2fs -o discard method. 
    $ mount -l
    /dev/sdb5 on /mnt type ext4 (rw,noatime,data=ordered)
    As you can see, no indication that trim is present or on.
    Here is after I wrote a file
    hdparm --read-sector 168866824 /dev/sdb
    /dev/sdb:
    reading sector 168866824: succeeded
    3031 3030 2031 6574 7473 6c20 6e69 0a65
    3031 3030 2032 6574 7473 6c20 6e69 0a65
    3031 3030 2033 6574 7473 6c20 6e69 0a65
    3031 3030 2034 6574 7473 6c20 6e69 0a65
    3031 3030 2035 6574 7473 6c20 6e69 0a65
    3031 3030 2036 6574 7473 6c20 6e69 0a65
    3031 3030 2037 6574 7473 6c20 6e69 0a65
    ...and here is after I deleted the file
    hdparm --read-sector 168866824 /dev/sdb
    /dev/sdb:
    reading sector 168866824: succeeded
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    0000 0000 0000 0000 0000 0000 0000 0000
    As you can see it is working flawlessly.  I think I may turn this option on with all my ssd partitions.  Maybe also get some noatime up in this sh*t!
    Edit:  It no likey my attempts to add noatime.  I guess that is not meant to be set this way.
    Last edited by WonderWoofy (2012-10-03 00:38:56)

Maybe you are looking for

  • Timestamp

    Dear Experts, For FISL, I understand the safety is 1 hour but where to set this or change this value? For FI GL AR AP, its 1 day if I am not wrong. Is FISL timestamp and delta settings the same as for FI GL AR AP ? What is the change table for FISL t

  • Invoice Tax Print on PO

    I want to display Invoice Tax on PO script. Trancation ME23N WHICH TABLE ARE STORE INVOICE TAXES DETALS? I'M TRY TO FINDOUT IN TABLE <b>KONV</b> AND <b>KONP</b> BUT NOT GETTING.. IS THERE ANY TABLE STORE THIS VALUE OR ANY PROCEDURE TO GETING INVOICE

  • Problem using  auto-complete SQL Developer

    Hi everyone ... I'm having a problem using the SQL Developer 3.2.20.09 87 ... when I try to use auto-complete in a 'SELECT' clause at a specific table (EX: clients.cod_client), if I have more tables in my 'FROM' clause, the program shows all columns

  • Slow Host Resolving

    I've discovered another unusual issue that i'm kind of in the dark about. When I load a website, it sits for what seems like forever 'Resolving Host'. then, when it's done, the site loads like normal. Here's what I dont get. If I go to other webpages

  • Can i fire event form code itself ?

    Hi,    I want when user clicks on Combo Box and selects one record form combo list combo box should again be open state i.e in other words combo same click event should be fired when user clicks on combo item.... Is it possible to call item-pressed e