Results 1 to 10 of 10

Thread: ok, how do I delete this file?

  1. #1
    Join Date
    Feb 2007
    Beans
    34
    Distro
    Ubuntu 11.04 Natty Narwhal

    ok, how do I delete this file?

    I have a file that looks a little corrupt any ideas how to delete it?

    Code:
    $ ls -la
    ls: cannot access objects: Permission denied
    total 0
    drwxrwxrwx 3 root root  72 2008-08-04 13:34 .
    drwxrwxrwx 3 root root 112 2008-08-04 14:18 ..
    ?????????? ? ?    ?      ?                ? objects
    I have tried as root to
    Code:
    sudo rm objects 
    sudo chmod 777 objects 
    sudo chown root:root objects
    I just get an error message saying
    Code:
    rm: cannot access objects: Permission denied
    chmod: cannot access objects: Permission denied
    I also created an root shell and tried from there. I didn't expect it to work and was right.

    It was in /usr/lib/vmware/messages/binary directory and stopped vmare from running as it needed to write something to the file. I got around this my moving the vmware directory somewhere else on the same file system. Then with recursion turned on copied it back. All but the corrupt file went back, after a bit of messing around So I am up and running again. Almost forgot the FS is reiserfs over a 3 disk raid 5 array with lvm over the top of that just for good measure.

    But this is now bugging me

    Thought someone out there might like to solve this puzzle. Fdisk, format etc does not count as an answer!!!

  2. #2
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ok, how do I delete this file?

    what about
    Code:
    sudo ls -la
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  3. #3
    Join Date
    Feb 2007
    Beans
    34
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: ok, how do I delete this file?

    The problem is root does not have permission to do anythingto the filke either

    Code:
    $ sudo ls -la
    ls: cannot access objects: Permission denied
    total 0
    drwxrwxrwx 3 root root  72 2008-08-04 13:34 .
    drwxrwxrwx 3 root root 112 2008-08-04 14:18 ..
    ?????????? ? ?    ?      ?                ? objects

  4. #4
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ok, how do I delete this file?

    okay well thats pretty interesting. Why dont you pop in the liveCD and mount the drive and then rm it from there.
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  5. #5
    Join Date
    Feb 2007
    Beans
    34
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: ok, how do I delete this file?

    I hadn't thought of that. Now, I just need to figure out how to mount the RAID5 and LVM parts from the live CD or a system rescue disk.

  6. #6
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ok, how do I delete this file?

    is it a hardware or software raid?
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  7. #7
    Join Date
    Feb 2007
    Beans
    34
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: ok, how do I delete this file?

    it is software raid. I configured it when as I did the last complete install with the ALT install CD.

  8. #8
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ok, how do I delete this file?

    okay thats pretty similar to my setup. I just use the scan option in mdadm. It auto detects my RAID 5 config and lets me mount /dev/md0. This is in the 8.04 liveCD.
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  9. #9
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: ok, how do I delete this file?

    Anything in dmesg after "ls -la" ?

  10. #10
    Join Date
    Feb 2007
    Beans
    34
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: ok, how do I delete this file?

    nope nothing gets added to the the output of dmesg.

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
  •