Problem assigning a disk-partition to a /dev/raw/rawN device

From: Jarle Aase (jgaa_at_jgaa.com)
Date: 04/11/05


Date: Mon, 11 Apr 2005 17:52:50 +0200

Hi,
I'm having a problem initializing raw devives. After creating the raw
devices in /dev/raw/, the "raw" command fails with an "Error setting raw
device (Invalid argument)" error when I try to assign it to a physical disk
partition.

The machine is a dual Opteron 2 Ghz machine with the Debian ("testing")
2.6.8-10-amd64-k8-smp kernel. The "scsi"-disk is a 200G SATA disk.

opteron:~# cd /dev/
opteron:/dev# mkdir raw
opteron:/dev# cd raw
opteron:/dev/raw# mknod /dev/raw/raw1 c 162 1
opteron:/dev/raw# raw raw1 /dev/sda1
Error setting raw device (Invalid argument)

opteron:/dev/raw# ls -l /dev/rawctl /dev/raw/raw1 /dev/sda1
crw-rw---- 1 root root 162, 0 2005-04-11 17:06 /dev/rawctl
crw-r--r-- 1 root root 162, 1 2005-04-11 17:09 /dev/raw/raw1
brw-rw---- 1 root disk 8, 1 2005-04-11 17:07 /dev/sda1

Does anyone have a clue about what's wrong?

Jarle

-- 
Jarle Aase                http://www.jgaa.com
mailto:jgaa@jgaa.com
<<< no need to argue - just kill'em all! >>>