Hello,
Would be greatful if some of you experts could give me some advice.
I've booted from Debian (USB) - I'm trying to mount mtd2 to 'look' at the rescue system. (Which I thought I could do).
root@htstore2:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 1db00000 00020000 "data"
Following Jeff's instructions - I enter:
root@htstore2:~# ubiattach /dev/ubi_ctrl -m 2
UBI device number 0, total 256 LEBs (33030144 bytes, 31.5 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
All fine and dandy.
I notice after this attach command: that:
root@htstore2:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 1db00000 00020000 "data"
mtd4: 01ec3000 0001f800 "rootfs"
weird!!!!
I try mounting the mtd2 after attaching but it doesn't work:
root@htstore2:~# mount -t ubifs ubi0:rootfs /mnt/ubifs
mount: ubi0:rootfs already mounted or /mnt/ubifs busy
root@htstore2:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,noatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,relatime,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=10240k,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/sda4 on /mnt/storage type ext4 (rw,relatime,errors=remount-ro,barrier=1,data=ordered)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/dm-0 on /mnt/encrypted type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sda3 on /mnt/system-backup type ext2 (ro,relatime,errors=continue)
Any thoughts?
thanks a lot
PHT