找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2872|回复: 3

[已解决,附方法]求一份openwrt原版ar71xx平台15.05-rc2的opkg.conf

[复制链接]
本帖最后由 7o599 于 2015-7-5 03:31 编辑

求一份openwrt原版ar71xx平台15.05-rc2的opkg.conf!

折腾的时候误删了。。。



恢复误删的系统文件的方法:
需求:
  • 已安装的是squashfs版固件
  • block-mount组件

  • 运行cat /proc/mtd查看rootfs位置,下面是我的(位于7)。
    1. # cat /proc/mtd
    2. dev:    size   erasesize  name
    3. mtd0: 01000000 00010000 "spi0.0"
    4. mtd1: 01000000 00010000 "spi0.1"
    5. mtd2: 00040000 00010000 "u-boot"
    6. mtd3: 00010000 00010000 "u-boot-env"
    7. mtd4: 00010000 00010000 "art"
    8. mtd5: 01f90000 00010000 "firmware"
    9. mtd6: 001231cf 00010000 "kernel"
    10. mtd7: 01e6ce31 00010000 "rootfs"
    11. mtd8: 01c90000 00010000 "rootfs_data"
    12. mtd9: 00010000 00010000 "user_property"
    复制代码

  • 新建一个挂载点文件夹,比如
    1. #mkdir /mnt/test
    复制代码

  • 挂载rootfs
    1. #mount /dev/mtdblock7 /mnt/test
    复制代码


然后就可以从/mnt/test中找到原版文件了。
 楼主| | 显示全部楼层
自己解决了,解决方法以追加到顶楼。
回复

使用道具 举报

Mount Points
  • / this is your entire root filesystem, it comprises /rom and /overlay. Please ignore /rom and /overlay and use exclusively / for your daily routines!
  • /rom contains all the basic files, like busybox, dropbear or iptables. It also includes default configuration files used when booting into OpenWrt Failsafe mode. It does not contain the Linux kernel. All files in this directory are located on the SqashFS partition, and thus cannot be altered or deleted. But, because we use overlay_fs filesystem, so called overlay-whiteout-symlinks can be created on the JFFS2 partition.
  • /overlay is the writable part of the file system that gets merged with /rom to create a uniform /-tree. It contains anything that was written to the router after installation, e.g. changed configuration files, additional packages installed with opkg, etc. It is formated with JFFS2.



回复

使用道具 举报

哪那么麻烦,直接去/rom目录找不就行了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-14 22:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表