Peter Hope-Tindall
Can I mount the rescue system to look at something from USB boot?
December 05, 2010 10:34PM
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
Peter Hope-Tindall
Re: Can I mount the rescue system to look at something from USB boot?
December 08, 2010 09:33PM
For others having this same problem. Turns out this only happens with the Gorgone kernel (Linux htstore3 2.6.35.7-dockstar #5 PREEMPT Mon Oct 18 12:22:45 CEST 2010 armv5tel GNU/Linux).

With the default Jeff install kernel - it mounts the mtd2 perfectly.

I'm using the gorgone kernel because it handles the dockstar LED properly - without having to change the arcNumber to 2998 (I keep the arcNumber set to 2097 because when I change the arcNumber to 2998 - Jeff's rescue system will not boot unfortunately! :-( ).

Cheers,

PHT
Re: Can I mount the rescue system to look at something from USB boot?
December 15, 2010 07:44AM
> I'm using the gorgone kernel because it handles
> the dockstar LED properly - without having to
> change the arcNumber to 2998 (I keep the arcNumber
> set to 2097 because when I change the arcNumber to
> 2998 - Jeff's rescue system will not boot
> unfortunately! :-( ).

Yes. Thats very annoying and I hope Jeff will update the rescue system to a state where it works with 2998 too.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: