From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,523b1b9a7b5703a1,start X-Google-Attributes: gid111c93,public From: "Terry L. Ridder" Subject: badblocks app & kmalloc question Date: 1997/12/27 Message-ID: <682cpo$or8$1@gte1.gte.net>#1/1 X-Deja-AN: 310483783 X-Sender: terrylr@edgar.blauedonau.com Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: gte.net X-Auth: C25DC0110983D6CF52988491 Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Hello; Background: Alpha PC164 128 MB RAM SCSI card - ncr53c810 chipset SCSI driver - ncr53c810 NOT the 53c7,8xx driver harddrives - 2 ST32550N's 1 Quantum Fireball ST3.2S Linux - RedHat 4.2 /dev/sda -- ST32550N harddrive -- Linux drive /dev/sdb -- ST32550N harddrive -- NT4.0 /dev/sdc -- ST3.2S harddrive -- Linux drive The /dev/sda harddrive developed several bad blocks which required the drive to be reformatted. Before restoring the filesystems from tape the ran the following: badblocks -b 1024 /dev/sda3 1536000 consistantly I receive a scsidisk error message in /var/log/messages concerning sector 2163128. I decided to run badblocks in read/write mode with the following command: badblocks -b 1024 -s -v -w /dev/sda3 1536000 This command fails and basically hangs the machine for awhile til it can be 'killed'. I receive the following message: "Couldn't get a free page..." which is coming from /usr/src/linux/mm/kmalloc.c Before I dive into this problem has anyone else ever seen this problem? I am able to run the read/write test by doing it in 100000 block segments. i.e. badblocks -b 1024 -s -v -w /dev/sda3 100000 000000 badblocks -b 1024 -s -v -w /dev/sda3 200000 100000 badblocks -b 1024 -s -v -w /dev/sda3 300000 200000 ... badblocks -b 1024 -s -v -w /dev/sda3 1536000 1500000 I do not receive the same errors as the read-only test. I receive several different sectors as being unrecovered read errors, the sectors are all in the same cylinders however. I will need to reformat the drive once again, but why does badblocks in read/write mode interact so negatively with kmalloc? I have never seen this message before running badblocks. Does anyone have an educated guess as to how valid badblocks is for finding bad blocks in a SCSI disk partition? Terry L. Ridder Blue Danube Software (Blaue Donau Software) "We do not write software, we compose it." When the toast is burnt and all the milk has turned and Captain Crunch is waving goodbye when the Big One finds you may this song remind you that they don't serve breakfast in hell ==Breakfast==Newsboys