Originally Posted by
hal2k1
Hey,
Thanks a lot for your help.
Thats what I was trying to do but running: /sbin/root2x.sh scsi 0 part1
hangs the router when the script tried to copy the folder /usr/lib/ipkg so it never completes.
Btw if I understand the raw firmware has no root, so Its normal that I cant cd to / ? if so why does root2x scsi 0 part1 hang?
Another thing is that every change to nvram variables have no effects. I tried to change my ip from 192.168.1.1 to another and even if I committed and the lan_ipaddr is really changed, I sill have the router on 192.168.1.1. Is that normal too?
Here is my actual situation:
Code:
root@OpenWrt:/# df
Filesystem 1k-blocks Used Available Use% Mounted on
none 31464 28 31436 0% /tmp
mini_fo:/tmp/root 1216 1216 0 100% /tmp/root
/dev/mtdblock/4 64 64 0 100% /jffs
mini_fo:/jffs 1216 1216 0 100% /
Code:
root@OpenWrt:/# fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 1021 MB, 1021313024 bytes
15 heads, 46 sectors/track, 2890 cylinders
Units = cylinders of 690 * 512 = 353280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 2890 997027 83 Linux
root@OpenWrt:/#
Code:
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
mini_fo:/tmp/root on /tmp/root type mini_fo (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
root@OpenWrt:/#
(I have to manually mount the usb stick to /mnt)
I also noticed that the router cant see the internal HDD. I didnt even try it yet cos I wanted to setup the stick too. Is that normal? Im a bit worried it cant be detected..hehe.
EDIT: I rebooted and now it seems the hdd is there..it really scared me...hehe
Code:
root@OpenWrt:/# fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 1021 MB, 1021313024 bytes
15 heads, 46 sectors/track, 2890 cylinders
Units = cylinders of 690 * 512 = 353280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 2890 997027 83 Linux
Disk /dev/ide/host0/bus0/target0/lun0/disc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/ide/host0/bus0/target0/lun0/disc doesn't contain a valid partition tab le
root@OpenWrt:/#