LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux system hangs or restarts when working with 16GB or 32GB drives (https://www.linuxquestions.org/questions/linux-software-2/linux-system-hangs-or-restarts-when-working-with-16gb-or-32gb-drives-4175488376/)

hemanthkumar 12-17-2013 10:52 PM

Linux system hangs or restarts when working with 16GB or 32GB drives
 
Hi All,

I have an Linux embedded system running uClinux 2.4.27 kernel.I have filled 14GB of data in 16GB capacity pendrive.Now if i connect the drive to the system and initiate copying data (Using cp command from terminal)from the drive to the same drive and during the middle of data transfer if i remove the drive abruptly sometimes system hangs up or it goes for a restart.

It is observed only when the drive is almost filled with its capacity.And not observed when the drive is filled with only 2GB data out of 16GB.(i.e 14GB free space available)

Another observation is that with 32GB drive even if i fill some 14GB data out of 32GB same hanging or restarting behaviour is observed.

I'm using Cypress CY7C67300 USB Host controller interfaced with Freescale MCF5270 processor over Host Port Interface(HPI).

What is the actual problem? Does 2.4 kernel doesn't support 16 or 32GB drives or driver provided from cypress Semiconductor doesn't support? Is there a chance if i migrate to 2.6 kernel problem can be solved?

One more question regarding the same.What limits the the hardware for detection of higher size drives?

Please help.

Regards, Hemanth Kumar RV

michaelk 12-18-2013 09:50 AM

Why are you removing the drive abruptly? Are you doing this every time?

jefro 12-18-2013 03:00 PM

Might need a high quality flash with high speeds. I'd suspect the flash's controller but you may have some memory issue causing this. Full in space may be some swap issue needed.

haertig 12-18-2013 06:29 PM

Quote:

Originally Posted by hemanthkumar (Post 5082962)
... and during the middle of data transfer if i remove the drive abruptly sometimes system hangs up or it goes for a restart ...

I've noticed the same thing happens when I remove the power cord abruptly too.


All times are GMT -5. The time now is 08:53 AM.