Thanks for solution re: Can't remove directory

2008-12-26 Thread Ron Wingfield

   Mr. Chuck:
   I found your post,
   [1]http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/0
   70766.html, re. system immutable flags  via Google.   Just want to
   say thanks.  :-)
   Sincerely,
   Ron W.

   [2]ron.wingfi...@archaxis.net
   501-920-7860 cell (best way)
   501-228-4798 home

References

   1. 
http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/070766.html
   2. mailto:ron.wingfi...@archaxis.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
Hi!

some months ago I'm install FreeBSD 5.2.1 on my PC. When I do it
I set default partition size. For example /var has 256 Mb. After
some time I found that It is too small for me. I move a lot of
directory to /usr and make symlinks to it:

mkdir /usr/var
mv /var/tmp /var/mail /var/log /usr/var
cd /var
ln -s /usr/var/tmp
ln -s /usr/var/mail
ln -s /usr/var/log

All of this working nice, except one: I cant remove /var/tmp.
Only rename working. In this directory placed one dyeless
directory /var/tmp/temproot/var/empty.

How can I remove this directory? I try to fsck -y in single user
momde, I trying rm -rf /var/tmp/temproot/var/empty in single user
mode with only /var mounted. But All of this useful.


-- 
Sensory  yours, Eugene  Minkovskii
 ,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: can't remove directory

2005-01-06 Thread Ted Mittelstaedt
What is the error message when you:

cd /var/tmp

rm -r temproot

as the root user?

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Eugene
 M. Minkovskii
 Sent: Thursday, January 06, 2005 12:55 AM
 To: freebsd-questions@freebsd.org
 Subject: can't remove directory


 Hi!

 some months ago I'm install FreeBSD 5.2.1 on my PC. When I do it
 I set default partition size. For example /var has 256 Mb. After
 some time I found that It is too small for me. I move a lot of
 directory to /usr and make symlinks to it:

 mkdir /usr/var
 mv /var/tmp /var/mail /var/log /usr/var
 cd /var
 ln -s /usr/var/tmp
 ln -s /usr/var/mail
 ln -s /usr/var/log

 All of this working nice, except one: I cant remove /var/tmp.
 Only rename working. In this directory placed one dyeless
 directory /var/tmp/temproot/var/empty.

 How can I remove this directory? I try to fsck -y in single user
 momde, I trying rm -rf /var/tmp/temproot/var/empty in single user
 mode with only /var mounted. But All of this useful.


 --
 Sensory  yours, Eugene  Minkovskii
  ,
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
On Thu, Jan 06, 2005 at 01:03:31AM -0800, Ted Mittelstaedt wrote:
 What is the error message when you:
 
 cd /var/tmp
 
 rm -r temproot
 
 as the root user?
 
 Ted

Sorry Ted. System write Operation not permitted:

rm: /var/old-tmp/temproot/var/empty: Operation not permitted
rm: /var/old-tmp/temproot/var: Directory not empty
rm: /var/old-tmp/temproot: Directory not empty
rm: /var/old-tmp: Directory not empty


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Eugene
  M. Minkovskii
  Sent: Thursday, January 06, 2005 12:55 AM
  To: freebsd-questions@freebsd.org
  Subject: can't remove directory
 
 
  Hi!
 
  some months ago I'm install FreeBSD 5.2.1 on my PC. When I do it
  I set default partition size. For example /var has 256 Mb. After
  some time I found that It is too small for me. I move a lot of
  directory to /usr and make symlinks to it:
 
  mkdir /usr/var
  mv /var/tmp /var/mail /var/log /usr/var
  cd /var
  ln -s /usr/var/tmp
  ln -s /usr/var/mail
  ln -s /usr/var/log
 
  All of this working nice, except one: I cant remove /var/tmp.
  Only rename working. In this directory placed one dyeless
  directory /var/tmp/temproot/var/empty.
 
  How can I remove this directory? I try to fsck -y in single user
  momde, I trying rm -rf /var/tmp/temproot/var/empty in single user
  mode with only /var mounted. But All of this useful.
 
 
  --
  Sensory  yours, Eugene  Minkovskii
   ,
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Sensory  yours, Eugene  Minkovskii
 ,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't remove directory

2005-01-06 Thread Chuck Swiger
Eugene M. Minkovskii wrote:
On Thu, Jan 06, 2005 at 01:03:31AM -0800, Ted Mittelstaedt wrote:
 What is the error message when you:
[ ...steps removed... ]
Sorry Ted. System write Operation not permitted:
rm: /var/old-tmp/temproot/var/empty: Operation not permitted
rm: /var/old-tmp/temproot/var: Directory not empty
rm: /var/old-tmp/temproot: Directory not empty
rm: /var/old-tmp: Directory not empty
Ah, what's happened is that the system immutable flag has been set on that 
directory.  You'll need to do:

chflags -R noschg /var/old-tmp
rm -rf /var/old-tmp
--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can't remove directory

2005-01-06 Thread Eugene M. Minkovskii
On Thu, Jan 06, 2005 at 05:20:55AM -0500, Chuck Swiger wrote:
 Eugene M. Minkovskii wrote:
 On Thu, Jan 06, 2005 at 01:03:31AM -0800, Ted Mittelstaedt wrote:
  What is the error message when you:
 [ ...steps removed... ]
 Sorry Ted. System write Operation not permitted:
 
 rm: /var/old-tmp/temproot/var/empty: Operation not permitted
 rm: /var/old-tmp/temproot/var: Directory not empty
 rm: /var/old-tmp/temproot: Directory not empty
 rm: /var/old-tmp: Directory not empty
 
 Ah, what's happened is that the system immutable flag has been set on that 
 directory.  You'll need to do:
 
   chflags -R noschg /var/old-tmp
   rm -rf /var/old-tmp
 

Thank you, Chuck. It's work. 

-- 
Sensory  yours, Eugene  Minkovskii
 ,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]