Troubles installing Entware

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page 1, 2  Next
Author Message
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 4:33    Post subject: Troubles installing Entware Reply with quote
hi!

I'm trying to install Entware, but I have this problem:

root@WRT3200ACM:~# cd /opt

root@WRT3200ACM:/opt# wget http://bin.entware.net/armv7sf-k3.2/installer/generic.sh
Connecting to bin.entware.net (158.160.45.54:80)

wget: can't open 'generic.sh': Read-only file system
root@WRT3200ACM:/opt#


my flash drive is already formatted in ext3
DD-WRT build 54682
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Mon Jan 15, 2024 5:03    Post subject: Reply with quote
Split your post off that thread as your inquiry is a separate issue.

Is your flash drive mounted to /opt? Screenshots of configs and statuses help us see what is going on.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 5:09    Post subject: Reply with quote
yes look at the photo, I don't understand why it is detected in ext4, but I formatted it in ext2...
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Mon Jan 15, 2024 5:21    Post subject: Reply with quote
The ext4 kernel module is backwards-compatible, and, as I suspected, your USB drive is NOT mounted to /opt. Solution should be obvious.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 5:27    Post subject: Reply with quote
kernel-panic69 wrote:
The ext4 kernel module is backwards-compatible, and, as I suspected, your USB drive is NOT mounted to /opt. Solution should be obvious.


and how do I mount it on /opt??
Gameman Advanced Kid
DD-WRT Guru


Joined: 18 Nov 2012
Posts: 1158

PostPosted: Mon Jan 15, 2024 5:30    Post subject: Reply with quote
you need to name the partition "opt". then it will automatically mount the partition to opt.
_________________
For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm

barryware wrote:
It takes a "community" to raise a router..


Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM

Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000

Official (but not really) dd-wrt General Discussion element/matrix chat

https://matrix.to/#/#dd-wrt-private-non-offical:matrix.org
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Mon Jan 15, 2024 5:33    Post subject: Reply with quote
Or copy the UUID of the sda1 partition to the appropriate place in the webUI and click save then reboot...
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 5:37    Post subject: Reply with quote
Gameman Advanced Kid wrote:
you need to name the partition "opt". then it will automatically mount the partition to opt.



should I just rename from usb name to opt name of my flash drive? or create/rename the partition with the name opt?
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1082
Location: WV, USA

PostPosted: Mon Jan 15, 2024 5:49    Post subject: Reply with quote
You can do either, or both. I do both. Just reformat the USB drive with the name "opt" minus the quotes. All ext formatted drives show up as ext4, so why not just format it to ext4? It's the best option. Then, after doing that, ssh into the router and run #blkid.

This will give you the UUID string you need to plug into "Mount Partition to /opt" section in USB menu. You will have to change any lower case letters to upper case. Not sure why blkid returns in lowercase but it does. DDWRT wants upper case. Minor bug that should have been fixed already.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 5:52    Post subject: Reply with quote
lexridge wrote:
You can do either, or both. I do both. Just reformat the USB drive with the name "opt" minus the quotes. All ext formatted drives show up as ext4, so why not just format it to ext4? It's the best option. Then, after doing that, ssh into the router and run #blkid.

This will give you the UUID string you need to plug into "Mount Partition to /opt" section in USB menu. You will have to change any lower case letters to upper case. Not sure why blkid returns in lowercase but it does. DDWRT wants upper case. Minor bug that should have been fixed already.



perfect, you were very thorough, I'll try and let you know. thx!
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 6:06    Post subject: Reply with quote
done! thx!!
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1082
Location: WV, USA

PostPosted: Mon Jan 15, 2024 6:08    Post subject: Reply with quote
Awesome!
_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1082
Location: WV, USA

PostPosted: Mon Jan 15, 2024 6:12    Post subject: Reply with quote
The first thing I always install in Entware is bash. #opkg install bash
It's a much better shell, but opinions differ. Don't forget to add the /opt/etc/init.d/rc.unslung start to your Administration/Commands/Startup.

I use this to retain my command history:
Code:

/opt/etc/init.d/rc.unslung start
ln -s /opt/root/.bash_history /tmp/root/.bash_history

However, you must remember to type bash whenever you first login to router via ssh/telnet for it to work.
EDIT: I am sure there is a way to do this automatically, but have never delved into it. typing bash is easy enough lol.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248


Last edited by lexridge on Mon Jan 15, 2024 6:17; edited 1 time in total
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Mon Jan 15, 2024 6:14    Post subject: Reply with quote
lexridge wrote:
The first thing I always install in Entware is bash. #opkg install bash
It's a much better shell, but opinions differ. Don't forget to add the /opt/etc/init.d/rc.unslung start to your Administration/Commands/Startup.

I use this to retain my command history:
Code:

/opt/etc/init.d/rc.unslung start
ln -s /opt/root/.bash_history /tmp/root/.bash_history

However, you must remember to type bash whenever you first login to router via ssh/telnet for it to work.


okay thanks bro!
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Tue Jan 16, 2024 2:08    Post subject: Reply with quote
marcus83 wrote:
lexridge wrote:
The first thing I always install in Entware is bash. #opkg install bash
It's a much better shell, but opinions differ. Don't forget to add the /opt/etc/init.d/rc.unslung start to your Administration/Commands/Startup.

I use this to retain my command history:
Code:

/opt/etc/init.d/rc.unslung start
ln -s /opt/root/.bash_history /tmp/root/.bash_history

However, you must remember to type bash whenever you first login to router via ssh/telnet for it to work.


okay thanks bro!


also did you add bin and sbin to $PATH?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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