What filesystems are supported on DIR-825?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Tue May 18, 2021 22:53    Post subject: What filesystems are supported on DIR-825? Reply with quote
I have DD-WRT v3.0-r39572 std on a DIR-825 and I want to install Entware (Optware replacement) on a USB flash drive and some packages. I have formatted the flash drive with ext2 using Gparted but DD-WRT fails fails to mount it.

Service - USB menu:

Code:
--- /dev/sda
Block device, size 7.227 GiB (7759462400 bytes)
DOS/MBR partition map
Partition 1: 7.226 GiB (7758413824 bytes, 15153152 sectors from 2048)
Type 0x83 (Linux)
Ext4 file system
Volume name "Optware"
UUID 15D9D13C-F822-455D-A009-69D13794F99D (DCE, v4)
Volume size 7.226 GiB (7758413824 bytes, 1894144 blocks of 4 KiB)
Status: Not mounted - Unsupported file system or disk not formated
--- /dev/sda1
Block device, size 7.225 GiB (7757365248 bytes)
NTFS file system
UUID 25709EFA68DD9823
Volume size 7.225 GiB (7757364736 bytes, 15151103 sectors)


I don't know why it says "Ext4". I specifically asked for "ext2" when formatting it using Gparted and it lists it as "ext2". Which is it now, ext2 or ext4?...

I am following this guide:
https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware

This guide says I need to activate "one or more file systems to be able to access on the storage devices":
https://wiki.dd-wrt.com/wiki/index.php/USB_storage

I have already enabled "Core USB Support" and "USB Storage Support" from the Service - USB menu. There is no option that specifically mentions enabling "ext2". Or have I missed it?.. where would I find it? Is this instruction specific to Mega and Mini builds? Mine is regular ("std") build?

Quote:
NOTE: not all dd-wrt versions have embedded filesystems support (Although these options are accessible via WEB-interface). If your hardware has flash 4MB or less - it may not include filesystems kernel modules. Try to search your filesystem for files ext2.ko, ext3.ko, vfat.ko and so on. If they are absent, your system doesn't support filesystems and you need some kind of trick Mounting_USB_drive_without_located_onboard_fs_modules.


On the list of device DIR-825 has 8 to 16 MB of flash depending on revision:
https://wiki.dd-wrt.com/wiki/index.php/Supported_Devices

Then my build should have ext2/ext3/fat support?

I need to establish what my build of DD-WRT is capable of before I can move forward with my intended goal (installing Entware) or dig deeper in troubleshooting efforts. If someone can help me answer some of these basic questions I would appreciate it.


Last edited by Fractalogic on Sat May 22, 2021 10:09; edited 1 time in total
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue May 18, 2021 23:17    Post subject: Reply with quote
And the output of lsmod and contents of ls /lib/modules/$(uname -r) is? You should be able to determine what kernel modules are present and what filesystems are supported on your router that way. I am going to go out on a limb and say that it likely has the ext4.ko module, but not ext3.ko or ext2.ko. There really is no updated matrix of features and supported filesystems, unfortunately, so you have to do it the fun way...
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is?
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 7:14    Post subject: Reply with quote
Code:
ag71xx.ko                  ehci-hcd.ko                mac80211_compress.ko       qcserial.ko
ath.ko                     eoip.ko                    md4.ko                     sch_codel.ko
ath9k.ko                   etherip.ko                 modules.builtin            sch_fq_codel.ko
cbc.ko                     ext2.ko                    modules.dep                sch_pie.ko
cdc-acm.ko                 fat.ko                     modules.order              scsi_mod.ko
cdc-wdm.ko                 fuse.ko                    msdos.ko                   sd_mod.ko
cdrom.ko                   gre.ko                     n_hdlc.ko                  sha256_generic.ko
compat.ko                  imq.ko                     nf_conntrack_h323.ko       shortcut-fe.ko
deflate.ko                 ip6_tables.ko              nf_conntrack_ipv6.ko       sierra.ko
ebt_802_3.ko               ip6_tunnel.ko              nf_conntrack_pptp.ko       sit.ko
ebt_among.ko               ip6t_MASQUERADE.ko         nf_conntrack_proto_gre.ko  sr_mod.ko
ebt_arp.ko                 ip6t_NPT.ko                nf_conntrack_sip.ko        tun.ko
ebt_arpreply.ko            ip6t_REJECT.ko             nf_defrag_ipv6.ko          tunnel4.ko
ebt_dnat.ko                ip6t_ah.ko                 nf_nat_h323.ko             tunnel6.ko
ebt_ip.ko                  ip6t_frag.ko               nf_nat_ipv6.ko             usb-storage.ko
ebt_limit.ko               ip6t_ipv6header.ko         nf_nat_pptp.ko             usb_wwan.ko
ebt_log.ko                 ip6t_rpfilter.ko           nf_nat_proto_gre.ko        usblp.ko
ebt_mark.ko                ip6t_rt.ko                 nf_nat_sip.ko              usbnet.ko
ebt_mark_m.ko              ip6table_filter.ko         nls_cp437.ko               usbserial.ko
ebt_nflog.ko               ip6table_mangle.ko         nls_cp932.ko               vfat.ko
ebt_pkttype.ko             ip6table_nat.ko            nls_cp936.ko               xfrm6_mode_beet.ko
ebt_redirect.ko            ip_tunnel.ko               nls_cp950.ko               xfrm6_mode_transport.ko
ebt_snat.ko                ipv6.ko                    nls_euc-jp.ko              xfrm6_mode_tunnel.ko
ebt_stp.ko                 jffs2.ko                   nls_iso8859-1.ko           xt_DSCP.ko
ebt_ulog.ko                l2tp_core.ko               nls_iso8859-2.ko           xt_IMQ.ko
ebt_vlan.ko                l2tp_netlink.ko            nls_utf8.ko                xt_dscp.ko
ebtable_broute.ko          l2tp_ppp.ko                ohci-hcd.ko                xt_physdev.ko
ebtable_filter.ko          lzma_compress.ko           option.ko
ebtable_nat.ko             lzma_decompress.ko         pl2303.ko
ebtables.ko                mac80211.ko                pptp.ko


Does this mean it supports ext2, fat, jffs2, fat and vfat?

Do I have to reboot in order to mount the drive?

The instructions say:
Quote:
Plug in the USB stick or harddrive into the router. The router 'may' have to be rebooted. Check Services – USB to see if it shows up. Make a note of the current mount point, ex: /tmp/mnt/sda_part1, should be /opt if you did the above correctly.


What is the meaning of the comment about mount point? Does it mean that a drive would normally mount to /tmp/mnt unless the drive is labeled "Optware" in which case it would mount to /opt? I can select default mount point in web interface, either /mnt or /opt or /jffs. I have selected /opt and the default is /mnt.
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 10:03    Post subject: Reply with quote
Well, I have tried rebooting now. Twice! I also tried reformatting the USB drive, using command line sudo mkfs.ext2 /dev/sdb1 and it mounts fine on Ubuntu but not on DD-WRT.

Code:
--- /dev/sda
Block device, size 7.227 GiB (7759462400 bytes)
DOS/MBR partition map
Partition 1: 7.226 GiB (7758413824 bytes, 15153152 sectors from 2048)
Type 0x83 (Linux)
Ext4 file system
UUID 1237A4DF-492E-4A4D-A5EE-A6BEABDC5240 (DCE, v4)
Volume size 7.226 GiB (7758413824 bytes, 1894144 blocks of 4 KiB)
Status: Not mounted - Unsupported file system or disk not formated


It still says it's Ext4?..... Gparted says it's "ext2".
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 7711
Location: Netherlands

PostPosted: Wed May 19, 2021 10:13    Post subject: Reply with quote
That is really strange you should not have ext2.ko in the first place that has long been succeeded by ext4.ko (which is backwards compatible with ext2)

Is this a really old build?

Edit: it is possible that 8 MB flash routers do not have it at all (maybe only FAT?)

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
WireGuard Documents & Guides:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
OpenVPN Documents & Guides: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
IPSET: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327261
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800: 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
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 10:30    Post subject: Reply with quote
The build I have is from Apr 19, 2019:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=319501

I'm not sure if it justifies as old, but that's what I have at the moment.

It would seem strange that it thinks it's "Ext4" while Gparted in Ubuntu says it's "ext2". At the same time, I have "ext2.ko" but I don't have "ext4.ko". It's as if its expecting ext4.ko to be present but it's not?

I have not done much customization to this installation and it has served me well. The reason I want to use "ext2" specifically is because the instructions for installing Entware say so:

Quote:
On your computer plug in the USB stick or harddrive, reformat the USB stick or harddrive using a program like Partition Wizard (Windows) or GParted (Linux). Make sure the format of the drive is ext2 for a USB stick, or ext3 or NTFS if it is a harddrive, Primary, not Logical. Label should be Optware if you want it to mount automatically.


Code:
sudo mkfs.vfat -F 32 /dev/sdb1


Is this command correct? Assuming of course sdb1 is my drive. Should I skip the "-F 32" part? This formats vfat 32 bit? I do have "vfat.ko" so it should mount then?
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 10:42    Post subject: Reply with quote
Mounted!

Code:
--- /dev/sda
Block device, size 7.227 GiB (7759462400 bytes)
DOS/MBR partition map
Partition 1: 7.226 GiB (7758413824 bytes, 15153152 sectors from 2048)
Type 0x83 (Linux)
FAT32 file system (hints score 5 of 5)
Volume size 7.211 GiB (7743266816 bytes, 1890446 clusters of 4 KiB)
Volume name "Optware"
Status: Mounted on /opt


I used this command (on Ubuntu):

Code:
sudo mkfs.vfat -F 32 -n "Optware" /dev/sdb1


Now what does this mean then for ext2 and ext4 support? Do I have it or not?

Also, can I continue with installation instructions for Entware despite not having an ext2 formatted USB flash drive?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 7711
Location: Netherlands

PostPosted: Wed May 19, 2021 11:19    Post subject: Reply with quote
Your build is two years old so yes that is old Smile

There have been a lot of (security) updates.

However not saying that this will help in your problem.

If this is an 8 MB flash router it is possible that only vfat is present we just do not know.

The workaround described by @kp69 was something like making an a small vfat partition which you can mount, put ext4.ko on that partition and insmod it from there.

There are threads about this.

But it could well be that a modern build for your router has ext4.ko so that upgrading will solve this problem.

Perhaps Entware will run from vfat, I never tried.

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
WireGuard Documents & Guides:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
OpenVPN Documents & Guides: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
IPSET: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327261
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800: 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
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 12:55    Post subject: Reply with quote
The revision I have is "B1" so it's 8 MB then. I have checked. (Only C revision is 16 MB.)

I will look into updating DD-WRT if it's still built for my router.

I tried to run the installation script for Entware and I got to this line: "Info: Congratulations!" However, I received some archive extraction errors regarding symlink creation. It appears to be some kind of permission problem or installation path conflict. This is for another topic, I rather not go off topic here.

I understand it's not easy to establish what filesystems are supported on a Linux system. I have never had a need to know the answer to this before (spoiled by desktop OS perhaps).

Thanks for your help! If you have any further input or tips on how to figure out what file systems are supported feel free to post it and I will take time to test the idea. Otherwise I will consider this problem as solved (I have vfat support, not ext2/ext3/ext4).
lexridge
DD-WRT User


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

PostPosted: Wed May 19, 2021 13:17    Post subject: Reply with quote
do a
Code:

cat /proc/filesystems

That should show you what filesystems are supported. I do not believe Entware will work with vfat. It requires Linux file permissions which vfat cannot provide.

Even though your build is from 4/19, I would think it should still support ext4. I am pretty sure I have been using a ext4 formatted usb stick since before then, but on a different router.

In ddwrt, go to Services/NAS. At the bottom there is a section to format your flashdrive. See there what formats are available there as well. Maybe even try formatting your drive from there too.

_________________
Linksys EA8500 (Internet Gateway, AP) - DD-WRT r46836
Netgear R6250 (AP, VAP) - DD-WRT r46885
Linksys EA8500 (Gateway Backup) - DD-WRT r46836
Netgear R7800 - DD-WRT r46885 - In Testing
Features in use: Samba, OpenVPN, WireGuard, Entware for Mosquitto
Member #248
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed May 19, 2021 14:17    Post subject: Reply with quote
It looks like the kernel supports cdrom, msdos, fat, vfat, ext2, jffs2. Yes, that is an old build, and you should update (E4200 images are 8MB and have ext4 support now):

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2021/05-17-2021-r46690/dlink-dir825-revb/

@lexridge: Not all routers support the same things. This is the bane of inconsistencies within DD-WRT that has existed for quite some time. You cannot compare apples and oranges.

_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is?
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
lexridge
DD-WRT User


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

PostPosted: Wed May 19, 2021 15:28    Post subject: Reply with quote
kernel-panic69 wrote:

@lexridge: Not all routers support the same things. This is the bane of inconsistencies within DD-WRT that has existed for quite some time. You cannot compare apples and oranges.

Right and good point, which why I said above "but on a different router". I probably should have been more clear on that. OP, you should definitely upgrade to latest version.

_________________
Linksys EA8500 (Internet Gateway, AP) - DD-WRT r46836
Netgear R6250 (AP, VAP) - DD-WRT r46885
Linksys EA8500 (Gateway Backup) - DD-WRT r46836
Netgear R7800 - DD-WRT r46885 - In Testing
Features in use: Samba, OpenVPN, WireGuard, Entware for Mosquitto
Member #248
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Wed May 19, 2021 23:19    Post subject: Reply with quote
I will follow your advice and upgrade to the latest build for my router, before I do anything else.

For the record, here is the cat:

Code:
root@DD-WRT:/opt# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   devpts
        squashfs
nodev   ramfs
nodev   mtd_inodefs
        vfat
        msdos


I don't know what it is that I see (what all of it means), but I know what I don't see: "ext2" and "ext4". If these were supported I would see them here, correct?

In regard to Services - NAS page, I have only two sections there: "Samba Server", and "File Sharing". None of which allow me to format the USB flash drive I have plugged in. (But I can read and write files from/to it from another computer, so at least I know that works. I never used this before.) Are you sure you can format connected drives this way? That would be a cool feature. I have not seen any such options on other routers either, and I have looked at various examples of this interface page on Google Images (with varying options available depending on router model).
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Fri May 21, 2021 22:45    Post subject: Reply with quote
I have upgraded to:
DD-WRT v3.0-r46690 (05/17/21)

I have reformatted the USB flash drive in Ubuntu using Gparted. It does this in the background (it says so):
Code:
mkfs.ext2 -F -L 'Optware' '/dev/sdb1'


I have the same problem as before the upgrade:
Code:
--- /dev/sda
Block device, size 7.227 GiB (7759462400 bytes)
DOS/MBR partition map
Partition 1: 7.226 GiB (7758413824 bytes, 15153152 sectors from 2048)
Type 0x83 (Linux)
Ext4 file system
Volume name "Optware"
UUID 1705888C-63D1-4690-A448-C0E2F8462B26 (DCE, v4)
Volume size 7.226 GiB (7758413824 bytes, 1894144 blocks of 4 KiB)
Status: Not mounted - Unsupported file system or disk not formated


Again, reported as "Ext4 file system" but Gparted says it made an "ext2" partition.

What am I doing wrong?

Code:
root@DD-WRT:/# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   devpts
        squashfs
nodev   ramfs
nodev   mtd_inodefs


I no longer see "vfat" and "msdos" in this list as I did before. I take it I no longer have vfat support now? The only thing that did work.
Fractalogic
DD-WRT User


Joined: 25 Jun 2010
Posts: 59

PostPosted: Fri May 21, 2021 23:02    Post subject: Reply with quote
This old friend still works (on Ubuntu):
Code:
sudo mkfs.vfat -F 32 -n "Optware" /dev/sdb1


I have changed to mounting on /mnt rather than /opt:
Code:
--- /dev/sda
Block device, size 7.227 GiB (7759462400 bytes)
DOS/MBR partition map
Partition 1: 7.226 GiB (7758413824 bytes, 15153152 sectors from 2048)
Type 0x83 (Linux)
FAT32 file system (hints score 5 of 5)
Volume size 7.211 GiB (7743266816 bytes, 1890446 clusters of 4 KiB)
Volume name "Optware"
Status: Mounted on /mnt


Can I choose freely between /mnt and /opt without causing some kind of conflict?

I see it mounted on /tmp/mnt/sda1 now. This is because /mnt is symlink? In any case, it's not mounting on "/mnt" per se, and ext2 is identified as Ext4 and can't mount. Thus far I've been only able to mount vfat.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum 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