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
  •  


IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System

$359.99



1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture

1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray

$318.00



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$349.99



VINTAGE IBM PC SERVER MODEL 325 Beige Tower Computer picture

VINTAGE IBM PC SERVER MODEL 325 Beige Tower Computer

$799.00



IBM System X 3550 M3 Server 80GB RAM Dual 2.67GHz Xeon Six Core X5650; 6128384 picture

IBM System X 3550 M3 Server 80GB RAM Dual 2.67GHz Xeon Six Core X5650; 6128384

$129.95



IBM System X3550 M2 Server 64GB RAM 2.5GHz Intel Xeon E5-2640 292GB SAS; 6128376 picture

IBM System X3550 M2 Server 64GB RAM 2.5GHz Intel Xeon E5-2640 292GB SAS; 6128376

$99.95



IBM Cloud Object Storage Slicestor 2448 E5-2637 3.5Ghz 128GB DDR4 - NO HDD - NEW picture

IBM Cloud Object Storage Slicestor 2448 E5-2637 3.5Ghz 128GB DDR4 - NO HDD - NEW

$500.00



IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L picture

IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L

$599.95



IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture

IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)

$41.99



IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$229.99