Professional Web Applications Themes

OT: Please help! Cannot delete esoteric items in Trash! - Mac Programming

Please excuse my OT posting but in the mac user groups nobody could help. I cannot delete some esoteric items in my trash. Delete from the menu bar (safe and normal) doesn't work. Then I have tried sudo rm -r * and ALL other relevant option on the files in Terminal, on all the folders up the hierarchy as well as chown and chmod. I tried Apples Hard disk utility (in Panther) but that app tells me, the HD is ok. Its an external FW HD 500 GB with 1 partition. HD is about 400 GB used. So if only ...

  1. #1

    Default OT: Please help! Cannot delete esoteric items in Trash!

    Please excuse my OT posting but in the mac user groups nobody could
    help.

    I cannot delete some esoteric items in my trash. Delete from the menu
    bar (safe and normal) doesn't work. Then I have tried sudo rm -r * and
    ALL other relevant option on the files in Terminal, on all the folders
    up the hierarchy as well as chown and chmod.

    I tried Apples Hard disk utility (in Panther) but that app tells me, the
    HD is ok. Its an external FW HD 500 GB with 1 partition. HD is about 400
    GB used.

    So if only someone could tell me what is going on here and how I get my
    trash empty I would be very thankful !!!!!

    pwd
    /Volumes/Datenschleuder/.Trashes/501
    ls -l
    total 0
    drwx------ 3 root unknown 102 25 Nov 21:24 Jaguar
    drwxrwxrwx 3 root unknown 102 10 Nov 08:53 Korrespondenz
    drwxrwxrwx 3 root unknown 102 25 Nov 21:23 Korrespondenz Kopie
    drwxrwxrwx 3 root unknown 102 10 Nov 07:53 neues Linux Backup

    Then in Jaguar/:
    [G4:Datenschleuder/.Trashes/501] welz# cd Jaguar/
    [RG4:.Trashes/501/Jaguar] welz# ls -l
    total 0
    drwxrwxrwx 1066 root unknown 36244 2 Oct 20:01 ????????????HFS+
    Private Data

    In that folder then::
    [Robert-Welzs-G4:.Trashes/501/Jaguar] welz# cd
    \342\220\200\342\220\200\342\220\200\342\220\200HF S+\ Private\ Data/
    [Robert-Welzs-G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220
    \200HFS+ Private Data] welz# ls -l
    total 14808
    -rw-rw-rw- 1 root unknown 0 25 Nov 21:24 iNode1002995835
    -rw-rw-rw- 2 root unknown 1474 14 Jul 2002 iNode1004697955
    -rw-rw-rw- 2 root unknown 1140 14 Jul 2002 iNode1006294620
    -rw-rw-rw- 2 root unknown 1544 14 Jul 2002 iNode1008522422
    -rw-rw-rw- 2 root unknown 597 14 Jul 2002 iNode1010202497
    -rw-rw-rw- 2 root unknown 526 14 Jul 2002 iNode1011273977
    <snip>

    [G4:Datenschleuder/.Trashes/501] welz# ls
    Jaguar Korrespondenz Korrespondenz Kopie
    neues Linux Backup
    [G4:Datenschleuder/.Trashes/501] welz# cd Korrespondenz
    [G4:.Trashes/501/Korrespondenz] welz# ls
    Neumann Rechtsanwalt 13.5.03 L??????ung von Daten.sxw
    [G4:.Trashes/501/Korrespondenz] welz# ls -l
    ls:
    [G4:.Trashes/501/Korrespondenz] welz# mv Neumann\ Rechtsanwalt\ 13.5.03\
    L\355\266\212\355\262\250ung\ von\ Daten.sxw 123
    mv: : No such file or directory
    [G4:.Trashes/501/Korrespondenz] welz# mv Neumann\ Rechtsanwalt\ 13.5.03\
    L\355\266\212\355\262\250ung\ von\ Daten.sxw asd.txt
    mv: : No such file or directory

    The other directories in ./Trashes/ contain copies of this
    "Rechtsanwalt" letter. These are OpenOffice files. Any problems known
    with OpenOffice and my issue?

    Help, I don't know how to proceed further. I have tried chmod, chown
    welz
    iNode1011273977, then I tried to change owner and group in Finder
    "GetInfo" but the pop-up just snaps back to group: unknown. But I can
    change permissions on the inode files, in Finder and with chmod.

    drwxrwxrwx 3 root unknown 102 25 Nov 21:24 Jaguar
    drwxrwxrwx 3 root unknown 102 10 Nov 08:53 Korrespondenz
    drwxrwxrwx 3 root unknown 102 25 Nov 21:23 Korrespondenz Kopie
    drwxrwxrwx 3 root unknown 102 10 Nov 07:53 neues Linux Backup


    Dann "Auf alle Unterordner anwenden:"
    [G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220\200HF S+
    Private Data] welz# rm -r *
    rm: iNode1002995835: Operation not permitted
    rm: iNode1004697955: Operation not permitted
    rm: iNode1006294620: Operation not permitted
    rm: iNode1008522422: Operation not permitted
    <snip>

    although:
    -rw-rw-rw- 1 root unknown 0 25 Nov 21:24 iNode1002995835
    -rw-rw-rw- 2 root unknown 1474 14 Jul 2002 iNode1004697955
    -rw-rw-rw- 2 root unknown 1140 14 Jul 2002 iNode1006294620
    -rw-rw-rw- 2 root unknown 1544 14 Jul 2002 iNode1008522422
    -rw-rw-rw- 2 root unknown 597 14 Jul 2002 iNode1010202497
    <snip>

    What's that? This happened once before to me, just shortly before Norton
    killed that HD structure during an attempt to repair. I used DiskWarrior
    then but now I have those undeletable Items.

    I thought rw-rw-rw- rights on a file and I could execute rm * ? Where
    lies the clue?

    Further I tried:
    chown welz
    \342\220\200\342\220\200\342\220\200
    \342\220\200HFS+\ Private\ Data/
    chown: $$$$HFS+ Private Data/:
    Operation not permitted

    [G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220\200HF S+
    Private Data] welz# chown welz *
    [G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220\200HF S+
    Private Data] welz# ls -l
    total 14808
    -rw-rw-rw- 1 root unknown 0 25 Nov 21:24 iNode1002995835
    -rw-rw-rw- 2 root unknown 1474 14 Jul 2002 iNode1004697955
    -rw-rw-rw- 2 root unknown 1140 14 Jul 2002 iNode1006294620
    -rw-rw-rw- 2 root unknown 1544 14 Jul 2002 iNode1008522422

    no change!

    I speak C/C++ and could write a function if I only had a hint of what to
    do!!!!!!! Or are there funktions I could use in the shell to get rid of
    the inode files?

    I personally believe the inode files came from a quick copy in finder of
    my Jaguar hard disk (by drag and drop). Then Norton Disk doctor on that
    hard disk hang for several hours. I killed Norton and my HD had no
    entries in it's root directory any more although finder stated that 400
    GB were used. I booted from DiskWarrior (the latest) and repaired and
    now I have all my files back. But now I also have those 1500 files in my
    trash.


    Many thanks for your time and help!
    Robert Welz

    --
    The Adress net is against spammers
    and goes directly into the bin.
    To contact me privately reverse and use
    ed.xmgxuniLtrebor
    Robert Guest

  2. #2

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    In article <1g51a4a.zjra1316aasw0N%net>, net
    says... 

    I assume you've tried 'rm -rf *' too. Sounds like you have a fux0red
    filesystem though.

    Have you tried deleting by inode? I'm not going to test this on my box
    and I would wait for someone who knows more than I do to say whether
    this is insane or safe before trying but here's a suggestion:

    Get the dodgy file's inode:

    ls -i file_i_cant_delete

    Will give output something like:
    10607690 file_i_cant_delete

    That gives you the inode of the file - 10607690 in this case.

    Use 'df' to find the name of the device the file lives on:
    df
    Find your troublesome volume - the numbers and diskX_X bit will be
    different but you're looking for a line like:

    /dev/disk0s4 138567440 86208 138481232 0% /Volumes/Datenschleuder

    It's all been safe up to here - I'm not sure on the next bit so take
    care:

    clri /dev/disk0s4 10607690

    Using the /dev/diskXsX and inode number obtained previously...
    Now run 'fsck' on the volume...

    To be honest though if the filesystem is shagged I would rather backup,
    reformat and restore - and use HFS+ (Journaled).

    Good luck :/
    James Guest

  3. #3

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    James Weatherley <net> wrote:
     
    Well, its a 500 GB HD and 400 GB used. I come into financial truble by
    bying an appropriate Backup medium. And 95 DVD's with my double speed
    SuperDrive is painful lot time:(

    But thank you, you are right, principally.
    Greetings,
    Robert



    --
    The Adress net is against spammers
    and goes directly into the bin.
    To contact me privately reverse and use
    ed.xmgxuniLtrebor
    Robert Guest

  4. #4

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    James Weatherley <net> wrote:
     
    [Robert-Welzs-G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220
    \200HFS+ Private Data] welz% sudo fsck -y -f /dev/disk2s9
    Password:
    ** /dev/rdisk2s9
    BAD SUPER BLOCK: MAGIC NUMBER WRONG

    LOOK FOR ALTERNATE SUPERBLOCKS? yes

    SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
    -b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
    SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).
    [Robert-Welzs-G4:501/Jaguar/\342\220\200\342\220\200\342\220\200\342\220
    \200HFS+ Private Data] welz% sudo fsck -y /dev/disk2s9
    ** /dev/rdisk2s9
    BAD SUPER BLOCK: MAGIC NUMBER WRONG

    LOOK FOR ALTERNATE SUPERBLOCKS? yes

    SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
    -b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
    SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).

    What can I do now?

    Robert
    --
    The Adress net is against spammers
    and goes directly into the bin.
    To contact me privately reverse and use
    ed.xmgxuniLtrebor
    Robert Guest

  5. #5

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    > \200HFS+ Private Data] welz% sudo fsck -y -f /dev/disk2s9 

    You have to use fsck_hfs, as mentioned in the german group
    (de.comp.sys.mac.misc).

    Regards,
    Mani

    Manfred Guest

  6. #6

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    In article <1g51dxr.tuo41b13bh7erN%net>, net
    says... 

    Not much by the looks of things - the man pages say block 32 is usually
    an alternate super-block so you could alway try adding '-b 32' to your
    fsck.

    Your other post mentioned the problem we all have when backing up our
    drives now they are so much larger than removable storage. I think the
    only time/cost effective solution is to back up important data to
    another hard drive - whether manually or using RAID. No one has the time
    to back up monster drives to DVD and if you're not a business stuff like
    DLT is far to expensive...
    James Guest

  7. #7

    Default Re: OT: Please help! Cannot delete esoteric items in Trash!

    In article <1g51a4a.zjra1316aasw0N%net>,
    net (Robert) wrote:

    [a lot]

    Move an folder into the trash.
    Move the undeletable files to that folder
    rm -R the folder.

    Your shell has probably problems expanding the filenames.

    --
    This address is valid in its unmodified form but expires soon.

    Thomas Guest

Similar Threads

  1. 4 *.joboptions files from old Reader versionare stuck in Trash and I can't delete them
    By Sue_Mullins@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 2
    Last Post: December 4th, 03:26 AM
  2. Replies: 4
    Last Post: April 7th, 06:49 PM
  3. How to delete items NOT in a list
    By yoman in forum Coldfusion Database Access
    Replies: 2
    Last Post: December 6th, 06:36 PM
  4. Delete Multiple items with checkboxes
    By Jorge Ferreira in forum PHP Development
    Replies: 2
    Last Post: June 11th, 09:48 AM
  5. can not delete items from desktop (2k server & AD)
    By AdamG in forum Windows Server
    Replies: 3
    Last Post: June 4th, 12:40 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139