Belkin F7D4302 - Read-only file system

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
andrew77
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 16

PostPosted: Fri Oct 13, 2017 16:56    Post subject: Belkin F7D4302 - Read-only file system Reply with quote
Hello. I have recently installed DD-WRT v3.0-r30631 mega on a Belkin F7D4302 v1 and am now trying to install YAMon.

I have enabled USB access and SSH access which I can logon to no problems and see the files on the USB stick. But it won't let me copy files from the USB to the /opt directory and just says "Read-only file system", how can I enable write access please? I am logged in as root and chmod doesn't do anything either.

Thanks.

PS. Apologies if this post is in the wrong place, this forum is a bit of a monster!
Sponsor
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Fri Oct 13, 2017 17:28    Post subject: Re: Belkin F7D4302 - Read-only file system Reply with quote
andrew77 wrote:
I have enabled USB access and SSH access which I can logon to no problems and see the files on the USB stick. But it won't let me copy files from the USB to the /opt directory and just says "Read-only file system"
I presume you selected R/W and /opt as the mount point? Samba or FTP? Does the status show its mounted? I recall that you may have to enable CIFS/Samba under Services or Admin. Post a (resized) screenshot of your USB settings.
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
andrew77
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 16

PostPosted: Fri Oct 13, 2017 19:52    Post subject: Re: Belkin F7D4302 - Read-only file system Reply with quote
jwh7 wrote:
I presume you selected R/W and /opt as the mount point? Samba or FTP? Does the status show its mounted? I recall that you may have to enable CIFS/Samba under Services or Admin. Post a (resized) screenshot of your USB settings.




I'm not sure why it's being scaled down even more but here it is anyway, you can click on it to see it better. However, the issue is that I can't get write access on the router itself, I have no problems accessing the USB stick and the router folders from SSH.
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Fri Oct 13, 2017 20:28    Post subject: Re: Belkin F7D4302 - Read-only file system Reply with quote
andrew77 wrote:
I'm not sure why it's being scaled down even more but here it is anyway, you can click on it to see it better. However, the issue is that I can't get write access on the router itself, I have no problems accessing the USB stick and the router folders from SSH.
Ok so /mnt works fine; what is the output of `mount`? Try to remount it R/W. Anyone else seen this? I've not used /opt nor yamon.
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
andrew77
DD-WRT Novice


Joined: 06 Oct 2017
Posts: 16

PostPosted: Fri Oct 13, 2017 20:37    Post subject: Re: Belkin F7D4302 - Read-only file system Reply with quote
jwh7 wrote:
andrew77 wrote:
I'm not sure why it's being scaled down even more but here it is anyway, you can click on it to see it better. However, the issue is that I can't get write access on the router itself, I have no problems accessing the USB stick and the router folders from SSH.
Ok so /mnt works fine; what is the output of `mount`? Try to remount it R/W. Anyone else seen this? I've not used /opt nor yamon.

root@DD-WRT:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda on /tmp/mnt/discsda type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

How can I remount the filesystem I'm already in, and have nowhere else to move to? I'll copy in my exact errors too -

root@DD-WRT:/tmp/mnt/discsda# cp install.sh /opt
root@DD-WRT:/tmp/mnt/discsda# ls /opt
lib
root@DD-WRT:/tmp/mnt/discsda# cat install.sh > /opt/install.sh
-sh: can't create /opt/install.sh: Read-only file system
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sat Oct 14, 2017 1:57    Post subject: Reply with quote
You can save a lot of grief if you simply change the volume name on your usb stick to opt. DD-WRT will auto mount the volume named opt to /opt.
_________________
Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Oct 14, 2017 8:31    Post subject: Reply with quote
Maybe the attached doc file is helpfull


DDWRT USB storage support Public.doc
 Description:

Download
 Filename:  DDWRT USB storage support Public.doc
 Filesize:  406 KB
 Downloaded:  505 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum