*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, 04: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?
-
-
IDG Tech News
-
23rd March 2009, 04:30 PM #2
- Rep Power
- 9
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!
EDIT:
Thats assuming your doing it through terminal. You'll prob find you'll have to do it that way.
So load up terminal
su -
cd /media/hda-xyz/location/of/files
rm -rf <files>
Last edited by AdamK; 23rd March 2009 at 04:32 PM.
-
-
23rd March 2009, 04: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, 04:37 PM #4
- Rep Power
- 9
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, 04:38 PM #5
-
-
23rd March 2009, 04: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, 04:46 PM #7 Boy, am I having a dumb day!
-
-
23rd March 2009, 04: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, 04:48 PM #9
-
-
23rd March 2009, 04:51 PM #10
- Rep Power
- 9
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, 04:58 PM #11 I always like the GUI route with Ubuntu 
sudo nautilus
<password>
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 05:00 PM.
-
SHARE:
Similar Threads
-
By Oops_my_bad in forum Scripts
Replies: 2
Last Post: 23rd January 2009, 12:21 AM
-
By tri_94 in forum Scripts
Replies: 9
Last Post: 30th April 2008, 04:56 PM
-
Replies: 3
Last Post: 18th January 2008, 02:46 PM
-
By HeyJude in forum Windows
Replies: 2
Last Post: 28th August 2007, 06:08 PM
-
By secman in forum Windows
Replies: 13
Last Post: 5th October 2006, 11:48 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules