Results 1 to 7 of 7

Thread: deleting files

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    1

    deleting files

    How can I set Knoppix to delete files from my harddisks?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: deleting files

    --As root:
    ' mc '

    --But first you have to mount your partitions read/write, so:

    ' fdisk -l '
    ' mkdir /mnt/c '
    ' mount /dev/hda1 /mnt/c -orw '

    --Once you're in mc, ' cd /mnt/c ' - use Insert to tag files, F8 to delete them. Repeat the above steps for each partition you want to delete files on (drive D: is usually hda2 or hda5, etc and you have to have a separate mkdir (/mnt/d) for each, although you can name them whatever you want.)

    Quote Originally Posted by Dinant
    How can I set Knoppix to delete files from my harddisks?

  3. #3
    Member registered user
    Join Date
    Jan 2003
    Location
    UK
    Posts
    47
    man rm

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --RM is still too dangerous for *most* people to use, including "gurus." ' mc ' gets the job done safely, and asks for confirmation. The only (halfway) safe way to run plain 'rm' on multiple files, is if you are *not root* - and even then it may take out some files that you didn't think were vulnerable.

    Quote Originally Posted by Flibble
    man rm

  5. #5
    Member registered user
    Join Date
    Jan 2003
    Location
    UK
    Posts
    47
    I certainly agree that you want to be careful when you use rm, but not necessarily with the opinion that it's just too hard too use to even try. One of these days you'll find yourself on a *Nix box that doesn't have mc and then you are going to be screwed unless you know how to use the basic tools of the trade, including rm. If you are going to use it and are in anyway unsure then feel free to use the -i and -v switches to get all the information you need and a prompt before every removal. Do this enough times until you feel comfortable and then drop them. Its always a good idea to keep a regular backup of your system (man dump) so that you have something to fall back on if it all goes pear shaped irespective of your chosen deletion tool. I have no problems with anyone using whatever they need to get the job done, but I still believe that it makes sense to know basic command line tools (that includes vi I'm afraid) in the event that you find yourself on a system somewhere (and I have, many times) with nothing beyond a base install. I am not all that familiar with mc but I wager that it's also harder to include in shellscripts than rm (please feel free to correct me if I'm wrong, I like to learn ;>)

    BTW, having re-read my first post I realise it looks like an RTFM post, for which I apologise. I _really_ hate when I see those, and I didn't mean it to come across that way. I thought it was easier to just point in the direction of the relevant command and let man do the rest.

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    RM vs other (safer) tools

    --Yea, I know what you mean about boxes with just basic installs. It's not that rm is too *hard* to use, it's too DANGEROUS. It amazes me that for as long as *nix has been around, nobody has re-written the damn thing with at least some *basic* sanity checks by default. ("Prelim results show that you are deleting over 100(0) files from the / directory, with recursion. Abort/Continue?")

    --Dump doesn't work with anything but ext2 (and using it has been officially discouraged by Linus because of open / writing files.) Tar is the semi-"official" tool for backup, but it still doesn't handle ACL's (AFAIK.)

    --Regardless of the fact that most home users don't back up their systems like they should (all those reading this who are guilty, raise your hands...) this is a Knoppix forum, and Knoppix includes mc. Now let me put my arm down so I can type with both hands...

    --Knowing *basic* VI is undoubtedly helpful. But VI itself is a leftover from the 70's, and there are better alternatives available now. Knoppix is (kinda) for Linux newbies and ppl who can see its potential; if all you have is a basic install, it's always good to carry a floppy/cdr around with some GNU tools tarballed on it.

    --I haven't tried running mc through a script, altho it may be worth looking into. It's more of an interactive environment, with menus.

    --Thanks for the sentiment though, and for being sensitive to how things might come across. Lots of newbies get turned off on Linux by 1337 "RTFM" snobs on other forums; I try my best to encourage ppl to learn like I did; by researching the Web, reading books, and asking other users about stuff on forums like this one. Any help is appreciated.

    Quote Originally Posted by Flibble
    I certainly agree that you want to be careful when you use rm, but not necessarily with the opinion that it's just too hard too use to even try. One of these days you'll find yourself on a *Nix box that doesn't have mc and then you are going to be screwed unless you know how to use the basic tools of the trade, including rm. If you are going to use it and are in anyway unsure then feel free to use the -i and -v switches to get all the information you need and a prompt before every removal. Do this enough times until you feel comfortable and then drop them. Its always a good idea to keep a regular backup of your system (man dump) so that you have something to fall back on if it all goes pear shaped irespective of your chosen deletion tool. I have no problems with anyone using whatever they need to get the job done, but I still believe that it makes sense to know basic command line tools (that includes vi I'm afraid) in the event that you find yourself on a system somewhere (and I have, many times) with nothing beyond a base install. I am not all that familiar with mc but I wager that it's also harder to include in shellscripts than rm (please feel free to correct me if I'm wrong, I like to learn ;>)

    BTW, having re-read my first post I realise it looks like an RTFM post, for which I apologise. I _really_ hate when I see those, and I didn't mean it to come across that way. I thought it was easier to just point in the direction of the relevant command and let man do the rest.

  7. #7
    Member registered user
    Join Date
    Jan 2003
    Location
    UK
    Posts
    47
    "--Dump doesn't work with anything but ext2 (and using it has been officially discouraged by Linus because of open / writing files.) Tar is the semi-"official" tool for backup, but it still doesn't handle ACL's (AFAIK.)"

    Ha ha, you caught me. Its been a while since I did a "real" backup. I don't deal with our *Nix boxes anymore, and my Linux boxes are small enough (and my network disk capacity large enough) that I can get away with just DD'ing them up onto the LAN. Plus I then get to play around with them using TASK and Autopsy (@stake for details).

    Better alternatives to vi? That's a troll if ever I saw one. ;>

    I like the idea of carrying around a CDR with the tarballs, but again, I can probably find you at least 10 machines in here that don't have a compiler on them. No, I don't know why either. ;>

    This thread just highlights one of the beauties of Nix, there is no such thing as the One True Way, find what works for you and go with it, leaving yourself open to the possibilities that there are other ways to do what you do.

Similar Threads

  1. Deleting KDE ..
    By XX in forum General Support
    Replies: 4
    Last Post: 01-20-2004, 12:37 AM
  2. Deleting files to make room for new Knoppix ISO Image
    By Gnu Penguin in forum General Support
    Replies: 3
    Last Post: 09-11-2003, 12:27 AM
  3. Deleting of the piece ..eehh.. ;)
    By larryks in forum Customising & Remastering
    Replies: 2
    Last Post: 05-13-2003, 05:12 PM
  4. Deleting files on NTFS volume
    By frishert in forum General Support
    Replies: 4
    Last Post: 04-23-2003, 11:11 AM
  5. installing and deleting SWAP on MSDOS
    By patrick in forum General Support
    Replies: 3
    Last Post: 12-22-2002, 01:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA picture

HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA

$154.98



Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200 picture

Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200

$124.67



Intel Xeon E-2286G (SRF7C) 6-Core GHz 12 MB LGA 1151 CPU/Processor  picture

Intel Xeon E-2286G (SRF7C) 6-Core GHz 12 MB LGA 1151 CPU/Processor

$297.00



HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X picture

HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X

$309.99



Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W picture

Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W

$15.99



Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested picture

Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested

$5.90



Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture

Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5

$37.00



Matched Pair Intel Xeon E5-2680 v2 10-Core 2.80GHz 25MB LGA2011 SR1A6 picture

Matched Pair Intel Xeon E5-2680 v2 10-Core 2.80GHz 25MB LGA2011 SR1A6

$13.99



Intel Xeon Platinum 8168 SR37J 24-Core 48-Thread 2.70GHz 33MB Cache LGA3647-205W picture

Intel Xeon Platinum 8168 SR37J 24-Core 48-Thread 2.70GHz 33MB Cache LGA3647-205W

$279.99



Intel Xeon E5-2695 V4 2.10 GHz 18-Core SR2J1 LGA2011-3 CPU Processor 2695V4 picture

Intel Xeon E5-2695 V4 2.10 GHz 18-Core SR2J1 LGA2011-3 CPU Processor 2695V4

$29.87