由买买提看人间百态

topics

全部话题 - 话题: rootfs
1 2 3 下页 末页 (共3页)
w*s
发帖数: 7227
1
hi everyone, i have a rootfs, but the size is 1GB.
How should i shrink it ?
i tried to load it 1st, then from this UML, built another rootfs from this
UML,
then copy out.
But when i load the new UML, it crashed.
w*s
发帖数: 7227
2
we're working on ubuntu platform,
so still want to build a same type of rootfs for embedded board.
to save space, we need rootfs small.
but need that apt-get in case we need to install stuff.
any hints ?
e*i
发帖数: 10288
3
first mount: mount the NAS disk
second mount: mount the file from the NAS --this file has
ext2 file system inside. OPT/asterisk is in the file.
root@DD-WRT:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 6400 6400 0 100% /
/dev/root 6400 6400 0 100% /
/dev/mtdblock/4 704 396 308 57% /jffs
//192.168.7.4/vms 77200324 44285804 32914520 58% /tmp/smbshare
/dev/loop/0 ... 阅读全帖
a*o
发帖数: 19981
4
你装的是那个版本?可以boot到internel flash上然后转移rootfs到nas mount?
native rom有cifs支持吗?
a9
发帖数: 21638
5
再mount到nas上,这个pogo存在就没啥意义了。
你可以用overlayfs,把rootfs mount成只读的。然后在把tmpfs弄到上面。
注意tmpfs的使用量就行了。
e*i
发帖数: 10288
6
DD-WRT v24-sp2 (08/07/10) mega - build 14896
I just load /opt to nas mount, rootfs is still
in the internal flash.
native rom doesn't support cifs, so activated jffs
and put cifs / ext2 support in jffs.
t*********u
发帖数: 26311
7
来自主题: Hardware版 - 怎么看rootfs是不是64M?
【 以下文字转载自 PDA 讨论区 】
发信人: tingtingliu (Grand Cherokee Overland), 信区: PDA
标 题: 怎么看rootfs是不是64M?
发信站: BBS 未名空间站 (Sat Nov 19 13:08:40 2016, 美东)
c******n
发帖数: 16666
8
来自主题: Hardware版 - 怎么看rootfs是不是64M?
感觉都不是
cat /proc/mounts看看能找到rootfs不
m*d
发帖数: 7658
9
来自主题: Hardware版 - 找不到rootfs怎么修复?
[ 12.450257] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(
0,0): error -6
[ 12.458227] Please append a correct "root=" boot option; here are the
available partitions:
[ 12.466626] 1f00 14336 mtdblock0 (driver?)
[ 12.471726] 1f01 116736 mtdblock1 (driver?)
[ 12.476759] 0800 976762584 sda driver: sd
[ 12.481420] 0801 9767488 sda1 e8900690-01
[ 12.486279] 0802 498015 sda2 e8900690-02
[ 12.491159] 0803 966494497... 阅读全帖
b**r
发帖数: 352
10
It really depends on your arch.
For ARM, debian's armel is a really good choice.
My rootfs is around 300MB, which has most of those usual stuff: openssl,
perl, php, c toolchain, lighttpd and ffmpeg.you probably can get it under
200MB if you don't need ffmpeg.
ubuntu has arm support too, but is targeting newer processor(ARMv7 and above
), while debian supports armv5.
https://wiki.ubuntu.com/ARM
w*s
发帖数: 7227
11
actually this is uml for i386,
just won't load that rootfs based on the instruction, :(

above
w*s
发帖数: 7227
12
can it make rootfs < 100MB ?
S*A
发帖数: 7142
13
首先这是同一个 flash device 被按区划分成几个小块。
就像 sda 包含 sda1 sda2 ... 一样
dmesg:
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on "Physically mapped flash":
0x000000000000-0x000000040000 : "cfe"
0x000000040000-0x0000007e0000 : "linux"
0x00000011a800-0x0000007e0000 : "rootfs"
0x000000300000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "nvram"
这个是每个 mtd 的大小。注意 nvram 永远在最后而且大小是 128K.
rootfs data 有 5M.
root@OpenWrt:~# cat /proc/partitions
major minor #bl... 阅读全帖
V6
发帖数: 5
14
文档里说,initrd/initramfs的目的是在真正的rootfs没有mount之前,kernel从这个
小型的文件系统里面加载必要的驱动程序,这样方便kernel mount真正的rootfs,继续
引导。那么问题来了:比方说我的台式机,grub的参数里面说明了initramfs的image在
/boot下,而/boot目录本身就被我放在了rootfs里面,没有单独分区,这样说来想要读
取initramfs本身的前提条件就是要mount rootfs,那从我的例子来说,岂不是
initramfs是多次一举?而且,甚至连kernel image vmlinuz本身也都是在rootfs里面
的,这不是说明其实grub自己本身已经知道了该如何mount/read rootfs?
c********l
发帖数: 8138
15
对了,
我觉得这个mount语句的用法比较奇怪
一般都是类似
mount -t ubifs /dev/sda1 /media/disk
也就是说,我所熟悉的用法是/dev/设备名
然而,对于
mount -t ubifs -o ro ubi0:rootfs /media/disk
这里需要被mount的device是
“ubi0:rootfs”
不但不带/dev前缀,而且还多了一个":rootfs"
1.这个dev前缀在哪儿?是不是默认当前目录在/dev下?
2."ubi0:rootfs"中的冒号和“rootfs”起什么作用?
E*V
发帖数: 17544
16
☆─────────────────────────────────────☆
nickmit (上海老姜) 于 (Wed Oct 27 01:52:51 2010, 美东) 提到:
先建个临时目录
# mkdir -p /tmp/ubuntu/maverick
没有 debootstrap 的先安装一下
# apt-get install debootstrap
然后构建基本系统,这里就用 10.10 吧,你也可以换 lucid
# debootstrap maverick /tmp/ubuntu/rootfs
基本设置一下
# chroot /tmp/ubuntu/rootfs
# mount -t proc none /proc
# mount -t devtmpfs none /dev
# mount -t devpts none /dev/pts
# mount -t sysfs none /sys
俺喜欢给 root 加个密码,sudo... 阅读全帖
r****t
发帖数: 10904
17
来自主题: _voip版 - 刷 dockstar 问题
在 /usr/bin/ 下面就有,贴在这儿,似乎 arcNumber 不对?Dockstar arcNumber应该
是多少?另,这个 hostname 名字叫 alarm 是正常的么?
$ fw_printenv
]# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console u... 阅读全帖
i**w
发帖数: 883
18
来自主题: _voip版 - a9,请指点一下openwrt
搞定了,做个笔记
之前用Jeff的script装过Debian Squeeze
1.OpenWrt装到DockStar的USB盘上,这个毫无难度。直接下载uImage和rootfs.tar.gz
。先把rootfs.tar.gz展开到硬盘ext2分区的根目录,uImage文件放到/boot目录下(/
boot/uImage),搞定
http://downloads.openwrt.org/attitude_adjustment/12.09/kirkwood
2.OpenWrt装到DockStar的mtd上,这个折腾了很久。差点把it搞死了——幸好有TTL
cable。
nand的layout不变,single stage bootloader。仍然利用原来Jeff的uboot,不动mtd0
。把keneral写到mtd1,rootfs写到mtd2。写mtd1和mtd2的步骤见OpenWrt Wiki: http://wiki.openwrt.org/toh/seagate/dockstar
写keneral到mtd1:
---------------------------------... 阅读全帖
c********l
发帖数: 8138
19
kernel和rootfs是什么关系?谁更核心?
uboot是属于rootfs还是kernel?uboot在哪里?
另:这个ramdisk的image文件
http://pogoplug.com/downloads/ce_ramdisk_v1.1.img
究竟是rootfs还是kernel?
s***g
发帖数: 495
20
来自主题: Hardware版 - pogoplug可靠性如何?
My script to backup your rootfs.
I use it to backup my rootfs on a 2G USB stick and transfer my rootfs to a
NSA320 from POGO E02.
(%3)(21:40)(punk)~> sudo cat /root/bin/dumpdisk
#!/bin/sh
if [ $# -ne 1 -a $# -ne 2 ] || [ ! -b $1 ]; then
echo "`basename $0` [hostname]"
else
_T=ext3
umount ${1}1
echo "`basename $0` on `date '+%Y_%m_%d'` to $1 $2" >> /root/bin/log
&& \
dd if=/dev/zero of=$1 bs=1M count=1 && \
sync && sync ... 阅读全帖
t*********u
发帖数: 26311
21
来自主题: Hardware版 - 刷tm-ac1900的注意事项
【 以下文字转载自 PDA 讨论区 】
发信人: tingtingliu (Grand Cherokee Overland), 信区: PDA
标 题: 刷tm-ac1900的注意事项
发信站: BBS 未名空间站 (Sat Nov 19 21:48:28 2016, 美东)
不用专门刷那个3676的版本去扩rootfs
sd上 engineer提供的连接的 cfe 1.0.2已经含有扩rootfs的部分
亲测, 看rootfs的容量: telnet进去后 cat /proc/mtd
l****n
发帖数: 3081
22
其实装了ubit的uboot后可以用linux系统的PC分区格式化硬盘,并且把Plugbox(arch
linux)装在硬盘上然后插上神座直接启动,同理装上debian也就直接启动到debian。
http://plugapps.com/forum/viewtopic.php?f=18&t=494&start=60
Plugbox的话执行uboot_uptodate后你就装好ubit的uboot了。然后就是准备sata硬盘了
,分区格式化,第一个分区最好是小于32G的ext3,分区必须命名成(rootfs)
然后
1.下载
http://plugboxlinux.org/os/2011.02/PlugApps-Linux-2011.02-rootf
解压
tar -xzvf PlugApps-Linux-2011.02-rootfs.tar.gz
2。下载
http://jeff.doozan.com/debian/goflex/v0.6/v2.6.37/boot.tar.gz
解压
tar -C ./boot -xvzf boot.tar.gz
3。下载
http://jeff.... 阅读全帖
d********g
发帖数: 10550
23
来自主题: PhotoGear版 - HP N40L折腾指南
正常,下载的软件包没有删吧
# pacman -Scc
下面的空间还是加了swap的,系统可以控制在1GB内。当然2GB是稍微有点小
$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 3.7G 1.4G 2.2G 40% /
/dev/root ext3 3.7G 1.4G 2.2G 40% /
devtmpfs devtmpfs 61M 0 61M 0% /dev
/run tmpfs 10M 112K 9.9M 2% /run
shm tmpfs 61M 0 61M 0% /dev/shm
tmpfs tmpfs 61M 68K 61M 1% /tmp
x*z
发帖数: 1010
24
来自主题: Hardware版 - pogoplug pro 还真不错
我老的也刚到,正在刷机,靠现在刷机实在是太傻瓜了,一点成就感都没有。
比起10多年前玩儿linux那是一点都莫得比。。。
另外它定制的rootfs也太大了,我老自己整stateless rootfs,rhel 6才70m
不知道这里面一坨一坨的都是啥。。。

核。
ARMv6-compatible processor rev 5 (v6l) Oxsemi NAS GNU/Linux
c********l
发帖数: 8138
25
回去又做了一个实验
发现在
mount -t ubifs -o ro ubi0:rootfs /media/disk

":rootfs"这是可选项,去掉关系也不大
但"ubi0"必须是"ubi0",绝对不能在前面加"/dev/"。
a*****s
发帖数: 2663
26
今天终于决定dump原来的install,重装。先用最新的rootfs不行,搞了半天发现dmesg
.log里面的mac地址不是/usr/local/mac_addr指定的,把那个错误的mac address
google一番,果然发现别人也有同样的问题,solution是用旧的rootfs包恢复,然后再
升级。哎又是一番折腾,好在root又回来了,不然什么改动也做不了跟砖也差不多了。
h******e
发帖数: 730
27
netconsole 显示如下,我移动硬盘用fdisk分了三个区,第一个linux, 设为boot, 第
二个linux swap, 第三个也是linux。
1. 其中“1 Storage Device(s) found”是说哪个盘?
2. Loading file "/boot/uImage" from usb device 0:1 (usbda1)
** File not found /boot/uImage
是啥意思?没在我硬盘里找到可以启动的/uImage?
但是我u盘 /boot 里确实有启动文件啊:
System.map-2.6.32-5-kirkwood initrd.img-2.6.32-5-kirkwood
config-2.6.32-5-kirkwood vmlinuz-2.6.32-5-kirkwood
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (S... 阅读全帖
h****g
发帖数: 772
28
来自主题: Hardware版 - pogoplug e02 起不来了
usb上的debian和原生系统开始的时候都说
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
原生系统能启动,但是usb盘都看不见
google 了一番,没看懂
有人遇到过吗?
x*z
发帖数: 1010
29
来自主题: Linux版 - 欠扁看进来
它跑哪个distro其实问题不大,kernel/module都有的话就是个自己build rootfs
的问题,现在的问题是负责build kernel的那位仁兄没有把该有的重要的kernel
module搞齐,或者是有什么我不知道的uboot limit导致kernel塞不进去。这样
有rootfs也没啥大用,毕竟linux上kernel是最重要的一环。
N**********d
发帖数: 9292
30
那比如说
这样的mount结果是这样
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=969764k,nr_inodes=242441,
mode=755)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/tmp on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
shmfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,... 阅读全帖
E*******r
发帖数: 2710
31
最近接手了一个Amazon EC2 instance 外加一个8G的Volume
这个filesystem看起来很奇怪
$ df -ah
Filesystem Size Used Avail Use% Mounted on
rootfs 7.8G 1.4G 6.4G 17% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devtmpfs 3.7G 60K 3.7G 1% /dev
devpts 0 0 0 - /dev/pts
tmpfs 3.6G 0 3.6G 0% /dev/shm
/dev/xvda1 7.8G 1.4G 6.4G 17% /
none 0 0 0 - /proc/sys/fs/binfmt_misc
两个filesystem: r... 阅读全帖
1 2 3 下页 末页 (共3页)