Jump to content

delete tera bytes of data


Recommended Posts

Greetings there.

 

Well i am in a kind of a weird situation.

This problem is created by windows, but i think linux can get me out of this.

So it happened one day, that my win98 partition somehow got corrupted, and it left a hell lot of files that range from 500M to 2+G.

A screen shot of the same is here

 

So i tried to mount that partition as rw, but whenever i try to delete any file(with a little less strange names than the ones in the pic), i get a read-only file system error.

I have tried tools like 'rm -f', 'shred -f'.

But still no success.

Also i even tried writing a small piece of code in java to truncate the files, but still the same 'read-only' file system error.

Here's the proof:

(see /dev/hda1 mounted rw on /mnt/win_c)

[root@localhost win_c]# mount
/dev/hdb8 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=43)
/dev/hdb2 on /boot type ext3 (rw)
/dev/hdb10 on /home type ext3 (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--)
/dev/hda1 on /mnt/win_c type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hdb5 on /mnt/win_c2 type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hda5 on /mnt/win_d type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hdb6 on /mnt/win_d2 type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hda6 on /mnt/win_e type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hda7 on /mnt/win_f type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hda8 on /mnt/win_g type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
/dev/hdb9 on /usr type ext3 (rw)
[root@localhost win_c]# ls ding_com.pon
ding_com.pon*
[root@localhost win_c]# shred -f ding_com.pon
shred: ding_com.pon: Read-only file system
[root@localhost win_c]#

 

Kindly help me how can i remove those files thru linux.

 

thanks,

rohit.

Link to comment
Share on other sites

If you type this:

 

mount

 

it should show your mounted drives, does it show the fat32 mounted, and does it show as rw? If as ro, try this from my website:

 

http://www.buziaks.com/ian/mdk10xmountdiskreadwrite.htm

Link to comment
Share on other sites

Hi ian,

 

If you type this:

 

mount

 

it should show your mounted drives, does it show the fat32 mounted, and does it show as rw? If as ro, try this from my website:

 

http://www.buziaks.com/ian/mdk10xmountdiskreadwrite.htm

 

My partition is mounted rw...

[root@localhost win_c]# mount |grep /dev/hda1
/dev/hda1 on /mnt/win_c type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
[root@localhost win_c]#

 

As you can see it is mounted in rw mode.

What i can make of this is probably, due to large files, some how this error is cropping up. I am looking for a low level file deletion utility, if that fits in this situation.

 

thanks,

rohit.

Link to comment
Share on other sites

Low level normally deals with sectors. I suggest getting your data off fast, and then formatting it and starting again. Hope you have enough spare space, or DVD's to archive to.

 

If it's preventing you deleting, something is going pear-shaped.

Link to comment
Share on other sites

Did you try some kind of scandisk type utility? I had a similar problem on my iPod nano...it has a buncha junk files and was reporting around 100GB used space when the thing only holds 4GB. I ran WinXP's scandisk and it cleaned it up.

Though now that I think about it, it still reported the drive as being full and I did end up reformatting....but it might work better on an actual disk or something...haha

Edited by Urza9814
Link to comment
Share on other sites

Greetings there,

 

Well actually i was handed over the system in this state, so really don't know how it landed in this state what i know is that there was extensive use of a 3D drawing package for quite some long time...

Also i did run scan disk but it says to free up disk space.

But that is windows incapability...

 

Is there any way that i do not mount the partition or using the dd command anyways to delete those files?

i need to dig more deeper..i am not favoring formatting of the partition, as the re-install of software is a big bore on windows!

 

anyways, thanks for all your help, i am looking for more,will put here if i find anything..

 

regards,

rohit.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...