I’m trying to create shared raw devices on opensuse 10.3. 1) I created raw partitions but when i try #raw -qa i receive the mentioned error. I tried all options but does not work.
2) I would like to know how to check / access raw partitions from a different system within the network. may be some example commands to view raw partitions from system 2
I created 5 logical partitions (under the extended partitions option on my second hard drive) of 150M each with fdisk /dev/sdb and i created the binding file as well. Any help is extremely appreciated.
sunny@sunny1:~> su -
Password:
sunny1:~ # uname -a
Linux sunny1 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 i686 i386 GNU/Linux
sunny1:~ # fdisk -l
Disk /dev/sda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003b052
Device Boot Start End Blocks Id System
/dev/sda1 1 96 771088+ 82 Linux swap / Solaris
/dev/sda2 * 97 2012 15390270 83 Linux
/dev/sda3 2013 4866 22924755 83 Linux
Disk /dev/sdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbfffbfff
Device Boot Start End Blocks Id System
/dev/sdb1 1 2434 19551073+ 5 Extended
/dev/sdb5 1 19 152554+ 83 Linux
/dev/sdb6 20 38 152586 83 Linux
/dev/sdb7 39 57 152586 83 Linux
/dev/sdb8 58 76 152586 83 Linux
/dev/sdb9 77 95 152586 83 Linux
sunny1:~ # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_MAXTOR_6L040J2_362215724756-part1 swap swap defaults 0
0/dev/disk/by-id/scsi-SATA_MAXTOR_6L040J2_362215724756-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_MAXTOR_6L040J2_362215724756-part3 /home ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
sunny1:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 3.1G 11G 23% /
udev 252M 100K 252M 1% /dev
/dev/sda3 22G 188M 21G 1% /home
sunny1:~ # cat /etc/raw
raw5:sdb5
raw6:sdb6
raw7:sdb7
raw8:sdb8
raw9:sdb9
sunny1:~ # zgrep -i raw /proc/config.gz
CONFIG_IP_NF_RAW=m
CONFIG_IP6_NF_RAW=m
CONFIG_IEEE1394_RAWIO=m
CONFIG_ARCNET_RAW=m
CONFIG_HDLC_RAW=m
CONFIG_HDLC_RAW_ETH=m
CONFIG_SERIO_RAW=m
CONFIG_RAW_DRIVER=m
CONFIG_MAX_RAW_DEVS=4096
CONFIG_SND_RAWMIDI=m
CONFIG_USB_SERIAL_SIERRAWIRELESS=m
sunny1:~ # zgrep -i 162 /etc/modprobe.conf
alias char-major-162 raw
sunny1:~ # cd /dev
sunny1:/dev # ls -l raw
cannot access raw: No such file or directory
sunny1:/dev # mkdir raw
sunny1:/dev # cd raw
sunny1:/dev # mknod raw5 c 162 5
sunny1:/dev # mknod raw6 c 162 6
sunny1:/dev # mknod raw7 c 162 7
sunny1:/dev # mknod raw8 c 162 8
sunny1:/dev # mknod raw9 c 162 9
sunny1:/dev/raw # ls -l
crw-r–r-- 1 root root 162, 5 Mar 25 20:20 raw5
crw-r–r-- 1 root root 162, 6 Mar 25 20:20 raw6
crw-r–r-- 1 root root 162, 7 Mar 25 20:20 raw7
crw-r–r-- 1 root root 162, 8 Mar 25 20:21 raw8
crw-r–r-- 1 root root 162, 9 Mar 25 20:21 raw9
sunny1:/dev/raw # /etc/init.d/raw start
sunny1:/dev/raw # /sbin/chkconfig raw on
sunny1:/dev/raw # raw -qa
Cannot open master raw device ‘/dev/rawctl’ (No such file or directory)
sunny1:/dev/raw # raw /dev/raw/raw5 /dev/sdb5
Cannot open master raw device ‘/dev/rawctl’ (No such file or directory)
Note: /dev/raw directory(with files: raw5,raw6,raw7,raw8, raw9 created by mknod ) gets deleted on reboot.