Extractvalue function not recognised

Hello,
I'm trying to compile a pro*c program against a 10.2.0.3.0 Oracle DB.
The precompiler does not seem to recognise the EXCTRACTVALUE function since I'm getting the following error:
Error at line 283, column 7 in file MainCheckNat.pc
EXEC SQL
......1
PLS-S-00201, identifier 'EXTRACTVALUE' must be declared
The query looks like:
EXEC SQL
SELECT COUNT(DISTINCT EXTRACTVALUE(segnalazione, '/TransactionError/TransactionReferenceNumber'))
INTO :hostvar1
FROM table
WHERE id_file = :hostvar2
I have searched the pro*c programming manual for some hints but I could not find any.
Has anybody ever met with this problem before?
Or is there anything I am doing the wrong way?
Thanks,
Massimo

You are right on ExtractValue. I was thinking the wrong situation. In PL/SQL you can do xmltype.extract(), but you cannot do xmltype.extractValue().
I wasn't paying close enough attention to your SQL statement but ExtractValue can return only 1 value. If it returns more, it throws and ORA-19025 error. Since you are trying to COUNT the values, you need to use Extract.
For me, the following statements run cleanly on 10.2.0.4
WITH base AS
(SELECT XMLTYPE('<TransactionError><TransactionReferenceNumber>1</TransactionReferenceNumber></TransactionError>') segnalazione FROM dual)
SELECT EXTRACTVALUE(segnalazione, '/TransactionError/TransactionReferenceNumber') try1,
       EXTRACT(segnalazione, '/TransactionError/TransactionReferenceNumber/text()').getstringval() try2,
       COUNT(DISTINCT EXTRACT(segnalazione, '/TransactionError/TransactionReferenceNumber/text()').getstringval()) try3
  FROM base;
TRY1     TRY2     TRY3
1     1     1When you have multiple Ref Numbers, you get this instead of what you were expecting
WITH base AS
(SELECT XMLTYPE('<TransactionError><TransactionReferenceNumber>1</TransactionReferenceNumber><TransactionReferenceNumber>2</TransactionReferenceNumber></TransactionError>') segnalazione FROM dual)
SELECT EXTRACT(segnalazione, '/TransactionError/TransactionReferenceNumber/text()').getstringval() try2,
       COUNT(DISTINCT EXTRACT(segnalazione, '/TransactionError/TransactionReferenceNumber/text()').getstringval()) try3
  FROM base;
TRY2     TRY3
12     1This returns a count of the number of TransactionReferenceNumber in the XML
WITH base AS
(SELECT XMLTYPE('<TransactionError><TransactionReferenceNumber>1</TransactionReferenceNumber><TransactionReferenceNumber>2</TransactionReferenceNumber></TransactionError>') segnalazione FROM dual)
SELECT COUNT(DISTINCT t.refNumber) try3
  FROM base,
       XMLTABLE('/TransactionError/TransactionReferenceNumber'
                PASSING base.segnalazione
                COLUMNS
                refNumber   VARCHAR2(10)  PATH '.') t;
TRY3
2There is also an XQuery way to do the count but that is an area I'm still working on myself. As I said, all these run cleanly on the DB itself. If they don't work when called from your pro*C code, then I can't be of much more help as I don't know pro*C.

Similar Messages

  • Dll Shared lib functions not recognised?

    Hi
    I would like to wrap all functions of one Dll file. I am using import shared library. I have selected the dll library and the header file. After I set the following preprocessor definitions: _MSC_VER;__cplusplus; 7 of the functions are recognised. I wrote the warning messages. I added the mentioned preprocessor definitions but nothing have changed. Could you please help to resolve the problem?
    Attachments:
    Dll_Headers.zip ‏2433 KB

    LabVIEWs call Library Node does not use header files nor library files but only shared library files. As such it simply will attempt to load the shared library you specify in the Library Path and that will fail if the DLL depends on other DLLs (which the OpenCV DLLs do heavily) that might be not in the Windows shared library search path.
    Now your comments let me believe that you happen to use the Import Shared Library Wizard instead. This Wizard is likely overwhelmed by several issues in the header files, so it is likely not a good idea to even attempt to use it.
    By the way IMAQ_Image may be a NI-Vision datatype, it for sure is not something you can directly interface to any LabVIEW datatype. Here is already one of the challenges of interfacing image libraries to LabVIEW.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • A function DrawGeometry not recognised in WPF

    Hello
    I'm transleting project from C# to WPF
    In C#, I have : 
    drawingContext.DrawGeometry.DrawPolygon(new System.Windows.Media.Pen(System.Windows.Media.Brushes.Black, 3), p);
    In WPF, DrawGeometry is not recognise and I have the libraries
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using LibLogic;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Windows.Forms;
    I have an error
    'System.Windows.Media.DrawingContext.DrawGeometry(System.Windows.Media.Brush, System.Windows.Media.Pen, System.Windows.Media.Geometry)' is a 'method', which is not valid in the given context
    Z:\WPF\Kakuro WPF 22_02_2015\UserControls\Triangle.xaml.cs
    76
    28
    UserControls
    What should I do ?

    You must add some points to aa if you want to draw a Polygon, otherwise it is just a blank geometry object. 
    Here is a complete example of a VisualHost object that hosts a DrawingVisual:
    public class VisualHost : FrameworkElement
    private DrawingVisual path;
    public VisualHost()
    Point point2 = new Point(10, 80);
    Point point3 = new Point(50, 50);
    Point point4 = new Point(30, 20);
    StreamGeometry aa = new StreamGeometry();
    using (StreamGeometryContext geometryContext = aa.Open()) {
    geometryContext.BeginFigure(new Point(1, 50), true, true);
    PointCollection points = new PointCollection
    point2,
    point3,
    point4
    geometryContext.PolyLineTo(points, true, true);
    // Draw the polygon visual
    DrawingVisual visual = new DrawingVisual();
    using (DrawingContext context = visual.RenderOpen()) {
    context.DrawGeometry(Brushes.LightGreen, new Pen(Brushes.White, 2), aa);
    path = visual;
    protected override int VisualChildrenCount {
    get {
    return 1;
    protected override Visual GetVisualChild(int index) {
    return path;
    You can add it to a window like this:
    public partial class MainWindow : Window
    public MainWindow() {
    InitializeComponent();
    stackPanel.Children.Insert(0, new VisualHost()
    Width = 250,
    Height = 250
    <Window x:Class="WpfApplication24_4.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <StackPanel x:Name="stackPanel">
    </StackPanel>
    </Window>
    Hope that helps.
    Please remember to mark all helpful posts that answers your question(s), and only these, as answer and please start a new thread if you have a new question.

  • Itunes not recognising my ipod and windows asks me to format

    Itunes is not recognising my Ipod when I connect to my PC.  I've been using it for 8 years so this is out of the blue.  I get this flashing up:
    "Microsoft Windows
    You need to format the disc in Drive N before you can use it.  Do you want to format it?"
    Bottom right of my screen
    Safely remove hardware and eject media gives me the option to "Eject Apple iPod USB device"
    I did that and now find my iPod has wiped all my stored items and I've had to reset date etc.  Is this a Windows or an Apple problem?

    Retracts 28
    Reallocations 0
    Pending 2
    Power on 754
    Start/stop 273
    Temp 25c
    Min 4c
    Max45c
    I'm afraid I got so frustrated with the PC crashing that I threw in the towel and ordered an iPod touch this morning after tentatively syncing my mini iPad this first, with no problems, just in case it was the PC.  Iv'e changed it to wifi syncing now as a further precaution.
    If I can get the Classic to work again I can at least try to sell it as a functioning model.

  • IPod touch not recognised by itunes. have tried fix suggested in FAQs

    Hi Guys,
    I have a 32gb iPod touch, which recently had been running a bit slowly. As a solution to this i updated with the newest sowftware, and cleared all my apps. Still slow, so i decided to do a system reset from the settings function. This was fine but since then my ipod has not switched on, it merely switches on to the apple logo, and goes back off again. When i hook it to a computer, itunes does not recognise that it is connected and i cant do a system restore. I have tried the 'hold home and connect to cable' trick but with no success.Is this a problem that you have heard of before?ie is there a quick solution, or will it need some parts/software updated by apple?

    Help please, from iPod Touch experts?
    (Sorry Darraghjoneill, not an answer but extra questions.)
    I've an 8Gb iPod Touch which was working fine until around iTunes9. Now it is not recognised in iTunes. I've been through all of the support docs and suggestions covering deinstalling and reinstalling iTunes (including iTunes8), AMDS, USB Drivers, etc. I've an iPod Nano which works fine with the same USB cable in the same USB slot and a 10Gb Classic that works fine through Firewire.
    When connecting the iPod Touch it shows the "Connect to iTunes" graphic and does manage to start iTunes but then I get the "iTunes could not ID this iPhone properly, disconnect and reconnect". I do that and then get the "Unknown Error 0xE8000065" problem with the added complication that, whenver this appears it messes up Firefox so no new pages can be loaded and the only fix is to Reboot my whole PC. I also get this Firefox problem when stopping/starting/restarting AMDS.
    Stupidly, I thought resetting the iPod Touch to factory defaults might have helped but it didn't so now I have a very shiny brick.
    Any practical suggestions?
    LeonSJB

  • Usb device not recognised by windows 7 on hp pavillion dv5094ea

    Im having problems since ive updated my HP dv5094ea from windows xp up to windows 7,
    Since the upgrade my usb ports arent functioning, i keep getting an error bubble saying
    "Usb device not recognised" - device has malfunctioned
    ive tried several trouble shooters including going into device manager and deleting the INFCACHE.1 with no luck, im starting to assume its a driver update issue...
    can anyone help?

    Hi:
    W7 should have had the USB 2 drivers native to its driver database.
    The only suggestion I can offer is to manually install the Vista graphics driver for your model which may have some motherboard drivers included.
    Download and run the file below.  You will probably get an unsupported operating system error.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-48969-1&cc=us&dlc=en&lc=en&...
    Close out of any error windows.  Go to the device manager. Click to expand the display adapters category.
    Click on the display adapter listed there.  Click on the driver tab.  Click on Update Driver.  Select the Browse my computer for driver software and browse to the driver folder that was created when you ran the file.
    That folder will be located in C:\SWSetup\sp35203.  Make sure the Include Subfolders box is checked and the driver should install.
    After you reboot, see if the USB ports are working.

  • BT Home Hub 5 not recognising print server

    Decided to approach the forum as I have run out of ideas for fixing this problem.
    I originally had a BT Home Hub 3 which worked fine with my HP Designjet 500ps plus using using a wireless HP Jetdirect EW2400 print server. I then upgraded to BT Infinity using a BT Home Hub 5 that's when my problems started.
    The hub does not recognise the print server in wireless mode so the following is what I tried to no avail:
    1. The printer setup was updated for the new hub online (192.168.1.75) for new SSID.
    2. Reset hub.
    3. Print server confirmed transmitting.
    BT Home Hub Manager
    4. Re-configured for Ch 11 and 12, preferred Designjet channel.
    5. Changed 2.4ghz & 5ghz to different SSID names.
    6. Unsync 2.4ghz & 5ghz.
    7. Disabled 5ghz.
    8. Tried Port Forwarding to allow access.
    9. AVG Anti-Virus elminated from possible problem.
    10. Ping confirmed 192.168.1.75 inaccessable.
    The good point, I can plot using network cable but trailing it through the house to the large plotter is not desireable!
    There must be someone else out there with the same plotter and problem so if someone could help it would much
    appreciated.

    Hi Alienr,
    Welcome and thanks for posting. Sorry you're having problems. Have you had a a look at How to set up a wireless connection? 
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Late 2011 MacBook Pro; one USB port not recognising anything

    Hi,
    I've had my MacBook Pro since January 2012, so I believe it is the late 2011 13" model. I'm currently running OSX 10.9 although the problem I've been having has been going on around 3 or 4 months, I think I had OSX 10.7 installed when the problem started.
    One of the USB ports on my Mac (the one on the left when looking at them face on) is not recognising my external hard drives, or recognising/charging my iPhone when plugged into the USB. The other USB slot works fine and recognises external hard drives, however when I insert the hard drive into the faulty USB input, although the hard drive lights up and starts whirring as if it is ready to start functioning, it does not appear under the 'Devices' tab of the Finder screen, but does appear and function when using the other port.
    Similarly, when I plug my iPhone 5 into the faulty port it is not recognised/does not start charging, however if I leave it running and come back later I often have at least a level of increased battery life which suggests that it does intermittently charge from time to time, and again it functions normally when using the fully functional port.
    I've tried the NVRAM reset as I have read in another post but to no avail. Is this likely to be a mechanical fault over a software problem, and if so what could be wrong with it?
    Thanks for the help in advance.

    thank you shootist, at least now I know the problem is as serious as I dreaded, but will not loose hope waiting for a miracle and the port works again

  • 10.4  Update files not recognised

    Using 10.4 on a second hand Powermac g4 from ebay, so no installation discs.
    Successfully downloaded standalone updates 10.4.1....10.4.9 etc but first one (MacOSXUpdate10.4.1.dmg) not recognised so won't install. others recognised but won't work until first one installed.
    Same with standalone combo update (MacOSXUpdCombo10.4.10) it isn't recognised. Using AOL dial up so it's taken seven attempts (overnight) to get a continuous connection for the complete Combo download. (Same with Software Updates Combo from Apple menu on desktop)
    How do I get the right file which will be recognised ? or should I buy a full retail version of Tiger from ebay ? I'm concerned about all the probs people are having with updates as I am miles away from Apple Store for repairs and am a newbie. Many thanks for any replies.

    Welcome To  Discussions frenchbingo!
    Which version of OS X is currently installed on the Power Mac G4?
    If it is not Tiger 10.4.x, then as sig posted, you will have to purchase a set of install discs.
    Exactly which model PowerMac G4 is it?
    What size is the Hard Drive, and how much space is available?
    If it is this model Power Mac G4 (AGP Graphics), it had OS 8.6 or OS 9.0 installed, when manufactured in 1999.
    Mac OS X Versions 10.1, 10.2, 10.3, 10.4, and 10.5, are complete system upgrades that must be purchased.
    Once an OS has been installed, the point upgrades, such as 10.1.x to 10.1.5 (Final) 10.2.x to 10.2.8 (Final), 10.3.x to 10.3.9 (Final), and 10.4.x to 10.4.10 (Pending), can be downloaded for free.
    Leopard 10.5.x, can be purchased at The Apple Store (U.S.).
    Leopard System Requirements
    Jaguar 10.2.x, Panther 10.3.x, and Tiger 10.4.x, are no longer available directly from the Apple Online Store, as Leopard 10.5.x, will be the most up to date OS.
    But, if you know what to look for, Jaguar Full Retail CDs, a Full Retail Version, of the Panther Install CDs, or a Full Retail Version, of the Tiger Install DVD, can be purchased, sometimes less expensively, at some online Apple retailers, Amazon, eBay, FastMac, HardCore Mac, etc.
    Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
    Jaguar and Panther are only on CDs, not DVDs.
    The discs should look exactly like the images in the above links, and not say Upgrade, CPU Drop-in DVD, or "This software is part of a hardware bundle purchase - not to be sold seperately." on them.
    Additional info in these links.
    Using OS X Install CDs/DVDs On Multiple Macs
    What's A Computer Specific Mac OS X Release
    Software Update, Upgrade: What's The Difference?
    Caveat Emptor!
    If any are currently available, examine these items very carefully, and if in doubt, ask questions of the seller before purchase!
    Jaguar On eBay
    Panther On eBay
    Tiger On eBay
    Before upgrading to any OS X version, check to see if your Mac needs a Firmware Update.
    If one is required, you must start the computer from a Mac OS 8 or Mac OS 9 System Folder on the computer's hard disk, not from a CD, in order to install it.
    This Power Mac G4 Firmware Update 4.2.8 appears to be the one you would need to install.
    Once Jaguar 10.2.x is installed, you can use the 10.2.8 Combo Update,
    or if Panther 10.3.x is installed, you can use the 10.3.9 Combo Update, to upgrade to the final version of either OS.
    If your Mac meets the Tiger System Requirements, you could also consider installing that, and then use the PPC 10.4.10 Combo Update, to upgrade to the current version.
    Jaguar System Requirements
    -Power Mac G3 or G4, iMac, eMac, PowerBook G3 or G4, or iBook computer
    -128MB of physical RAM
    -Supports all video cards shipped by Apple on Mac OS X-compatible systems. Quartz Extreme functionality is supported by the following video cards: NVIDIA GeForce2 MX, GeForce3, GeForce4 MX, or GeForce4 Ti; Any AGP-based ATI RADEON card. A minimum of 16MB VRAM is required.
    -QuickTime Pro functionality requires a QuickTime 6 Pro key. The QuickTime 5 Pro key will not work after this software is installed.
    -DVD Player requires a DVD-ROM equipped Macintosh with built-in FireWire.
    Review these Apple documents for Panther System Requirements
    And Additional Panther System Requirements.
    Additionally, Tiger 10.4.x ships on a DVD, so if your Mac doesn’t have a built-in DVD-ROM player, you will have to use an alternative method of installation.
    Info here Installing Tiger Without A DVD Drive.
    And here Installing Tiger Using Firewire Target Disk Mode.
    The Tiger Media Exchange Program, referred to in that article, is no longer available.
    Shop Carefully, Examine All Documentation, And I Wish You Success!
    ali b

  • Cannot access search engine - maybe "search" is not recognised as a context

    Hello,
    I cannot access the search engine
    http://server:port/search
    doest not work.
    Maybe it is linked to another problem:
    I wanted to make a mapping between a
    context and a directory,
    but "additional directory document" does not work.
    So I created another Web Application
    (in web-apps.xml)
    so maybe search is not recognised as a context.
    well I don't know, and I wish someone had this problem and has a clue.
    Thank you very much in advance,
    Pascal

    Hello,
    first, thanks a lot for answering,
    and sorry for the poor description
    - the request to access the search functions of Sun One
    is: http://server:port/search
    - If I define a web app (in web-apps.xml)
    with an empty context
    and whose document root is /docroot,
    the request http://server:port/search
    does not work
    error: "file /docroot/search not found"
    - If I define a non empty context for my app
    the request http://server:port/search is OK,
    but I will have to make a lot of modifications
    in my app :-(
    Do you think there is a way to make Sun One 6 understand
    that "/search" is not a subdirectory of
    my app even if my app has an empty context?
    Thanks a lot,
    Pascal

  • I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    Versuche es mal ohne express vi s
    Eine Whileschleife, dessen Zähler Du als Zeitbasis verwendest,
    Sinusfunktionen als Signalquellen, g .....  ups english forum
    Try it without express vis
    a while loop with the index as timebase (multiply by your timestep to get t)
    sinus functions with 2 Pi  t  as signals
    In your vi in every interation of the while loop you generate an array of values where you always pich the same index   ...
     PS: here is my version
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Iphoto 11 compatability with gmail. Server not recognising user or password when I attempt to share photo,s

    When attempting to  email photo,s  using iphoto this message appears; server not recognising user or password. i have checked preferences and may gmail a/c is listed as default sender. Any help out there for me? PS It was fully functional before I installed Home and office for mac.

    Upgrade to v9.4.1 or
    Trash the HP Plug in from /Library/Application Support/iPhoto
    There are two libraries where this plugin might be
    HD/ Library
    and
    HD/Users/Your Name / Library
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)

  • Latest Initrd not recognising USB storage devices?

    Just installed 2.6.30 with all the necessary files. Everything seemed fine, except for one thing: my external USB hard drive is no longer recognised on boot. Here is my fstab and my mkinitcpio.conf.
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs rw,noexec,nosuid 0 0
    #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    #/dev/fd0 /media/fl auto user,noauto 0 0
    UUID=139cf76d-425a-4c40-a5b1-bbbf22533d9a /boot ext4 defaults 0 1
    UUID=4eddd177-23f6-49ab-a8ad-d3e1303133e0 / ext4 defaults 0 1
    UUID=ED83-B8D4 /media/flash vfat rw,user,noauto 0 0
    #UUID=ac46c6ae-d9eb-47d4-809b-19a2484b3133 /iomega ext4 rw,noexec,nosuid 0 1
    UUID=ac46c6ae-d9eb-47d4-809b-19a2484b3133 /media/iomega ext4 rw,user,noauto 0 0
    UUID=da9e741f-3525-47c6-8c7f-edf1ded00e7a swap swap defaults 0 0
    As you can see from this, I originally had my external usb drive mounted on /iomega @ boot. However, since that no longer works, I have changed it to /media/iomega and let HAL mount it automatically when I fire up GNOME (the same way I have my flash drive set up). I used the original line with 2.6.29 with no problems.
    The strange thing is, the device is there, because, when it fails, I go into single user mode, remount / read-write and then run mount -a and the device appears with no errors. If I change the line so it doesn't do an fsck on boot, it doesn't mount the device, but I do get an error saying the device is not there. I can then mount it manually at the command prompt.
    The device is shown in /etc/blkid.tab and in /dev/disk/by-uuid.
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes, into the CPIO image, and additional
    # binaries a given user may wish. This is run first, so may
    # be used to override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten is already added)
    # BINARIES are dependancy parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in anyway. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options,
    # like so:
    # FILES="/etc/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'modload' may be used in place of 'udev', but is not recommended
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    # This setup specifies all modules in the MODULES setting above.
    # No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    # This setup will autodetect all modules for your system and should
    # work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    # This is identical to the above, except the old ide subsystem is
    # used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    # This setup will generate a 'full' image which supports most systems.
    # No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    # This setup assembles an pata raid array with an encrypted root FS.
    # Note: See 'mkinitcpio -H raid' for more information on raid devices.
    # HOOKS="base udev pata raid encrypt filesystems"
    # This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    HOOKS="base udev autodetect pata scsi sata usb keymap filesystems"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    This is essentially the same as I had it in 2.6.29. I did initially use LZMA, since that gives slightly faster compression & decompression, but changed it back in case it was a timing issue (and rebuilt initrd). No joy. I also tried usbdelay=10 on boot, but again no difference.
    This isn't exactly a "show-stopper", since the device functions normally otherwise and everything else is fine, but it is annoying. I would much rather have this device available automatically on boot, so that it gets checked when the max mount count comes up.

    This was the bug update I received today:
    FS#15282 - [mkinitcpio] Latest initrd not recognising usb storage devices?
    User who did this - Thomas Bächler (brain0)
    You can never rely on external hard drives to show up "in time".
    The difference was that adding the "usb" hook to mkinitcpio used to add a 6 second delay on boot by default, this doesn't happen anymore. I think external drives simply don't belong in fstab, because there's too many possible race conditions. If you insist, you can try to force the usb storage driver to scan for devices sooner after detection, see the delay_use parameter to the usb-storage module.
    You're going to have to modify the delay_use parameter to get it to work. Be prepared for race conditions, though. I didn't bother myself as it wasn't a show stopper for me, so I've advised that it can be closed as a non-bug.
    ETA: usbdelay=10 doesn't work as that flag is apparently no longer recognised for some reason.
    ETTA: I've always used UUID in the fstab because udev can remap devices on boot (I've had fstab not recognising devices because of this).
    In case some people don't know, to see what the uuid for a device is, use the following:
    sudo tune2fs -l <device-name>
    Last edited by jamesbannon (2009-06-28 18:30:23)

  • First time starting up iMac, USB keyboard not recognised

    i have tried to set-up my imac, however the keyboard is not recognised and says that i have to turn on my bluetooth keyboard when i have  a USB keyboard and it will not go on to the next step.

    Hi manocchio1994,
    Thanks for contacting the Apple Support Communities. I understand your keyboard is not recognized when connecting if for the first time and I know how frustrating that can be. There is a fantastic article available for USB keyboard troubleshooting I would recommend.
    None of the keys on my keyboard work
    http://support.apple.com/kb/TS1996
    Troubleshooting your Apple USB Keyboard Step-by-Step
    If your keyboard keys still aren't working after trying the steps in USB Basic Troubleshooting, try these steps, in order, until you've come to a resolution.
    ▪ Unplug all devices from your computer, including your mouse and keyboard, as well as your printer, scanner, cameras, iPod, external hard drives, and hubs. (Warning: Some devices, like iPods, may require you to perform steps before it is safe to unplug them.) If you have a hub, don't forget to unplug it as well.
    ▪ Plug your keyboard and mouse back into your computer firmly and securely. Take special care to make sure that the connector is completely in the port. (USB plugs fit into ports one way only, and won't plug in if you try to plug them in upside-down.)
    ▪ If that still doesn't work, try plugging your keyboard in to the other USB ports. Be sure to try them all. Check to see if the keyboard's Caps Lock light turns on when you press it, and try typing in one of your applications, such as TextEdit.
    ▪ If your keyboard works in one of your USB ports but not all, your computer may need service to resolve an issue with its USB port or ports.
      If your keyboard doesn't work in any of your computer's USB ports, it appears that your keyboard isn't functioning properly and needs to be replaced. You can order this part online. Order a replacement keyboard.
    If needed, I suggest resetting the System Management Controller as well. Those steps can be found in the following section of this article.
    Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    Thanks for reaching out,
    -Joe

Maybe you are looking for