Jump to content

nemonein

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by nemonein

  1. Hi.

    I'm using Cubietruck, and installed Ubuntu server(mainline) on it.

     

    Suddenly, I can't write to disk(SD card). Actually, yes I can. I could create, edit, or even delete files, but all the changes are gone after the Cubietruck is rebooted.

    The deleted files are back, and created files are gone.

     

    What should I check?

    My SD card is Samsung Evo 16GB, and I'm running Cubietruck for more than 2 years. I have never encountered this weird situation.

  2. @tkaiser

    Your advice is always very helpful to me.(to everyone of course.) Thank you again.

     

    For the record, my SD card is Samsung Evo plus. I have not known that this SD card is better than average one, because I live in the country where Samsung's HQ is. ;-)

     

    And for the conclusion, it would be good not to resize the partiotion.

     

    Thank you all.

  3. First iozone..

    iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
        Iozone: Performance Test of File I/O
                Version $Revision: 3.429 $
            Compiled for 32 bit mode.
            Build: linux 
        Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                     Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                     Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                     Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                     Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                     Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                     Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                     Vangel Bojaxhi, Ben England, Vikentsi Lapa.
        Run began: Mon Mar 13 14:20:13 2017
        Include fsync in write timing
        O_DIRECT feature enabled
        Auto Mode
        File size set to 102400 kB
        Record Size 4 kB
        Record Size 16 kB
        Record Size 512 kB
        Record Size 1024 kB
        Record Size 16384 kB
        Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
        Output is in kBytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 kBytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride                                    
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
              102400       4     1445     3069     7205     7220     7063     3036                                                          
              102400      16     8590    10141    14269    14343    14297    11498                                                          
              102400     512    13829    17603    22168    22161    22188    21008                                                          
              102400    1024    16877    19525    22432    22405    22403    20929                                                          
              102400   16384    17740    19398    22560    22534    22538    20072                                                          
    iozone test complete.

    and results of 'dd's.

    $ dd if=/dev/zero of=110mb.file bs=1M count=110
    110+0 records in
    110+0 records out
    115343360 bytes (115 MB, 110 MiB) copied, 1.02726 s, 112 MB/s
    $ dd if=/dev/zero of=fill-it bs=10M
    dd: error writing 'fill-it': No space left on device
    2630+0 records in
    2629+0 records out
    27569053696 bytes (28 GB, 26 GiB) copied, 3021.98 s, 9.1 

     

    and the last iozone.

    $ iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
        Iozone: Performance Test of File I/O
                Version $Revision: 3.429 $
            Compiled for 32 bit mode.
            Build: linux 
        Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                     Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                     Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                     Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                     Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                     Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                     Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                     Vangel Bojaxhi, Ben England, Vikentsi Lapa.
        Run began: Mon Mar 13 15:44:28 2017
        Include fsync in write timing
        O_DIRECT feature enabled
        Auto Mode
        File size set to 102400 kB
        Record Size 4 kB
        Record Size 16 kB
        Record Size 512 kB
        Record Size 1024 kB
        Record Size 16384 kB
        Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
        Output is in kBytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 kBytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride                                    
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
              102400       4     1144     2648     6812     6891     6712     2742                                                          
              102400      16     8012     9677    13899    13896    13818    10989                                                          
              102400     512    14474    17739    21164    21250    21239    19714                                                          
              102400    1024    17004    18842    21424    21337    21481    20043                                                          
              102400   16384    16069    18256    21861    21860    21842    19104                                                          
    iozone test complete.

     

    Armbian monitor is here.

    http://sprunge.us/aEGY
     

     

    I don't know what you meant by this.

    Quote

    how much reserve sectors are on a card that announces 125042688? Is it just 8192 more (4MB), is it 1048576 (512MB), is it any other value?

     

     

  4. I'm using Armbian 5.25(mainline, Ubuntu server) on Cubietruck.

     

    The partion is not extended to the full size of the SD card.

    Here's my results of fdisk -l and df.

     

    $ sudo fdisk -l
    Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk /dev/mmcblk0: 59.6 GiB, 64021856256 bytes, 125042688 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
    Disklabel type: dos
    Disk identifier: 0xf3693e57
    Device         Boot Start       End   Sectors  Size Id Type
    /dev/mmcblk0p1       2048 122541823 122539776 58.4G 83 Linux
    
    $ df -h /dev/mmcblk0
    Filesystem      Size  Used Avail Use% Mounted on
    udev            996M     0  996M   0% /dev
    
    $ df -h /dev/mmcblk0p1
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/mmcblk0p1   58G   29G   29G  51% /


    About 1.6GB is remained in unused space.

     

    I know that Armbian needs 128MB emergency swap, but this 1.6GB is for swap?

     

    Quote

    Insert SD card into a slot and power the board. First boot takes around 3 minutes than 
    it reboots and you will need to wait another one minute to login. This delay is 
    because system updates package list and creates 128Mb emergency SWAP on the SD card. 

     

    Last time I installed Armbian, I manually steretched the partition to the full size.

    I'm wondering that might cause this.

  5. For anyone who might be interested in..

     

    Yes, another Sunday has come.

    It did not frozen, and I could connect to CubieTruck with ssh.

    However most of commands are not woking.

     

    ls works, but ps, lsof, reboot, shutdown... now work.

     

    I powered down and remove the SD card, and check it on my desktop PC.

    Here is the result of fsck.

     

    $ sudo fsck.ext4 -v -C 0 /dev/sdc1
    e2fsck 1.42.13 (17-May-2015)
    ArmBuntu: 저널 복구중 (Journal recovering, maybe.)
    Clearing orphaned inode 6490 (uid=0, gid=0, mode=0100644, size=304832)
    Clearing orphaned inode 9584 (uid=0, gid=0, mode=0100644, size=345164)
    Clearing orphaned inode 1766981 (uid=999, gid=999, mode=0100600, size=11308)
    Clearing orphaned inode 1766927 (uid=999, gid=999, mode=0100600, size=2056)
    Setting free inodes count to 3691751 (was 3691763)
    Setting free blocks count to 8304046 (was 5050204)
    ArmBuntu: clean, 70825/3762576 files, 7326034/15630080 blocks

     

    There must be something wrong with my SD card.

    I can change this card to a new one, but I have to visit the Customer center, or send it to them by mail.. Anyway it takes time.

     

    I've just reinstall Armbian again, and wait for another Sunday.

  6. The results of armbianmonitor -c $HOME.

     
    ........
    
    Starting iozone tests. Be patient, this can take a very long time to complete:
    Iozone: Performance Test of File I/O
           Version $Revision: 3.429 $
    Compiled for 32 bit mode.
    Build: linux 
    
    
    Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                Vangel Bojaxhi, Ben England, Vikentsi Lapa.
    
    
    Run began: Mon Feb 27 14:57:12 2017
    
    
    Include fsync in write timing
    O_DIRECT feature enabled
    Auto Mode
    File size set to 102400 kB
    Record Size 4 kB
    Record Size 512 kB
    Record Size 16384 kB
    Command line used: iozone -e -I -a -s 100M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2
    Output is in kBytes/sec
    Time Resolution = 0.000001 seconds.
    Processor cache size set to 1024 kBytes.
    Processor cache line size set to 32 bytes.
    File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride                                    
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
              102400       4     1151     2766     7293     7306     6765     2958                                                          
              102400     512    17175    19856    21668    21732    21719    20625                                                          
              102400   16384    15232    16455    22040    22038    22037    17607                                                          
    
    
    iozone test complete.
    touch: cannot touch './cardtest.m2rKKL/.starttime': No such file or directory
    
    
    Test stopped, read-only filesystem
    
    
    
    
    
    
    Please be careful using this media since it seems it's already broken. Exiting test.
    

    I don't know why it says read only file system, while it is not.

    My sd disk is Samsung MICROSDXC 64GB EVO PLUS.

    Is there something wrong with my sd disk?

  7. I'm using CT with Armbian 5.25(mainline) server version.

     

    The system hangs on every Sundays, and this is the 3rd time, since it hanged two weeks ago for the first time.

    When I connected a monitor with it, it says..

    mmcblk0 : error -5 sending status command, retrying
    blk_update_request : I/O error, dev mmcblk0, sector 1503312
    .... similar messages are repeated..

    I have no idea what causes this.

    I do not use CRON.

     

    I installed these packages.

    Mpd, nginx, nfs server, samba server, deluge-daemon, pure-ftpd, Resilio Sync.

     

    Can anyone help me?

  8. I compiled and installed Uboot, but it does not work either.

     

    I compiled uboot using these tools.

    OS : Ubuntu 16.04(64bit)
    Source : git://git.denx.de/u-boot.git
    Toolchain : https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz

    I successfully made u-boot-sunxi-with-spl.bin, and installed it to my SD card, using dd command.

    This is my Uboot file.(https://drive.google.com/file/d/0BwNiQ50_PJd2ZTVRWUg2LW5pVmc/view?usp=sharing)

     

    Vga output is defenitely dead. It's not working at all whether it is connected or not at the boot time.

    However, hdmi output is only working when it's connected at the boot time.

     

    I decide not to use hdmi out for the time being.

     

    Anyway, thank you for your concern.

    I really appreciate it.

  9. Hi.

    I'm using CubieTruck and Armbian mainline up to dated version.

     

    The CT is a headless server, so I don't connect any cable to it.

    However, one day the ssh server in CT did not work, I tried to connect CT to a monitor using HDMI cable.

    Even though I connect a cable, I could not see anything, and the monitor said 'No signal'.

    (Well, if the hdmi cable was connected, and CT is booted with it, the output is ok with hdmi signal.)

     

    If I connect with a vga cable, there is no problem.

     

    Here's what I want.

    I want to see the screen when I connect CT with a hdmi cable, even if the cable has not been connected.

    (I hope you understand what I mean..)

     

    I followed this, but there was no difference.

    https://docs.armbian.com/Hardware_Allwinner/#how-to-reconfigure-video-output

     

    Any help would be appreciated.

    Thanks.

  10. Thank both of you, vlad and technik007_cz.

     

    Now I'm using the acrylic case, and change the adapter with a lower voltage one.

    The temperature is around 60~65. I think that's not that bad.

     

    The hdd.. could be a problem, but I use an external case for it, which has a own power source. Last time I check the temp. of a disk, it was under 50.

  11. Hi.

    I'm using CubieTruck with Armbian Jessie, attached with a Sata disk.

    I have tried these method to run hdparm when the system reboots, but none of them was successful.

    • /etc/hdparm.conf
    • /etc/udev/rules.d/50-hdparm.rules
    • /usr/lib/systemd/system-sleep/hdparm_set

    Finally, I chose the /etc/rc.local file, and add the hdparm command.

    hdparm -B 127 -S 242 /dev/sda

    However, it is not working always.

    I rebooted several times, and check the APM status with 'hdparm -B /dev/sda', the results vary.

    Sometimes it shows APM_level = not supported, but some other times APM_level = 127, as I specified.

    I don't know what was wrong about the command.
     ** I've found out that hddtemp(which is used everytime I log on to Armbian, by /etc/update-motd.d/30-sysinfo) 'sometimes' resets the apm level.
     

    Beside the other methods, I want to know why /etc/hdparm.conf does not work.

    I added these lines in hdparm.conf.

    /dev/disk/by-id/ata-SAMSUNG_HD103SJ_S246J1RZB00034 {
    apm = 127
    spindown_time = 242
    }

    However, it does not work at all.

     

    Can anyone give a clue?

  12. @technik007_cz Thank you for your concern.

     

    I'll try the test you suggested.

    My Hdd has been working fine since I last modifed the fstab option.

    By the way, I do not use USB port at all. Only SD card is used, and SATA port also. However, because the Sata disk has it's own power source(not coming from the Cubietruck), I don't think it's a matter of power.

     

    I'll tell you if there's something suspicious on the disk.

    Thanks!

×
×
  • Create New...