+ Post New Thread
Results 1 to 11 of 11
*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 ...
  1. #1

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,467
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575

    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?

  2. #2

    Join Date
    Sep 2008
    Location
    Birmingham
    Posts
    82
    Thank Post
    31
    Thanked 8 Times in 7 Posts
    Rep Power
    13
    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 03:32 PM.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    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?

  4. #4

    Join Date
    Sep 2008
    Location
    Birmingham
    Posts
    82
    Thank Post
    31
    Thanked 8 Times in 7 Posts
    Rep Power
    13
    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

  5. #5

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,467
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575
    *meekly*
    yes sir....

  6. #6

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,467
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575
    OK. I'm SU'd in now. Can't get the syntax right for selecting all files in a directory. What is it?

  7. #7

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,467
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575
    Boy, am I having a dumb day!

  8. #8


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,657
    Thank Post
    350
    Thanked 789 Times in 710 Posts
    Rep Power
    344
    rm * from inside the dir will delete only files.
    rm -rf * will delete files and directories below your current location.

  9. #9

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,467
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575
    Ah just the * then.

  10. #10

    Join Date
    Sep 2008
    Location
    Birmingham
    Posts
    82
    Thank Post
    31
    Thanked 8 Times in 7 Posts
    Rep Power
    13
    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

  11. #11
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,346
    Thank Post
    66
    Thanked 174 Times in 146 Posts
    Rep Power
    59
    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 04:00 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. A script to delete files created by certain owners
    By Oops_my_bad in forum Scripts
    Replies: 2
    Last Post: 22nd January 2009, 11:21 PM
  2. Script to delete certain files
    By tri_94 in forum Scripts
    Replies: 9
    Last Post: 30th April 2008, 04:56 PM
  3. Replies: 3
    Last Post: 18th January 2008, 01:46 PM
  4. Replies: 2
    Last Post: 28th August 2007, 06:08 PM
  5. Users unable to permanently delete files.
    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
  •