*nix Thread, Knoppix can't delete files! in Technical; I basically have an old box here whose job it is to have images from weather stations FTP'd to it ...
23rd March 2009, 03:28 PM #1
Knoppix can't delete files!
I basically have an old box here whose job it is to have images from weather stations FTP'd to it to be spliced together and then sent to our main web servers as .mov files. What has happened is that it has choked on the amount of old files it has collated and not deleted. The machine now refuses to boot as it says the disk is too full. I've booted from a Knoppix disk and changed the HDA1 permissions to R\W, but every time I try and delete the images it comes up with an 'Access Denied' error. The orgional OS was Ubuntu, and me not being very Linux minded am left scratching my head, as Knoppix won't let me change the file permissions. How can I delete these tens of thousands of JPGs from within Knoppix?
23rd March 2009, 03:30 PM #2
- Rep Power
Did you "su -" into root?
With the version of Knoppix I use it loads up as a basic user first, then to do anything you need to change to root!
Thats assuming your doing it through terminal. You'll prob find you'll have to do it that way.
So load up terminal
rm -rf <files>
Last edited by AdamK; 23rd March 2009 at 03:32 PM.
23rd March 2009, 03:35 PM #3
You right-clicked on the desktop icon and changed the 'write mode' (or words to that effect) didn't you rather than changing the file permissions?
23rd March 2009, 03:37 PM #4
- Rep Power
I think you still don't have the permissions in write mode when accessing through the GUI, unless you were able to log on as root.
I tend to do things through terminal anyway so not 100% sure
23rd March 2009, 03:38 PM #5
23rd March 2009, 03:44 PM #6
OK. I'm SU'd in now. Can't get the syntax right for selecting all files in a directory. What is it?
23rd March 2009, 03:46 PM #7
Boy, am I having a dumb day!
23rd March 2009, 03:47 PM #8
rm * from inside the dir will delete only files.
rm -rf * will delete files and directories below your current location.
23rd March 2009, 03:48 PM #9
23rd March 2009, 03:51 PM #10
- Rep Power
yup "rm -rf *" does the trick
"rm *" will only delete files and will ask if you are sure you want to delete each file
"rm -f *" will force delete of all the files in the directory
And as pointed out above, "rm -rf *" will force the deletion of all files and subfolders in the directory
23rd March 2009, 03:58 PM #11
I always like the GUI route with Ubuntu
Then it brings up a GUI file manager with full root permissions
You prob wont have nautilus with Knoppix tho as its KDE i think, could try sudo konqueror instead
Last edited by Jamo; 23rd March 2009 at 04:00 PM.
By Oops_my_bad in forum Scripts
Last Post: 22nd January 2009, 11:21 PM
By tri_94 in forum Scripts
Last Post: 30th April 2008, 04:56 PM
Last Post: 18th January 2008, 01:46 PM
By HeyJude in forum Windows
Last Post: 28th August 2007, 06:08 PM
By secman in forum Windows
Last Post: 5th October 2006, 11:48 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)