Re: corrupted directory, I can not clear !! help !!
On Sun, Jan 12, 2003 at 10:41:41PM +0000, Dave Selby wrote:
> I have since moved debian to an 80GB drive hda.
> I want hdb to be a single linux partition I can use to archive data.
>
> I used linux fdisk to remove all partitions on hdb, I then created one
> partition on hdb, ie hdb1 taking up the entire disk.
>
> I ran mkfs.ex2 /dev/hdb1
>
> All AOK
> Except when I mount it and go into the directory I get .....
Mounted as read-only or read-write?
> debian:/mnt# cd archive/
> debian:/mnt/archive# ls
[windows installation]
> ie my windows directory !!! I dont undestand ..
> I cd to /mnt/archive, ie hdb1
>
> rm -rf *
>
> rm: cannot unlink `Program Files/Common Files/Microsoft
> Shared/Stationery/Santa Workshop.gif': Read-only file system
[...]
> Im stuck guys. I have tried e2fsck, it check out aok but somehow I am stuck
> with a corrupted DOS directory which I can not clear ??
How is /dev/hdb1 mounted? Read-only?
> I need an equiverlant of a DOS format command I think, the nearest I can find
> is fdformat but this is only for floppy disks.
What I've always used is cfdisk followed by mke2fs.
> Any ideas how I can wipe my hdb disk clean ??
# dd if=/dev/zero of=/dev/hdb
--
Seneca
seneca-cunningham@rogers.com
Reply to: