Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-21-2008, 03:05 PM   #1
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
udev, create raw disk device, how?


How do I create a raw disk device under RHES 5? Sybase wants raw disk space.

Under ver. 4 I used to to the following
1. create the dir. /dev/raw
2. mknod /dev/raw/raw1 c 162 1
3. raw /dev/raw/raw1 /dev/sdc1
4. edit the /etc/udev/permissions.d/50-udev.permissions file and assign the device to sybase.
5. edit the file /etc/sysconfig/rawdevices with the line
/dev/raw/raw1 /dev/sdc1
6. run /etc/init.d/rawdevices
7. do a chkconfig rawdevices on

The first 3 steps would create the raw devices. The remaining steps made sure they would return after a reboot.

Under 5 I've found out that I'm only supposed to use udev and add the line

ACTION=="add", KERNEL=="/dev/sdc1", RUN+="raw /dev/raw/raw1 %N"

to the file /etc/udev/rules.d/50-raw.rules and thats it.
There is no mention of the permissions.d dir or anything else.

after a reboot my /dev/raw dir goes away and does not return. What am I missing

Thank you
Thomas L. Gossard
Old 01-21-2008, 08:33 PM   #2
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
/dev as you have seen is dynamically managed. If you want a mknod'd file to show up in /dev persistently, you need to place it inside of /lib/udev/devices.
Old 01-23-2008, 10:50 AM   #3
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Check this knowledge base article ;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is a raw device? saintkay Linux - Desktop 2 09-17-2007 11:13 AM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 02:04 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM
UDEV and Raw devices swissworks Slackware 6 09-14-2004 01:08 PM
SuSE: How to create raw device stjacqd Linux - General 3 07-22-2004 06:29 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration