Re: Query - Regarding strange behaviour.

From: Martijn van Oosterhout (kleptog_at_svana.org)
Date: 02/03/05

  • Next message: Martin Zwickel: "Re: Query - Regarding strange behaviour."
    Date:	Thu, 3 Feb 2005 17:31:15 +0100
    To: Pankaj Agarwal <pankaj@toughguy.net>
    
    
    

    On Thu, Feb 03, 2005 at 09:48:12PM +0530, Pankaj Agarwal wrote:
    > [root@test usr]# lsattr -d /usr/bin
    > su--ia------- /usr/bin

    Well, there's your problem. These mean:

    s: when deleted, its blocks are zeroed and written back to the disk
    u: when deleted, its contents are saved.
    i: cannot be modified: it cannot be deleted or renamed,
    a: can only be open in append mode for writing

    Remove those flags with chattr...

    Hope this helps,

    >
    > ----- Original Message -----
    > From: "S Iremonger" <exxsi@bath.ac.uk>
    > To: "Pankaj Agarwal" <pankaj@toughguy.net>
    > Cc: <linux-os@analogic.com>; <linux-kernel@vger.kernel.org>; "Linux Net"
    > <linux-net@vger.kernel.org>
    > Sent: Thursday, February 03, 2005 9:37 PM
    > Subject: Re: Query - Regarding strange behaviour.
    >
    >
    > >>its not even allowing me to copy it ...then surely it wont allow me mv as
    > >>well... what else can i try...
    > >>[root@test root]# mount
    > >>/dev/hda2 on / type ext3 (rw)
    > >>[root@test /]# cd /usr
    > >>[root@test usr]# cp bin testbin
    > >>cp: omitting directory `bin'
    > >
    > >"cp" does not normally copy direcrories as such by DEFAULT.
    > >
    > >Use the "-R" flag on "cp" to make it 'recurse' and copy the whole
    > > directory and directory/files under it.
    > >
    > >e.g. "cp -R bin bincopy"
    > >
    > >
    > >And, show us all the results of the following 2 commands, please.
    > >
    > >ls -ld /usr/bin
    > >lsattr -d /usr/bin
    > >
    > >--S Iremonger <exxsi@bath.ac.uk>
    > >
    >
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-net" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html

    -- 
    Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
    > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
    > tool for doing 5% of the work and then sitting around waiting for someone
    > else to do the other 95% so you can sue them.
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


    • application/pgp-signature attachment: stored

  • Next message: Martin Zwickel: "Re: Query - Regarding strange behaviour."

    Relevant Pages

    • Re: BluRay - HD DVD war over?
      ... universal "Multilayer Dual Optical Disk" that can store BluRay video; ... DVD video; and standard DVD programs. ... On reviewing the patent application more carefully, however, it remains to be seen whether or not this is good technology, and whether it could ever be commercialized. ...
      (rec.video.dvd.tech)
    • Re: LVM2
      ... XFS is an SGI project. ... >>Disk size: What are you doing with it. ... >>>Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 3ware 9550 using 3w-9xxx driver lockups ?
      ... other drives on other machines are reallocating sectors as well). ... Are you running the latest 3ware firmware for that controller? ... Vendor: AMCC Model: 9550SX-4LP DISK ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: log-buf-len dynamic
      ... Wake up, dude. ... disk and memory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Locking md device and system for several seconds
      ... While md synching (initial creation or after marked one as failed, ... while other tty's still work (until they access also to the disk). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)