rohitsz Posted August 14, 2006 Report Share Posted August 14, 2006 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. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted August 14, 2006 Report Share Posted August 14, 2006 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 Quote Link to comment Share on other sites More sharing options...
rohitsz Posted August 14, 2006 Author Report Share Posted August 14, 2006 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. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted August 14, 2006 Report Share Posted August 14, 2006 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. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 14, 2006 Report Share Posted August 14, 2006 Seems that the partition table is totally screwed up (it reports the win98 partition being 2.6 terrabytes long which is impossible). A virus? Quote Link to comment Share on other sites More sharing options...
Urza9814 Posted August 14, 2006 Report Share Posted August 14, 2006 (edited) 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 August 14, 2006 by Urza9814 Quote Link to comment Share on other sites More sharing options...
rohitsz Posted August 15, 2006 Author Report Share Posted August 15, 2006 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. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted August 15, 2006 Report Share Posted August 15, 2006 If you don't fancy formatting, suggest you get the good data off quick before you lose everything altogether. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.