Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 12-03-2003, 05:03 PM   #1
Registered: Oct 2003
Posts: 67

Rep: Reputation: 15
Unhappy file system problem...

I am using linux for 2 months and i am a newbie to it. I've got windows xp along with redhat linux 9 on my machine. Recently i've installed NTFS drivers for my linux for accessing the windows partition. The mishap happened when i am trying to copy a file from windows partition to linux. It copied almost all of the file, which is actually 700MB and at the end the system got frozen. I've restarted the system and before booting, the system prompted for file system maintenance that it had found a bad file sector in the /ext2 file system. I've typed 'yes' at the prompt, and then the letter 'y' scrolled all through the screen. This went on for almost a day and i've tried to rebooted the system again which prompted the same thing which happened before. I've tried all the ways and finally ended up reinstalling the entire redhat linux.
Is there a way in linux to prevent copying files with bad sectors? I am scared now for copying anything. Can anyone help me find the exact reason for this?

Old 12-03-2003, 06:36 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,670

Rep: Reputation: 229Reputation: 229Reputation: 229
"Can anyone help me find the exact reason for this?"

I can only guess. So here are two guesses:

1. When you copy large files all of memory gets filled up with casche buffers. If you do not have swap enabled you can sometimes crash when memory is full. Check to make sure that you have swap set up correctly.

2. It is possible that you ran out of space on the partition that you were copying the file to, which should not result in a crash, but you never know. Use the df command to check the amount of space on all of your partitions.

Be prepared. Create a LifeBoat CD.

Steve Stites
Old 12-04-2003, 01:24 AM   #3
Ashish Pathak
LQ Newbie
Registered: Sep 2003
Location: Pune, India.
Posts: 17

Rep: Reputation: 0
First boot in single user mode with linux single command.
Then try fsck -a /dev/xxxx where xxxx is ur device name.
It will fix bad sectors and mark it as BAD.
Once sector is marked as BAD Linux will not allow to right any data on it.
For fsck umount ur partition first which u wanna check otherwise it will damage ur HDD.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Read-only file system' problem buehler Linux - Newbie 7 05-09-2006 01:13 AM
problem with file system boot... os2 General 2 07-14-2004 11:51 PM
file system problem.... mahamkali Linux - General 2 12-03-2003 05:28 PM
file system problem... mahamkali Linux - Software 0 12-03-2003 04:09 PM
File system type problem vtd Linux - General 1 04-26-2002 11:35 PM

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration