Suse Linux 11创建RAW设备报错

发布时间:  2014-09-20 浏览次数:  332 下载次数:  0
SuseLinux1101:/media # raw /dev/raw/raw1 /dev/sdb
Cannot open master raw device '/dev/raw/rawctl' (No such file or directory)
SuseLinux1101:/media # fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x639f0564.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652):
Using default value 652

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
SuseLinux1101:/media # /etc/init.d/raw start
SuseLinux1101:/media # service raw status
SuseLinux1101:/media # raw /dev/raw/raw1 /dev/sdb1
/dev/raw/raw1:  bound to major 8, minor 17
SuseLinux1101:/media #
SuseLinux1101:/media # raw -qa
/dev/raw/raw1:  bound to major 8, minor 17