LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 01-21-2008, 04:05 PM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 257

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


Hello,

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, 09:33 PM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 305

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, 11:50 AM   #3
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Check this knowledge base article ;

http://kbase.redhat.com/faq/FAQ_105_9616.shtm
 
  


Reply


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 12:13 PM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 03:04 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 06:08 AM
UDEV and Raw devices swissworks Slackware 6 09-14-2004 02:08 PM
SuSE: How to create raw device stjacqd Linux - General 3 07-22-2004 07:29 PM


All times are GMT -5. The time now is 10:54 AM.

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