It is currently Thu, 08 Jun 2023 12:50:40 GMT



 
Author Message
 how to create raw device on linux ?
Hello,

I'm not a linuz expert. But, I have to create a raw device on my test
Linux.

I've found 'raw' command for that. But, I could not be sure about
usage. Because, there are many rawNN under /dev/raw directory. And, I
I'm not sure if I can use them.

can you help me ?

thanks in advance...



 Sat, 12 Nov 2005 21:45:39 GMT   
 how to create raw device on linux ?
any update ?


 Sun, 13 Nov 2005 14:16:54 GMT   
 how to create raw device on linux ?

maybe the device is already in /dev/raw, try raw -q
man raw

If you don't mind experimenting give this a try
but pick a device you do not care about:
  raw /dev/raw/<newdev> /dev/<existing-block-device>
I did not do this though.
also take a look at /dev/MAKEDEV, maybe that could help

Jack

--
remove 'SPAMisBAD' from email address



 Mon, 14 Nov 2005 19:16:03 GMT   
 how to create raw device on linux ?
edit /etc/sysconfig/rawdevices, add line like:-
/dev/raw/raw1 /dev/sdb (whatever your raw device is!)
service rawdevices start
the command raw -qa should then list your raw devices
...I'm assuming this is for redhat?
Kind Regards
Stuart


 Mon, 14 Nov 2005 22:49:23 GMT   
 how to create raw device on linux ?
Most major Linux distributions come with several raw devices
precreated. Since Linux doesn't *really* know raw devices a work
around has been created so that standard block devices (your hard disc
partitions) can be written to as raw device (that is by circumventing
the OS's file system). Because of this the partition can not have a
file system created on it, or it must be completed erased (**NOT**
deleted, that is something completely different!

Now, the connection between raw devices, other device is 1on1. You
make the connection using a init script named raw that is (in my case
using SuSE /etc/init.d/raw). You will either have to run that script
manually (with raw start) or insert it into the runlevels you need
(possibly using insserv /etc/init.d/raw). The links from block device
to raw device is made know in a flat ascii text file that ( again in
SuSE) is called raw and situated in /etc, but it may be in
/etc/sysconfig for other distributions. The lines in this text file
(probably on RH as well) have the following syntax:

raw1:hdb1

Which simply means link raw device raw1 (in /dev/raw) to disc
partition hdb1 (as in /dev/hdb1). More raw devices? Add the lines.
Make sure you do NOT go beyond the number of raw devices you find
present. If you need more you can create them using (as root) *IN THE
SAME DIRECTORY AS YOUR OTHER RAW DEVICES ARE* using 'mknod
raw<number1> c 162 <number2>' where <number1> is the same as
<number2>, but you can not make more than 255 in all. <number1/2>
stands for the minor number of the raw device, so making raw device
number 25 would be 'mknod raw25 c 162 25', raw device 156 would be
'mknod raw156 c 162 156' etc. The 'c' stand for the type of device
yout making, the number 162 is mandatory and the designated device
number for Linux raw devices. Do NOT try to make a raw (or any other)
device with a minor number (that is the second number; in the example
25 or 156) higher than 255!

Regards, R.A. Reissaus
Risdi, Amsterdam, the Netherlands
Ibm/Informix Consultants
Telefoon: +31(0)20 4942174      : Phone
Mobiel  : +31(0)6 51185352      : Mobile
Fax     : +31(0)20 4940795      : Fax  
E-mail  : r.a.reiss...@risdi.com
Website : www.risdi.com



 Thu, 17 Nov 2005 21:25:19 GMT   
 how to create raw device on linux ?
Thanks all,

"raw -qa" returned nothing. can I say that the pre-created raw devices
are not in use ? If so, can I use them ?

thanks again...

r.a.reiss...@risdi.com (Robert A. Reissaus) wrote in message <news:87ad5966.0306010525.7e6fafdc@posting.google.com>...



 Mon, 28 Nov 2005 22:10:16 GMT   
 
   [ 6 post ] 

Similar Threads

1. Creating Raw Devices

2. how can i create a Raw Device File for a harddisk partition

3. How to create a raw device in RH 7.3

4. How can I create a raw device file for a harddisk partitition

5. Creating Raw Devices

6. Creating raw devices

7. creating a raw device on Solaris

8. Help: Create raw devices

9. character device, block device , raw device?

10. large hdd for cooked device and raw device


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software