LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-04-2003, 12:18 PM   #1
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Rep: Reputation: 30
Copy Files Between Drives Causes Kernel Panic/Freeze of the System


I have noticed that on a default install of slackware 9, I can't copy large amounts of files between hard drives without the kernel panic and the whole computer freezing up. The caps lock and scroll lock lights on the keyboard both blink when this happens. Has anyone else noticed this?
 
Old 08-04-2003, 02:38 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Any hints in the system log (/var/log/messages)?

# Watch error messages as they happen (sysklog needed)
as root, tail -f /var/log/messages (shows last 10 lines, use a number in front of f for more lines)
 
Old 08-06-2003, 04:09 AM   #3
zero_copy
Member
 
Registered: Aug 2003
Location: CT
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
what filesystems are u trying to read and write from/to. there are some (like NTFS) that are read only shoudl not be written to....check the kernel config to see if that particular fs is deemed "dangerous/experimental"
 
Old 08-07-2003, 05:45 PM   #4
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Original Poster
Rep: Reputation: 30
It doesn't leave anything in the logs.. Well, in this particular instance its reading/writing from a ReiserFS to FAT32, but I have had the same problem with ReiserFS to EXT3, and vice versa, I don't think its a file system problem really, as it doesn't seem to matter which file system because they all lock up at some point anyway...
 
Old 08-12-2003, 01:20 PM   #5
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Original Poster
Rep: Reputation: 30
sucks
 
Old 08-12-2003, 01:31 PM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
What are your hdparm settings for the drive(s)? My conservative settings:
Code:
root@uilleann # hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 4865/255/63, sectors = 78165360, start = 0
 busstate     =  1 (on)
root@uilleann # hdparm /dev/hdc

/dev/hdc:
 multcount    = 16 (on)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 9729/255/63, sectors = 156301488, start = 0
 busstate     =  1 (on)
Using some agressive settings that may freeze drives:

hdparm -X69 -d1 -u1 -m16 -c3 /dev/hd<X>

Last edited by fancypiper; 08-12-2003 at 01:34 PM.
 
Old 08-14-2003, 08:10 PM   #7
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Original Poster
Rep: Reputation: 30
bash-2.05b# hdparm /dev/hda

/dev/hda:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 59554/16/63, sectors = 60030432, start = 0

bash-2.05b# hdparm /dev/hdb

/dev/hdb:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9345/255/63, sectors = 150136560, start = 0
bash-2.05b# hdparm /dev/hdd

/dev/hdd:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9929/240/63, sectors = 150136560, start = 0
 
Old 08-14-2003, 08:30 PM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I would try changing some paramaters and see if it still occurs.

Try changing these settings back and forth and see if that fixes it.

hdparm -d1 -u1 -m16 -c3 /dev/hd<X>

Speeding up Linux Using hdparm
Not mentioned in the article:
UDMA 33/66/100. Add the -X option, and then this number i.e. (-X 69)
-X 33 ====> Multiword DMA
-X 66 ====> ATA-33 (UDMA2)
-X 68 ====> ATA-66 (UDMA4)
-X 69 ====> ATA-100 (UDMA 5)
 
  


Reply


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
What do I do to back up the kernel? Which files do I copy? (Debian kernel 2.4.27-2) GarethC Linux - General 6 08-02-2005 03:49 AM
Kernel Panic {not a critical system though} musicman_ace Linux - Distributions 2 03-13-2005 08:37 PM
"make clean" caused system freeze, kernel panic on reboot jwhill2000 Linux - General 3 02-08-2005 08:59 PM
[dump,restore] system => kernel panic? bdp Linux - General 2 01-12-2004 10:19 PM
How to copy files from A computer of NT System to The other one of Unix system? whepin Linux - Newbie 5 04-06-2003 11:50 AM


All times are GMT -5. The time now is 03:28 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration