Rob Owens wrote:
On Tue, Dec 15, 2009 at 09:38:42AM -0600, Kent West wrote:
Chris Jones wrote:
On Thu, Dec 10, 2009 at 06:04:03PM EST, Kent West wrote:
I've got a TeraStation Pro Network Attached Storage device connected to
a stable Debian box. I'm trying to free up some space by deleting old
backups, but have come across a file with a bad name. I'm smbmounting
the NAS to get to the file structure; I'm not real sure how the NAS
drives are formatted.
When I run "stat [tab key to autocomplete the name]" I get a different
node number often.
wes...@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
2008/445:> stat Tentative\ Schedule\ \?��\ Math\ 445.pdf
File: `Tentative Schedule ?\307\364 Math 445.pdf'
Size: 49699 Blocks: 104 IO Block: 16384 regular file
Device: 11h/17d Inode: 59670244 Links: 1
Access: (0766/-rwxrw-rw-) Uid: ( 101/ sshd) Gid: ( 100/ users)
Access: 2009-02-20 13:57:10.000000000 -0600
Modify: 2008-01-23 09:29:06.000000000 -0600
Change: 2009-02-20 13:57:08.000000000 -0600
wes...@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
2008/445:> stat Tentative\ Schedule\ \?��\ Math\ 445.pdf
stat: cannot stat `Tentative Schedule ?\307\364 Math 445.pdf': No such
file or directory
(The second attempt was just to recall my history with the up arrow; I
have to fill in the stat command with the TAB key to get any data.)
Then I tried to delete the file with some magic I found via Google:
wes...@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
2008/445:> find . -inum 59670414 -exec rm -i {} \;
rm: remove regular file `./Tentative Schedule ?\307\364 Math 445.pdf'? y
rm: cannot remove `./Tentative Schedule ?\307\364 Math 445.pdf': No such
file or directory
Then I try the stat command again, and find the inode number has changed:
wes...@]goshen.acu.edu]:/TERASTATIONBACKUP/RSYNC-BACKUP/home/web/html/mriggs/Archive/Spring
2008/445:> stat Tentative\ Schedule\ \?��\ Math\ 445.pdf
File: `Tentative Schedule ?\307\364 Math 445.pdf'
Size: 49699 Blocks: 104 IO Block: 16384 regular file
Device: 11h/17d Inode: 59670677 Links: 1
Access: (0766/-rwxrw-rw-) Uid: ( 101/ sshd) Gid: ( 100/ users)
Access: 2009-02-20 13:57:10.000000000 -0600
Modify: 2008-01-23 09:29:06.000000000 -0600
Change: 2009-02-20 13:57:08.000000000 -0600
Any suggestions as to how I can delete this file?
I missed the beginning of this thread, so maybe this has already been
suggested...
Try putting quotes around the filename.
rm "Tentative Schedule ? Math 445"
-Rob
apt-get install mc
mc
press F8 over the rare file name
done!!!
Olaf.
--
----------------------------------------------------------------------
"You don't know where your shadow will fall",
Somebody.-
----------------------------------------------------------------------
Ing. Olaf Reitmaier Veracierta <ola...@gmail.com>
----------------------------------------------------------------------
Personal Web Page -- http://olafrv.googlepages.com
----------------------------------------------------------------------
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org