PDA

Bekijk de volledige versie : mkdir: Cannot create directory `/opt/lib/': Read-only file system



verwilst
10-04-2005, 01:37
Hello!

I wanted to try and install packages with ipkg on my wl-500g, yet this is the error i get:

[admin@(none) root]$ ipkg.sh update
mkdir: Cannot create directory `/opt/lib/': Read-only file system
[admin@(none) root]$

Any ideas how to fix this?

Thanks!

tomilius
10-04-2005, 03:29
Somewhere around here is a guide to setting up your USB drive. Search, and try the HowTo section. You NEED a USB drive for this. After figuring out how to partition/setup your drive, mount a partition to /opt.

out
10-04-2005, 10:10
Can you use ipkg with an USB stick? Or is this only possible with a harddisk?
I plugged in my USB stick, but /tmp/harddisk does not appear

barsju
10-04-2005, 14:24
USB stick works fine, but you need an ext3 partition, or you can use the trick described in this thread:
http://wl500g.info/showpost.php?p=12226&postcount=12

Have you enabled ftp or samba? Try that and /tmp/harddisk should appear.
Assuming you have latest firmware.

S.

out
10-04-2005, 14:49
Samba was on, FTP wasn't, I turned it on and I had the /tmp/harddisk.
Used the trick you supposed in the other thread and so far so good.

Now, when I try to use ipkg I get the following errors:



[admin@(none) /]$ ipkg.sh update
Downloading http://wl500g.dyndns.org/ipkg/Packages ...
wget: //opt/tmp/ipkg/Packages: No such file or directory
ipkg_download: ERROR: Failed to retrieve http://wl500g.dyndns.org/ipkg/Packages,
returning
ipkg_update: Error downloading http://wl500g.dyndns.org/ipkg/Packages to /opt/li
b/ipkg/lists/wl500g


[admin@(none) lists]$ ipkg.sh install ipkg
ERROR: File not found: /opt/lib/ipkg/lists/wl500g
You probably want to run `ipkg update'
ERROR: File not found: /opt/lib/ipkg/lists/wl500g
You probably want to run `ipkg update'
ipkg_get_install: ERROR: Cannot find package ipkg in /opt/lib/ipkg/lists
ipkg_get_install: Check the spelling and maybe run `ipkg update'.
ls: //opt/tmp/ipkg: No such file or directory


Any ideas?

barsju
10-04-2005, 14:54
Edit /opt/etc/ipkg.conf
Replace
http://wl500g.dyndns.org/ipkg/Packages
with
http://ipkg.nslu2-linux.org/feeds/unslung/wl500g

S.

out
10-04-2005, 15:41
Sorry for being such a newbie but I get the same error, just with a different url:



(none) login: admin
Password:
[admin@(none) root]$ ipkg.sh update
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/Packages ...
wget: //opt/tmp/ipkg/Packages: No such file or directory
ipkg_download: ERROR: Failed to retrieve http://ipkg.nslu2-linux.org/feeds/unslu
ng/wl500g/Packages, returning
ipkg_update: Error downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/
Packages to /opt/lib/ipkg/lists/wl500g
[admin@(none) root]$

barsju
10-04-2005, 16:05
Oh, yeah.
mkdir -p /opt/tmp/ipkg/

S.

PS: All this is in the forum allready ;)

hugo
10-04-2005, 16:18
Oh, yeah.
mkdir -p /opt/tmp/ipkg/

S.

PS: All this is in the forum allready ;)
I don't think so.

You ned to mount your drive to /opt using mkdir /opt then mount -obind /your harddisk /opt

Styno
11-04-2005, 21:13
Hugo, it seems I didn't understand your post very well. I had also the problem of 'read-only /opt' and read your post but the 'mkdir /opt' command confused me because with firmware 1.9.2.7 CR4 the /opt directory allready exists.

For people who have an USB Flash drive or HDD with an ext3 partition and experience the 'read-only /opt' problem:

- Create a directory `opt` on your harddisk (mkdir /tmp/harddisk/opt).
- Post following code in `/usr/local/sbin/post-mount`:

mount -obind /tmp/harddisk/opt /opt

Styno
12-04-2005, 10:31
I'm assembling a "HOWTO install ipkg packages" on the WebTools site:

http://webtools.wl500g.info/wiki/doku.php?id=docs:howtoipkgonasus

hugo
12-04-2005, 10:45
Yes, I forgot about the existing /opt.

Thanks for the clean up ;)