[SOLVED] USB thumbdrive partitions size?

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


Joined: 05 Oct 2008
Posts: 498
Location: Helsinki, Finland

PostPosted: Sat Sep 10, 2022 21:26    Post subject: [SOLVED] USB thumbdrive partitions size? Reply with quote
There's something not quite right with partition size info on the Services, USB GUI page of my R7800 running the latest f/w 50146.

/opt is listed as only 308.1M, whereas in reality it was created some 600MB (I didn't take notes, but 577MiB as per the data for sda2 below is close enough).
Why are these values so different?

Disk Info

Disk Space /opt 44% 244.8M / 308.1M
Disk Space /jffs 0% 236.0K / 132.0M

Partition sda:
--- /dev/sda1
Block device, size 144 MiB (150994944 bytes)
Ext2 file system
Volume name "jffs"
UUID 5CDExxxxxxxxxxxxxxxxxxxxxxxxxxxxx (DCE, v4)
Last mounted at "/jffs"
Volume size 144 MiB (150994944 bytes, 36864 blocks of 4 KiB)
/dev/sda1 mounted to /jffs

--- /dev/sda2
Block device, size 577 MiB (605028352 bytes)
Ext2 file system
Volume name "optware"
UUID 3584xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (DCE, v4)
Last mounted at "/opt"
Volume size 576.0 MiB (603996160 bytes, 147460 blocks of 4 KiB)
/dev/sda2 mounted to /opt
Sponsor
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 186

PostPosted: Sun Sep 11, 2022 1:14    Post subject: Reply with quote
ditto:

Code:

Disk Info:
Disk Space /opt
10%2.5G / 24.0G
Disk Space /jffs
3%16.1M / 462.3M

Partition sda:
--- /dev/sda1
Block device, size 512 MiB (536870912 bytes)
Ext4 file system
Volume name "jffs"
UUID 486D9999-F37C-4595-BC8D-E5EC31220718 (DCE, v4)
Last mounted at "/jffs"
Volume size 512 MiB (536870912 bytes, 131072 blocks of 4 KiB)
/dev/sda1 mounted to /jffs

--- /dev/sda2
Block device, size 28.42 GiB (30516805632 bytes)
Ext4 file system
Volume name "opt"
UUID 81815D5E-2C27-4260-868B-F88769FD851B (DCE, v4)
Last mounted at "/opt"
Volume size 28.42 GiB (30516805632 bytes, 7450392 blocks of 4 KiB)
/dev/sda2 mounted to /opt
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 186

PostPosted: Sun Sep 11, 2022 1:23    Post subject: Reply with quote
ah, the second column is apparently taken from the Available column of df.

Code:
root@DD-WRT:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   21.8M     21.8M         0 100% /
/dev/root                21.8M     21.8M         0 100% /
none                    512.0K         0    512.0K   0% /dev
/dev/sda2                28.0G      2.5G     24.0G  10% /opt
/dev/sda1               503.9M     16.1M    462.3M   3% /jffs
ArjenR49
DD-WRT User


Joined: 05 Oct 2008
Posts: 498
Location: Helsinki, Finland

PostPosted: Sun Sep 11, 2022 19:54    Post subject: Reply with quote
I was wrong to assume the values represent USED vs. TOTAL. They turn out to be USED vs. AVAILABLE (i.e. unused).
"My bad" as they say.
wenzhuo
DD-WRT User


Joined: 22 Apr 2011
Posts: 186

PostPosted: Sun Sep 11, 2022 23:46    Post subject: Reply with quote
"/" suggests percentage. I'd suggest remove them and put Used and Avaiable in two separate columns, perferrably adding a table header. Idea
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