Page 1 of 16 12311 ... LastLast
Results 1 to 15 of 235

Thread: Работа роутера с USB флэшками

  1. #1

    Post Работа роутера с USB флэшками

    Почитал темы по начальной инсталяции Wl500, но что-то вероятно туплю.
    Купил USB флэшку на 520 метров.
    Соответственно нужно выделить на ней своп и отформатровать в ext2.
    И хоть какой MC поставить...

    С FDisk'ом разобраться не удалось. Нужно вероятно удалить раздел, создать 2 раздела и отформатировать, но флэшка, судя по всему, остается в FAT16
    Ничего не получается...
    Можно по кнопкам расписать работу с FDisk и форматированием?

    Второе...
    Насколько я понял, ipkg должен сам качать пакеты из сети и инсталировать.
    Мне удалось проинсталировать какой-то Web сервер.
    Но
    ipcg install mc говорит что такого пакета нет.

    Nothing to be done
    An error ocurred, return value: 4.
    Collected errors:
    Cannot find package mc.
    Check the spelling or perhaps run 'ipkg update'

  2. #2
    Join Date
    May 2006
    Location
    Москва
    Posts
    355
    У меня тоже есть роутер!

  3. #3
    Quote Originally Posted by imdex View Post
    Не выходит...

    [JAW@(none) root]$ ipkg.sh install ipkg-opt
    mkdir: Cannot create directory `//opt/tmp/': Read-only file system
    [JAW@(none) root]$

    Ладно, с этим я может и разберусь

  4. #4
    Quote Originally Posted by AJAN View Post
    Не выходит...

    [JAW@(none) root]$ ipkg.sh install ipkg-opt
    mkdir: Cannot create directory `//opt/tmp/': Read-only file system
    [JAW@(none) root]$

    Ладно, с этим я может и разберусь
    Нет. Поборол ReadOnly

    Но все равно... ipkg-opt не доступен, mc не доступен.

    [JAW@(none) root]$ ipkg.sh install ipkg-opt
    ipkg_get_install: ERROR: Cannot find package ipkg-opt in /opt/lib/ipkg/lists
    ipkg_get_install: Check the spelling and maybe run `ipkg update'.
    [JAW@(none) root]$ ipkg install mc
    Nothing to be done
    An error ocurred, return value: 4.
    Collected errors:
    Cannot find package mc.
    Check the spelling or perhaps run 'ipkg update'

    Таки все таки вопрос с ext2 и свопом на флэшке...
    Это пока важнее.

  5. #5
    надо сменит репозиторий
    в файле /opt/etc/ipkg.conf
    на это кажется
    Code:
    http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/
    тогда появится и ipkg-opt, и mc

  6. #6
    Репозиторий сменил (сам дошел до этого).
    Однако MC не встал...

    В opt/bin лежит mc, но не запускается.

    [JAW@(none) bin]$ ls
    bzip2 mc slsh
    ....
    [JAW@(none) bin]$ mc
    -sh: mc: not found


    Таки, давайте с начала...
    Есть флэшка, мне ее нужно разбить на 2 раздела (своп и рабочий) и установить MC для начала...

  7. #7
    после смены репозитория

    ipkg update
    ipkg install -force-reinstall uclibc
    делал?

    о! может быть директорию /tmp/harddisk/opt не сделал и не примантировал её как /opt?

  8. #8
    Да маплю я opt

    Мне очень не нравится, что при инсталяции mc я получаю постоянную ошибку Read Only

    В общем ощущение, что изначально что-то сделал принципиально неверно.

    Code:
    [JAW@(none) root]$ ipkg install -force-reinstall mc
    Reinstalling mc (4.6.1-2) on root...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//mc_4.6.
    1-2_mipsel.ipk
    ipkg: //opt/lib/ipkg/info/mc.control: Read-only file system
    ipkg: /opt/man/man1/mcedit.1: Read-only file system
    ipkg: /opt/man/man1/mcview.1: Read-only file system
    ipkg: /opt/man/man1/mc.1: Read-only file system
    ipkg: /opt/bin/mc: Read-only file system
    ipkg: /opt/bin/mcmfmt: Read-only file system
    ipkg: Cannot create symlink from ./opt/bin/mcview to 'mc': Read-only file system
    ipkg: Cannot create symlink from ./opt/bin/mcedit to 'mc': Read-only file system
    ipkg: /opt/share/mc/mc.hint.pl: Read-only file system
    ipkg: /opt/share/mc/mc.hint.cs: Read-only file system
    ipkg: /opt/share/mc/mc.hint.uk: Read-only file system
    ipkg: /opt/share/mc/bin/mc.csh: Read-only file system
    ipkg: /opt/share/mc/bin/mc-wrapper.sh: Read-only file system
    ipkg: /opt/share/mc/bin/mc.sh: Read-only file system
    ipkg: /opt/share/mc/bin/mc-wrapper.csh: Read-only file system
    ipkg: /opt/share/mc/mc.hint.it: Read-only file system
    ipkg: /opt/share/mc/extfs/trpm: Read-only file system
    ipkg: /opt/share/mc/extfs/dpkg: Read-only file system
    ipkg: /opt/share/mc/extfs/deba: Read-only file system
    ipkg: /opt/share/mc/extfs/README: Read-only file system
    ipkg: /opt/share/mc/extfs/sfs.ini: Read-only file system
    ipkg: /opt/share/mc/extfs/extfs.ini: Read-only file system
    ipkg: /opt/share/mc/extfs/uha: Read-only file system
    ipkg: /opt/share/mc/extfs/uzip: Read-only file system
    ipkg: /opt/share/mc/extfs/mailfs: Read-only file system
    ipkg: /opt/share/mc/extfs/bpp: Read-only file system
    ipkg: /opt/share/mc/extfs/patchfs: Read-only file system
    ipkg: /opt/share/mc/extfs/a: Read-only file system
    ipkg: /opt/share/mc/extfs/hp48: Read-only file system
    ipkg: /opt/share/mc/extfs/uzoo: Read-only file system
    ipkg: /opt/share/mc/extfs/lslR: Read-only file system
    ipkg: /opt/share/mc/extfs/debd: Read-only file system
    ipkg: /opt/share/mc/extfs/deb: Read-only file system
    ipkg: /opt/share/mc/extfs/urar: Read-only file system
    ipkg: /opt/share/mc/extfs/rpms: Read-only file system
    ipkg: /opt/share/mc/extfs/rpm: Read-only file system
    ipkg: /opt/share/mc/extfs/audio: Read-only file system
    ipkg: /opt/share/mc/extfs/apt: Read-only file system
    ipkg: /opt/share/mc/extfs/uarj: Read-only file system
    ipkg: /opt/share/mc/extfs/ulha: Read-only file system
    ipkg: /opt/share/mc/extfs/iso9660: Read-only file system
    ipkg: /opt/share/mc/extfs/uar: Read-only file system
    ipkg: /opt/share/mc/mc.hint.nl: Read-only file system
    ipkg: /opt/share/mc/mc.hint.ru: Read-only file system
    ipkg: /opt/share/mc/mc.lib: Read-only file system
    ipkg: /opt/share/mc/syntax/slang.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/smalltalk.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/sql.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/nroff.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/html.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/changelog.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/php.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/lua.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/ml.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/dos.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/java.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/fortran.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/texinfo.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/eiffel.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/cs.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/makefile.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/pascal.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/diff.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/syntax.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/latex.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/tcl.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/ruby.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/aspx.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/lsm.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/python.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/m4.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/sh.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/Syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/perl.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/swig.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/ada95.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/mail.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/unknown.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/xml.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/js.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/c.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/idl.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/octave.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/spec.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/lisp.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/po.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/assembler.syntax: Read-only file system
    ipkg: /opt/share/mc/syntax/povray.syntax: Read-only file system
    ipkg: /opt/share/mc/mc.hint.es: Read-only file system
    ipkg: /opt/share/mc/mc.ext: Read-only file system
    ipkg: /opt/share/mc/edit.indent.rc: Read-only file system
    ipkg: /opt/share/mc/mc.hint.zh: Read-only file system
    ipkg: /opt/share/mc/mc.charsets: Read-only file system
    ipkg: /opt/share/mc/mc.menu.sr: Read-only file system
    ipkg: /opt/share/mc/cedit.menu: Read-only file system
    ipkg: /opt/share/mc/mc.hint.sr: Read-only file system
    ipkg: /opt/share/mc/mc.hint.hu: Read-only file system
    ipkg: /opt/share/mc/edit.spell.rc: Read-only file system
    ipkg: /opt/share/mc/mc.hint: Read-only file system
    ipkg: /opt/share/mc/mc.menu: Read-only file system
    ipkg: /opt/lib/mc/cons.saver: Read-only file system
    Configuring mc
    ipkg_conf_write_status_files: Can't open status file: //opt/lib/ipkg/status for
    writing: Read-only file system
    pkg_write_filelist pkg=mc returned 30
    pkg_write_filelist pkg=slang returned 30
    Successfully terminated.
    Collected errors:
    Could not open //opt/lib/ipkg/info/mc.list for writing: Read-only file system
    Could not open //opt/lib/ipkg/info/mc.list for writing: Read-only file system
    Could not open //opt/lib/ipkg/info/slang.list for writing: Read-only file system
    [JAW@(none) root]$

  9. #9
    У тебя в /usr/local/sbin/post-mount
    прописано mount -o bind /tmp/harddisk/opt /opt ????

  10. #10
    Join Date
    May 2006
    Location
    Москва
    Posts
    355
    less /proc/mounts что выдает?
    У меня тоже есть роутер!

  11. #11
    Quote Originally Posted by KoR View Post
    У тебя в /usr/local/sbin/post-mount
    прописано mount -o bind /tmp/harddisk/opt /opt ????
    Нет. Мне этого не сделать без MC
    Монтирую руками после перезагрузки.

    imdex
    Да ничего...
    -sh: less: not found

    Однако:

    [JAW@(none) root]$ cd /opt
    [JAW@(none) /opt]$ ls
    bin etc info man share var
    doc include lib sbin tmp
    [JAW@(none) /opt]$ cd bin
    [JAW@(none) bin]$ ls
    bzip2 mc slsh
    bzip2recover mcmfmt update-alternatives
    chattr openssl uuidgen
    glib-genmarshal pcre-config xml2-config
    glib-gettextize pcregrep xmlcatalog
    glib-mkenums pcretest xmllint
    gobject-query php xslt-config
    ipkg php-config xsltproc
    lsattr phpize


    т.е. /opt смонтирован.
    /opt/bin
    имеется mc


    P.S. Я вообще то тему понимаю с очень большим трудом.
    Помогает знание более ранних и более поздних систем (RT11, RSX, MsDOS), т.е. консоль для меня нормальное явление, а вот Юникса я практически не знаю.

    Еще раз... Как мне нормально отформатировать эту уродскую флэшку?
    Поясню... Я не хочу чтобы у меня рутер шумел, поэтому поставил именно флэшку, винт, это позже... И, вероятно, вторым устройством.
    Сейчас я пытаюсь построить комплекс рутер - флэшка.
    На флэшку надеюсь поставить все необходимое для диагностики и настройки сети. И мне нужна статистика (сейчас в тестовом режиме, думаю поставить такой рутер на работу)

  12. #12
    Причем MC установился.
    То, что он пишет Read-Only файлы существуют.
    Он просто тупо отказывается запускаться.
    Да, я захожу через тупой виндовый telnet
    Может опции ему какие-то установить?

  13. #13
    Попробовал установить less

    Опять Read-Only file system

  14. #14
    Дело в том что я сам мучал флешку, что-то кривовато она у меня стала, постоянные проблемы были. То не примонтируется, или не читает.
    Я поставил хард, вот уже месяц всё фунциклирует 24\7
    И роутер так же, ещё не разу ни повисал и вообще проблем не возникало.
    Флешка была Трансценд на гигабайт

  15. #15
    Join Date
    May 2006
    Location
    Москва
    Posts
    355
    Quote Originally Posted by AJAN View Post
    Попробовал установить less

    Опять Read-Only file system
    А , точно, less же отдельно тут. Тогда cat /proc/mounts
    У меня тоже есть роутер!

Page 1 of 16 12311 ... LastLast

Similar Threads

  1. how to: Работа с пакетами ipk
    By angel_il in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 6
    Last Post: 23-09-2010, 10:01
  2. Нестабильная работа WL500gp
    By Migele in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 10
    Last Post: 14-07-2007, 13:15

Tags for this Thread

Posting Permissions

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