What's new

deleting router usb files......

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

zainday4

Regular Contributor
I had issues with media server getting screwed up and tried a couple different things but couldn't get it to work.......
I could see the router on pc but it wasn't showing up the dlna media server...
So I had to rename asusware to asusware_old and .dms to old.dms.....
Unplugged drive and plugged back in and was able to install media server files and it made new folders....
Running windows 7 and don't know linux.
Question is:
is there a way to delete those old folders, seems they are protected from deletion, through the router, from pc to drive itself...
Thanks in advance!
Zainday
 
Last edited:
Since there hasn't been any replys, I geuss I'm stuck with the files? lol
 
I don't know how to guide you to give yourself root access, but maybe you can physically plug it into a system to delete those files instead?
 
I can't remember if you can telnet into the router with that firmware, but if you can... (you'll have to do some unix commands)

Change directory above offending directories then,

chmod -R 777 asusware_old
chmod -R 777 old.dms

then

rm -r asusware_old
rm -r old.dms

They should be gone
 
update: I finally found it in /tmp/mnt/WD_MY_BOOK# and was able to delete the old.dms file, but when I try to delete the asusware_old, I get this

ASUSWRT RT-N56U_3.0.0.4 Thu Feb 20 18:38:07 UTC 2014
admin@RT-N56U:/tmp/home/root# cd /tmp/mnt/WD_MY_BOOK
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK# ls
VIDEO asusware asusware_old
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK# chmod -R 777 asusware_old
chmod: asusware_old/etc/mes_general.conf: Input/output error
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK# rm -r asusware_old
rm: can't stat 'asusware_old/etc/mes_general.conf': Input/output error
rm: can't remove 'asusware_old/etc': Directory not empty
rm: can't remove 'asusware_old': Directory not empty
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK# cd asusware_old
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK/asusware_old# ls
etc
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK/asusware_old# chmod -R 777 etc
chmod: etc/mes_general.conf: Input/output error
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK/asusware_old# rm -r etc
rm: can't stat 'etc/mes_general.conf': Input/output error
rm: can't remove 'etc': Directory not empty
admin@RT-N56U:/tmp/mnt/WD_MY_BOOK/asusware_old#

I can rename the file using
mv -f asusware_old asusware.old
but still can't delete it......not sure why it would let me rename but not delete...

Thanks for your time GUZ!
 
Last edited:
Aaa crap, I've had that same issue before. You didn't say what format the disk was... NTFS, FAT, FAT32, ext?

If the disk anything but ext, you have an issue of a long file/directory name using non-supported characters. The only way I found to fix it is to unmount the drive from the router and take it back to a computer.

Odds are that the computer will say that the drive is corrupted, if it does let it run a check disk.

Then you have to manually dive down to the bottom of the folder tree and rename any files that are in the offending folders. Just rename them to single letters (a, b, c, ...) then delete the file(s). Move up and try to delete the folder, if it doesn't delete, again rename the folder to a single letter (a) then delete.

Just keep doing this up the folder tree till you get to the top. Sorry, but it is time consuming process but it was the only way I could find to do it.

Now... if this doesn't work at all.... You're going to have to find a second drive and copy off all the other files/folders to it. Then format the first drive, then copy everything back to it.
 
It's ext3 format....
with about 1.5 TB of movies.
thanks for you advice....kinda thought i might have to hook it up to cpu but i have windows 7 on it and not sure if paragons program will work but looked into it and said it has read/write support for ext3....
just don't want the dig my hole deeper, if that screws things up more...
i'll mess with it later and see what I can or can't do...

Thanks again!
 
Last edited:
If it's ext3, telnet into the router. Unmount the drive and run fsck.ext3 on the drive. Then physically remove the drive and reconnect it to re-mount the drive. Then try the chmod, rm procedure again.

Don't bother with the paragon ext drivers on a windows machine. They are crap, IMHO. I've tried them on various systems and it just craps out most of the time.

Steps:
mount
(then note the dev name (/dev/sd(a or b)1)
umount /media/(name of mount)
fsck.ext3 /dev/sda1 (example)
(wait for it to finish checking the drive, then unplug the drive, wait 10, plug it back in)

If the chmod/rm procedure doesn't work, again, then do my previous post but when you are telnet'd into the router,cd down to the bottom, and try to rm the offending file(s), move up and rmdir the directory. Work your way back up the tree structure. You might have to do a combination of commands to delete the files/folders, rename, chmod, etc.
 
Last edited:
When I type mount from the top of the drive tree I get this, looks like the first part is /dev/sda1:

admin@RT-N56U:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /tmp/mnt/WD_MY_BOOK type ext2 (rw,nodev,noatime)
admin@RT-N56U:/# ls
bin dev home mmc proc sbin tmp www
cifs1 etc jffs mnt rom sys usr
cifs2 etc_ro lib opt root sysroot var
admin@RT-N56U:/#

I'm not sure if the mount point that your refering to is /tmp/mnt/WD_MY_BOOK or not, but when i try mount on that I get this...

admin@RT-N56U:/tmp/home/root# umount /tmp/mnt/WD_MY_BOOK
umount: can't umount /tmp/mnt/WD_MY_BOOK: Device or resource busy

I can't seem to figure out the umount /media/ ......Name of mount part
I tried a couple of different things, but im kinda lost (don't know this stuff)
Ill keep trying to figure it out .
Thanks for your help.....

update.....got it to unmount with this command
umount -l /dev/sda1
shows up as unmounted in the GUI.
but then when i try fsck.ext3 /dev/sda1
I get this:
e2fsck 1.38 (30-Jun-2005)
WD MY BOOK contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error allocating inode bitmap (2): Communication error on send
fsck.ext3:
admin@RT-N56U:/#
 
Last edited:
update.....got it to unmount with this command
umount -l /dev/sda1
shows up as unmounted in the GUI.
but then when i try fsck.ext3 /dev/sda1
I get this:
e2fsck 1.38 (30-Jun-2005)
WD MY BOOK contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error allocating inode bitmap (2): Communication error on send
fsck.ext3:
admin@RT-N56U:/#

That's a start as it's showing there are errors. But "My bad", I forgot the exact syntax to fix the drive (it's been awhile since I've done a fsck).

fsck.ext3 -pf /dev/sda1

The -pf option means "Automatic repair (no questions), Force checking even if filesystem is marked clean"
 
UHHHGGGG......lol.....GRRRRRR

ASUSWRT RT-N56U_3.0.0.4 Thu Feb 20 18:38:07 UTC 2014
admin@RT-N56U:/tmp/home/root# umount -l /dev/sda1
admin@RT-N56U:/tmp/home/root# fsck.ext3 -pf /dev/sda1
WD MY BOOK: Error allocating inode bitmap (2): Communication error on send
fsck.ext3:
admin@RT-N56U:/tmp/home/root# cd /
admin@RT-N56U:/# fsck.ext3 -pf /dev/sda1
WD MY BOOK: Error allocating inode bitmap (2): Communication error on send
fsck.ext3:
admin@RT-N56U:/#

I don't know what i'm doing wrong.....do you think it would be easier to try and make a boot disc of linux and try and delete it, OR Just leave the damn file and call it a day....lol..... I hate to give up.....it shouldn't be this complicated...but not sure what to do....feel like im chasing my tail, round and round and not getting anywhere lol.....

I like learning things but hard when your not getting the response you want from these damn electronics....lol
 
I don't know what i'm doing wrong.....do you think it would be easier to try and make a boot disc of linux and try and delete it, OR Just leave the damn file and call it a day....lol..... I hate to give up.....it shouldn't be this complicated...but not sure what to do....feel like im chasing my tail, round and round and not getting anywhere lol.....

I like learning things but hard when your not getting the response you want from these damn electronics....lol

At this point, ya. Go make/download a live Linux boot disk and work on the drive on your PC. I wouldn't just leave it 'as is', because there is something wrong. If you don't correct it, you might loose your stuff later.

P.S.
PLEASE, make sure you have a backup of your files, just in case...
 
Last edited:
Personally, I like to name my external drives as the size of the drive, i.e. 750GB or 2TB.
Ya I always rename my drives to manufacture and size....like SEAGATE 70GB...etc
Just got a linux disc ready to test out.
Will report back if I have success.....
Thank you EVERYONE!
Zainday
 
Thanks for everyones help.

I was able to use KNOPPIX boot cd and with some guess work and fingers crossed I finnagled my way around (have no clue, never used) but was able to rename the mount point from WD_MY_BOOK to WD2TB. I was also able to delete the damn folders that weren't deleting. Even Knoppix didn't want to do it at first, but kept messing with things and finally was able to get it off the drive....If it's still there, I can't see it and Knoppix had it in it's trashcan when I unmounted the drive....then was able to delete contents in trashcan.
WOOHOO.....now I have to find something else to mess with, jk...

Thanks GUZ for your time!:D
Appreciate it!
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top