LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-26-2012, 09:47 AM   #1
weshutchins
Member
 
Registered: Oct 2003
Location: Phoenix, AZ USA
Posts: 31

Rep: Reputation: 0
Reboot issue using some CF drives


I'm seeing some interesting behavior when I perform a Linux reboot when the OS is loaded on particular models of compact flash drives.

A customer reported this problem using some later version of RH and I was able to recreate using Puppy Linux 4.2.1.

The CF drive resides on a PCI card with a SIL680 PCI/ATA controller.

When linux system is shutdown and then powered up everything boots fine. If linux system is rebooted then the system hangs and you have to power down the system. This problem occurs on more than one brand of CF but works fine with other brands.

When I load XP onto problem CF drive, reboot works fine.

So it appears to be something that Linux does in particular during a reboot.

My theory is that Linux must put CF drive into sleep mode or something and a reboot does not reset it out of this mode like a full powerdown does.
 
Old 03-26-2012, 02:44 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Two issues.

One is the ejecting of the CF I'd think. Once it ejects it stays that way over a reboot. I have seen it even on usb flash drives.

Other idea is.


For maybe the last 25 years this has been a common issue.

A reboot is not a shutdown.

Your system has not fully cleared all the registers before it rebooted. So the state is unknown.
 
Old 04-27-2012, 05:31 PM   #3
weshutchins
Member
 
Registered: Oct 2003
Location: Phoenix, AZ USA
Posts: 31

Original Poster
Rep: Reputation: 0
After sorting thru various traces it doesn't really appear to be a CF problem but how certain CF drives perform to an odd BIOS sequence. Basically the BIOS sets the CF drive to operate in PIO mode and then issues a DMA command. At powerup it seems to work fine for some reason. During reboot the last thing linux does is write to the disk in UDMA3 mode. Reboot of Window XP works since last write it does to disk is write in PIO mode so it is already operating as on powerup. The last thing Windows XP does to disk is a flush cache which I would advise that Linux incorporate into their reboot/powerdown sequence. It would probably be good to do the SLEEP command before powering down as well. This would spin down the drive before powering down and make hard drives last longer.

Some CF drives work since their reset does reset to as it is on powerup while others do not. So much as jefro says "A reboot is not a shutdown".
 
  


Reply



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
[SOLVED] Partitions on older drives not showing up after reboot McManCSU Linux - Software 6 08-01-2011 11:10 PM
hard drives aren't recognized until reboot Peterius Linux - Hardware 4 05-29-2011 07:59 AM
USB drives not detecting on a reboot Tyr_7BE Linux - Hardware 2 12-09-2010 10:49 PM
Re-Initialize hard drives without reboot johnnybhoy67 Linux - Software 3 02-28-2006 07:01 AM
Adding drives to Linux without reboot SolMan Linux - Hardware 2 12-17-2004 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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