[plug] Removine a block device ....

Anthony J. Breeds-Taurima tony at cantech.net.au
Mon Jan 11 11:26:41 WST 1999


Hello All,
	I have a problem with my machine at home :(.  One of my HDD's is dying a
slow and painfull death, painfull for me that is.  One of the nasty things is
has done to me is change by pdf_draw.ps file, that comes with ghostscript
4.03, to a block device :(
--
  File: "pdf_draw.ps"
  Size: 1074358160   Filetype: Block Device
  Mode: (5160/b--srw---t)         Uid: (16393/  (none))  Gid: (51088/  (none))
Device:  8,0   Inode: 2109      Links: 1         Device type: 109,0 
Access: Sun Jan 18 00:46:40 2004(-01832.13:28:36)
Modify: Tue Jan 13 00:13:04 2004(-01827.12:55:00)
Change: Sun Jan 18 00:49:04 2004(-01832.13:31:00)
--

So I have 2 questions;

1) How can I delet it ???
   I tried rm,chmod etc etc as root: "Operation not permitted"
   I though about clearing the inode and letting fsck do the rest BUT I
   couldn't work out how to do that ???  ext2ed is on the /usr filesystem and
   so is the dud file.
2) What is the best way to migrate the files to a new drive:
   Would:
------
   mount /dev/XXX /mnt/newusr
   cd /usr
   find . \( -type f -o -type d -o -type l -o -type p \) -print0 | \
       cpio -dumpa0 /mnt/newusr
------
   work ??? given that I then use rpm to verify the new files ???
   or is there a better way to move the files ???

Yours Tony.



More information about the plug mailing list