Cannot Open /dev/raw/raw1

Rick Stevens rstevens at vitalstream.com
Thu Oct 6 17:23:13 UTC 2005


On Thu, 2005-10-06 at 11:40 -0500, Sidney Abrahams wrote:
> Can anyone tell me why the error:
> "Cannot open /dev/raw/raw1" occurs.
> I am using a database called D3 on Linux Redhat Enterprise WS4 which is
> supposed to write its data into an existing partition mounted as /opt and on
> boot up that partition is bound to /dev/raw/raw1.
> Is this a permissions problem?
> I tried making d3 owned by root but the same error occurred.

FC2/3/4 do not have raw device support enabled by default.  Why?  Well,
it's deprecated.  Under a 2.6 kernel, the proper way to do raw I/O is
to simply open the device (e.g. /dev/sda1) and specify the "O_DIRECT"
flag.  That, of course, doesn't help with closed-source applications.

You can have the old, 2.4-style raw stuff, but you need to rebuild the
kernel.  Download and install the kernel source.  When you do your "make
xconfig", go down to "Character Devices" and click on it.  In the right
window pane, go down towards the bottom and click on RAW device
support.  Rebuild kernel as normal.

Sorry about that.  However, a 2.6-kernel-aware version of D3 should know
about this (btw, is "D3" some open-source version of DB2?)

> -----Original Message-----
> From: redhat-install-list-bounces at redhat.com
> [mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Rick Stevens
> Sent: Thursday, September 29, 2005 01:25 PM
> To: Getting started with Red Hat Linux
> Subject: Re: grub install/setup oddity
> 
> On Wed, 2005-09-28 at 11:51 -0400, Mark J Strawcutter wrote:
> > Dell PE2850, RHEL4 AS installed from scratch.
> > 
> > /dev/sda and /dev/sdb identically partitioned
> > 
> > sda1 and sdb1 are md1 raid1 mounted /boot
> > sda2 and sdb2 are swap
> > sda3 and sdb3 are md3 raid1 mounter /
> > 
> > grub installed on sda as part of installation, systems booting fine.
> > 
> > In grub shell did:
> > 
> > device (hd0) /dev/sdb
> > root (hd0,0)
> > setup (hd0)
> > 
> > all worked fine without error.  But when I try to boot /dev/sdb I get
> thrown into
> > interactive grub (ie get grub prompt).  Even more interesting is that I
> can, at
> > this point, manually enter the root/kernel/initrd commands that are in the
> > grub.conf menu entry, followed by "boot" and the system comes up.
> > 
> > I then went into grub shell and did the device/root/setup commands on
> /dev/sda
> > and now it, too, throws me into interactive grub.
> > 
> > This says the install process "installed" grub differently than the
> device/root/setup
> > sequence is doing - the question is, different how?
> > 
> > BTW - I tried running "grub-install /dev/sdb" and get:
> > 
> > /dev/md1 does not have any corresponding BIOS drive.
> 
> This is a BIOS weirdie.  In BIOS, the first bootable drive is given the
> BIOS device value of 0x80.  The second drive is 0x81 and so on.  The
> problem here is that you've set things up to boot from /dev/sdb (BIOS
> drive 0x81) but the BIOS still wants to use device 0x80 (/dev/sda).
> 
> > Any suggestions what to try?  Thanks
> 
> Take a look at the "--device-map" options in grub to see how to fix the
> mapping.
> 
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
> - VitalStream, Inc.                       http://www.vitalstream.com -
> -                                                                    -
> -      Always remember you're unique, just like everyone else.       -
> ----------------------------------------------------------------------
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
> 
> 
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-    Admitting you have a problem is the first step toward getting   -
-    medicated for it.      -- Jim Evarts (http://www.TopFive.com)   -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list