Drive Proc

Is there Drive Proc concept in Crystal XI which can drive 6 to 7 stored procedures by passsing parameters which are pulled by Drive Proc in SQL?

Hello,
I would recommend to use the database architecture for this and not the database engine in crystal reports.
Regards

Similar Messages

  • Adding drives, proc upgrade: Power Supply? Heat?

    Hello All,
    Thinking of installing a total of 4 Internal Hard Drives, and a dual 1.6ish processor. Wondering if there are any Power Supply and/or heat issues I need to consider.
    Current set-up:
    PM G4 QS 867
    1.5GB RAM
    Power Supply is original: AcBel APlPC12..."Total 344W MAX."
    Video Card is original AGP GeForce2 MX 32MB VRAM
    Apple 17" Studio Display
    Thinking of adding:
    2 Maxtor Ultra ATA/133 200GB drives in the U-Carrier
    2 Hitachi Deskstar SATA 500GB drives, 1 in each of the remaining bottom bays
    All controlled via a Projovian "2-Port SATA and ATA133 Dual Connection PCI Host Adapter Card"
    and further down the line a dual processor in the 1.6 to 2.0 GHz range.
    Intended use is primarily FCP and some Photoshop.
    Any thoughts or warnings?
    Thanks so much,
    Patterson
    Power Mac G4 Quicksilver 867   Mac OS 9.2.x   17" Studio Display, 1.5GB RAM

    That should be fine, in regards to power. As for heat, well it could get a little warm in there once you upgrade the CPU. You might want to get a PCI slot exhaust fan once you put the new CPU in there.

  • Variable scope in package

    I have some procedures in a package that need almost the same type of variables. Now, lets say I put them in the package spec in the private variable declaration part so that all the procedures use the same variables instead of declaring them inside all procedures. Now, if someone is executing those procs simultaneously will Oracle Oracle create a separate instance of those variables or use the same copy of the variables for all the simultaneously executing procedures?
    Also, is it a good practise to put these variables in the package body section so that they become public?

    another question!
    is it advisable to put some kind of driver proc in the package such that its job is just to invoke other procs of the package when called like:
    create or replace package body mypack is
    procedure proc proc_main(params) is
    begin
    proc1(params); --invoke other procs
    proc2(params);
    procn(params);
    end ;--end of proc
    --package initialization section
    begin
    proc_main(params);
    end; --end of package                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Java exec() child termination problem

    Hello,
    I am trying to use exec() to launch a java application from a Java Swing GUI. The problem is that If any of the applications call System.exit() or Runtime.exit(), all applications will terminate. How do I prevent the GUI from closing when the child closes? I have attached the code I am using for reference.
    Thanks in advance
      public void COmpileAndRun()
            String command = "javac Driver.java";
            try
                Runtime rt = Runtime.getRuntime(); //Process process = new ProcessBuilder(command).start();
                Process proc = rt.exec( command ); //Process process = new ProcessBuilder(command).start();
                InputStream stderr = proc.getErrorStream();
                InputStreamReader isr = new InputStreamReader(stderr);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                System.out.println("<ERROR>");
                while ( (line = br.readLine()) != null)
                    System.out.println(line);
                System.out.println("</ERROR>");
                int exitVal = proc.waitFor();
                System.out.println("Process exitValue: " + exitVal);
                if( exitVal == 0 )
                    command = "java Driver";
                    proc = rt.exec( command );
                    stderr = proc.getErrorStream();
                    isr = new InputStreamReader(stderr);
                    br = new BufferedReader(isr);
                    line = null;
                    System.out.println("<ERROR>");
                    while ( (line = br.readLine()) != null)
                        System.out.println(line);
                    System.out.println("</ERROR>");
                    exitVal = proc.waitFor();
                    System.out.println("Process exitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }

    String[] command =
       "java",
       "-cp",
       "my_class_path", // No extra quoting needed here
       "org.jetel.main.runGraph",
       "param1",
       "param2",
       "param3" // etc
    Process process = Runtime.getRuntime().exec(command);

  • HT1751 I cannot seem to get through this process.  I believe I have copied the library from my old to the external drive, and then to my newer MacBook Pro; but the result is the same number of songs that were originally transferred via the transfer proces

    I've tried for a few days to figure out why I cannot be sure that my iTunes back-up to an external drive has "worked" or not.  I finally decided to try to transfer the content from the external drive to my newer MacBook Pro.  I already knew that the number of songs on the newer laptop were fewer than what are on my older one.  (I basically only use my older MacBook Pro now for iTunes.)  But today, still had not luck.  There is still a difference of over 100 songs appearing on the iTunes of the newer laptop than are on the older one. 
    I'm pretty sure that I just don't undertand the Apple article very well:  "ITunes: back up your iTunes library by copying to an external hard drive."
    This would not be so frustrating for me did I not have over 3000 songs, imported from CDs that I myself own, in my old laptop.  The thought of redoing this import is, well, tiring to say the least. 

    Go through the below forum with similar issue and follow the process mentioned by "Macjack" in the beginning.
    https://discussions.apple.com/thread/4499820

  • Removing hard drives from Mac g4 tower dual proc?

    I have the original hard drive, plus two added drives, in my PowerMac G4 tower, (dual mirrored drive doors).  All the photos/videos/instructions online, don't seem to match my configuration, where the original drive is vertical, along the back of the tower, under the horizontal power supply, while the added drives are under the CD and DVD drives at the front of the tower.  I need data fromt the drive related to a thesis project, as well as other work, have had a grey screen problem (unrelated to the drives) that is unresolvable, so bought a G5, and will use some drives and new wireless card from G4 that are compatable.  I have tried to put G4 tower in target disk mode to transfer to G5 via firewire, but no luck.  Drives don't show on desktop.  Since intending to remove all drives from G4 anyway, will try to use them externally, or internally, to access files. 
    Problem is, I can't access where it looks like the screws are for the original vertical hard drive, can't find instructions online, or examples that look lik mine. What else needs to be removed in order to access this?  Please Help!

    The drives will not work internally in the G5 if they're IDE/ATA drives, G5s use SATA drives, but there are some external options.
    It's been a long time, but I seem to remember the rear Drive(s) cage was released with a gray or maybe tan lever that needed pushing one way while sliding the cage...
    AHA, there the little beggar is, Step 6...
    http://www.ifixit.com/Guide/Installing-Power-Mac-G4-MDD-Hard-Drives/1618/2

  • Report fails on CE usin stored proc as data source and Native Client driver

    Iu2019m using Crystal Reports 10. I have a report with a stored procedure as data source. All my other reports using views as data source. Weu2019re upgrading db from SQL Server 2000 to 2008 and start using Native Client driver.
    Thereu2019s no problem to generate this report from .rpt on my local PC. But got the following error message when generate from Crystal Enterprise:
    Error Message: The table could not be found. File D:\Program Files\Crystal Decisions\Enterprise 10\Data\procSched\......reportjobserver\~tmp12c06c5641c4d50.rpt.
    It looks like sth related to Native Client driver. It works if I change to use old native driver in DSN on CE server.
    Any ideas/advises? Appreciated to your help!

    Hello,
    CR 10 does not support the MS SQL Native Driver, if you want to use OLE DB then use the MS OLE DB Provider for SQL Server up to SQL 2005. SQL 2008 does not support the MDAC version so you have to install the SQL 2008 Client tools to use the SQL Native 10 driver. CR 10 does not support that Native 10 Driver.
    See this MS Kbase: http://msdn.microsoft.com/en-us/library/ms131035.aspx
    Convert back to the old driver for 2005 and then use ODBC if using SQL 2008, it should work...
    Don

  • Driver for Creative EMU10K1 SB Live! Audio Proces

    Hi!
    I'm looking for a driver for Creative EMU0K SB Li've! Audio Processor but can't find it!
    Please can somebody help me? Many thanks!
    greetings
    anwo<!-- noin -->

    Hi
    Two ways to find the type number.
    What Operating system are you using?
    Open your PC case and look the serial number of your sound card.
    #2
    Run System Information tool and see from Components/Multimedia/Sound device what
    PNP device ID says.
    Fill this (change x with numbers) with your numbers
    DEV_xxxx&SUBSYS_xxxxxxxx.
    I can solve then the type.
    You can download the full (I think) Li've! driver package from : check your PM.
    or Check these sites
    - http://drivers.soft32.com/index-2-2--0-4.html
    - http://www.softlookup.com/driver/latest.asp
    - http://drivers.softpedia.com/get/SOUND-CARD/CREATIVE/
    .jtpMessage Edited by jutapa on 04-0-2005 0:3 PM

  • DAT Drive not registering on sunfire V240

    Hi,
    I have 9 SUN v240 with which i connected the same DAT drive HP 72GB DDS DAT (PART NUMBER C7439). In six servers
    did devfsadm and it registered the DAT. It worked fine but in three of the SUN v240, this command doesnt seem to
    do anything. /dev/rmt is not created. I cannot restart the server because they are live/production servers. Is there
    any other solution to get this DAT recognised in solaris with out a reboot. Also, i cannot go to OBP (OK prompt) because
    ofcourse it needs a reboot.
    I checked the st.conf file and the entries of these file are the same in all 9 v240. So i think its not a problem of
    st.conf.
    Eargerly waiting for a solution.
    Here are some of the command outputs from 1 of the 3 servers which donot see the DAT:
    [root@vbsmf /kernel/drv] $strings /kernel/drv/st.conf | grep st
    # Copyright (c) 1995-2000 by Sun Microsystems, Inc.
    "@(#)st.conf
    # devices of Sun Microsystems and many 3rd party devices.
    # 1 Drive is configured automatically - no entry is needed in st.conf.
    # The 3rd party devices do apparently work with the configurations listed.
    # the past, but have not been tested by Sun Microsystems. Use these entries
    # as your starting point for generating your configuration entries.
    #tape-config-list=
    name="st" class="scsi"
    name="st" class="scsi"
    name="st" class="scsi"
    name="st" class="scsi"
    name="st" class="scsi"
    name="st" class="scsi"
    name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    #name="st" class="scsi"
    name="st" parent="fp" target=0;
    [root@vbsmf /kernel/drv] $cfgadm configure
    Ap_Id Type Receptacle Occupant Condition
    configure: No matching library found
    [root@vbsmf /kernel/drv] $cfgadm -al
    Ap_Id Type Receptacle Occupant Condition
    c0 scsi-bus connected configured unknown
    c0::dsk/c0t0d0 CD-ROM connected configured unknown
    c1 scsi-bus connected configured unknown
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected configured unknown
    c2 scsi-bus connected unconfigured unknown
    [root@vbsmf /kernel/drv] $cfgadm configure c2
    Ap_Id Type Receptacle Occupant Condition
    c2 scsi-bus connected unconfigured unknown
    configure: No matching library found
    [root@vbsmf /kernel/drv] $cfgadm -val
    Ap_Id Receptacle Occupant Condition Information
    When Type Busy Phys_Id
    c0 connected configured unknown
    Jan 1 1970 scsi-bus n /devices/pci@1e,600000/ide@d:scsi
    c0::dsk/c0t0d0 connected configured unknown unavailable
    Jan 1 1970 CD-ROM y /devices/pci@1e,600000/ide@d:scsi::dsk/c0t0d0
    c1 connected configured unknown
    Jan 1 1970 scsi-bus n /devices/pci@1c,600000/scsi@2:scsi
    c1::dsk/c1t0d0 connected configured unknown FUJITSU MAT3073N SUN72G
    Jan 1 1970 disk n /devices/pci@1c,600000/scsi@2:scsi::dsk/c1t0d0
    c1::dsk/c1t1d0 connected configured unknown FUJITSU MAT3073N SUN72G
    Jan 1 1970 disk n /devices/pci@1c,600000/scsi@2:scsi::dsk/c1t1d0
    c2 connected unconfigured unknown
    Jan 1 1970 scsi-bus n /devices/pci@1c,600000/scsi@2,1:scsi
    [root@vbsmf /kernel/drv] $ls /dev/rmt/0
    /dev/rmt/0: No such file or directory
    [root@vbsmf /kernel/drv] $ls /dev/rmt
    [root@vbsmf /kernel/drv] $devfsadm -v
    [root@vbsmf /kernel/drv] $ls /dev/rmt
    [root@vbsmf /kernel/drv] $ls /dev/rmt/0
    /dev/rmt/0: No such file or directory
    [root@vbsmf /] $modinfo
    Id Loadaddr Size Info Rev Module Name
    6 10158000 445b 1 1 specfs (filesystem for specfs)
    8 1015dd40 333c 1 1 TS (time sharing sched class)
    9 10160938 8d4 - 1 TS_DPTBL (Time sharing dispatch table)
    10 101609c0 291e3 2 1 ufs (filesystem for ufs)
    11 10187b33 1f7 - 1 fssnap_if (File System Snapshot Interface)
    12 10187c83 10900 226 1 rpcmod (RPC syscall)
    12 10187c83 10900 226 1 rpcmod (32-bit RPC syscall)
    12 10187c83 10900 1 1 rpcmod (rpc interface str mod)
    13 10195cc3 66f08 0 1 ip (IP Streams module)
    13 10195cc3 66f08 3 1 ip (IP Streams device)
    14 101f30bb 1982 1 1 rootnex (sun4u root nexus 1.91)
    15 101f4648 210 57 1 options (options driver)
    17 101f4d3c 18d8 12 1 sad (Streams Administrative driver's)
    18 101f639c 67b 2 1 pseudo (nexus driver for 'pseudo')
    19 101f68a5 1c228 85 1 md (Meta disk base module)
    24 1023362d 5234 - 1 md_stripe (Meta disk stripes module)
    25 1023847d a760 - 1 md_mirror (Meta disk mirrors module)
    26 10242765 10338 109 1 pcisch (PCI Bus nexus driver 1.201)
    27 1025111d 1023b 50 1 glm (GLM SCSI HBA Driver 1.166.)
    28 1025f310 8ac0 - 1 scsi (SCSI Bus Utility Routines)
    29 10264fe4 18008 32 1 sd (SCSI Disk Driver 1.356)
    33 1029bf1e a52d 135 1 uata (ATA controller Driver 1.89)
    34 102a5713 151f - 1 dada ( ATA Bus Utility Routines)
    37 102a7141 93c - 1 todm5819p_rmc (tod module for ALI M5819P)
    38 102a7a0b 344f 196 1 rmc_comm (rmc_comm driver, v1.2)
    39 102aaa92 508 199 1 pmugpio (Pmugpio Driver 1.1)
    40 780b8000 72bf - 1 ufs_log (Logging UFS Module)
    41 1027bd5c 1b04a 5 1 procfs (filesystem for proc)
    42 102962ba fab 126 1 ebus (ebus nexus driver)
    43 10296efd 2fcd 194 1 mc-us3i (Memory-controller: v1.1)
    44 10299bba d98 134 1 power (power button driver v1.9)
    45 1029a7aa 1016 159 1 pmubus (pmubus nexus driver)
    46 10211abd 5cb6 197 1 rmclomv (rmclomv control driver v1.4)
    47 1021684b 256a 9 1 pcf8584 (I2C Nexus Driver 1.13)
    48 102a689a 464 - 1 i2c_svc (I2C module ver 1.2)
    50 102aae3a 10628 8 1 sockfs (filesystem for sockfs)
    52 102a6c7b 6be 11 1 clone (Clone Pseudodriver 'clone')
    53 1029b5f0 304 2 1 ip6 (IP Streams module)
    53 1029b5f0 304 143 1 ip6 (IP Streams device)
    54 102bafd2 25e40 3 1 tcp (TCP Streams module)
    54 102bafd2 25e40 42 1 tcp (TCP Streams device)
    55 10219963 1059 - 1 md5 (MD5 Message-Digest Algorithm)
    56 1029b734 365 4 1 tcp6 (TCP Streams module)
    56 1029b734 365 146 1 tcp6 (TCP Streams device)
    57 1021a907 9b50 5 1 udp (UDP Streams module)
    57 1021a907 9b50 41 1 udp (UDP Streams device)
    58 1029b8d9 365 6 1 udp6 (UDP Streams module)
    58 1029b8d9 365 145 1 udp6 (UDP Streams device)
    59 1022292f 7f10 7 1 icmp (ICMP Streams module)
    59 1022292f 7f10 5 1 icmp (ICMP Streams device)
    60 1029ba7e 30e 8 1 icmp6 (ICMP Streams module)
    60 1029ba7e 30e 144 1 icmp6 (ICMP Streams device)
    61 10228ea7 651b 9 1 arp (ARP Streams module)
    61 10228ea7 651b 44 1 arp (ARP Streams driver)
    62 1022e16a 4b93 10 1 timod (transport interface str mod)
    64 102d9d66 c83 16 1 conskbd (Console kbd Multiplexer driver )
    65 102da65d 1ffa 15 1 wc (Workstation multiplexer Driver )
    66 102dba4f 4885 37 1 su (su driver 1.47)
    67 102dff2c 3f2e 1 1 elfexec (exec module for elf)
    67 102dff2c 3f2e 0 1 elfexec (32-bit exec module for elf)
    68 102e3d57 3400 3 1 fifofs (filesystem for fifo)
    69 102e6ebf adea 11 1 ldterm (terminal line discipline)
    70 102f13b6 246d 12 1 ttcompat (alt ioctl calls)
    71 102f365a 9223 29 1 zs (Z8530 serial driver V4.125)
    72 102fc375 1568 26 1 ptsl (tty pseudo driver slave 'ptsl')
    73 102fd645 211f 25 1 ptc (tty pseudo driver control 'ptc')
    77 10318d3b 116a9 - 1 usba (USBA: USB Architecture 1.25)
    78 10313719 498c - 1 usbser (USB generic serial module 1.1)
    80 1032d854 15ac5 - 1 usba10 (USBA10: USB 1.0 Architecture 1.)
    81 781b6000 4012 - 1 usba10_usbser (USBA10 Generic Serial Modul
    82 10344153 1c30 13 1 rts (Routing Socket Streams module)
    82 10344153 1c30 43 1 rts (Routing Socket Streams device)
    83 781e8000 f487 15 1 ipsecesp (IP Encapsulating Security Paylo)
    83 781e8000 f487 141 1 ipsecesp (IP Encapsulating Security Paylo)
    84 7814e000 ff46 14 1 ipsecah (IP Authentication Header Stream)
    84 7814e000 ff46 140 1 ipsecah (IP Authentication Header Stream)
    85 7803c000 4af3 105 1 tl (TPI Local Transport Driver - tl)
    86 78042000 44ab 16 1 keysock (keysock module)
    86 78042000 44ab 139 1 keysock (PF_KEY Key Management Socket ST)
    87 78040743 16ea 97 1 sysmsg (System message redirection (fan)
    88 780416bd 82c 0 1 cn (Console redirection driver)
    89 780e3c1a 475 2 1 intpexec (exec mod for interp)
    90 78041d59 2c3 42 1 pipe (pipe(2) syscall)
    90 78041d59 2c3 42 1 pipe (32-bit pipe(2) syscall)
    91 10354c78 f9d 13 1 mm (memory driver)
    92 78046000 8a90 195 1 bge (BCM570x driver v0.22)
    93 7804e000 e868 - 1 gld (Generic LAN Driver (v2))
    94 7805e000 4eac6 217 1 ce (CE Ethernet Driver v1.135)
    95 780b0000 2bd7 - 1 vlan (Ethernet VLAN module (v1) 1.18)
    97 780b4000 322b 115 1 pci_pci (Standard PCI to PCI bridge nexu)
    98 780b7ad5 5ac 19 1 dump (crash dump driver)
    99 780c0000 4421 201 1 doorfs (doors)
    99 780c0000 4421 201 1 doorfs (32-bit door syscalls)
    100 780c6000 2d06 88 1 devinfo (DEVINFO Driver 1.33)
    103 780ca000 ebf8 66 1 ohci (USB OpenHCI Driver 1.23)
    104 781579c6 c03 176 1 inst_sync (instance binding syscall)
    104 781579c6 c03 176 1 inst_sync (32-bit instance binding syscall
    105 780d4c38 1538 4 1 namefs (filesystem for namefs)
    106 7814c6d0 1a98 4 1 logindmux ( LOGIND MUX Driver)
    110 780bf047 d70 14 1 iwscn (Workstation Redirection driver )
    111 7804d698 a4f 17 1 consms (Mouse Driver for Sun 'consms' 5)
    113 780b6bbb 9f7 21 1 log (streams log driver)
    114 780b734a 8f3 22 1 sy (Indirect driver for tty 'sy')
    115 780c8b56 cc4 23 1 ptm (Master streams driver 'ptm')
    116 10342e11 dc6 24 1 pts (Slave Stream Pseudo Terminal dr)
    117 780c5670 a8c 31 1 seeprom (I2C serial EEPROM device driver)
    120 1030a1c5 6a30 - 1 fctl (Sun FC Transport Library v1.12)
    123 780c411c 17ec 34 1 smbus (SMBUS nexus Driver 1.6)
    124 10308a8f 1dea 35 1 random (random number device v1.1)
    125 780e0000 2290 17 1 authsha1 (SHA1-HMAC algorithm)
    127 780b2637 1f01 38 1 openeepr (OPENPROM/NVRAM Driver v1.7)
    131 78188000 30bc0 - 1 s1394 (IEEE 1394 Services Library 1.0)
    143 10355a75 2e1f - 1 hidparser (HID PARSER 1.5)
    146 103256b4 2d2e 60 1 fssnap (snapshot driver)
    153 781af8c7 820 72 1 ksyms (kernel symbols driver)
    156 10345623 2d73 - 1 usba10_hidparser (USBA10 HID PARSER 1.1)
    161 780e2467 1a23 81 1 winlock (Winlock Driver v1.43)
    162 10317889 14ed - 1 seg_drv (Segment Device Driver v1.1)
    165 1030f375 2268 - 1 diaudio (Generic Audio)
    167 1032811a 19cc 89 1 lockstat (Lock Statistics)
    168 78215406 d1e 90 1 kstat (kernel statistics driver)
    169 780e6000 5d08 91 1 vol (Volume Management Driver, 1.87)
    170 780de000 1664 95 1 cpc (cpc sampling driver v1.8)
    170 780de000 1664 179 1 cpc (cpc sampling system call)
    170 780de000 1664 179 1 cpc (32-bit cpc sampling system call)
    172 78259747 ba0 103 1 qec (QEC driver v1.32)
    175 10347bee 4197 107 1 llc1 (LLC Class 1 Driver)
    177 780ec000 4c5e - 1 amsrc1 (Audio Sample Rate Conv. #1 1.2)
    178 780f2000 23ee - 1 audiosup (Audio Device Support 1.9)
    179 780f6000 14f6e - 1 mixer (Audio Mixer 1.41)
    182 1030331b 4edc 114 1 tnf (kernel probes driver 1.48)
    184 7816a000 b3ec 150 1 fcp (Sun FCP Pseudo Driver v1.11)
    185 1034b93d 4cd6 127 1 pm (power management driver v1.95)
    186 780598aa 846 128 1 tod (tod driver 1.0)
    189 780f0baf 1420 138 1 poll (Dev Poll driver)
    190 780f4176 1ecf 147 1 lofi (loopback file driver (1.2))
    193 78142000 499d - 1 pcihp (PCI nexus hotplug support v1.31)
    194 78146605 1ae7 - 1 busra (Bus Resource Allocator (BUSRA) )
    195 780df02c c4c - 1 hpcsvc (hot-plug controller services v1)
    196 78148000 4fe8 - 1 pcicfg (PCI configurator v1.38)
    203 781567ae bb1f - 1 amsrc2 (Audio Sample Rate Conv. #2 1.1)
    214 1034f79b 4805 187 1 sppp (PPP 4.0 mux v1.3)
    215 780da000 3ae0 18 1 sppptun (PPP 4.0 tunnel module v1.2)
    215 780da000 3ae0 188 1 sppptun (PPP 4.0 tunnel driver v1.2)
    218 781f0000 b5c0 191 1 rsm (Remote Shared Memory Driver 1.6)
    219 7804dd6f 2e8 - 1 ipc (common ipc code)
    220 780c95b2 aac - 1 rsmops (RSMOPS module 1.1)
    221 781fb0b0 b33 198 1 rmcadm (rmcadm control driver v1.1)
    222 78174f30 fec 200 1 pca9556 (pca9556 device driver v1.2)
    231 10329430 1069 214 1 fcode (FCode driver 1.8)
    232 1032a2c1 29ec - 1 fcodem (FCode framework 1.13)
    245 78104000 4819 242 1 kb_ps2 (PS/2 Keyboard 1.31, 01/05/09)
    250 781ba000 267e7 250 1 llc2 (SUN LLC2 Class II Streams Drive)
    253 78108000 1bcaa - 1 pcmcia (PCMCIA Nexus Support)
    264 781b2000 304c 263 1 ipdcm (IP/Dialup v1.9)
    265 7814dd68 40a 264 1 ipdptp (IP/Dialup ptp interface v1.9)
    266 7825bd1b 407 265 1 ipd (IP/Dialup mtp interface v1.9)
    268 7826a000 165b8 268 1 wrsmd (RSMPI DLPI 1.4 03/01/08)
    269 7827c000 295e6 19 1 nca (NCA Streams module)
    269 7827c000 295e6 269 1 nca (NCA Streams device 1.2)
    270 1032c3f5 15cc 15 1 mntfs (mount information file system)
    271 78210000 159d2 11 1 tmpfs (filesystem for tmpfs)
    272 78228000 2aa20 106 1 nfs (NFS syscall, client, and common)
    272 78228000 2aa20 106 1 nfs (NFS syscall, client, and common)
    272 78228000 2aa20 16 1 nfs (network filesystem)
    272 78228000 2aa20 7 1 nfs (network filesystem version 2)
    272 78228000 2aa20 17 1 nfs (network filesystem version 3)
    273 78254000 4d9b - 1 rpcsec (kernel RPC security module.)
    274 7825a000 1dc1 - 1 tlimod (KTLI misc module)
    275 7825c000 860f - 1 klmmod (lock mgr common module)
    276 78264000 65e3 18 1 autofs (filesystem for autofs)
    277 10357fa4 109 2 1 IA (interactive scheduling class)
    278 78258a03 f40 3 1 RT (realtime scheduling class)
    279 102a70e1 28c - 1 RT_DPTBL (realtime dispatch table)
    280 103406c9 2878 53 1 semsys (System V semaphore facility)
    280 103406c9 2878 53 1 semsys (32-bit System V semaphore facil)
    281 103064bf 26f8 52 1 shmsys (System V shared memory)
    281 103064bf 26f8 52 1 shmsys (32-bit System V shared memory)
    282 102186fd cf0 207 1 pset (processor sets)
    282 102186fd cf0 207 1 pset (32-bit pset(2) syscall)
    283 102ff5cc 3d82 178 1 kaio (kernel Async I/O)
    283 102ff5cc 3d82 178 1 kaio (kernel Async I/O for 32 bit com)
    284 780a8a5e 1687 20 1 ptem (pty hardware emulator)
    285 781b482c 19d2 21 1 telmod (telnet module)
    [root@vbsmf /kernel/drv] $vi st.conf
    # Copyright (c) 1995-2000 by Sun Microsystems, Inc.
    # All rights reserved.
    #pragma ident "@(#)st.conf 1.27 00/08/29 SMI"
    # This file contains configuration entries for both officially supported
    # devices of Sun Microsystems and many 3rd party devices.
    # The officially supported devices are :
    # "ARCHIVE Python 28388"
    # "ARCHIVE Python 28454"
    # "ARCHIVE Python 29279"
    # "ARCHIVE VIPER 150"
    # "EXABYTE EXB-8200"
    # "EXABYTE EXB-8500"
    # "EXABYTE EXB-8505"
    # "EXABYTE EXB-8900"
    # "HP 88780"
    # "HP C5683A" Note 1
    # "HP C5713A" Note 1
    # "Quantum DLT4000"
    # "Quantum DLT7000"
    # "Quantum DLT8000" Note 1
    # "STK 9840" Note 1
    # "SUN DLT4000"
    # "SUN DLT4700"
    # "SUN DLT7000"
    # "TANDBERG SLR5"
    # "TANDBERG TDC 4200"
    # "TANDBERGMLR1"
    # "TANDBERGMLR3"
    # Notes
    # 1 Drive is configured automatically - no entry is needed in st.conf.
    # The 3rd party devices do apparently work with the configurations listed.
    # All the entries have been taken from the net and probably have worked in
    # the past, but have not been tested by Sun Microsystems. Use these entries
    # as your starting point for generating your configuration entries.
    #tape-config-list=
    # "Emulex MTO2", "Emulex MT02 QIC-11/QIC-24", "MT02",
    # "ANRITSU DMT2120", "Unisys 1/2\" Reel", "ANRITSU",
    # "ARCHIVE Python 28454","Archive Python 4mm Helical Scan","ARCH_Python",
    # "ARCHIVE Python 29279", "Archive Python 4mm DAT Stacker","ARCH_Python",
    # "ARCHIVE Python 28388", "Archive/Conner CTDX004 4mm DAT", "Conner2-DAT",
    # "ARCHIVE VIPER 150", "Archive QIC-150", "QIC150",
    # "ARCHIVE VIPER 255", "Archive QIC-525", "QIC150",
    # "DEC DLT2", "DEC DLT", "DLT2",
    # "DEC TZ87", "DEC DLT", "DLT2",
    # "EXABYTE EXB-2501", "Exabyte EXB-2501 QIC", "EXB-2501",
    # "EXABYTE EXB-4200c", "Exabyte 4mm Helical Scan","Exa4200c",
    # "EXABYTE EXB-8200", "Exabyte EXB-8200 8mm Helical Scan","EXB-8200",
    # "EXABYTE EXB-8500", "Exabyte EXB-8500 8mm Helical Scan","EXB-850X",
    # "EXABYTE EXB-8505", "Exabyte EXB-8505 8mm Helical Scan","EXB-850X",
    # "EXABYTE EXB8500C", "Exabyte 8500C 8mm Helical Scan", "EXB-850X",
    # "EXABYTE EXB-8900", "Mammoth EXB-8900 8mm Helical Scan","EXB-8900",
    # "FUJITSU M1016B M2483B","Fujitsu 1/2\" Cartridge", "Fujitsu_comp",
    # "FUJITSU M248", "Fujitsu 1/2\" Cartridge", "Fujitsu_m248x",
    # "HP 88780", "HP-88780 1/2\" Reel", "HP_half",
    # "HP C1533A", "HP DDS2 4mm DAT loader", "HP_DAT",
    # "HP C1553A ", "HP C1553A 4mm DAT", "HP_DAT",
    # "HP C1537A", "HP DDS-3 4mm DAT ", "HP_DAT_3",
    # "HP C1557A", "HP DDS-3 4mm DAT loader", "HP_DAT_3",
    # "HP HP35470A", "HP 35470A 4mm DAT", "HP_DAT",
    # "HP HP35480A", "HP 35480A 4mm DAT", "HP_DAT",
    # "IBM 03490", "IBM 3490E 1/2\" Cartridge", "CLASS_3490",
    # "IBM 9348", "STK 4220 1/2\" Cartridge", "C3490",
    # "KENNEDY", "Kennedy 1/2\" Reel", "KENNEDY",
    # "LMS", "CDC 1/2\" Cartridge", "LMS",
    # "M4 DATA 123107 SCSI", "M4-Data 1/2\" Reel", "M4_DATA",
    # "Metrum", "Metrum VHS Cartridge", "MetD",
    # "QUANTUM DLT7000", "Quantum DLT7000", "DLT7k-data",
    # "SUN DLT7000", "Sun DLT7000", "DLT7k-data",
    # "Quantum DLT4000", "Quantum DLT4000", "DLT-data",
    # "SUN DLT4000", "DLT4000", "DLT-data",
    # "SUN DLT4700", "DLT4700 Library", "DLT-data",
    # "R-BYTE RB100", "R-Byte Whozits", "DAT",
    # "SONY SDT-5000", "SONY 4mm DAT", "DAT",
    # "SONY SDT-5200", "SONY 4mm DAT", "DAT",
    # "STK 9490", "STK 9490 1/2\" Cartridge", "CLASS_3490",
    # "STK 4280", "STK 4280 1/2\" Cartridge", "C3490",
    # "STK", "STK 1/2\" Cartridge", "CLASS_3490",
    # "TANDBERG 4100", "Tandberg 4100 QIC", "TAND_4100_QIC",
    # "TANDBERG 4200", "Tandberg 4200 QIC", "TAND_4200_QIC",
    # "TANDBERG TDC 4200", "Tandberg QIC 2.5 Gig Tape Drive", "TANDB-2_5G",
    # "TANDBERG SLR5", "Tandberg 8 Gig QIC", "TAND-8G-VAR",
    # "TANDBERGMLR1", "Tandberg MLR1 QIC", "TANDBERG_MLR1",
    # "TANDBERGMLR3", "Tandberg 50 Gig QIC", "TAND-50G-VAR",
    # "TELEX", "STK 4220 1/2\" Cartridge", "C3490",
    # "WANGTEK 51000 SCSI", "Wangtek 1.2GB QIC", "WtQIC",
    # "WANGTEK 5150ES", "Wangtek QIC-150", "WANGTEK_QC150",
    # "WANGTEK 5525ES SCSI", "Wangtek 525MB QIC", "WtQIC",
    # "WANGTEK 6130-HS", "Wangtek 4mm Helical Scan", "WANGTEK_6130",
    # "WangDAT Model 2600", "WangDAT 4mm DAT", "WangDAT",
    # "WangDAT Model 3400", "WangDAT 4mm DAT", "WangDAT",
    # "WangDAT", "Wang DAT 3.81 Helical Scan", "WangDAT",
    # "\076\000", "Fujitsu 1/2\" Cartridge", "Fujitsu_half";
    #ANRITSU = 1,0x25,0,0x41d,4,0x00,0x02,0x03,0x03,1;
    #ARCH_Python= 1,0x2c,0,0xde39,4,0x00,0x8c,0x8c,0x8c,3;
    #CLASS_3490 = 1,0x24,0,0x1c43d,1,0x00,0;
    #C3490 = 1,0x24,0,0x1c43d,4,0x00,0x00,0x00,0x01,2;
    #Conner2-DAT= 1,0x2c,0,0xde39,1,0x00,0;
    #DAT = 1,0x34,0,0x0439,1,0x00,0;
    #DLT2 = 1,0x38,0,0xd639,4,0x17,0x18,0x80,0x81,2;
    #DLT-data = 1,0x38,0,0xD639,4,0x80,0x81,0x82,0x83,2;
    #DLT7k-data = 1,0x38,0,0xD639,4,0x82,0x83,0x84,0x85,2;
    #EXB-2501 = 1,0x28,1024,0x442,1,0x00,0;
    #EXB-8200 = 1,0x28,0,0x8c79,1,0x00,0;
    #EXB-850X = 1,0x29,0,0xce39,4,0x14,0x15,0x8c,0x8c,1;
    #EXB-8900 = 1,0x29,0,0x19E39,4,0x27,0x27,0x27,0x27,3;
    #Exa4200c = 1,0x34,0,0x1639,2,0x63,0x0,1;
    #Fujitsu_comp = 1,0x21,0,0x18639,4,0x00,0x00,0x00,0x09,1;
    #Fujitsu_half = 1,0x21,0,0x63b,1,0x00,0;
    #Fujitsu_m248x = 1,0x21,0,0xc639,1,0x00,0;
    #HP_DAT = 1,0x34,0,0x19679,1,0x0,0;
    #HP_DAT_3 = 1,0x34,0,0x9639,4,0x00,0x8c,0x8c,0x8c,1;
    #HP_half = 1,0x23,0,0x41d,4,0x01,0x02,0x03,0xc3,1;
    #KENNEDY = 1,0x22,0,0x41d,4,0x01,0x02,0x03,0x03,1;
    #LMS = 1,0x20,0,0x66b,1,0x00,0;
    #M4_DATA = 1,0x27,0,0x49d,4,0x01,0x02,0x06,0x06,1;
    #MT02 = 1,0x14,512,0x202,4,0x84,0x05,0x05,0x05,1;
    #MetD = 1,0x36,0,0x1639,1,0x00,0;
    #QIC150 = 1,0x15,512,0x642,1,0x00,0;
    #TANDB-2_5G = 1,0x32,0,0xD67b,1,0x0,0;
    #TAND-8G-VAR = 1,0x37,0,0x963b,4,0xA0,0xD0,0xD0,0xD0,3;
    #TANDBERG_MLR1 = 1,0x32,512,0x463a,1,0x00,0;
    #TAND-50G-VAR = 1,0x37,0,0x963b,4,0xA0,0xD0,0xD0,0xD0,3;
    #TAND_4100_QIC = 1,0x32,512,0x463a,1,0x00,0;
    #TAND_4200_QIC = 1,0x32,512,0x463a,1,0x00,0;
    #WANGTEK_6130 = 1,0x2a,0,0x659,1,0x00,0;
    #WANGTEK_QC150 = 1,0x16,512,0x642,1,0x00,0;
    #WangDAT = 1,0x2b,0,0x659,1,0x00,0;
    #WangDAT = 1,0x34,0,0x0679,1,0x00,0;
    #WtQIC = 1,0x32,512,0x467a,1,0x00,0;
    name="st" class="scsi"
    target=0 lun=0;
    name="st" class="scsi"
    target=1 lun=0;
    name="st" class="scsi"
    target=2 lun=0;
    name="st" class="scsi"
    target=3 lun=0;
    name="st" class="scsi"
    target=4 lun=0;
    name="st" class="scsi"
    target=5 lun=0;
    name="st" class="scsi"
    target=6 lun=0;
    # as your starting point for generating your configuration entries.
    #tape-config-list=
    # "Emulex MTO2", "Emulex MT02 QIC-11/QIC-24", "MT02",
    # "ANRITSU DMT2120", "Unisys 1/2\" Reel", "ANRITSU",
    # "ARCHIVE Python 28454","Archive Python 4mm Helical Scan","ARCH_Python",
    # "ARCHIVE Python 29279", "Archive Python 4mm DAT Stacker","ARCH_Python",
    # "ARCHIVE Python 28388", "Archive/Conner CTDX004 4mm DAT", "Conner2-DAT",
    # "ARCHIVE VIPER 150", "Archive QIC-150", "QIC150",
    # "ARCHIVE VIPER 255", "Archive QIC-525", "QIC150",
    # "DEC DLT2", "DEC DLT", "DLT2",
    # "DEC TZ87", "DEC DLT", "DLT2",
    # "EXABYTE EXB-2501", "Exabyte EXB-2501 QIC", "EXB-2501",
    # "EXABYTE EXB-4200c", "Exabyte 4mm Helical Scan","Exa4200c",
    # "EXABYTE EXB-8200", "Exabyte EXB-8200 8mm Helical Scan","EXB-8200",
    # "EXABYTE EXB-8500", "Exabyte EXB-8500 8mm Helical Scan","EXB-850X",
    # "EXABYTE EXB-8505", "Exabyte EXB-8505 8mm Helical Scan","EXB-850X",
    # "EXABYTE EXB8500C", "Exabyte 8500C 8mm Helical Scan", "EXB-850X",
    # "EXABYTE EXB-8900", "Mammoth EXB-8900 8mm Helical Scan","EXB-8900",
    # "FUJITSU M1016B M2483B","Fujitsu 1/2\" Cartridge", "Fujitsu_comp",
    # "FUJITSU M248", "Fujitsu 1/2\" Cartridge", "Fujitsu_m248x",
    # "HP 88780", "HP-88780 1/2\" Reel", "HP_half",
    # "HP C1533A", "HP DDS2 4mm DAT loader", "HP_DAT",
    # "HP C1553A ", "HP C1553A 4mm DAT", "HP_DAT",
    # "HP C1537A", "HP DDS-3 4mm DAT ", "HP_DAT_3",
    # "HP C1557A", "HP DDS-3 4mm DAT loader", "HP_DAT_3",
    # "HP HP35470A", "HP 35470A 4mm DAT", "HP_DAT",
    # "HP HP35480A", "HP 35480A 4mm DAT", "HP_DAT",
    # "IBM 03490", "IBM 3490E 1/2\" Cartridge", "CLASS_3490",
    # "IBM 9348", "STK 4220 1/2\" Cartridge", "C3490",
    # "KENNEDY", "Kennedy 1/2\" Reel", "KENNEDY",
    # "LMS", "CDC 1/2\" Cartridge", "LMS",
    # "M4 DATA 123107 SCSI", "M4-Data 1/2\" Reel", "M4_DATA",
    # "Metrum", "Metrum VHS Cartridge", "MetD",
    # "QUANTUM DLT7000", "Quantum DLT7000", "DLT7k-data",
    # "SUN DLT7000", "Sun DLT7000", "DLT7k-data",
    # "Quantum DLT4000", "Quantum DLT4000", "DLT-data",
    # "SUN DLT4000", "DLT4000", "DLT-data",
    # "SUN DLT4700", "DLT4700 Library", "DLT-data",
    # "R-BYTE RB100", "R-Byte Whozits", "DAT",
    # "SONY SDT-5000", "SONY 4mm DAT", "DAT",
    # "SONY SDT-5200", "SONY 4mm DAT", "DAT",
    # "STK 9490", "STK 9490 1/2\" Cartridge", "CLASS_3490",
    # "STK 4280", "STK 4280 1/2\" Cartridge", "C3490",
    # "STK", "STK 1/2\" Cartridge", "CLASS_3490",
    # "TANDBERG 4100", "Tandberg 4100 QIC", "TAND_4100_QIC",
    # "TANDBERG 4200", "Tandberg 4200 QIC", "TAND_4200_QIC",
    # "TANDBERG TDC 4200", "Tandberg QIC 2.5 Gig Tape Drive", "TANDB-2_5G",
    # "TANDBERG SLR5", "Tandberg 8 Gig QIC", "TAND-8G-VAR",
    # "TANDBERGMLR1", "Tandberg MLR1 QIC", "TANDBERG_MLR1",
    # "TANDBERGMLR3", "Tandberg 50 Gig QIC", "TAND-50G-VAR",
    # "TELEX", "STK 4220 1/2\" Cartridge", "C3490",
    # "WANGTEK 51000 SCSI", "Wangtek 1.2GB QIC", "WtQIC",
    # "WANGTEK 5150ES", "Wangtek QIC-150", "WANGTEK_QC150",
    # "WANGTEK 5525ES SCSI", "Wangtek 525MB QIC", "WtQIC",
    # "WANGTEK 6130-HS", "Wangtek 4mm Helical Scan", "WANGTEK_6130",
    # "WangDAT Model 2600", "WangDAT 4mm DAT", "WangDAT",
    # "WangDAT Model 3400", "WangDAT 4mm DAT", "WangDAT",
    # "WangDAT", "Wang DAT 3.81 Helical Scan", "WangDAT",
    # "\076\000", "Fujitsu 1/2\" Cartridge", "Fujitsu_half";
    #ANRITSU = 1,0x25,0,0x41d,4,0x00,0x02,0x03,0x03,1;
    #ARCH_Python= 1,0x2c,0,0xde39,4,0x00,0x8c,0x8c,0x8c,3;
    #CLASS_3490 = 1,0x24,0,0x1c43d,1,0x00,0;
    #C3490 = 1,0x24,0,0x1c43d,4,0x00,0x00,0x00,0x01,2;
    #Conner2-DAT= 1,0x2c,0,0xde39,1,0x00,0;
    #DAT = 1,0x34,0,0x0439,1,0x00,0;
    #DLT2 = 1,0x38,0,0xd639,4,0x17,0x18,0x80,0x81,2;
    #DLT-data = 1,0x38,0,0xD639,4,0x80,0x81,0x82,0x83,2;
    #DLT7k-data = 1,0x38,0,0xD639,4,0x82,0x83,0x84,0x85,2;
    #EXB-2501 = 1,0x28,1024,0x442,1,0x00,0;
    #EXB-8200 = 1,0x28,0,0x8c79,1,0x00,0;
    #EXB-850X = 1,0x29,0,0xce39,4,0x14,0x15,0x8c,0x8c,1;
    #EXB-8900 = 1,0x29,0,0x19E39,4,0x27,0x27,0x27,0x27,3;
    #Exa4200c = 1,0x34,0,0x1639,2,0x63,0x0,1;
    #Fujitsu_comp = 1,0x21,0,0x18639,4,0x00,0x00,0x00,0x09,1;
    #Fujitsu_half = 1,0x21,0,0x63b,1,0x00,0;
    #Fujitsu_m248x = 1,0x21,0,0xc639,1,0x00,0;
    #HP_DAT = 1,0x34,0,0x19679,1,0x0,0;
    #HP_DAT_3 = 1,0x34,0,0x9639,4,0x00,0x8c,0x8c,0x8c,1;
    #HP_half = 1,0x23,0,0x41d,4,0x01,0x02,0x03,0xc3,1;
    #KENNEDY = 1,0x22,0,0x41d,4,0x01,0x02,0x03,0x03,1;
    #LMS = 1,0x20,0,0x66b,1,0x00,0;
    #M4_DATA = 1,0x27,0,0x49d,4,0x01,0x02,0x06,0x06,1;
    #MT02 = 1,0x14,512,0x202,4,0x84,0x05,0x05,0x05,1;
    #MetD = 1,0x36,0,0x1639,1,0x00,0;
    #QIC150 = 1,0x15,512,0x642,1,0x00,0;
    #TANDB-2_5G = 1,0x32,0,0xD67b,1,0x0,0;
    #TAND-8G-VAR = 1,0x37,0,0x963b,4,0xA0,0xD0,0xD0,0xD0,3;
    #TANDBERG_MLR1 = 1,0x32,512,0x463a,1,0x00,0;
    #TAND-50G-VAR = 1,0x37,0,0x963b,4,0xA0,0xD0,0xD0,0xD0,3;
    #TAND_4100_QIC = 1,0x32,512,0x463a,1,0x00,0;
    #TAND_4200_QIC = 1,0x32,512,0x463a,1,0x00,0;
    #WANGTEK_6130 = 1,0x2a,0,0x659,1,0x00,0;
    #WANGTEK_QC150 = 1,0x16,512,0x642,1,0x00,0;
    #WangDAT = 1,0x2b,0,0x659,1,0x00,0;
    #WangDAT = 1,0x34,0,0x0679,1,0x00,0;
    #WtQIC = 1,0x32,512,0x467a,1,0x00,0;
    name="st" class="scsi"
    target=0 lun=0;
    name="st" class="scsi"
    target=1 lun=0;
    name="st" class="scsi"
    target=2 lun=0;
    name="st" class="scsi"
    target=3 lun=0;
    name="st" class="scsi"
    target=4 lun=0;
    name="st" class="scsi"
    target=5 lun=0;
    nam

    Sorry Simon, but I had to jump in on that.
    You are correct that they'll need to probe from OBP, however...
    jumping down from an active OS will leave much in various bus registers and they'll lock up the entire system when a probe is done that way. They'll have to power-cycle the chassis to recover.
    Vassilios,
    When you have the chance for testing this system, bring the chassis down to the OBP level. ( init 0 is acceptable ) then do:
    OK setenv auto-boot? false <enter>
    OK reset-all <enter>
    The chassis will cycle and automatically stop at the OK prompt, with empty bus registers, and you can probe all you wish.
    The peripheral MUST be seen at the hardware level before an OS can dream of manipulating it.
    But, if I may ask...
    You attached the tape peripheral to where?
    (the integrated onboard SCSI connector or to an add-on card?)
    Is it a Single-Ended SCSI device, a HVD SCSI device, or a LVD SCSI device?
    If your cable is attached to an appropriate add-on card, do you need to install any packages for that card?

  • [SOLVED] Problem with second SATA drive

    My laptop has two hard drive bays, and just recently I added a second SATA drive (moved it from my old laptop) to the extra bay.
    Now, anytime the second hard drive /dev/sdb has any heavy disk activity, it appears to cause a shutdown of the SATA port for the first drive (/dev/sda)!  Though the second drive is still fine, and I can still write to it until the system crashes from the root drive (on /dev/sda) being shutdown.
    If I don't mount and use the second drive, the first drive works just fine, and I can pound it with traffic without issue.
    I can reproduce this problem by copying large amounts of data to drive 2.
    This is when I get in my dmesg when the first SATA drive shuts down:
    [ 3013.249525] ata1.00: exception Emask 0x0 SAct 0x7ff SErr 0x0 action 0x6 frozen
    [ 3013.249532] ata1.00: failed command: READ FPDMA QUEUED
    [ 3013.249539] ata1.00: cmd 60/08:00:78:b8:ba/00:00:24:00:00/40 tag 0 ncq 4096 in
    [ 3013.249539] res 40/00:00:00:4f:c2/00:00:00:00:00/40 Emask 0x4 (timeout)
    [ 3013.249543] ata1.00: status: { DRDY }
    [ 3013.249545] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249559] ata1.00: cmd 61/08:08:b8:60:7b/00:00:29:00:00/40 tag 1 ncq 4096 out
    [ 3013.249559] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249562] ata1.00: status: { DRDY }
    [ 3013.249564] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249568] ata1.00: cmd 61/08:10:c0:60:7b/00:00:29:00:00/40 tag 2 ncq 4096 out
    [ 3013.249568] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249570] ata1.00: status: { DRDY }
    [ 3013.249572] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249576] ata1.00: cmd 61/08:18:c8:60:7b/00:00:29:00:00/40 tag 3 ncq 4096 out
    [ 3013.249576] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249578] ata1.00: status: { DRDY }
    [ 3013.249580] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249585] ata1.00: cmd 61/08:20:48:12:d7/00:00:18:00:00/40 tag 4 ncq 4096 out
    [ 3013.249585] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249587] ata1.00: status: { DRDY }
    [ 3013.249589] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249593] ata1.00: cmd 61/08:28:28:63:38/00:00:19:00:00/40 tag 5 ncq 4096 out
    [ 3013.249593] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249595] ata1.00: status: { DRDY }
    [ 3013.249597] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249601] ata1.00: cmd 61/08:30:28:6f:38/00:00:19:00:00/40 tag 6 ncq 4096 out
    [ 3013.249601] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249603] ata1.00: status: { DRDY }
    [ 3013.249605] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249609] ata1.00: cmd 61/08:38:28:98:ae/00:00:25:00:00/40 tag 7 ncq 4096 out
    [ 3013.249609] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249611] ata1.00: status: { DRDY }
    [ 3013.249613] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249617] ata1.00: cmd 61/08:40:d8:79:3b/00:00:25:00:00/40 tag 8 ncq 4096 out
    [ 3013.249617] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249619] ata1.00: status: { DRDY }
    [ 3013.249621] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249625] ata1.00: cmd 61/08:48:08:98:b6/00:00:18:00:00/40 tag 9 ncq 4096 out
    [ 3013.249625] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249627] ata1.00: status: { DRDY }
    [ 3013.249629] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 3013.249633] ata1.00: cmd 61/08:50:10:98:36/00:00:19:00:00/40 tag 10 ncq 4096 out
    [ 3013.249633] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3013.249636] ata1.00: status: { DRDY }
    [ 3013.249640] ata1: hard resetting link
    [ 3013.575549] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 3013.576784] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
    [ 3013.578334] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
    [ 3013.578588] ata1.00: configured for UDMA/133
    [ 3013.592223] ata1.00: device reported invalid CHS sector 0
    [ 3013.592233] ata1.00: device reported invalid CHS sector 0
    [ 3013.592238] ata1.00: device reported invalid CHS sector 0
    [ 3013.592242] ata1.00: device reported invalid CHS sector 0
    [ 3013.592246] ata1.00: device reported invalid CHS sector 0
    [ 3013.592250] ata1.00: device reported invalid CHS sector 0
    [ 3013.592254] ata1.00: device reported invalid CHS sector 0
    [ 3013.592258] ata1.00: device reported invalid CHS sector 0
    [ 3013.592263] ata1.00: device reported invalid CHS sector 0
    [ 3013.592267] ata1.00: device reported invalid CHS sector 0
    [ 3013.592271] ata1.00: device reported invalid CHS sector 0
    [ 3013.592302] sd 0:0:0:0: [sda]
    [ 3013.592306] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592310] sd 0:0:0:0: [sda]
    [ 3013.592313] Sense Key : 0xb [current] [descriptor]
    [ 3013.592320] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592323] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592342] 00 00 00 00
    [ 3013.592351] sd 0:0:0:0: [sda]
    [ 3013.592353] ASC=0x0 ASCQ=0x0
    [ 3013.592358] sd 0:0:0:0: [sda] CDB:
    [ 3013.592361] cdb[0]=0x28: 28 00 24 ba b8 78 00 00 08 00
    [ 3013.592376] end_request: I/O error, dev sda, sector 616216696
    [ 3013.592414] sd 0:0:0:0: [sda]
    [ 3013.592417] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592421] sd 0:0:0:0: [sda]
    [ 3013.592423] Sense Key : 0xb [current] [descriptor]
    [ 3013.592428] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592431] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592449] 00 00 00 00
    [ 3013.592458] sd 0:0:0:0: [sda]
    [ 3013.592460] ASC=0x0 ASCQ=0x0
    [ 3013.592465] sd 0:0:0:0: [sda] CDB:
    [ 3013.592467] cdb[0]=0x2a: 2a 00 29 7b 60 b8 00 00 08 00
    [ 3013.592482] end_request: I/O error, dev sda, sector 695951544
    [ 3013.592505] sd 0:0:0:0: [sda]
    [ 3013.592508] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592512] sd 0:0:0:0: [sda]
    [ 3013.592514] Sense Key : 0xb [current] [descriptor]
    [ 3013.592519] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592522] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592540] 00 00 00 00
    [ 3013.592549] sd 0:0:0:0: [sda]
    [ 3013.592551] ASC=0x0 ASCQ=0x0
    [ 3013.592556] sd 0:0:0:0: [sda] CDB:
    [ 3013.592558] cdb[0]=0x2a: 2a 00 29 7b 60 c0 00 00 08 00
    [ 3013.592572] end_request: I/O error, dev sda, sector 695951552
    [ 3013.592583] sd 0:0:0:0: [sda]
    [ 3013.592586] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592589] sd 0:0:0:0: [sda]
    [ 3013.592592] Sense Key : 0xb [current] [descriptor]
    [ 3013.592597] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592599] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592618] 00 00 00 00
    [ 3013.592626] sd 0:0:0:0: [sda]
    [ 3013.592628] ASC=0x0 ASCQ=0x0
    [ 3013.592632] sd 0:0:0:0: [sda] CDB:
    [ 3013.592635] cdb[0]=0x2a: 2a 00 29 7b 60 c8 00 00 08 00
    [ 3013.592649] end_request: I/O error, dev sda, sector 695951560
    [ 3013.592665] sd 0:0:0:0: [sda]
    [ 3013.592668] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592671] sd 0:0:0:0: [sda]
    [ 3013.592673] Sense Key : 0xb [current] [descriptor]
    [ 3013.592678] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592684] Aborting journal on device dm-0-8.
    [ 3013.592701] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4476: Journal has aborted
    [ 3013.592687] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592723] 00 00 00 00
    [ 3013.592729] sd 0:0:0:0: [sda]
    [ 3013.592730] ASC=0x0 ASCQ=0x0
    [ 3013.592733] sd 0:0:0:0: [sda] CDB:
    [ 3013.592735] cdb[0]=0x2a: 2a 00 18 d7 12 48 00 00 08 00
    [ 3013.592744] end_request: I/O error, dev sda, sector 416748104
    [ 3013.592752] Buffer I/O error on device dm-0, logical block 266057
    [ 3013.592760] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 5902184 (offset 258048 size 4096 starting block 266057)
    [ 3013.592766] sd 0:0:0:0: [sda]
    [ 3013.592768] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592771] sd 0:0:0:0: [sda]
    [ 3013.592772] Sense Key : 0xb [current] [descriptor]
    [ 3013.592776] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592778] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592790] 00 00 00 00
    [ 3013.592795] sd 0:0:0:0: [sda]
    [ 3013.592797] ASC=0x0 ASCQ=0x0
    [ 3013.592800] sd 0:0:0:0: [sda] CDB:
    [ 3013.592801] cdb[0]=0x2a: 2a 00 19 38 63 28 00 00 08 00
    [ 3013.592811] end_request: I/O error, dev sda, sector 423125800
    [ 3013.592817] Buffer I/O error on device dm-0, logical block 1063269
    [ 3013.592822] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 5898577 (offset 970752 size 4096 starting block 1063269)
    [ 3013.592842] sd 0:0:0:0: [sda]
    [ 3013.592845] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592849] sd 0:0:0:0: [sda]
    [ 3013.592851] Sense Key : 0xb [current] [descriptor]
    [ 3013.592856] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592859] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592877] 00 00 00 00
    [ 3013.592885] sd 0:0:0:0: [sda]
    [ 3013.592887] ASC=0x0 ASCQ=0x0
    [ 3013.592892] sd 0:0:0:0: [sda] CDB:
    [ 3013.592894] cdb[0]=0x2a: 2a 00 19 38 6f 28 00 00 08 00
    [ 3013.592908] end_request: I/O error, dev sda, sector 423128872
    [ 3013.592915] Buffer I/O error on device dm-0, logical block 1063653
    [ 3013.592922] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 5902187 (offset 1171456 size 4096 starting block 1063653)
    [ 3013.592931] sd 0:0:0:0: [sda]
    [ 3013.592934] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.592937] sd 0:0:0:0: [sda]
    [ 3013.592940] Sense Key : 0xb [current] [descriptor]
    [ 3013.592945] Descriptor sense data with sense descriptors (in hex):
    [ 3013.592947] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.592966] 00 00 00 00
    [ 3013.592974] sd 0:0:0:0: [sda]
    [ 3013.592976] ASC=0x0 ASCQ=0x0
    [ 3013.592980] sd 0:0:0:0: [sda] CDB:
    [ 3013.592983] cdb[0]=0x2a: 2a 00 25 ae 98 28 00 00 08 00
    [ 3013.592997] end_request: I/O error, dev sda, sector 632199208
    [ 3013.593006] Buffer I/O error on device dm-0, logical block 27197445
    [ 3013.593018] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 6425165 (offset 151552 size 4096 starting block 27197445)
    [ 3013.593028] sd 0:0:0:0: [sda]
    [ 3013.593031] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.593034] sd 0:0:0:0: [sda]
    [ 3013.593037] Sense Key : 0xb [current] [descriptor]
    [ 3013.593042] Descriptor sense data with sense descriptors (in hex):
    [ 3013.593045] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.593063] 00 00 00 00
    [ 3013.593071] sd 0:0:0:0: [sda]
    [ 3013.593073] ASC=0x0 ASCQ=0x0
    [ 3013.593078] sd 0:0:0:0: [sda] CDB:
    [ 3013.593085] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4476: Journal has aborted
    [ 3013.593089] cdb[0]=0x2a: 2a 00 25 3b 79 d8 00 00 08 00
    [ 3013.593104] end_request: I/O error, dev sda, sector 624654808
    [ 3013.593111] Buffer I/O error on device dm-0, logical block 26254395
    [ 3013.593115] lost page write due to I/O error on dm-0
    [ 3013.593126] sd 0:0:0:0: [sda]
    [ 3013.593129] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.593132] sd 0:0:0:0: [sda]
    [ 3013.593135] Sense Key : 0xb [current] [descriptor]
    [ 3013.593140] Descriptor sense data with sense descriptors (in hex):
    [ 3013.593142] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.593161] 00 00 00 00
    [ 3013.593169] sd 0:0:0:0: [sda]
    [ 3013.593171] ASC=0x0 ASCQ=0x0
    [ 3013.593175] sd 0:0:0:0: [sda] CDB:
    [ 3013.593178] cdb[0]=0x2a: 2a 00 18 b6 98 08 00 00 08 00
    [ 3013.593192] end_request: I/O error, dev sda, sector 414619656
    [ 3013.593198] Buffer I/O error on device dm-0, logical block 1
    [ 3013.593201] lost page write due to I/O error on dm-0
    [ 3013.593211] sd 0:0:0:0: [sda]
    [ 3013.593213] Result: hostbyte=0x00 driverbyte=0x08
    [ 3013.593217] sd 0:0:0:0: [sda]
    [ 3013.593219] Sense Key : 0xb [current] [descriptor]
    [ 3013.593224] Descriptor sense data with sense descriptors (in hex):
    [ 3013.593227] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3013.593245] 00 00 00 00
    [ 3013.593253] sd 0:0:0:0: [sda]
    [ 3013.593256] ASC=0x0 ASCQ=0x0
    [ 3013.593260] sd 0:0:0:0: [sda] CDB:
    [ 3013.593262] cdb[0]=0x2a: 2a 00 19 36 98 10 00 00 08 00
    [ 3013.593277] end_request: I/O error, dev sda, sector 423008272
    [ 3013.593283] Buffer I/O error on device dm-0, logical block 1048578
    [ 3013.593286] lost page write due to I/O error on dm-0
    [ 3013.593298] ata1: EH complete
    [ 3013.595707] EXT4-fs error (device dm-0) in ext4_dirty_inode:4603: Journal has aborted
    [ 3013.596581] EXT4-fs error (device dm-0): ext4_journal_start_sb:370: Detected aborted journal
    [ 3013.596591] EXT4-fs (dm-0): Remounting filesystem read-only
    [ 3020.421558] journal commit I/O error
    [ 3020.421570] journal commit I/O error
    [ 3020.421574] journal commit I/O error
    [ 3020.421578] journal commit I/O error
    [ 3020.421581] journal commit I/O error
    [ 3147.052191] ata1.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x6 frozen
    [ 3147.052197] ata1.00: failed command: READ FPDMA QUEUED
    [ 3147.052209] ata1.00: cmd 60/50:00:d0:48:99/00:00:1c:00:00/40 tag 0 ncq 40960 in
    [ 3147.052209] res 40/00:00:00:4f:c2/00:00:00:00:00/40 Emask 0x4 (timeout)
    [ 3147.052212] ata1.00: status: { DRDY }
    [ 3147.052213] ata1.00: failed command: READ FPDMA QUEUED
    [ 3147.052218] ata1.00: cmd 60/18:08:28:49:99/00:00:1c:00:00/40 tag 1 ncq 12288 in
    [ 3147.052218] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3147.052220] ata1.00: status: { DRDY }
    [ 3147.052221] ata1.00: failed command: READ FPDMA QUEUED
    [ 3147.052226] ata1.00: cmd 60/88:10:48:49:99/00:00:1c:00:00/40 tag 2 ncq 69632 in
    [ 3147.052226] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3147.052228] ata1.00: status: { DRDY }
    [ 3147.052229] ata1.00: failed command: READ FPDMA QUEUED
    [ 3147.052234] ata1.00: cmd 60/20:18:00:a4:ba/00:00:24:00:00/40 tag 3 ncq 16384 in
    [ 3147.052234] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
    [ 3147.052236] ata1.00: status: { DRDY }
    [ 3147.052239] ata1: hard resetting link
    [ 3147.378368] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 3148.066853] ata1.00: ACPI cmd ef/5a:00:00:00:00:a0 (SET FEATURES) succeeded
    [ 3148.069139] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
    [ 3148.069393] ata1.00: configured for UDMA/133
    [ 3148.080059] ata1.00: device reported invalid CHS sector 0
    [ 3148.080066] ata1.00: device reported invalid CHS sector 0
    [ 3148.080071] ata1.00: device reported invalid CHS sector 0
    [ 3148.080075] ata1.00: device reported invalid CHS sector 0
    [ 3148.080112] sd 0:0:0:0: [sda]
    [ 3148.080114] Result: hostbyte=0x00 driverbyte=0x08
    [ 3148.080117] sd 0:0:0:0: [sda]
    [ 3148.080118] Sense Key : 0xb [current] [descriptor]
    [ 3148.080123] Descriptor sense data with sense descriptors (in hex):
    [ 3148.080125] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3148.080136] 00 00 00 00
    [ 3148.080140] sd 0:0:0:0: [sda]
    [ 3148.080142] ASC=0x0 ASCQ=0x0
    [ 3148.080145] sd 0:0:0:0: [sda] CDB:
    [ 3148.080146] cdb[0]=0x28: 28 00 1c 99 48 d0 00 00 50 00
    [ 3148.080156] end_request: I/O error, dev sda, sector 479807696
    [ 3148.080170] sd 0:0:0:0: [sda]
    [ 3148.080171] Result: hostbyte=0x00 driverbyte=0x08
    [ 3148.080173] sd 0:0:0:0: [sda]
    [ 3148.080175] Sense Key : 0xb [current] [descriptor]
    [ 3148.080178] Descriptor sense data with sense descriptors (in hex):
    [ 3148.080180] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3148.080190] 00 00 00 00
    [ 3148.080195] sd 0:0:0:0: [sda]
    [ 3148.080196] ASC=0x0 ASCQ=0x0
    [ 3148.080199] sd 0:0:0:0: [sda] CDB:
    [ 3148.080200] cdb[0]=0x28: 28 00 1c 99 49 28 00 00 18 00
    [ 3148.080209] end_request: I/O error, dev sda, sector 479807784
    [ 3148.080216] sd 0:0:0:0: [sda]
    [ 3148.080218] Result: hostbyte=0x00 driverbyte=0x08
    [ 3148.080220] sd 0:0:0:0: [sda]
    [ 3148.080221] Sense Key : 0xb [current] [descriptor]
    [ 3148.080224] Descriptor sense data with sense descriptors (in hex):
    [ 3148.080225] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3148.080236] 00 00 00 00
    [ 3148.080241] sd 0:0:0:0: [sda]
    [ 3148.080242] ASC=0x0 ASCQ=0x0
    [ 3148.080245] sd 0:0:0:0: [sda] CDB:
    [ 3148.080246] cdb[0]=0x28: 28 00 1c 99 49 48 00 00 88 00
    [ 3148.080254] end_request: I/O error, dev sda, sector 479807816
    [ 3148.080267] sd 0:0:0:0: [sda]
    [ 3148.080268] Result: hostbyte=0x00 driverbyte=0x08
    [ 3148.080270] sd 0:0:0:0: [sda]
    [ 3148.080272] Sense Key : 0xb [current] [descriptor]
    [ 3148.080274] Descriptor sense data with sense descriptors (in hex):
    [ 3148.080276] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [ 3148.080287] 00 00 00 00
    [ 3148.080291] sd 0:0:0:0: [sda]
    [ 3148.080293] ASC=0x0 ASCQ=0x0
    [ 3148.080295] sd 0:0:0:0: [sda] CDB:
    [ 3148.080296] cdb[0]=0x28: 28 00 24 ba a4 00 00 00 20 00
    [ 3148.080305] end_request: I/O error, dev sda, sector 616211456
    [ 3148.080315] ata1: EH complete
    I have experimented, and found that if I turn off NCQ on the kernel command line in my bootloader (libata.force=noncq), that it takes longer before the problem occurs.  Though, if I write enough to the second drive, it does still happen after a while, just greatly reduced its chances of happening.
    Is it possible that the old drive (sdb) is causing the problem?  I noticed that it is much noisier than I remember when the drive head moves around.
    Another curiosity while I was trying to duplicate the problem:
      - I start a large file copy from sda -> sdb
      - At the same time in another terminal, I do "find / -print"
      - When I hear the drive 2 head moving, it pauses the output of the "find" command.
    Every time I hear the head move, I see the find output pause.  Its almost like the drive seek on drive 2 causes the whole Sata controller to pause while the head moves.  Very odd!
    Anyone have any ideas?   I think the next thing I will try is borrow a drive from another machine, and do the big write to it to see if I get the same results.
    If it is of any help, here is some more info on the laptop:
    lspci:
    00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
    00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
    00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
    00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
    00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
    00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
    00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
    00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
    00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
    00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
    00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
    00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
    01:00.0 VGA compatible controller: NVIDIA Corporation Device 1251 (rev a1)
    01:00.1 Audio device: NVIDIA Corporation GF116 High Definition Audio Controller (rev a1)
    07:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)
    0d:00.0 Network controller: Intel Corporation Centrino Advanced-N + WiMAX 6250 (rev 5e)
    13:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
    13:00.1 SD Host controller: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
    19:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
    cat /proc/interrupts:
    CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
    0: 50 0 0 0 0 0 0 0 IO-APIC-edge timer
    1: 958 0 0 0 0 0 0 0 IO-APIC-edge i8042
    8: 1 0 0 0 0 0 0 0 IO-APIC-edge rtc0
    9: 1675 0 0 0 0 0 0 0 IO-APIC-fasteoi acpi
    12: 12257 0 0 0 0 0 0 0 IO-APIC-edge i8042
    16: 24769 0 0 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, mmc0, nvidia
    17: 142 0 0 0 0 0 0 0 IO-APIC-fasteoi snd_hda_intel
    19: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi rts_pstor
    23: 1937 0 0 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb4
    41: 1 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    42: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    43: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    44: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    45: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    46: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    47: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    48: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
    49: 19406 0 0 0 0 0 0 0 PCI-MSI-edge iwlwifi
    50: 36099 0 0 0 0 0 0 0 PCI-MSI-edge ahci
    51: 14 0 0 0 0 0 0 0 PCI-MSI-edge mei
    52: 386378 0 0 0 0 0 0 0 PCI-MSI-edge snd_hda_intel
    53: 56803 0 0 0 0 0 0 0 PCI-MSI-edge eth0
    NMI: 34 5 19 5 18 4 13 4 Non-maskable interrupts
    LOC: 77964 17705 161241 14302 187823 16150 56845 12750 Local timer interrupts
    SPU: 0 0 0 0 0 0 0 0 Spurious interrupts
    PMI: 34 5 19 5 18 4 13 4 Performance monitoring interrupts
    IWI: 0 0 0 0 0 0 0 0 IRQ work interrupts
    RTR: 7 0 0 0 0 0 0 0 APIC ICR read retries
    RES: 13721 7023 304 110 175 110 213 123 Rescheduling interrupts
    CAL: 6941 7677 2774 7670 5804 7568 7655 7673 Function call interrupts
    TLB: 366 545 268 179 310 272 212 166 TLB shootdowns
    TRM: 0 0 0 0 0 0 0 0 Thermal event interrupts
    THR: 0 0 0 0 0 0 0 0 Threshold APIC interrupts
    MCE: 0 0 0 0 0 0 0 0 Machine check exceptions
    MCP: 29 29 29 29 29 29 29 29 Machine check polls
    ERR: 0
    MIS: 0
    smartctl --all /dev/sda
    smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.3-1-ARCH] (local build)
    Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Device Model: ST9500423AS
    Serial Number: 5WS354LM
    LU WWN Device Id: 5 000c50 044bb741b
    Firmware Version: 0005DEM1
    User Capacity: 500,107,862,016 bytes [500 GB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Device is: Not in smartctl database [for details use: -P showall]
    ATA Version is: 8
    ATA Standard is: ATA-8-ACS revision 4
    Local Time is: Thu Sep 13 15:26:14 2012 CDT
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 0) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 2) minutes.
    Extended self-test routine
    recommended polling time: ( 105) minutes.
    Conveyance self-test routine
    recommended polling time: ( 3) minutes.
    SCT capabilities: (0x303f) SCT Status supported.
    SCT Error Recovery Control supported.
    SCT Feature Control supported.
    SCT Data Table supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 113 099 006 Pre-fail Always - 54715920
    3 Spin_Up_Time 0x0003 098 098 085 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1114
    5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 069 060 030 Pre-fail Always - 10214892
    9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2030
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 559
    184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
    188 Command_Timeout 0x0032 100 098 000 Old_age Always - 8590065667
    189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
    190 Airflow_Temperature_Cel 0x0022 053 049 045 Old_age Always - 47 (Min/Max 47/51)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 17
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 871
    193 Load_Cycle_Count 0x0032 039 039 000 Old_age Always - 122293
    194 Temperature_Celsius 0x0022 047 051 000 Old_age Always - 47 (0 17 0 0 0)
    195 Hardware_ECC_Recovered 0x001a 113 099 000 Old_age Always - 54715920
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
    240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 67229123085518
    241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 1947733828
    242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 2798982459
    254 Free_Fall_Sensor 0x0032 001 001 000 Old_age Always - 899
    SMART Error Log Version: 1
    ATA Error Count: 8 (device log contains only the most recent five errors)
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    Error 8 occurred at disk power-on lifetime: 2017 hours (84 days + 1 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    04 71 09 a9 00 80 e0 Device Fault; Error: ABRT
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    a1 00 00 00 00 00 a0 00 05:21:04.438 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:21:04.438 IDENTIFY DEVICE
    00 00 00 00 00 00 00 ff 05:21:04.124 NOP [Abort queued commands]
    a1 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY DEVICE
    Error 7 occurred at disk power-on lifetime: 2017 hours (84 days + 1 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    04 71 09 a9 00 80 e0
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    ec 00 00 00 00 00 a0 00 05:21:04.438 IDENTIFY DEVICE
    00 00 00 00 00 00 00 ff 05:21:04.124 NOP [Abort queued commands]
    a1 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY DEVICE
    00 00 00 00 00 00 00 ff 05:20:58.805 NOP [Abort queued commands]
    Error 6 occurred at disk power-on lifetime: 2017 hours (84 days + 1 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    04 71 09 a9 00 80 e0 Device Fault; Error: ABRT
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    a1 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY DEVICE
    00 00 00 00 00 00 00 ff 05:20:58.805 NOP [Abort queued commands]
    a1 00 00 00 00 00 a0 00 05:20:58.761 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:58.725 IDENTIFY DEVICE
    Error 5 occurred at disk power-on lifetime: 2017 hours (84 days + 1 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    04 71 09 a9 00 80 e0
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    ec 00 00 00 00 00 a0 00 05:20:59.118 IDENTIFY DEVICE
    00 00 00 00 00 00 00 ff 05:20:58.805 NOP [Abort queued commands]
    a1 00 00 00 00 00 a0 00 05:20:58.761 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:58.725 IDENTIFY DEVICE
    2f 00 01 10 00 00 a0 00 05:20:58.724 READ LOG EXT
    Error 4 occurred at disk power-on lifetime: 2017 hours (84 days + 1 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    04 71 09 a9 00 80 e0 Device Fault; Error: ABRT
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    a1 00 00 00 00 00 a0 00 05:20:58.761 IDENTIFY PACKET DEVICE
    ec 00 00 00 00 00 a0 00 05:20:58.725 IDENTIFY DEVICE
    2f 00 01 10 00 00 a0 00 05:20:58.724 READ LOG EXT
    61 00 08 ff ff ff 4f 00 05:20:58.724 WRITE FPDMA QUEUED
    61 00 08 ff ff ff 4f 00 05:20:58.724 WRITE FPDMA QUEUED
    SMART Self-test log structure revision number 1
    Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
    # 1 Extended offline Completed without error 00% 6 -
    # 2 Short offline Aborted by host 90% 1 -
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    smartctl --all /dev/sdb
    smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.3-1-ARCH] (local build)
    Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Model Family: SAMSUNG SpinPoint M6
    Device Model: SAMSUNG HM320JI
    Serial Number: S16LJF0QB02815
    LU WWN Device Id: 5 0f0000 001202815
    Firmware Version: 2SS00_01
    User Capacity: 320,072,933,376 bytes [320 GB]
    Sector Size: 512 bytes logical/physical
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: 7
    ATA Standard is: ATA/ATAPI-7 T13 1532D revision 0
    Local Time is: Thu Sep 13 15:27:10 2012 CDT
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: ( 110) seconds.
    Offline data collection
    capabilities: (0x5b) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    Offline surface scan supported.
    Self-test supported.
    No Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 2) minutes.
    Extended self-test routine
    recommended polling time: ( 110) minutes.
    SCT capabilities: (0x003f) SCT Status supported.
    SCT Error Recovery Control supported.
    SCT Feature Control supported.
    SCT Data Table supported.
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0
    3 Spin_Up_Time 0x0007 252 252 025 Pre-fail Always - 2562
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 810
    5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000e 252 252 051 Old_age Always - 0
    8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
    9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 4842
    10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 440
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 154
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 71
    194 Temperature_Celsius 0x0022 073 073 000 Old_age Always - 55 (Min/Max 17/55)
    195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 1
    196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0012 252 252 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x000a 100 100 000 Old_age Always - 0
    201 Soft_Read_Error_Rate 0x0032 252 252 000 Old_age Always - 0
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 534
    225 Load_Cycle_Count 0x0032 077 077 000 Old_age Always - 236803
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]
    Note: selective self-test log revision number (0) not 1 implies that no selective self-test has ever been run
    SMART Selective self-test log data structure revision number 0
    Note: revision number not 1 implies that no selective self-test has ever been run
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    Last edited by johni (2012-09-16 00:46:54)

    It appears my drive one really is failing.  It was the first drive and not the second making the loud head seek sound.  I borrowed another drive from a friend, and copied my drive one to it.   No problems with the new drive in place.

  • How to pass a structure in PL/SQL external proc.

    This is for educational purpose only. I am trying to implement kernel32.dll and shell32.dll in PL/SQL using external proc. Everything is working fine, except When there is a structure in OUT parameter.
    My database version.
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - ProductionI have set up the listner.ora and tnsnames.ora and written a package called dbms_kernel32sb.
    There are 9 program units.
    1. CreateFile -- working fine
    2. CloseFile -- working fine
    3. GetSize -- working fine
    4. FindFirstFile -- NOT working, because one OUT parameter has the structure type WIN32_FIND_DATA.
    5. GetFileTime -- NOT working, because one OUT parameter has the structure type FILETIME
    6. GetDiskFreeSpace -- working fine
    7. GetDriveType -- working fine.
    8. GetLastError -- working fine
    9. ExecuteCommand -- working fine.
    Here is the package specification:
    CREATE OR REPLACE PACKAGE dbms_kernel32sb AS
        Name: dbms_kernel32sb.pks
        Author: Saubhik Banerjee
        Date: 24th Jan 2011
        Version: 1.0
        Comment: This package is to implement some functionality from kernel32.dll.
                 Usng extproc
    OPEN_EXISTING_FILE CONSTANT PLS_INTEGER :=3;
    FILE_ATTRIBUTE_NORMAL CONSTANT PLS_INTEGER :=128;
    DISABLE_FILE_SHARE_MODE CONSTANT PLS_INTEGER :=0;
    NO_FILE_SECURITY_ATTRIBUTE CONSTANT PLS_INTEGER :=0;
    NO_TEMPLATE_FILE CONSTANT PLS_INTEGER :=0;
    GENERIC_FILE_ACCESS CONSTANT PLS_INTEGER :=0;
    FILE_SIZE_HIGH CONSTANT PLS_INTEGER :=400000000;
    EXECUTE_FILE CONSTANT VARCHAR2(4):='open';
    PRINT_FILE CONSTANT VARCHAR2(5):='print';
    NO_PARAMATER CONSTANT VARCHAR2(2):=' ';
    FUNCTION CreateFile(pi_FileName VARCHAR2 --1, File name
                ,pi_DesiredAccess BINARY_INTEGER --2, Type of access required (read/write ect)
                ,pi_ShareMode BINARY_INTEGER --3,  share mode
                ,pi_SecurityAttributes BINARY_INTEGER --4, securoty attribute
                ,pi_CreationDisposition BINARY_INTEGER --5, open existing, create new etc
                ,pi_FlagsAndAttributes BINARY_INTEGER --6, File attribute- normal
                ,pi_TemplateFile BINARY_INTEGER) --Not required.
        Return BINARY_INTEGER;
    FUNCTION CloseFile (pi_FileHandle BINARY_INTEGER)
                         Return BINARY_INTEGER;
    FUNCTION GetSize (pi_FileHandle BINARY_INTEGER,
                       pio_FileSizeHigh IN OUT BINARY_INTEGER)
                   RETURN BINARY_INTEGER;
    FUNCTION FindFirstFile ( pi_FileName VARCHAR2
                             ,pio_Win32_Find_data OUT 
                                 WIN32_FIND_DATA
    RETURN BINARY_INTEGER;                                             
    FUNCTION GetFileTime ( pi_FileHandle BINARY_INTEGER
                           ,pio_FileCreationTime IN OUT FILETIME
                           ,pio_LastAccessTime   IN OUT FILETIME
                           ,pio_LastWriteTime    IN OUT FILETIME
    RETURN BINARY_INTEGER;
    FUNCTION GetDiskFreeSpace ( pi_RootPathName VARCHAR2
                                ,pio_SectorsPerCluster  OUT BINARY_INTEGER
                                ,pio_BytesPerSector   OUT BINARY_INTEGER
                                ,pio_NumberOfFreeClusters  OUT BINARY_INTEGER
                                ,pio_TotalNumberOfClusters  OUT BINARY_INTEGER
    RETURN BINARY_INTEGER;    
    FUNCTION GetDriveType( pi_driveLetter VARCHAR2) RETURN VARCHAR2;
    FUNCTION GetLastError RETURN BINARY_INTEGER;   
    FUNCTION ExecuteCommand ( pi_OperationType VARCHAR2
                              ,pi_FileName VARCHAR2
                              ,pi_Parameters VARCHAR2
                              ,pi_DefaultDirectory VARCHAR2
    RETURN VARCHAR2;
    END dbms_kernel32sb;
    Here is the package body:
    CREATE OR REPLACE PACKAGE BODY dbms_kernel32sb AS
    /* Name: dbms_kernel32sb.pkb
        Author: Saubhik Banerjee
        Date: 24th Jan 2011
        Version: 1.0
        Comment: This package is to implement some functionality from kernel32.dll.
                 Usng extproc
      FUNCTION
      CreateFile( pi_FileName VARCHAR2 --1
                , pi_DesiredAccess BINARY_INTEGER --2
                , pi_ShareMode BINARY_INTEGER --3
                , pi_SecurityAttributes BINARY_INTEGER --4
                , pi_CreationDisposition BINARY_INTEGER --5
                , pi_FlagsAndAttributes BINARY_INTEGER --6
                , pi_TemplateFile BINARY_INTEGER) --7
        Return BINARY_INTEGER IS EXTERNAL LIBRARY kernel32 Name "CreateFileA"
        PARAMETERS(  pi_FileName STRING
                   , pi_DesiredAccess long
                   , pi_ShareMode long
                   , pi_SecurityAttributes long
                   , pi_CreationDisposition long
                   , pi_FlagsAndAttributes long
                   , pi_TemplateFile long
                   , return long);
    FUNCTION CloseFile (pi_FileHandle BINARY_INTEGER)
                         Return BINARY_INTEGER
         IS EXTERNAL
         LIBRARY kernel32 Name "CloseHandle"
         PARAMETERS (pi_FileHandle long, return long);
    FUNCTION GetSize (pi_FileHandle BINARY_INTEGER,
                       pio_FileSizeHigh IN OUT BINARY_INTEGER)
                   RETURN BINARY_INTEGER
         IS EXTERNAL
        LIBRARY kernel32 NAME "GetFileSize"
        PARAMETERS (pi_FileHandle long, pio_FileSizeHigh long, return long );
      FUNCTION GetFileTime ( pi_FileHandle BINARY_INTEGER
                           ,pio_FileCreationTime IN OUT FILETIME
                           ,pio_LastAccessTime   IN OUT FILETIME
                           ,pio_LastWriteTime    IN OUT FILETIME
       RETURN BINARY_INTEGER
         IS EXTERNAL
        LIBRARY kernel32 NAME "GetFileTime"
        WITH CONTEXT
        PARAMETERS ( CONTEXT,
                      pi_FileHandle long
                    , pio_FileCreationTime  OCIColl
                    , pio_FileCreationTime INDICATOR SHORT
                    , pio_LastAccessTime  OCIColl
                   , pio_LastAccessTime INDICATOR SHORT
                    , pio_LastWriteTime OCIColl
                    , pio_LastWriteTime INDICATOR SHORT
                    , return long );                  
    FUNCTION FindFirstFile ( pi_FileName VARCHAR2
                             ,pio_Win32_Find_data OUT 
                                 WIN32_FIND_DATA
    RETURN BINARY_INTEGER
    IS EXTERNAL
        LIBRARY kernel32 NAME "FindFirstFileA"
        --WITH CONTEXT
        PARAMETERS
                    ( --CONTEXT,
                     pi_FileName STRING--, pi_FileName INDICATOR SHORT
                    , pio_Win32_Find_data  BY REFERENCE OCIColl--,pio_Win32_Find_data INDICATOR long
                    , return long );
    FUNCTION GetDiskFreeSpace ( pi_RootPathName VARCHAR2
                                ,pio_SectorsPerCluster  OUT BINARY_INTEGER
                                ,pio_BytesPerSector   OUT BINARY_INTEGER
                                ,pio_NumberOfFreeClusters  OUT BINARY_INTEGER
                                ,pio_TotalNumberOfClusters  OUT BINARY_INTEGER
    RETURN BINARY_INTEGER
      IS EXTERNAL
        LIBRARY kernel32 NAME "GetDiskFreeSpaceA"
        PARAMETERS (  pi_RootPathName STRING
                    , pio_SectorsPerCluster BY REFERENCE long
                    , pio_BytesPerSector BY REFERENCE long
                    , pio_NumberOfFreeClusters BY REFERENCE long
                    , pio_TotalNumberOfClusters BY REFERENCE long
                    , return long );   
      FUNCTION GetDriveTypeA( pi_driveLetter VARCHAR2) RETURN BINARY_INTEGER   
      IS EXTERNAL
      LIBRARY kernel32 NAME "GetDriveTypeA"
      PARAMETERS (pi_driveLetter STRING, RETURN long);
    FUNCTION GetDriveType( pi_driveLetter VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
      CASE  GetDriveTypeA(pi_driveLetter) 
       WHEN 2 THEN RETURN 'Removable';
       WHEN 3 THEN RETURN 'Drive Fixed';
       WHEN 4 THEN RETURN 'Remote';
       WHEN 5 THEN RETURN 'Cd-Rom';
       WHEN 6 THEN RETURN 'Ram disk';
       ELSE RETURN 'Unrecognized';
    END CASE;                              
    END;
    FUNCTION GetLastError  RETURN BINARY_INTEGER
    IS EXTERNAL
    LIBRARY kernel32 NAME "GetLastError"
    PARAMETERS (return long);
    FUNCTION ShellExecute( pi_Hwnd BINARY_INTEGER
                          ,pi_Operation VARCHAR2
                          ,pi_FileName VARCHAR2
                          ,pi_Parameters VARCHAR2
                          ,pi_DefaultDirectory  VARCHAR2
                          ,pi_ShowCmd BINARY_INTEGER
                          ) RETURN BINARY_INTEGER
    IS EXTERNAL
    LIBRARY SHELL32 NAME "ShellExecuteA"
    PARAMETERS (pi_Hwnd long,pi_Operation STRING,pi_FileName STRING
                 ,pi_Parameters STRING,pi_DefaultDirectory STRING
                 ,pi_ShowCmd long, return long
    FUNCTION ExecuteCommand ( pi_OperationType VARCHAR2
                              ,pi_FileName VARCHAR2
                              ,pi_Parameters VARCHAR2
                              ,pi_DefaultDirectory VARCHAR2
    RETURN VARCHAR2 IS
      v_return_val BINARY_INTEGER;
    BEGIN
      v_return_val:= ShellExecute(0,pi_OperationType
                                 ,pi_FileName,pi_Parameters
                                 ,pi_DefaultDirectory,0
      IF v_return_val <=32 THEN
       RETURN 'Error!';
      ELSE RETURN 'Success!';
      END IF;
    END;
    END dbms_kernel32sb;
    Now the working demos:
    SQL> SET SERVEROUT ON
    SQL> /* Demo I:- How to obtain file size */
    SQL> DECLARE
      2    v_FileSize BINARY_INTEGER;
      3    v_FileSizeHigh PLS_INTEGER;
      4    v_FileHandle BINARY_INTEGER;
      5    v_filename VARCHAR2(500) :='C:\test2.csv';
      6    v_dummy BINARY_INTEGER;
      7  BEGIN
      8    v_FileSizeHigh := DBMS_KERNEL32SB.FILE_SIZE_HIGH;
      9    v_FileHandle:=DBMS_KERNEL32SB.CreateFile(v_filename -- File name
    10                            ,DBMS_KERNEL32SB.GENERIC_FILE_ACCESS
    11                            ,DBMS_KERNEL32SB.DISABLE_FILE_SHARE_MODE
    12                            ,DBMS_KERNEL32SB.NO_FILE_SECURITY_ATTRIBUT
    13                            ,DBMS_KERNEL32SB.OPEN_EXISTING_FILE
    14                            ,DBMS_KERNEL32SB.FILE_ATTRIBUTE_NORMAL
    15                            ,DBMS_KERNEL32SB.NO_TEMPLATE_FILE);
    16   v_FileSize := DBMS_KERNEL32SB.Getsize(v_FileHandle, v_FileSizeHigh)
    17   DBMS_OUTPUT.put_line('File Size in Bytes: ' ||v_FileSize);
    18   v_dummy:=DBMS_KERNEL32SB.CloseFile(v_FileHandle);
    19  END;
    20  /
    File Size in Bytes: 61
    PL/SQL procedure successfully completed.
    SQL>
    SQL> /* Demo II:- How to find free disk space  */
    SQL> DECLARE
      2    v_rootpath VARCHAR2(500) :='C:\';
      3    v_dummy BINARY_INTEGER;
      4    v_sectorspercluster BINARY_INTEGER;
      5    v_bytespersector BINARY_INTEGER;
      6    v_numberoffreeclusters BINARY_INTEGER;
      7    v_totalnumberofclusters BINARY_INTEGER;
      8    v_freespace NUMBER;
      9    v_totalspace NUMBER;
    10  BEGIN
    11    v_dummy:=DBMS_KERNEL32SB.GetDiskFreeSpace(v_rootpath
    12                                              ,v_sectorspercluster
    13                                              ,v_bytespersector
    14                                              ,v_numberoffreeclusters
    15                                              ,v_totalnumberofclusters
    16                                              );
    17                                              
    18    DBMS_OUTPUT.put_line('Sector pre Cluster: ' ||v_sectorspercluster);
    19    DBMS_OUTPUT.put_line('Bytes per sector: ' ||v_bytespersector);
    20    DBMS_OUTPUT.put_line('Number Of Free Clusters: ' ||v_numberoffreeclusters);
    21    DBMS_OUTPUT.put_line('Total Number Of Clusters: ' ||v_totalnumberofclusters);
    22    v_freespace:=v_numberoffreeclusters/1024/1024/1024;
    23    v_freespace:=ROUND(v_freespace*v_sectorspercluster*v_bytespersector,3);
    24    v_totalspace:=v_totalnumberofclusters/1024/1024/1024;
    25    v_totalspace:=ROUND(v_totalspace*v_sectorspercluster*v_bytespersector,3);
    26    DBMS_OUTPUT.put_line('Total Space (GB):' ||v_totalspace);
    27    DBMS_OUTPUT.put_line('Total number of Free space (GB): '||v_freespace );
    28  END;
    29  /
    Sector pre Cluster: 8
    Bytes per sector: 512
    Number Of Free Clusters: 739477
    Total Number Of Clusters: 9765622
    Total Space (GB):37.253
    Total number of Free space (GB): 2.821
    PL/SQL procedure successfully completed.
    SQL>
    SQL> /* Demo IV:- How to get drive type*/
    SQL> SELECT dbms_kernel32sb.GetDriveType('C:\') FROM dual;
    DBMS_KERNEL32SB.GETDRIVETYPE('C:\')
    Drive Fixed
    SQL> SELECT dbms_kernel32sb.GetDriveType('D:\') FROM dual;
    DBMS_KERNEL32SB.GETDRIVETYPE('D:\')
    Cd-Rom
    SQL> SELECT dbms_kernel32sb.GetDriveType('E:\') FROM dual;
    DBMS_KERNEL32SB.GETDRIVETYPE('E:\')
    Unrecognized
    SQL>
    SQL> /* Demo V:- How to execute an Operating System Command*/
    SQL> DECLARE
      2   v_FileToExecute VARCHAR2(20):='test.bat';
      3   v_Parameter VARCHAR2(20):='test1.csv';--dbms_kernel32sb.NO_PARAMATER
      4   v_DefaultDirectory VARCHAR2(20):='C:\';
      5   v_ReturnValue VARCHAR2(20);
      6  BEGIN
      7    v_ReturnValue:=dbms_kernel32sb.ExecuteCommand(dbms_kernel32sb.EXECUTE_FILE
      8                                                  ,v_FileToExecute
      9                                                  ,v_Parameter
    10                                                  ,v_DefaultDirectory
    11                                                  );
    12   DBMS_OUTPUT.put_line('Status: '||v_ReturnValue);                               
    13  END;
    14  /
    Status: Success!
    PL/SQL procedure successfully completed.
    SQL> Now the sub programs with structures are NOT getting called successfully.
    SQL> /* Demo III:- How to obtain file time */
    SQL> DECLARE
      2    v_FileHandle BINARY_INTEGER;
      3    v_filename VARCHAR2(500) :='C:\test2.csv';
      4    v_dummy BINARY_INTEGER;
      5    v_filecreationtime FILETIME;
      6    v_lastaccesstime FILETIME;
      7    v_lastwritetime FILETIME;
      8    v_err BINARY_INTEGER;
      9  BEGIN
    10    v_FileHandle:=DBMS_KERNEL32SB.CreateFile(v_filename -- File name
    11                            ,DBMS_KERNEL32SB.GENERIC_FILE_ACCESS
    12                            ,DBMS_KERNEL32SB.DISABLE_FILE_SHARE_MODE
    13                            ,DBMS_KERNEL32SB.NO_FILE_SECURITY_ATTRIBUTE
    14                            ,DBMS_KERNEL32SB.OPEN_EXISTING_FILE
    15                            ,DBMS_KERNEL32SB.FILE_ATTRIBUTE_NORMAL
    16                            ,DBMS_KERNEL32SB.NO_TEMPLATE_FILE);
    17   v_dummy := DBMS_KERNEL32SB.GetFileTime( v_FileHandle
    18                                          ,v_filecreationtime
    19                                          ,v_lastaccesstime
    20                                          ,v_lastwritetime
    21                                          );
    22   v_err:=DBMS_KERNEL32SB.GetLastError;                                
    23   DBMS_OUTPUT.put_line('File Size in Bytes: ' ||v_dummy);
    24   DBMS_OUTPUT.put_line('Error:'||v_err);
    25   v_dummy:=DBMS_KERNEL32SB.CloseFile(v_FileHandle);
    26  END;
    27  /
    File Size in Bytes: 0
    Error:203
    PL/SQL procedure successfully completed.
    SQL> So, I have noticed that, Where ever a STRUCTURE is involved in external routine, there is a problem. I want to know, How to implement functions with STRUCTURE as OUT parameter.
    Forgot to mention: This is my FILETIME object which corresponds to FILETIME structure of win32.
    CREATE OR REPLACE TYPE FILETIME_rec IS OBJECT
                              ( LowDateTime NUMBER
                               ,HighDateTime NUMBER
    CREATE OR REPLACE TYPE FILETIME IS TABLE OF  FILETIME_rec;Edited by: Saubhik on Feb 1, 2011 4:15 PM

    Saubhik wrote:
    This is for educational purpose only. I am trying to implement kernel32.dll and shell32.dll in PL/SQL using external proc. Interesting. Familiar with the Wn32 API, but do not run Oracle on Windows and never looked at this aspect of integration.
    So, I have noticed that, Where ever a STRUCTURE is involved in external routine, there is a problem. I want to know, How to implement functions with STRUCTURE as OUT parameter.
    Forgot to mention: This is my FILETIME object which corresponds to FILETIME structure of win32.The problem is that this passes the parameter by reference and not value. In a vanilla C/C++/Delphi program, you will create a variable of that struct and then pass a long pointer to that variable when making the API call. That pointer will be dereferenced and the memory it points to, populated. This is not a problem as the underlying DLL you call that does this, uses your process's data segment.
    Extproc is different. In order to protect the integrity of the database server process, an external call is done by a "proxy" process. It acts as the interface between your PL/SQL code and the actual external call.
    In this case, this "proxy" process will be doing the implicit LoadLibrary() call to load kernel32.dll interface - and the DLL will expect to dereference and access this process's memory struct to populate it. This "proxy" process in turn needs to know that despite it calling the interface by reference, it needs to return that parameter to PL/SQL by value - as your PL/SQL code cannot dereference a pointer passed back by that "proxy" process and access its memory to gain access to that struct.
    In basic terms - that argument is a 32 bit number containing a pointer. That is what the "proxy" process needs to pass to the interface call. Your code is passing a struct and not a pointer, right?
    And that is the basic problem I believe. How to address this.. not sure. You can have your own DLL as interface that does not use pointers but expect arguments to be passed by value. But this will suck as you then need to include a custom DLL to deploy and have PL/SQL call that, instead of simply accessing and calling the native kernel interface.
    Doubt that many Win32 programmers with OCI (Oracle Call Interface) frequents this forum. So perhaps this is not the best place to ask. I would be hitting Metalink (support.oracle.com) search function in your sho3s though as there should be support notes dealing with this subject matter.

  • Crystal Report using Stored Proc in JSP problem

    Hello,
    I am running a simple report using a stored proc(oracle). It runs fine when I run the report through Crystal. But when I tried running it using JSP it gives me this exception -
    com.crystaldecisions.report.web.viewer.CrystalRepo rtViewer
    Error formatting page : Unexpected Query Engine error
    Can some one pls advise why I am not able to run this report through JSP?
    My other reports with simple sql runs fine in my JSP.
    Here is my stored proc --
    PACKAGE BODY MY_TEST
    AS
    PROCEDURE getrecordset
    p_cursor OUT cursor_type
    IS
    BEGIN
    OPEN p_cursor FOR
    SELECT
    FROM
    DSR_CLASS_SET;
    END;
    END MY_TEST;

    Thanks for your comments.
    If I run the same query, report runs fine. So I guess it should also able to run this stored proc.
    Here is the detailed error ---
    Category:     com.crystaldecisions.reports.reportengineinterface
    Message:          failed to process getPage request
    Location:     
    Thrown:
    com.crystaldecisions.reports.reportengineinterface.EngineException: Error formatting page : Unexpected Query Engine error
         at com.crystaldecisions.reports.reportengineinterface.Engine.getPage(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportAgent.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at jsp_servlet._crystal.__test._jspService(__test.java:225)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.crystaldecisions.reports.formatter.formatter.c: Unexpected Query Engine error
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.d.j.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.d.j.if(Unknown Source)
         ... 19 more
    Caused by: com.crystaldecisions.reports.dataengine.k: Unexpected Query Engine error
         at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.jO(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.aC(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.aD(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.au.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.aa(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
         ... 23 more
    Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.d: Unexpected Query Engine error
         at com.crystaldecisions.reports.reportdefinition.datainterface.b.a(Unknown Source)
         ... 34 more
    Caused by: com.crystaldecisions.reports.queryengine.al: Unexpected Query Engine error
         at com.crystaldecisions.reports.queryengine.driver.l.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.dZ(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ao.dK(Unknown Source)
         at com.crystaldecisions.reports.queryengine.b0.dB(Unknown Source)
         at com.crystaldecisions.reports.queryengine.bz.a6(Unknown Source)
         ... 35 more
    Any guess why I get this?

  • "Extra" Internal Hard Drives won't mount - swap, /, and /home work.

    Hello All,
    *** I'm updating my post finally. Sorry it's so long, I'm not entirely sure what is and isn't relevant.
    *** Also I think it's a mix up with RAID causing the issue, as I'll address below, but in case I'm wrong I wanted to include the other information that came to mind before I noticed the RAID issue (because the RAID issue doesn't make a lot of sense to me).
    First off, I'm running Arch64 and KDE4 with my system up to date. Also I have Gamin installed and not FAM. I use ReiserFS on all of my partitions and drives.
    I have six hard drives in my computer, all of which are SATA drives. One is a WD 150GB Raptor with my swap, /, and /home partitions on it, the other five are for extra storage on what I call my media-server (they mount to /media/media-server/1 ,2 ,and so on). They only have one partition each. Of those five the first (/media/media-server/1) is a WD 1TB drive, the other four are WD 500GB drives of identical model.
    All of the Raptor's patitions, swap, /, and /home mount just fine.
    On top of that the 1TB drive mounts just fine. But the four 500GB drives will not mount at all. They show up in Dolphin, Disk Utility, KwikDisk, KDiskFree, and Partition Manager. However, their size is not shown and/or marked N/A, except in Partition Manager, where their size is shown. They are not seen by 'df'.
    Output from 'df':
    df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 10M 308K 9.7M 4% /dev
    /dev/sda2 25G 7.7G 17G 32% /
    none 4.0G 0 4.0G 0% /dev/shm
    /dev/sda3 112G 90G 22G 81% /home
    /dev/sdb1 932G 919G 13G 99% /media/media-server/1
    *** As for removable media, it's being a bit odd. When I first wrote this post removable media, specifically USB flash drives and SD media cards mounted fine. A while after that they'd show up in Device Notifier, but wouldn't mount. Just a little while ago they wouldn't show up in Device Notifier and wouldn't mount. Now they show up fine and mount fine again. This is possibly unrelated, I'm not sure.
    Depending on what method I try to mount my hard drives I either get an 'only root can mount that' error or else a HAL drive busy or already mounted error, followed by a 'drive is not mounted' error when I use umount to double check.
    *** Permissions are working better now , Dolphin isn't giving me the 'only root can mount' errors anymore. Still can't mount the drives though.
    All of this output is from when the drives are listed in /etc/fstab:
    Konsole output:
    mount /dev/sdf1
    mount: only root can mount /dev/sdf1 on /media/media-server/5
    sudo mount /dev/sdf1
    mount: /dev/sdf1 already mounted or /media/media-server/5 busy
    umount /dev/sdf1
    umount: /dev/sdf1 is not mounted (according to mtab)
    sudo umount /dev/sdf1
    umount: /dev/sdf1: not mounted
    Dolphin output:
    An error occurred while accessing 'MediaServer5', the system responded: org.freedesktop.Hal.Device.Volume.PermissionDenied: Device /dev/sdf1 is listed in /etc/fstab. Refusing to mount.
    Device Notifier output (pops up when I try to mount the drives in Dolphin):
    org.freedesktop.Hal.Device.Volume.PermissionDenied: Device /dev/sdf1 is listed in /etc/fstab. Refusing to mount.
    Partition Manager:
    The file system on partition /dev/sdf1 could not be mounted.
    Details
    ==========================================================================================
    Command: mount -v /dev/sdf1 /media/media-server/5
    ==========================================================================================
    mount: /dev/sdf1 already mounted or /media/media-server/5 busy
    mount: you didn't specify a filesystem type for /dev/sdf1
    I will try type reiserfs
    At boot, when the daemons are starting I get:
    mount: /dev/sdc1 already mounted or /media/media-server/2 busy
    mount: /dev/sdd1 already mounted or /media/media-server/3 busy
    mount: /dev/sde1 already mounted or /media/media-server/4 busy
    mount: /dev/sdf1 already mounted or /media/media-server/5 busy
    This is from when the drives are not listed in /etc/fstab:
    Dolphin output:
    An error occurred while accessing 'MediaServer5', the system responded: org.freedesktop.Hal.Device.InterfaceLocked: The enclosing drive for the volume is locked
    Device Notifier output (pops up when I try to mount the drives in Dolphin):
    An error occurred while accessing 'MediaServer5', the system responded: org.freedesktop.Hal.Device.InterfaceLocked: The enclosing drive for the volume is locked
    I have tried listing (with the UUID method and the /dev method) and not listing the drives in /etc/fstab, and I have 'hal' and 'dbus' daemons in /etc/rc.conf (and I've tried using only the hal daemon and not the dbus in /etc/rc.conf). I've also tried not listing 'hal', 'dbus', and 'kdm' and only booting to terminal and then mounting the drives manually, that doesn't work either.
    Here is my /etc/fstab (back to using UUID's):
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    UUID=699cdd5e-3f4a-4b85-8dcb-5d00c00c94a9 swap swap defaults 0 0
    UUID=ce94e7a3-3e07-41e5-90d7-1116e5da3121 / reiserfs defaults 0 0
    UUID=a1dce435-df90-4f0d-892c-61ff3ea0c8d1 /home reiserfs defaults 0 0
    ## Media-Server
    # media-server/1
    UUID=81998a75-f887-4a35-b3fa-e159190f25a3 /media/media-server/1 reiserfs defaults 0 0
    #/dev/sdb1 /media/media-server/1 reiserfs defaults 0 0
    # media-server/2
    UUID=8cdd114a-b190-44f6-9240-1910a5d048f7 /media/media-server/2 reiserfs defaults 0 0
    #/dev/sdc1 /media/media-server/2 reiserfs defaults 0 0
    # media-server/3
    UUID=59164593-b56d-4c49-8837-277b3c392dfb /media/media-server/3 reiserfs defaults 0 0
    #/dev/sdd1 /media/media-server/3 reiserfs defaults 0 0
    # media-server/4
    UUID=ba6007bd-1e36-431c-85f4-857c83845c86 /media/media-server/4 reiserfs defaults 0 0
    #/dev/sde1 /media/media-server/4 reiserfs defaults 0 0
    # media-server/5
    UUID=6fab5364-1acb-4ba3-9f83-bb171a6d398a /media/media-server/5 reiserfs defaults 0 0
    #/dev/sdf1 /media/media-server/5 reiserfs defaults 0 0
    ## VirtualBox USB
    none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0
    Here's the daemons line from /etc/rc.conf:
    DAEMONS=(syslog-ng !dbus hal network netfs crond wicd openntpd sshd avahi-daemon avahi-dnsconfd samba alsa mysqld lircd mythbackend !mpd !sensors !sensord !fancontrol cups keytouch kdm)
    Also, /etc/mtab because only the first media-server drive is listed in it (the one that does mount):
    proc /proc proc rw,relatime 0 0
    sys /sys sysfs rw,relatime 0 0
    udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=1014438,mode=755 0 0
    /dev/sda2 / reiserfs rw,relatime 0 0
    fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
    none /dev/pts devpts rw 0 0
    none /dev/shm tmpfs rw 0 0
    /dev/sda3 /home reiserfs rw 0 0
    /dev/sdb1 /media/media-server/1 reiserfs rw 0 0
    none /proc/bus/usb usbfs rw,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0
    I attempted to add the other drives to /etc/mtab but they get overwritten upon a reboot. I've drived mounting the drives from konsole and dolphin.
    All my drives used to work. At one point I had Chakra installed and had this issue after an update, however after thinking about it the problem may have actually started after the power flashed on and off here. I couldn't fix it so I installed Arch64 and KDE4 (the normal KDE from the Arch repos, not KDEMod) thinking maybe it was a Chakra specific issue. That fixed it at the time. It later happened on my Arch install. I reinstalled Arch again and the issue was gone. However the issue is back. Again I think it was after a power outage/flash but it was also after an update that included a kernel update. Best I can remember each time it's happened has been after a kernel update and power flash. So I can't say for sure which is the cause.
    Oddly though if I boot from a live disc (in my case a Chakra Live DVD) I can mount and access all of the drives just fine.
    Another oddity, is that in 'Disk Utility' (palimpsest) there is a 1.5TB RAID-5 array listed. The only thing I can figure is that that is what is making the individual drives busy.
    Here's a screenshot from Disk Utility of the RAID-5 array:
    http://theavataroftime.com/sites/defaul … enshot.png
    After talking to a friend I remembered that quite a while back (over a year) we had messed around trying to setup a RAID array and dual boot WindowsXP. However, we never could get it working quite right, not even just in Linux without dual booting. I really can't say what all we did/tried, it's been too long. I realize that's not much help but...
    Anyway I'm pretty certain I deleted everything RAID related at the time and turned it off. However I must be mistaken or I guess the array wouldn't be showing up.
    I apologize, I really know nothing about RAID or RAID controllers. I do have an onboard RAID controller, but it's not a full fledged hardware RAID controller. It's onboard, but doesn't have it's on proccessor like good hardware RAID would. Or that's the way I understand it. Perhaps 'hybrid' is the proper term?
    I checked in BIOS and my onboard RAID controller is off.
    I take it that my attempts at setting up a RAID array before are still in the MBR (on that note I use GRUB and have never used LILO)? That's the only place I can think of that any leftover RAID configurations wouldn't have been wiped during reinstalling and reformatting the drives and partitions? I've reformatted my drives completely and changed the size of swap, /, and /home on several occasions since then, as well as formatting the media-server drives to ReiserFS (not sure what FS I was using when trying to setup RAID before. Perhaps FAT32 since I was trying to dual boot).
    I clicked the stop array button in Disk utility, and then all the options except start array went away. Then I clicked start, and instead of my four media-server drives being listed at the side of Dolphin there was one 1.4TB drive. I rebooted and now it's back to the 4 500GB media-server drives.
    I'm worried about losing a bunch of data, so I'm hesitant to start experimenting. How should I go about getting rid of the remnants of the RAID array safely?
    Also here's a screenshot of MediaServer5 from Disk Utility. The other 500GB drives have the same info minus the names and labels of course:
    http://theavataroftime.com/sites/defaul … enshot.png
    *** I had forgotten about dmesg output. It's quite long so instead of copying it, here's a link to it:
    http://theavataroftime.com/sites/defaul … /dmesg.txt
    Thanks for advice on the matter.
    Last edited by The Avatar of Time (2010-10-07 08:27:06)

    Thanks for the reply.
    Here is my output from the commands you suggested:
    fuser -v -m /media/media-server/2
    USER PID ACCESS COMMAND
    /media/media-server/2:
    root kernel mount /
    theavataroftime 2518 fr.e. startkde
    theavataroftime 2561 Frce. gpg-agent
    theavataroftime 2575 .rce. dbus-launch
    theavataroftime 2576 .rce. dbus-daemon
    theavataroftime 2584 Fr.e. kdeinit4
    theavataroftime 2585 Fr.e. klauncher
    theavataroftime 2587 fr.e. kded4
    theavataroftime 2592 .r.e. kglobalaccel
    theavataroftime 2605 .r.e. kwrapper4
    theavataroftime 2613 Fr.e. ksmserver
    theavataroftime 2622 .r.e. kwin
    theavataroftime 2656 fr.e. knotify4
    theavataroftime 2658 fr.e. plasma-desktop
    theavataroftime 2662 .rce. kuiserver
    theavataroftime 2665 .r.e. akonadi_control
    theavataroftime 2667 .r.e. akonadiserver
    theavataroftime 2670 Fr.e. mysqld
    theavataroftime 2714 .r.e. akonadi_contact
    theavataroftime 2715 .r.e. akonadi_contact
    theavataroftime 2716 .r.e. akonadi_ical_re
    theavataroftime 2717 .r.e. akonadi_ical_re
    theavataroftime 2718 .r.e. akonadi_maildir
    theavataroftime 2719 .r.e. akonadi_maildis
    theavataroftime 2720 .r.e. akonadi_nepomuk
    theavataroftime 2721 .r.e. akonadi_vcard_r
    theavataroftime 2739 .r.e. nepomukserver
    theavataroftime 2741 .r.e. nepomukservices
    theavataroftime 2747 .r.e. kaccess
    theavataroftime 2759 fr.e. krunner
    theavataroftime 2765 Fr.e. virtuoso-t
    theavataroftime 2772 Fr.e. kio_http_cache_
    theavataroftime 2774 .r.e. kmix
    theavataroftime 2782 Fr.e. konsole
    theavataroftime 2785 .r.e. kjots
    theavataroftime 2790 .r.e. bash
    theavataroftime 2807 .r.e. kalarm
    theavataroftime 2809 fr.e. kopete
    theavataroftime 2812 .r.e. polkit-kde-auth
    theavataroftime 2815 .r.e. kwin
    theavataroftime 2821 .r.e. dolphin
    theavataroftime 2822 Fr.e. firefox
    theavataroftime 2834 .r.e. kwalletd
    theavataroftime 2839 .r.e. kwalletmanager
    theavataroftime 2842 Frce. gconfd-2
    theavataroftime 2850 .r.e. python
    theavataroftime 2854 .rce. wicd-client
    theavataroftime 2858 .r.e. klipper
    theavataroftime 2861 .r.e. nepomukservices
    theavataroftime 2862 .r.e. nepomukservices
    theavataroftime 2865 .r.e. nepomukservices
    theavataroftime 2867 .r.e. nepomukservices
    theavataroftime 2868 .r.e. nepomukservices
    theavataroftime 2869 .r.e. nepomukservices
    theavataroftime 2870 .r.e. nepomukservices
    theavataroftime 2871 .r.e. korgac
    theavataroftime 2883 fr.e. kmozillahelper
    theavataroftime 2979 .r.e. amarokapp
    theavataroftime 2989 .r.e. plugin-containe
    theavataroftime 3010 .r.e. npviewer.bin
    theavataroftime 3048 Fr.e. kdeinit
    theavataroftime 3051 Fr.e. dcopserver
    theavataroftime 3053 Fr.e. klauncher
    theavataroftime 3055 fr.e. kded
    theavataroftime 3075 .r.e. ruby
    theavataroftime 3081 fr.e. kio_file
    theavataroftime 15311 .r.e. kio_http
    theavataroftime 15312 .r.e. kio_http
    theavataroftime 15313 .r.e. kio_http
    theavataroftime 15314 .r.e. kio_http
    theavataroftime 15315 .r.e. kio_http
    theavataroftime 15316 .r.e. kio_http
    fuser -v -m /dev/sdb1
    USER PID ACCESS COMMAND
    /dev/sdb1: root kernel mount /media/media-server/1
    I ran 'fsck.reiserfs --check' one /dev/sdf1, which is the /media/media-server/5 hard drive.
    Here are the results:
    fsck.reiserfs --check /dev/sdf1
    reiserfsck 3.6.21 (2009 www.namesys.com)
    ** If you are using the latest reiserfsprogs and it fails **
    ** please email bug reports to [email protected], **
    ** providing as much information as possible -- your **
    ** hardware, kernel, patches, settings, all reiserfsck **
    ** messages (including version), the reiserfsck logfile, **
    ** check the syslog file for any related information. **
    ** If you would like advice on using this program, support **
    ** is available for $25 at www.namesys.com/support.html. **
    Will read-only check consistency of the filesystem on /dev/sdf1
    Will put log info to 'stdout'
    Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
    reiserfsck --check started at Mon Sep 27 19:21:20 2010
    Replaying journal: Done.
    Reiserfs journal '/dev/sdf1' in blocks [18..8211]: 0 transactions replayed
    Checking internal tree.. finished
    Comparing bitmaps..finished
    Checking Semantic tree:
    finished
    No corruptions found
    There are on the filesystem:
    Leaves 77863
    Internal nodes 474
    Directories 2856
    Other files 18718
    Data block pointers 77184421 (0 of them are zero)
    Safe links 0
    reiserfsck finished at Mon Sep 27 19:29:03 2010
    Also I just used Partition Manager to check /media/media-server/5 as well.
    Check and repair partition '/dev/sdf1' (465.76 GiB, reiser)
    Job: Check file system on partition '/dev/sdf1'
    Command: fsck.reiserfs --fix-fixable -q -y /dev/sdf1
    reiserfsck 3.6.21 (2009 www.namesys.com)
    ** If you are using the latest reiserfsprogs and it fails **
    ** please email bug reports to [email protected], **
    ** providing as much information as possible -- your **
    ** hardware, kernel, patches, settings, all reiserfsck **
    ** messages (including version), the reiserfsck logfile, **
    ** check the syslog file for any related information. **
    ** If you would like advice on using this program, support **
    ** is available for $25 at www.namesys.com/support.html. **
    Will check consistency of the filesystem on /dev/sdf1
    and will fix what can be fixed without --rebuild-tree
    Will put log info to 'stdout'
    reiserfsck --fix-fixable started at Wed Oct 6 22:29:02 2010
    Replaying journal: Replaying journal: Done.
    Reiserfs journal '/dev/sdf1' in blocks [18..8211]: 0 transactions replayed
    Checking internal tree..
    ***I'm cutting most of this out, it's insanely long: \|/-\|/-\|finished
    Comparing bitmaps..Bad nodes were found, Semantic pass skipped
    3 found corruptions can be fixed only when running with --rebuild-tree
    reiserfsck finished at Wed Oct 6 22:36:43 2010
    block 32772: The level of the node (48287) is not correct, (1) expected
    the problem in the internal node occured (32772), whole subtree is skipped
    block 262149: The level of the node (28423) is not correct, (1) expected
    the problem in the internal node occured (262149), whole subtree is skipped
    block 11326: The level of the node (63701) is not correct, (1) expected
    the problem in the internal node occured (11326), whole subtree is skipped
    vpf-10630: The on-disk and the correct bitmaps differs. Will be fixed later.
    Check file system on partition '/dev/sdf1': Error
    Check and repair partition '/dev/sdf1' (465.76 GiB, reiser): Error
    Thanks for the advice.
    Last edited by The Avatar of Time (2010-10-07 05:53:05)

  • After the last Yosemite update on my MacBook pro I turned the FileVault on, now my Mac is freezing all the time and encrypting the drive looks like going to last forever and I am unable to use my MacBook pro what must I do???!!!

    after the last Yosemite update on my MacBook pro I turned the FileVault on, now my Mac is freezing all the time and encrypting the drive looks like going to last forever and I am unable to use my MacBook pro what must I do???!!!

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of the script have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts SerialATA 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' com.clark.\* \*dropbox \*genieo\* \*GoogleDr\* \*k.AutoCAD\* \*k.Maya\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 "` route -n get default|awk '/e:/{print $2}' `" 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB ' com.adobe.AAM.Updater-1.0 com.adobe.AAM.Updater-1.0 com.adobe.AdobeCreativeCloud com.adobe.CS4ServiceManager com.adobe.CS5ServiceManager com.adobe.fpsaud com.adobe.SwitchBoard com.adobe.SwitchBoard com.apple.aelwriter com.apple.AirPortBaseStationAgent com.apple.FolderActions.enabled com.apple.installer.osmessagetracing com.apple.mrt.uiagent com.apple.ReportCrash.Self com.apple.rpmuxd com.apple.SafariNotificationAgent com.apple.usbmuxd com.citrixonline.GoToMeeting.G2MUpdate com.google.keystone.agent com.google.keystone.daemon com.microsoft.office.licensing.helper com.oracle.java.Helper-Tool com.oracle.java.JavaUpdateHelper com.oracle.java.JavaUpdateHelper org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.startx ' ' 879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 3694147963 1233118628 2456546649 2806998573 2778718105 2636415542 842973933 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 523110921 3873345487 ' 51 5120 files );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/faceb/s/(at\.)[^.]+/\1NAME/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: (E[^m]|[^EO])|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<10) print "com.apple.";} ' ' { sub(/ :/,"");print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/^root$/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1100) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { split("'"${p[41]}"'",b);split("'"${p[42]}"'",c);for(i in b) print b[i]".plist\t"c[i];if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[43]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/{next};/%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";p="uniq -c|sed -E '"'s/ +\\([0-9]+\\)\\(.+\\)/\\\2 x\\\1/;s/x1$//'"'";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1|p;b=b$1;} END { close(p);if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n   "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n   [N/A]";"cksum "F|getline C;split(C, A);C="checksum "A[1];"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F" ("T", "C")";else F=F" ("C")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n   ...and %s more line(s)\n",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9|"sort|uniq";} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ /V/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' ' /^find: /d;p;' "`S0 44 45`" ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */   /;' ' s/^.+ |\(.+\)$//g;p ' '/\.(appex|pluginkit)\/Contents\/Info\.plist$/p' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR/d;s/^.+: //p;' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' pluginkit scutil dtrace profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil lsof test osascript\ -e );c2=(com.apple.loginwindow\ LoginHook '" /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'|tr , \\\n" 'L*/Ca*/com.ap*.Saf*/E*/* -d 1 -name In*t -exec '"${c1[14]}"' :CFBundleDisplayName" {} \;|sort|uniq' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' :${p[35]}\" :Label\" '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$(RefProc): \$Message' -k Sender Req 'fsev|kern|launchd' -k RefProc Rne 'Aq|WebK' -k Message Rne 'Goog|ksadm|probe|Roame|SMC:|smcD|sserti|suhel| VALI|ver-r|xpma' -k Message Req 'abn|bad |Beac|caug|corru|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|NVDA\(|pagin|proc: t|Roamed|rror|SL|TCON|Throttli|tim(ed? ?|ing )o|WARN' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '/S*/*/Ca*/*xpc* >&- ||echo No' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,Ex}* {/,}L*/{A*d,Ca*/*/Ex,Co{mpon,reM},Ex,In{p,ter},iTu*/*P,Keyb,Mail/B,Pr*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -path \\*s/Resources -prune -o -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' '+c0 -i4TCP:0-1023' com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' "+c0 -l|awk '{print(\$1,\$3)}'|sort|uniq -c|sort -n|tail -1|awk '{print(\$2,\$3,\$1)}'" -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????|wc -l' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' " -F '\$Time \$Message' -k Sender kernel -k Message CSeq 'n Cause: -' " );N1=${#c2[@]};for j in {0..9};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents XPC\ cache Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching SATA Descriptors App\ extensions Lockfiles Memory\ pressure SMC Shutdowns );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};A'$((7+i))'() { v=` eval sudo "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};';done;A9(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "${s[63]}"<<<"$v"`&&C1 1 $1;};for i in 1 2 7 8;do for j in 0 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;D20 0 $((N1+1)) 2;D10 0 $N1 1;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;D13 0 $((N1+9)) 59 50;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;B1&&D73 19 53 67 55;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 54 12 56;D23 5 14 12 14;D22 6 36 13 15;D22 20 52 66 54;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D82 35 49 61 51;D82 11 17 17 20;for i in 0 1;do D82 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A8 18 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;B3 4 0 65;A3 14 6 32 0;B4 0 16 11;A1 26 50 64;B7 16;C3 52;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D73 21 0 32 19;D73 10 42 32 40;D82 29 35 46 39;};D23 14 1 62 42;D12 34 43 53 44;D12 22 20 32 25;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 21 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D83 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 10 42 32 41;D13 37 2 48 43;D13 4 5 32 1;D13 4 3 60 5;D12 21 48 49 49;B3 4 22 57;A1 21 46 56;B7 22;B3 0 0 58;C3 47;D22 4 4 50 0;D12 4 51 32 53;D23 22 9 37 7;A9;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return  three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report what happened. No harm will be done.
    12. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Multiple threads calling the same stored proc with different parameters

    Hi,
    I have a stored procedure which will be called by 8 threads. Every time it takes in a different parameter.
    Actual execution time for this proc (irrespective of the parameter) is around 2 seconds. But when I call the 8 threads, I see that the total time taken (END TO END) is around 16 seconds. Threads do acquire a read lock right? Is there a way i can get over this issue?
    Please let me know.

    Sybase IQ is the database. I am using a thread pool. The time taken to execute this procedure without threads is about 2 seconds. It takes 16 seconds when I start using threads.
    I do something like this :
    ///////////////////////// databaseThreadPool.java
    * example of a fixed-size thread pool using the
    * executors introduced in Java 5
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    public class databaseThreadPool
    public static void main(String[] args)
    * create a thread pool with four threads
    ExecutorService execSvc = Executors.newFixedThreadPool( 8);
    * place six tasks in the work queue for the thread pool
    for( int i = 0; i < 6; i++ )
    execSvc.execute( new CountDown() );
         long a =System.currentTimeMillis();
    execSvc.execute( new databaseThread("00055","YTD","GROSS") );
    execSvc.execute( new databaseThread("00055","YTD","NET") );
    execSvc.execute( new databaseThread("00055","YTM","GROSS") );
    execSvc.execute( new databaseThread("00055","YTM","NET") );
    execSvc.execute( new databaseThread("00055","LY","GROSS") );
    execSvc.execute( new databaseThread("00055","LY","NET") );
    execSvc.execute( new databaseThread("00055","LLY","GROSS") );
    execSvc.execute( new databaseThread("00055","LLY","NET") );
         long b =System.currentTimeMillis();
         try{
         while(databaseThread.done!=8)
              Thread.sleep(1000);
         catch(Exception ex){}
    execSvc.shutdown();
    System.out.println("END TO END TIME TAKEN : "+(b-a));
    /////////////////////////////////////////////////////////// databaseThread.java
    import java.io.PrintWriter;
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.Statement;
    import java.io.PrintWriter;
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.io.IOException;
    public class databaseThread implements Runnable
    protected int count = 8;
    * the following counter is incremented once
    * each time the class is instantiated, giving each
    * instance a unique number, which is printed in run()
    private static int taskCount = 0;
    private final int id = taskCount++;
    private String gpNum;
    private String time;
    private String domain;
    public static int i=0;
    public static int done=0;
    PrintWriter out = null;
    Connection connection = null;
    Statement statement;
    ResultSet rs;
    ResultSetMetaData rsmd;
         CallableStatement cStmt = null;
    public databaseThread(String gpNum, String time, String domain) {
    this.gpNum=gpNum;
    this.time=time;
    this.domain=domain;
    * print the id and the iteration count to the console, then
    * yield to another thread.
    public void run()
         try
         Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
         connection = DriverManager.getConnection("jdbc:sybase:Tds:XXXXXXXXXXX:XXXXXXX", "cp_dbo","cp_dbo");
         statement = connection.createStatement();
              cStmt=connection.prepareCall("{call XXXXXX ?,?,?)}");
              cStmt.setString(1,gpNum);
              cStmt.setString(2, time);
              cStmt.setString(3,domain);
              long a =System.currentTimeMillis();
              rs=cStmt.executeQuery();
              long b=System.currentTimeMillis();
              System.out.println(id+" Time taken by to execute Query : "+(b-a));
         //rsmd=rs.getMetaData();
              while(rs.next())
              Thread.yield();
         catch (ClassNotFoundException e) {
              System.out.println("Driver Error" );
              e.printStackTrace();
              } catch (SQLException e) {
              System.out.println("SQLException: " + e.getMessage());
    }

Maybe you are looking for

  • Open Directory startup error

    Hi, 10.8.2 / Server 2.2 Attempting to turn Open Directory fails with the message: An error occurred on the server while processing a command. The error occurred while processing a command of type 'setState' in plug-in 'servermgr_dirserv' How can I re

  • Carry over type from previous slide

    I'm trying to carry over a line of type from a previous slide and there is the slightest delay when the slide transitions. I have the type in the same position on both slides. How can I make this seamless?

  • Convert single PDF to multiple jpegs?

    Hi We produce a number of A5 publications and the need has arisen for me to produce each page of each publication as a jpeg (can't be anything else) for web publication. As I see it my current options are: 1. During the PDF'ing process from InDesign

  • 0COPC_C04 : Material Ledger Inactive for valuation area

    I ran RSA3 for 0CO_PC_ACT_02 and 0CO_PC_ACT_05 and I get 1000 records respectively. I ran the info package to load this data into BW to 0COPC_C04 . I am getting a message in the status tab " Job termination in the source system". When I look at the j

  • How to pass 2 different REQUEST in the URL

    Hi, I want to pass 2 different REQUEST value when I click the Edit link of the Report (Report/Form). I have give VALUE1 in the Request property of edit link, I want to give 2 REQUEST value something like VALUE1, VALUE2... http://xxxxxx/pls/apex/f?p=1