Last active
August 29, 2015 14:23
-
-
Save arneboon/0f1230180d23dcad0b78 to your computer and use it in GitHub Desktop.
attempt openwrt extroot pivot overlay: Read-only file system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@wifibox:~# dmesg | grep EXT4-fs | |
[ 8.890000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: | |
[ 9.470000] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: | |
[ 30.490000] EXT4-fs error (device sda1): __ext4_journal_start_sb:62: Detected aborted journal | |
[ 30.500000] EXT4-fs (sda1): Remounting filesystem read-only | |
[ 31.110000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 32.100000] EXT4-fs (sdb3): recovery complete | |
[ 32.100000] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: | |
[ 38.020000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm uhttpd: reading directory lblock 0 | |
[ 38.030000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm uhttpd: reading directory lblock 0 | |
[ 70.690000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm dropbear: reading directory lblock 0 | |
[ 70.860000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #12: comm ash: reading directory lblock 0 | |
[ 83.960000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 83.970000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm ls: reading directory lblock 0 | |
[ 157.320000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 162.270000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 163.750000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 199.150000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 207.780000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm touch: reading directory lblock 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GParted 0.18.0 --enable-libparted-dmraid --enable-online-resize | |
Libparted 2.3 | |
Check and repair file system (ext4) on /dev/sdb1 00:00:00 ( SUCCESS ) | |
calibrate /dev/sdb1 00:00:00 ( SUCCESS ) | |
path: /dev/sdb1 | |
start: 2048 | |
end: 2099199 | |
size: 2097152 (1.00 GiB) | |
check file system on /dev/sdb1 for errors and (if possible) fix them 00:00:00 ( SUCCESS ) | |
e2fsck -f -y -v -C 0 /dev/sdb1 | |
Pass 1: Checking inodes, blocks, and sizes | |
Pass 2: Checking directory structure | |
Pass 3: Checking directory connectivity | |
Pass 4: Checking reference counts | |
Pass 5: Checking group summary information | |
11 inodes used (0.02%, out of 65536) | |
0 non-contiguous files (0.0%) | |
0 non-contiguous directories (0.0%) | |
# of inodes with ind/dind/tind blocks: 0/0/0 | |
Extent depth histogram: 3 | |
12635 blocks used (4.82%, out of 262144) | |
0 bad blocks | |
1 large file | |
0 regular files | |
2 directories | |
0 character device files | |
0 block device files | |
0 fifos | |
0 links | |
0 symbolic links (0 fast symbolic links) | |
0 sockets | |
------------ | |
2 files | |
e2fsck 1.42.9 (4-Feb-2014) | |
grow file system to fill the partition 00:00:00 ( SUCCESS ) | |
resize2fs -p /dev/sdb1 | |
resize2fs 1.42.9 (4-Feb-2014) | |
The filesystem is already 262144 blocks long. Nothing to do! | |
======================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@wifibox:~# df -h | |
Filesystem Size Used Available Use% Mounted on | |
rootfs 3.8G 8.1M 3.6G 0% / | |
/dev/root 2.5M 2.5M 0 100% /rom | |
tmpfs 14.4M 68.0K 14.3M 0% /tmp | |
overlayfs:/overlay 3.8G 8.1M 3.6G 0% / | |
tmpfs 512.0K 0 512.0K 0% /dev | |
/dev/mtdblock3 576.0K 220.0K 356.0K 38% /overlay-boot | |
root@wifibox:/# ls -lh | |
drwxr-xr-x 2 root root 698 Jun 23 15:30 bin | |
drwxr-xr-x 5 root root 900 Jun 23 16:32 dev | |
drwxr-xr-x 1 root root 4.0K Jan 1 1970 etc | |
drwxr-xr-x 11 root root 691 Jun 23 15:29 lib | |
drwxr-xr-x 2 root root 3 Jun 23 15:29 mnt | |
drwxr-xr-x 2 root root 3 Jun 23 15:29 overlay | |
dr-xr-xr-x 51 root root 0 Jan 1 1970 proc | |
drwxr-xr-x 16 root root 223 Jun 23 15:31 rom | |
drwxr-xr-x 2 root root 31 Jun 23 15:30 root | |
drwxr-xr-x 2 root root 733 Jun 23 15:30 sbin | |
dr-xr-xr-x 11 root root 0 Jan 1 1970 sys | |
drwxrwxrwt 11 root root 320 Jun 23 16:32 tmp | |
drwxr-xr-x 7 root root 89 Jun 23 15:30 usr | |
lrwxrwxrwx 1 root root 4 Jun 23 15:30 var -> /tmp | |
drwxr-xr-x 8 root root 310 Jun 23 15:30 www | |
root@wifibox:~# block info | |
/dev/mtdblock2: UUID="05d53e3d-4a1229bd-7cc81815-55447ca5" VERSION="4.0" TYPE="squashfs" | |
/dev/mtdblock3: TYPE="jffs2" | |
/dev/sdb1: UUID="dfde57be-3914-4b69-af8b-3d1769021b9a" LABEL="extroot" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4" | |
/dev/sdb2: UUID="351e6763-0cc7-4e8f-bf5d-28222e7bcbc0" LABEL="swap" VERSION="2" TYPE="swap" | |
/dev/sdb3: UUID="439f2d43-45b6-4966-ac67-3cf5d54cdce5" LABEL="data" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4" | |
root@wifibox:/# mount | |
rootfs on / type rootfs (rw) | |
/dev/root on /rom type squashfs (ro,relatime) | |
proc on /proc type proc (rw,noatime) | |
sysfs on /sys type sysfs (rw,noatime) | |
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) | |
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay) | |
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755) | |
devpts on /dev/pts type devpts (rw,relatime,mode=600) | |
debugfs on /sys/kernel/debug type debugfs (rw,noatime) | |
/dev/mtdblock3 on /overlay-boot type jffs2 (rw,sync,relatime) | |
root@wifibox:~# block detect | |
config 'global' | |
option anon_swap '0' | |
option anon_mount '0' | |
option auto_swap '1' | |
option auto_mount '1' | |
option delay_root '5' | |
option check_fs '0' | |
config 'mount' | |
option target '/mnt/sdb1' | |
option uuid 'dfde57be-3914-4b69-af8b-3d1769021b9a' | |
option enabled '0' | |
config 'swap' | |
option uuid '351e6763-0cc7-4e8f-bf5d-28222e7bcbc0' | |
option enabled '0' | |
config 'mount' | |
option target '/mnt/sdb3' | |
option uuid '439f2d43-45b6-4966-ac67-3cf5d54cdce5' | |
option enabled '0' | |
root@wifibox:~# cat /etc/config/fstab | |
config 'global' | |
option anon_swap '0' | |
option anon_mount '0' | |
option auto_swap '1' | |
option auto_mount '1' | |
option delay_root '5' | |
option check_fs '0' | |
config 'mount' | |
option target '/overlay' | |
option uuid 'ee21b399-4ff2-4db4-9636-9a55e3f4b7b3' | |
option enabled '1' | |
option fstype 'ext4' | |
option options 'rw,sync' | |
config 'swap' | |
option uuid 'ac865259-9df5-4a30-8509-2c40a1f65b7e' | |
option enabled '1' | |
config 'mount' | |
option target '/data-usb' | |
option uuid '4c9ae1f2-3d50-411f-a6d2-5f7c0e85d0e1' | |
option enabled '1' | |
option fstype 'ext4' | |
option options 'rw,sync' | |
config 'mount' | |
option target '/overlay-boot' | |
option device '/dev/mtdblock3' | |
option fstype 'jffs2' | |
option options 'rw,sync' | |
option enabled '1' | |
option enabled_fsck '0' | |
root@wifibox:~# pwd | |
/root | |
root@wifibox:~# touch index.js | |
touch: index.js: Read-only file system | |
root@wifibox:/tmp# ls | |
TZ etc log run wifibox.log | |
dhcp.leases hosts resolv.conf state | |
dnsmasq.d lock resolv.conf.auto sysinfo | |
root@wifibox:/tmp# touch index.js | |
root@wifibox:/tmp# ls | |
TZ etc lock resolv.conf.auto sysinfo | |
dhcp.leases hosts log run wifibox.log | |
dnsmasq.d index.js resolv.conf state | |
root@wifibox:/# dmesg | |
[ 0.000000] Linux version 3.10.49 (openwrt@1aadeb0b2272) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r45620) ) #6 Tue Jun 23 15:31:31 UTC 2015 | |
[ 0.000000] MyLoader: sysp=444ba8b5, boardp=5fbcaeef, parts=ebc66edc | |
[ 0.000000] bootconsole [early0] enabled | |
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) | |
[ 0.000000] SoC: Atheros AR9330 rev 1 | |
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz | |
[ 0.000000] Determined physical RAM map: | |
[ 0.000000] memory: 02000000 @ 00000000 (usable) | |
[ 0.000000] Initrd not found or empty - disabling initrd | |
[ 0.000000] Zone ranges: | |
[ 0.000000] Normal [mem 0x00000000-0x01ffffff] | |
[ 0.000000] Movable zone start for each node | |
[ 0.000000] Early memory node ranges | |
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff] | |
[ 0.000000] On node 0 totalpages: 8192 | |
[ 0.000000] free_area_init_node: node 0, pgdat 802b05b0, node_mem_map 81000000 | |
[ 0.000000] Normal zone: 64 pages used for memmap | |
[ 0.000000] Normal zone: 0 pages reserved | |
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0 | |
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. | |
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes | |
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 | |
[ 0.000000] pcpu-alloc: [0] 0 | |
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 | |
[ 0.000000] Kernel command line: board=TL-MR3020 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd | |
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) | |
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) | |
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) | |
[ 0.000000] Writing ErrCtl register=00000000 | |
[ 0.000000] Readback ErrCtl register=00000000 | |
[ 0.000000] Memory: 29168k/32768k available (2105k kernel code, 3600k reserved, 351k data, 228k init, 0k highmem) | |
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 | |
[ 0.000000] NR_IRQS:51 | |
[ 0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) | |
[ 0.080000] pid_max: default: 32768 minimum: 301 | |
[ 0.080000] Mount-cache hash table entries: 512 | |
[ 0.090000] NET: Registered protocol family 16 | |
[ 0.100000] MIPS: machine is TP-LINK TL-MR3020 | |
[ 0.350000] bio: create slab <bio-0> at 0 | |
[ 0.360000] Switching to clocksource MIPS | |
[ 0.370000] NET: Registered protocol family 2 | |
[ 0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes) | |
[ 0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) | |
[ 0.370000] TCP: Hash tables configured (established 512 bind 512) | |
[ 0.380000] TCP: reno registered | |
[ 0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes) | |
[ 0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | |
[ 0.400000] NET: Registered protocol family 1 | |
[ 0.400000] PCI: CLS 0 bytes, default 32 | |
[ 0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher | |
[ 0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | |
[ 0.430000] msgmni has been set to 56 | |
[ 0.440000] io scheduler noop registered | |
[ 0.440000] io scheduler deadline registered (default) | |
[ 0.450000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled | |
[ 0.450000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART | |
[ 0.460000] console [ttyATH0] enabled, bootconsole disabled | |
[ 0.470000] ath79-spi ath79-spi: master is unqueued, this is deprecated | |
[ 0.480000] m25p80 spi0.0: found s25sl032p, expected m25p80 | |
[ 0.480000] m25p80 spi0.0: s25sl032p (4096 Kbytes) | |
[ 0.490000] 5 tp-link partitions found on MTD device spi0.0 | |
[ 0.490000] Creating 5 MTD partitions on "spi0.0": | |
[ 0.500000] 0x000000000000-0x000000020000 : "u-boot" | |
[ 0.510000] 0x000000020000-0x0000000ff358 : "kernel" | |
[ 0.510000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only | |
[ 0.520000] 0x0000000ff358-0x0000003f0000 : "rootfs" | |
[ 0.530000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only | |
[ 0.540000] mtd: device 2 (rootfs) set to be root filesystem | |
[ 0.550000] 1 squashfs-split partitions found on MTD device rootfs | |
[ 0.550000] 0x000000360000-0x0000003f0000 : "rootfs_data" | |
[ 0.560000] 0x0000003f0000-0x000000400000 : "art" | |
[ 0.570000] 0x000000020000-0x0000003f0000 : "firmware" | |
[ 0.590000] libphy: ag71xx_mdio: probed | |
[ 1.140000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY] | |
[ 1.150000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII | |
[ 1.160000] TCP: cubic registered | |
[ 1.160000] NET: Registered protocol family 17 | |
[ 1.160000] 8021q: 802.1Q VLAN Support v1.8 | |
[ 1.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. | |
[ 1.180000] Freeing unused kernel memory: 228K (802c7000 - 80300000) | |
[ 4.100000] usbcore: registered new interface driver usbfs | |
[ 4.110000] usbcore: registered new interface driver hub | |
[ 4.110000] usbcore: registered new device driver usb | |
[ 4.160000] SCSI subsystem initialized | |
[ 4.170000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver | |
[ 4.180000] ehci-platform: EHCI generic platform driver | |
[ 4.180000] ehci-platform ehci-platform: EHCI Host Controller | |
[ 4.190000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 | |
[ 4.200000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 | |
[ 4.220000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 | |
[ 4.220000] hub 1-0:1.0: USB hub found | |
[ 4.220000] hub 1-0:1.0: 1 port detected | |
[ 4.230000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver | |
[ 4.240000] usbcore: registered new interface driver usb-storage | |
[ 4.610000] usb 1-1: new high-speed USB device number 2 using ehci-platform | |
[ 4.880000] usb-storage 1-1:1.0: USB Mass Storage device detected | |
[ 4.900000] scsi0 : usb-storage 1-1:1.0 | |
[ 5.910000] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4 | |
[ 5.920000] sd 0:0:0:0: [sda] 15131636 512-byte logical blocks: (7.74 GB/7.21 GiB) | |
[ 5.930000] sd 0:0:0:0: [sda] Write Protect is off | |
[ 5.940000] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00 | |
[ 5.940000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA | |
[ 5.950000] sda: sda1 sda2 sda3 | |
[ 5.960000] sd 0:0:0:0: [sda] Attached SCSI removable disk | |
[ 7.150000] eth0: link up (100Mbps/Full duplex) | |
[ 8.840000] jffs2: notice: (353) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 16 of xref (0 dead, 2 orphan) found. | |
[ 8.860000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab | |
[ 8.860000] block: unable to load configuration (fstab: Entry not found) | |
[ 8.870000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab | |
[ 8.920000] EXT4-fs (sda1): recovery complete | |
[ 8.920000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: | |
[ 8.960000] eth0: link down | |
[ 11.030000] usbcore: registered new interface driver cdc_acm | |
[ 11.040000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters | |
[ 11.050000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea | |
[ 11.050000] Backport generated by backports.git backports-20140320-37-g5c33da0 | |
[ 11.070000] nf_conntrack version 0.5.0 (459 buckets, 1836 max) | |
[ 11.090000] usbcore: registered new interface driver usbserial | |
[ 11.100000] usbcore: registered new interface driver usbserial_generic | |
[ 11.100000] usbserial: USB Serial support registered for generic | |
[ 11.130000] xt_time: kernel timezone is -0000 | |
[ 11.170000] cfg80211: Calling CRDA to update world regulatory domain | |
[ 11.170000] cfg80211: World regulatory domain updated: | |
[ 11.180000] cfg80211: DFS Master region: unset | |
[ 11.180000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) | |
[ 11.190000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) | |
[ 11.200000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) | |
[ 11.210000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) | |
[ 11.210000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A) | |
[ 11.220000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) | |
[ 11.230000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) | |
[ 11.240000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) | |
[ 11.250000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) | |
[ 11.260000] usbcore: registered new interface driver ftdi_sio | |
[ 11.260000] usbserial: USB Serial support registered for FTDI USB Serial Device | |
[ 11.280000] ip_tables: (C) 2000-2006 Netfilter Core Team | |
[ 11.400000] ath: EEPROM regdomain: 0x0 | |
[ 11.400000] ath: EEPROM indicates default country code should be used | |
[ 11.400000] ath: doing EEPROM country->regdmn map search | |
[ 11.400000] ath: country maps to regdmn code: 0x3a | |
[ 11.400000] ath: Country alpha2 being used: US | |
[ 11.400000] ath: Regpair used: 0x3a | |
[ 11.410000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' | |
[ 11.420000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2 | |
[ 11.430000] cfg80211: Calling CRDA for country: US | |
[ 11.430000] cfg80211: Regulatory domain changed to country: US | |
[ 11.440000] cfg80211: DFS Master region: FCC | |
[ 11.440000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) | |
[ 11.450000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) | |
[ 11.460000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A) | |
[ 11.470000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s) | |
[ 11.470000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) | |
[ 11.480000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) | |
[ 17.470000] jffs2: notice: (808) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 16 of xref (0 dead, 2 orphan) found. | |
[ 20.490000] device eth0 entered promiscuous mode | |
[ 20.560000] eth0: link up (100Mbps/Full duplex) | |
[ 20.560000] br-lan: port 1(eth0) entered forwarding state | |
[ 20.570000] br-lan: port 1(eth0) entered forwarding state | |
[ 22.570000] br-lan: port 1(eth0) entered forwarding state | |
[ 30.480000] usb 1-1: USB disconnect, device number 2 | |
[ 30.510000] Aborting journal on device sda1-8. | |
[ 30.520000] JBD2: Error -5 detected when updating journal superblock for sda1-8. | |
[ 30.530000] EXT4-fs error (device sda1): __ext4_journal_start_sb:62: Detected aborted journal | |
[ 30.540000] EXT4-fs (sda1): Remounting filesystem read-only | |
[ 30.550000] EXT4-fs (sda1): previous I/O error to superblock detected | |
[ 30.550000] journal commit I/O error | |
[ 31.270000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 31.850000] usb 1-1: new high-speed USB device number 3 using ehci-platform | |
[ 32.020000] usb-storage 1-1:1.0: USB Mass Storage device detected | |
[ 32.020000] scsi1 : usb-storage 1-1:1.0 | |
[ 33.080000] scsi 1:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4 | |
[ 33.100000] sd 1:0:0:0: [sdb] 15131636 512-byte logical blocks: (7.74 GB/7.21 GiB) | |
[ 33.110000] sd 1:0:0:0: [sdb] Write Protect is off | |
[ 33.110000] sd 1:0:0:0: [sdb] Mode Sense: 45 00 00 00 | |
[ 33.110000] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA | |
[ 33.130000] sdb: sdb1 sdb2 sdb3 | |
[ 33.170000] sd 1:0:0:0: [sdb] Attached SCSI removable disk | |
[ 38.040000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm dropbear: reading directory lblock 0 | |
[ 38.200000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #131073: comm ash: reading directory lblock 0 | |
[ 120.060000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 120.070000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm ls: reading directory lblock 0 | |
[ 123.990000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 244.270000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #131073: comm opkg: reading directory lblock 0 | |
[ 295.320000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 297.100000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) | |
[ 304.230000] EXT4-fs error (device sda1): ext4_find_entry:1309: inode #2: comm chmod: reading directory lblock 0 | |
[ 311.270000] EXT4-fs warning (device sda1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== steps to create openwrt extroot pivot overlay === | |
+ prepair usb stick | |
in virtualbox ubunto on osx host: | |
plug in usb device, it mounts in osx (or click initialize if filesystem not recognized) | |
unmount stick in osx finder | |
in virtualbox taskbar: Devices > USB Devices > click your device | |
now mounts in ubuntu | |
run $sudo gparted | |
+ format | |
format usbstick with gparted in linux (sudo gparted) | |
partition 1: 'extroot' ext4 4096MB | |
partition 2: 'swap' linux-swap 2048MB | |
partition 3: 'data' ext4 1024MB | |
+ power on wifibox | |
+ ssh to wifibox | |
+ check status | |
$df -h | |
+ create folders in root | |
$mkdir /overlay-boot | |
$mkdir /data-usb | |
+ plug in usb stick | |
+ mount, tar copy files to stick, unmount | |
$mount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt | |
+ find uuids | |
$block detect > /etc/config/fstab ; vi /etc/config/fstab | |
+ adjust fstab to the following: | |
with vi (i is insert, esc change mode, type :wq to write/save and quit) | |
$cat /etc/config/fstab | |
config 'global' | |
option anon_swap '0' | |
option anon_mount '0' | |
option auto_swap '1' | |
option auto_mount '1' | |
option delay_root '5' | |
option check_fs '0' | |
config 'mount' | |
option target '/overlay' | |
option uuid 'ee21b399-4ff2-4db4-9636-9a55e3f4b7b3' | |
option enabled '1' | |
option fstype 'ext4' | |
option options 'rw,sync' | |
option enabled_fsck '0' | |
config 'swap' | |
option uuid 'ac865259-9df5-4a30-8509-2c40a1f65b7e' | |
option enabled '1' | |
config 'mount' | |
option target '/data-usb' | |
option uuid '4c9ae1f2-3d50-411f-a6d2-5f7c0e85d0e1' | |
option enabled '1' | |
option fstype 'ext4' | |
option options 'rw,sync' | |
option enabled_fsck '0' | |
config 'mount' | |
option target '/overlay-boot' | |
option device '/dev/mtdblock3' | |
option fstype 'jffs2' | |
option options 'rw,sync' | |
option enabled '1' | |
option enabled_fsck '0' | |
+ $reboot -f | |
+ ssh again | |
+ check | |
$df -h | |
$mount | |
+ problem: | |
read-only instead of read-write filesystem, while rw,sync is set in options for mount: https://stackoverflow.com/questions/31029731/openwrt-extroot-as-overlay-mounted-as-readonly | |
overlay-boot works, data-usb is not found | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment