iPkg - Read Only File System Error

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
brs480
DD-WRT Novice


Joined: 07 Nov 2010
Posts: 8

PostPosted: Sun Nov 07, 2010 21:44    Post subject: iPkg - Read Only File System Error Reply with quote
I'm running a Buffalo Tech (atheros) WZR-HP-300HN w/ DD-WRT-sp2 Std - Build 14896 and
can't figure out where I'm going wrong.

I am trying to use ipkg.

root@Sandstorm:/jffs# ipkg update
mkdir: cannot create directory '//usr/local/lib/': Read-only file system
root@Sandstorm:/jffs#

JFFS2 is enabled and it looks like I have lots of space.

root@Sandstorm:/jffs# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 11520 11520 0 100% /
/dev/mtdblock/3 19584 772 18812 4% /jffs
root@Sandstorm:/jffs#

I hoped that what this thread provided some answers:

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=76357&highlight=ipkg+read

I did the clean JFFS and rebooted. No luck.

One participant suggested:

root@Sandstorm:/jffs# mkdir -p /jffs/tmp/ipkg
root@Sandstorm:/jffs# ipkg update
mkdir: cannot create directory '//usr/local/lib/': Read-only file system
root@Sandstorm:/jffs#

Still, no luck, I was under the impression that the JFFS was read/write.

Could someone point me in the right direction?

Many thanks.
Sponsor
ccdoggy
DD-WRT User


Joined: 30 Aug 2009
Posts: 455

PostPosted: Sun Nov 07, 2010 21:51    Post subject: Reply with quote
take a look at this site for installation and configuration of opkg on the router. you do need a usb drive attached to save the info to.

http://g300nh.blogspot.com/

_________________
WNDR3700 moved to openwrt
- my Wireless settings which (300 on 5.0) Wireless Config

Atheros wireless settings Here

WNDR3700 Wiki

OpenVPN configuration I have refined: OpenVPN Config

ALL WNDR3700 users please fill out this short Poll
brs480
DD-WRT Novice


Joined: 07 Nov 2010
Posts: 8

PostPosted: Mon Nov 08, 2010 3:10    Post subject: Reply with quote
Thanks for the link, I was working my way through the page and my luck ran out at #6, mounting the USB drive.

It's definitely there.. (493 Mb ext3 single partition)

From dmesg - it appears to have found the drive..

<5>scsi 0:0:0:0: Direct-Access 8.07 PQ: 0 ANSI: 2
<5>sd 0:0:0:0: [sda] 962560 512-byte hardware sectors (493 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] 962560 512-byte hardware sectors (493 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<6> /dev/scsi/host0/bus0/target0/lun0:<4>ath_mimo_hal: module license 'Proprietary' taints kernel.
<6>ath_mimo_hal: 0.9.17.1 (AR5416, REGOPS_FUNC)
<4> p1
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk
<5>sd 0:0:0:0: Attached scsi generic sg0 type 0

root@Sandstorm:~# ls /dev/discs/disc0/
disc part1

But I can't seem to mount it..

First tried mounting the partion.

root@Sandstorm:~# mount -t ext3 -o noatime /dev/discs/disc0/part1 /mnt
mount: mounting /dev/discs/disc0/part1 on /mnt failed: Invalid argument

Then the disk.

root@Sandstorm:~# mount -t ext3 -o noatime /dev/discs/disc0/disc /mnt
mount: mounting /dev/discs/disc0/disc on /mnt failed: Invalid argument

And then my luck appears to run out.

Any advice?
ccdoggy
DD-WRT User


Joined: 30 Aug 2009
Posts: 455

PostPosted: Mon Nov 08, 2010 3:24    Post subject: Reply with quote
those directions are a little dated. all devices are now found in /dev

so for example to mount my usb drive i do
Code:
mount -noatime /dev/sda1 /mnt


also when you get to the point of installing things through opkg DO NOT install libc. the latest version causes allot of problems. I am not sure if you HAVE to install it, there is another copy of it that is older and works stored http://downloads.openwrt.org/backfire/10.03.1-rc3/ar71xx/packages/

_________________
WNDR3700 moved to openwrt
- my Wireless settings which (300 on 5.0) Wireless Config

Atheros wireless settings Here

WNDR3700 Wiki

OpenVPN configuration I have refined: OpenVPN Config

ALL WNDR3700 users please fill out this short Poll
brs480
DD-WRT Novice


Joined: 07 Nov 2010
Posts: 8

PostPosted: Mon Nov 08, 2010 4:00    Post subject: Reply with quote
ccdoggy wrote:
those directions are a little dated. all devices are now found in /dev

so for example to mount my usb drive i do
Code:
mount -noatime /dev/sda1 /mnt



root@Sandstorm:/dev/scsi/host0/bus0/target0/lun0# ls -la
drwxr-xr-x 1 root root 0 Jan 1 00:00 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..
brw------- 1 root root 8, 0 Jan 1 00:00 disc
brw------- 1 root root 8, 1 Jan 1 00:00 part1

root@Sandstorm:/dev/scsi/host0/bus0/target0/lun0# cd /dev
root@Sandstorm:/dev# ls -la
drwxr-xr-x 1 root root 0 Jan 1 00:00 .
drwxr-xr-x 16 root root 162 Aug 7 2010 ..
crw------- 1 root root 254, 0 Jan 1 00:00 .devfsd
crw------- 1 root root 5, 1 Jan 1 00:02 console
drwxr-xr-x 1 root root 0 Jan 1 00:00 discs
crw-rw-rw- 1 root root 1, 7 Jan 1 00:00 full
crw-r----- 1 root root 1, 2 Jan 1 00:00 kmem
crw-r--r-- 1 root root 1, 11 Jan 1 00:00 kmsg
crw-r--r-- 1 root root 180, 0 Jan 1 00:00 lp0
crw-r--r-- 1 root root 180, 1 Jan 1 00:00 lp1
crw-r--r-- 1 root root 180, 2 Jan 1 00:00 lp2
crw-r----- 1 root root 1, 1 Jan 1 00:00 mem
drwxr-xr-x 1 root root 0 Jan 1 00:00 misc
drwxr-xr-x 1 root root 0 Jan 1 00:00 mtd
drwxr-xr-x 1 root root 0 Jan 1 00:00 mtdblock
drwxr-xr-x 1 root root 0 Jan 1 00:00 net
crw-rw-rw- 1 root root 1, 3 Jan 1 00:00 null
crw-r--r-- 1 root root 229, 0 Jan 1 2000 nvram
crw-r--r-- 1 root root 108, 0 Jan 1 2000 ppp
crw-rw-rw- 1 root root 5, 2 Jan 1 00:06 ptmx
drwxr-xr-x 2 root root 0 Jan 1 2000 pts
drwxr-xr-x 1 root root 0 Jan 1 00:00 pty
crw-r--r-- 1 root root 1, 8 Jan 1 00:00 random
lr-xr-xr-x 1 root root 10 Jan 1 2000 root -> mtdblock/2
drwxr-xr-x 1 root root 0 Jan 1 00:00 scsi
drwxr-xr-x 1 root root 0 Jan 1 00:00 shm
drwxr-xr-x 1 root root 0 Jan 1 00:00 tts
crw-rw-rw- 1 root root 5, 0 Jan 1 00:00 tty
crw-r--r-- 1 root root 1, 9 Jan 1 00:00 urandom
crw-rw-rw- 1 root root 1, 5 Jan 1 00:00 zero
root@Sandstorm:/dev#
root@Sandstorm:/dev# mount -noatime /dev/sda1 /mnt
mount: mounting /dev/sda1 on /mnt failed: No such file or directory
root@Sandstorm:/dev# mount -noatime /dev/sda /mnt
mount: mounting /dev/sda on /mnt failed: No such file or directory
root@Sandstorm:/dev# mount -noatime /dev/sda0 /mnt
mount: mounting /dev/sda0 on /mnt failed: No such file or directory
root@Sandstorm:/dev#

For reasons I am a little confused about, it won't mount the thing, even though it seems to know its there.
JHSPerc
DD-WRT Novice


Joined: 20 May 2010
Posts: 11
Location: Canton, OH

PostPosted: Mon Nov 08, 2010 6:45    Post subject: Try This Reply with quote
Do this command

Code:
export IPKG_OFFLINE_ROOT=/jffs


Then try to run ipkg update




Joined: 01 Jan 1970
Posts:

PostPosted: Tue Nov 09, 2010 6:57    Post subject: Reply with quote
@brs480

Have you tried ?:

mount -t ext3 -o noatime /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

- Magnetron1
kevinx17910
DD-WRT User


Joined: 26 Sep 2010
Posts: 90

PostPosted: Wed Nov 10, 2010 12:59    Post subject: Reply with quote
Lastest ddwrt doesnt load drivers on startup to save memory.

Add the following to your startup script:
insmod mbcache
insmod jbd
insmod ext3 and/or
insmod ext2

After that run mount /dev/sda1 or sdb1 /jffs or /mnt.

Like ccdoggy said,
openwrt updated all the lib and packages in the snapshots folder. But all the packages in the backfire folder (not just libc) are older versions (like nano and transmission). So I ended up installing new transmission and busybox and old libs and nano).
brs480
DD-WRT Novice


Joined: 07 Nov 2010
Posts: 8

PostPosted: Tue Nov 23, 2010 20:23    Post subject: Reply with quote
Just as a follow up.

Finally figured out what the problem was. It was the flash drive itself.

I grabbed another flash drive, partitioned it, copied over the stuff from the first drive and it mounted right up.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum