[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mknod on /dev/hda when it's already a directory - ??



On Sun, Jan 07, 2007 at 07:36:44PM -0600, mark david mcCreary wrote:
> 
> >>  rm -rf /dev/hda
> >>  
> >>  rm: cannot remove directory `hda': Directory not empty
> > 
> > what does
> > 
> >  ls -ld /dev/hda
> > 
> > say?
> > 
> 
> 
> 
> 
> ls -ld /dev/hda
> drw-rw-r--    2 root     disk         1024 Sep 17  2005 /dev/hda

You removed the execute bit, run:
chmod a+x /dev/hda
then retry:
rm -fr /dev/hda

If this doesn't work check extended attributes:
lsattr /dev/hda

As the last resort, boot from a CD and remove and recreate the file this
way.

Marcin



Reply to: