Results 1 to 6 of 6

Thread: mkdir: Cannot create directory `/opt/etc'

  1. #1

    Unhappy mkdir: Cannot create directory `/opt/etc'

    Dear all,

    First of all.... i'm such a noob and a newbie, but, i kind of want this to work.
    I am good at directions so,.. i will take good directions

    I'm stuck at this step:

    "mkdir /opt/etc
    mkdir /opt/etc/init.d
    vi /opt/etc/init.d/rc.unslung"

    "Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only file system" your HDD (here the IPKG pertition) is NOT mounted."

    I have this error, and i don't know what to do next! please help me!

  2. #2
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    to be able to create something in /opt, you should first mount something there (external hdd, flashdrive, etc.). See, e.g. wengi's guide for details

  3. #3
    Quote Originally Posted by al37919 View Post
    to be able to create something in /opt, you should first mount something there (external hdd, flashdrive, etc.). See, e.g. wengi's guide for details
    I have an external hdd, 250 gb partitioned in 5 GB 2 GB and rest...

    So... what can i do?

    L.E. I was in part 5 in wengi's guide, startup scripts. and i'm stuck
    Last edited by cristian.ene; 05-02-2010 at 22:15.

  4. #4
    Quote Originally Posted by cristian.ene View Post
    I have an external hdd, 250 gb partitioned in 5 GB 2 GB and rest...

    So... what can i do?

    L.E. I was in part 5 in wengi's guide, startup scripts. and i'm stuck
    Picture here

  5. #5
    I skipped this part thought!

    There is a script to keep the file system clean:
    Code:

    vi /usr/local/sbin/pre-mount

    with this content:
    Code:

    #! /bin/sh

    swapon -a

    for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
    if [ -b $i ] ; then
    grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
    else
    logger -t fstab "$i is not attached"
    fi
    done

    pre-mount will start e2fsck if needed. My WL-HDD with its 80GB HDD takes some hours to do this check! It is possible that your router is switched on and the HDD becomes available hours later. You can leave pre-mount empty to prevent this, but your file system will have to be checked from time to time. Your decision. I have this activated.
    post-mount is executed after pre-mount

  6. #6

    Talking

    DF command


Similar Threads

  1. Инструкция по настройке роутера WL-500gP с нуля
    By OlegI in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 1259
    Last Post: 10-02-2011, 21:25
  2. Ошибка: Cannot create directory `/opt/tmp': Input/output error
    By GOLD in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 12
    Last Post: 31-01-2009, 17:55
  3. Firmware v1.9.2.7 CR7 now 7g [Oleg]
    By Oleg in forum WL-500g Firmware Releases
    Replies: 270
    Last Post: 23-10-2007, 21:00
  4. Fehlermeldung "mkdir: Cannot create directory `/opt/etc': Read-only file system
    By WLAN-Fan in forum German Discussion - Deutsch (DE)
    Replies: 3
    Last Post: 14-09-2007, 07:44
  5. Error installing IPKG
    By Cyb in forum WL-500g Q&A
    Replies: 2
    Last Post: 09-02-2007, 09:18

Posting Permissions

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