Extra entries in Services -> USB

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sun Jul 25, 2021 8:57    Post subject: Extra entries in Services -> USB Reply with quote
Initially, the USB drive has only one FAT32 partition. I have since used fdisk to re-partition the USB drive into 2 Linux partitions, and format them ext4.

However, Disk Info still listed the old record:

Code:
FAT32 file system (hints score 4 of 5)
Volume size 14.89 GiB (15992987648 bytes, 1952269 clusters of 8 KiB)
Volume name ""

How could I remove it? Is it something saved in NVRAM?


The following is the full Disk Info:
Code:
--- /dev/sda
Block device, size 14.91 GiB (16008609792 bytes)
DOS/MBR partition map
Partition 1: 2 GiB (2147483648 bytes, 4194304 sectors from 32)
Type 0x83 (Linux)
Ext4 file system
UUID D75E....C5249 (DCE, v4)
Last mounted at "/jffs"
Volume size 2 GiB (2147483648 bytes, 524288 blocks of 4 KiB)
Partition 2: 12.91 GiB (13861109760 bytes, 27072480 sectors from 4194336)
Type 0x83 (Linux)
Ext4 file system
UUID 4BCE....6EF12 (DCE, v4)
Last mounted at "/opt"
Volume size 12.91 GiB (13861109760 bytes, 3384060 blocks of 4 KiB)
FAT32 file system (hints score 4 of 5)
Volume size 14.89 GiB (15992987648 bytes, 1952269 clusters of 8 KiB)
Volume name ""
/dev/sda not mounted Unsupported Filesystem

--- /dev/sda1
Block device, size 2 GiB (2147483648 bytes)
Ext4 file system
UUID D75E8....5249 (DCE, v4)
Last mounted at "/jffs"
Volume size 2 GiB (2147483648 bytes, 524288 blocks of 4 KiB)
/dev/sda1 mounted to /jffs
--- /dev/sda2
Block device, size 12.91 GiB (13861109760 bytes)
Ext4 file system
UUID 4BCEF....6EF12 (DCE, v4)
Last mounted at "/opt"
Volume size 12.91 GiB (13861109760 bytes, 3384060 blocks of 4 KiB)
/dev/sda2 mounted to /opt



_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2999
Location: Germany

PostPosted: Sun Jul 25, 2021 9:40    Post subject: Reply with quote
Code:
Code:
--- /dev/sda
Block device, size 14.91 GiB (16008609792 bytes)
DOS/MBR partition map
Partition 1: 2 GiB (2147483648 bytes, 4194304 sectors from 32)
Type 0x83 (Linux)
Ext4 file system
UUID D75E....C5249 (DCE, v4)
Last mounted at "/jffs"
Volume size 2 GiB (2147483648 bytes, 524288 blocks of 4 KiB)
Partition 2: 12.91 GiB (13861109760 bytes, 27072480 sectors from 4194336)
Type 0x83 (Linux)
Ext4 file system
UUID 4BCE....6EF12 (DCE, v4)
Last mounted at "/opt"
Volume size 12.91 GiB (13861109760 bytes, 3384060 blocks of 4 KiB)
FAT32 file system (hints score 4 of 5)
Volume size 14.89 GiB (15992987648 bytes, 1952269 clusters of 8 KiB)
Volume name ""
/dev/sda not mounted Unsupported Filesystem


this is the output of

Code:
root@DD-WRT:~# disktype /dev/sda


is also not dd-wrt specific but a normal linux tool


how the program works internally i can't say, but probably it only reads the partition table in the master boot record

maybe you did something wrong with partitioning with fdisk....

as far as i remember you have a linux PC, so gparted would be a good choice.
simply delete the partitions and then in the tab "device" > "create partition table"
create a new MBR and then your two EXT partitions

if you have paritioned the stick in the router, it may also be that the partition table must be re-read...

Code:
umount /dev/sda1
umount /dev/sda2
blockdev --rereadpt /dev/sda


or something like this
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sun Jul 25, 2021 10:53    Post subject: Reply with quote
ho1Aetoo wrote:
this is the output of

Code:
root@DD-WRT:~# disktype /dev/sda


is also not dd-wrt specific but a normal linux tool
....
maybe you did something wrong with partitioning with fdisk....

as far as i remember you have a linux PC, so gparted would be a good choice.
simply delete the partitions and then in the tab "device" > "create partition table"
create a new MBR and then your two EXT partitions

if you have paritioned the stick in the router, it may also be that the partition table must be re-read...

Code:
umount /dev/sda1
umount /dev/sda2
blockdev --rereadpt /dev/sda


or something like this

Thanks. Maybe that /dev/sda entry was for the drive as a whole... The USB drive was originally formatted by Windows. Will try your suggestion next build.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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