Ioctl & character device file

Maybe question doesn't belong to this forum but I couldn't find answer anywhere else.
The question is:
How to get partition/slice size using ioctl on character device file?
I found in dkio.h that DKIOCPARTINFO could be used to get partition/slice information. It fills
struct part_info {
     daddr_t          p_start;
     int          p_length;
structure.
What is measurement unit of p_length?
Thanx,

The closest thing we get to a file manager is the Media application on the device. Nothing that is going to let you root around in the OS files like Windows Explorer does on your PC.

Similar Messages

  • Inappropriate ioctl for device

    Hello,
    I have some zones set up in solaris 10. When i try to scp a file to any of the zones, i get the following error:
    "shell-init: error retrieving current directory: getcwd: cannot access parent directories: Inappropriate ioctl for device"
    1. /export/home is mounted using lofs in to the zone from the parent.
    2. This does not happen when i scp something to the parent
    3. This does not happen on an account which is local to the zone, whose default shell is bash
    3. This does not happen on an NIS account whose default shell is ksh
    4. This does happen on all NIS accounts who have a default shell of bash, even if there is nothing in their home directory (ie, no .bashrc).
    5. There is no mention of tty in /etc/profile or /etc/.login
    6. I have tried changing the default TERM to vt100 from xterm, it still happens
    7. The error does not present itself upon a normal ssh login
    8. the error [n]does[n] show up when i do something like `ssh myzone "id"` from another box or zone.
    If i don't mount /export/home from the parent in to the zone, i do not get this error. There must be some problem with how i set this up maybe? Here's the zonecfg info:
    zonepath: /export/zones/vwsuserz
    autoboot: true
    pool:
    inherit-pkg-dir:
    dir: /lib
    inherit-pkg-dir:
    dir: /platform
    inherit-pkg-dir:
    dir: /sbin
    inherit-pkg-dir:
    dir: /usr
    fs:
    dir: /export/home
    special: /export/home
    raw not specified
    type: lofs
    options: [rw,nodevices]
    net:
    address: 10.222.136.162
    physical: bge0
    I've been googling for a long time and no one seems to have found a resolution. Does anyone have insight in to this problem?
    Message was edited by:
    keegang
    Message was edited by:
    keegang

    The problem maybe a permissions on your parent directory, I had a similar error:
    root@elliot:~ # ls -ald ../
    drwx-----x 9 root root 512 Feb 15 14:33 ../
    jemurray@freiwald:~ $ scp hat.txt elliot.nts.wustl.edu:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    hat.txt 100% |**********************************************************************************| 1428 00:00
    root@elliot:~ # chmod 755 ../
    root@elliot:~ # ls -ald ../
    drwxr-xr-x 9 root root 512 Feb 15 14:33 ../
    jemurray@freiwald:~ $ scp hat.txt elliot.nts.wustl.edu:
    hat.txt 100% |**********************************************************************************| 1428 00:00
    We used to try and have our main /export/home directory 701 permissions, but we received this error. Permissions 755 make the problem go away. Not the best answer, but for the users we have on our systems, it is not a big deal.

  • Ohasd failed to start Inappropriate ioctl for device at roothas.pl

    Hallo!I am trying to install Oracle database 11.2.0.1 on Oracle Linux 6.0 32 bit deployed on VirtualBox.I am setting up a single-instance database on ASM thus doing
    Grid installation on a stand-alone server.I launched the Grid installer OUI and when I run the root script
    /u01/app/oracle/product/11.2.0/grid/root.sh
    I get the following error
    Adding daemon to inittab
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start: Inappropriate ioctl for device at /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl line 296.
    When I check the /u01/app/oracle/product/11.2.0/grid/log/joey-oel6/client/crsctl.log it gives me the following error messages
    Oracle Database 11g Clusterware Release 11.2.0.1.0 - Production Copyright 1996, 2009 Oracle. All rights reserved.
    2012-06-28 14:47:26.259: [ CSSCLNT][3037951696]clssscConnect: gipc request failed with 29 (0x13)
    2012-06-28 14:47:26.259: [ CSSCLNT][3037951696]clsssInitNative: connect failed, rc 29
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 0
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 1
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 2
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 3
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 4
    2012-06-28 14:47:26.272: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 5
    2012-06-28 14:47:26.273: [  OCRRAW][3037951696]propriogid:1_1: Failed to read the whole bootblock. Assumes invalid format.
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 0
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 1
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 2
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 3
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 4
    2012-06-28 14:47:26.273: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 5
    2012-06-28 14:47:26.274: [  OCRRAW][3037951696]ibctx: Failed to read the whole bootblock. Assumes invalid format.
    2012-06-28 14:47:26.274: [  OCRRAW][3037951696]proprinit:problem reading the bootblock or superbloc 22
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 0
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 1
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 2
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 3
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 4
    2012-06-28 14:47:26.274: [  OCROSD][3037951696]utread:3: Problem reading buffer 9586000 buflen 4096 retval 0 phy_offset 102400 retry 5
    2012-06-28 14:47:26.274: [  OCRRAW][3037951696]propriogid:1_1: Failed to read the whole bootblock. Assumes invalid format.
    2012-06-28 14:47:26.698: [  OCRRAW][3037951696]iniconfig:No 92 configuration
    2012-06-28 14:47:26.698: [  OCRAPI][3037951696]a_init:6a: Backend init successful
    2012-06-28 14:47:26.698: [  CRSCTL][3037951696]crsctlcss_GetEnvVar: Environment variable NLS_LANG not found
    2012-06-28 14:47:26.699: [  CRSCTL][3037951696]crsctlcss_GetEnvVar: Error 21101 in getting environment variable ORACLE_HOME
    2012-06-28 14:47:26.700: [  CRSCTL][3037951696]crsctlcss_doclusterkeys: the current number of pinned nodes 0, set is 1
    2012-06-28 14:47:27.233: [  CRSCTL][3037951696]crsctl_pin_ocr: set OCR keys succ.
    How do I solve this?

    Hello,
    Problem is indeed because of upstart/init incompatibility. Here is the working way:
    1) Proceed with the installation as usual until root.sh invocation.
    2) Before root.sh edit $GRID_HOME/crs/install/s_crsconfig_lib.pm, go to line 1173 (you should find a code like: if ($srv eq "ohasd") { # Start OHASD).
    3) Insert a following snippet before starting OHASD part (line 1173)
    my $UPSTART_OHASD_SERVICE = "oracle-ohasd";
    my $INITCTL = "/sbin/initctl";
    ($status, @output) = system_cmd_capture ("$INITCTL start $UPSTART_OHASD_SERVICE");
    if (0 != $status)
    error ("Failed to start $UPSTART_OHASD_SERVICE, error: $!");
    return $FAILED;
    4) Create a file /etc/init/oracle-ohasd.conf with the following content inside
    # Oracle OHASD startup
    start on runlevel [35]
    stop on runlevel [!35]
    respawn
    exec /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
    5) Invoke root.sh
    6) Finish the installation.
    If you previously ran root.sh (not successfully), simply roll it back:
    $GRID_HOME/crs/install/roothas.pl -deconfig -force -verbose
    Make changes above and continue.
    good luck
    Anand

  • Ohasd failed to start: Inappropriate ioctl for device, CRS-4124:, CRS-4000:

    New install on amazon, 11.2.0-64 image. Did NOT install canned 11.2.0 on the host, just downloaded the grid component and running the installer to configure Grid Infrastructure for a Stand-Alone Server.
    Fails with the following error where I do Stand Alone Server or Grid Software only;
    $ /u01/app/grid/1120/grid/perl/bin/perl -I/u01/app/grid/1120/grid/perl/lib -I/u01/app/grid/1120/grid/crs/install /u01/app/grid/1120/grid/crs/install/roothas.pl -verbose
    2010-04-25 16:46:00: Checking for super user privileges
    2010-04-25 16:46:00: User has super user privileges
    2010-04-25 16:46:00: Parsing the host name
    Using configuration parameter file: /u01/app/grid/1120/grid/crs/install/crsconfig_params
    LOCAL ADD MODE
    Creating OCR keys for user 'grid', privgrp 'oinstall'..
    Operation successful.
    CRS-4664: Node domu-12-31-36-00-35-b2 successfully pinned.
    Adding daemon to inittab
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start: Inappropriate ioctl for device at /u01/app/grid/1120/grid/crs/install/roothas.pl line 296.
    root@domU-12-31-36-00-35-B2:[u01/app/grid/1120/grid/install/utl]
    Been through the related noted to no avail;
    Doc ID 1063552.1 ----> rm -rf /tmp/.oracle /usr/tmp/.oracle /var/tmp/.oracle
    Doc ID 969878.1 ----> service syslog restart
    And ipV6 is NOT in configured in the hosts file.
    Any ideas / solutions?
    TIA,
    Neil
    and restarted

    Hi,
    Ran into this myself and then found your note. After much investigating it turns out that the Linux run level on my AMI's is set to 4 (even though the inittab has it set to 3) and the CRS init script init.ohasd expects 3 and 5. Because of that problem, the "init" process was not able to launch the init.ohasd script.
    For now the workaound for this problem is to run the system at run levels 3 or 5 before executing the root script. However, I am still trying to figure out why my AMI's are running at 4.
    I am curious, if you do read this, did you get this error during the install and ignore it?
    Run Level
    This is a prerequisite condition to test whether the system is running with proper run level. (more details)
    Expected Value
    : 3,5
    Actual Value
    : 4
    I did and of course it didn't work. Also, what Amazon AMI did you use?
    Thanks,
    Larry

  • How to backup a character device on a sun 7310 with NDMP

    I have seen in the latest fishwork release notes, that its possible to use NDMP to backup block/character devices (6940623).
    We use NetBackup dose any one know what to specify in the backup selection list?

    We have many iSCSI/FC Luns setup in our 7310, and I was thinking that direct 7310 NDMP backups would be faster then client side FC/iSCSI backups.
    We also have NFS file systems with millions of files, which now takes about 10 hours to backup. if a block level backup is possible it should be much faster. (I am looking for something seemlier to netbackup flashback).

  • Makechroot trouble - GPGME error: Inappropriate ioctl for device

    Hi everybody!
    I'm currently trying out several DEs with Arch and would like to build Trinity, R14, too. I followed the wiki (which more or less points to this readme).
    Things are a bit tricky there, but I ended up with having the tar.gz archives built and moved to the right location as well as placing all the other stuff into the dirs made for it.
    Step 4 set up a new chroot for me and everything was well except for a warning that there was no local.db. Since the scripts don't seem to build 'hal-info', 'hal' and 'libutempter', I build packages for them by hand and moved those into $chroot/root/repo. Then I used repo-add local.db.tar.gz $pkgname for each package.
    Finally I updated the chroot using mkarchroot -u $chroot/root". It worked well and now I do have a file 'local.db'.
    But if I want to build the first package ('tqt3') using the 'bt.sh' script, it works up to the moment where it issues 'sudo makechrootpkg -r /home/myusername/chroot -u'. Pacman starts downloading the dependencies before building, but once it's done with "checking package integrity", I just get several lines of
    error: GPGME error: Inappropriate ioctl for device
    and than a bunch of lines talling me that $pkgname is "missing required signature".
    I'm rather new to Arch and despite having searched the wiki, the forums and google for a while, I'm not really going anywhere. I understand that it's pacman which is unable to cope with the signature thing in the chroot. But what to do about this?

    Thanks for your answer, cmb!
    My problem was solved in an unexpected way, though: Just a few days after I had given up on getting building the Trinity DE myself, someone set up a custom repo for it that was added to the wiki. This was of course by far the easiest solution. But it was also good to mess a little with the build system myself.

  • Block and character special files

    What is the difference in semantics between block and character special files on Mac OS X?
    In the olden days, character special files were intended for serial character-oriented devices such as teletypes, printers, modems etc. not capable of seeking and block special files were intended for seekable block-oriented devices such as winchester disks etc.
    But nowadays, Apple uses /dev/rdisk* as the raw (unbuffered) hard disk device, and it is a character special file, and it is seekable. /dev/disk* on the other hand, is buffered, slower, and a block character special file.
    Is there still any semantic difference at any O.S. level between these two kinds of special files, or is it all entirely up to the driver designer and it only effectively provides us with one more bit for the device number?

    Hi,
    Is there still any semantic difference at any O.S. level between these two kinds of special files
    As you write, a block device is bufferd by OS, while a character device is not bufferd by OS (=raw device).
    In the olden days, character special files were intended for serial character-oriented devices
    Even in olden days, I guess a seekable mass storage had both block and character devices; the latter is for partitioning, disk diagnose, backup, etc. Only block devices can be mounted.
    Serial (un-seekable) device can only be a character device, I guess.

  • Sgen driver device files

    We have developed a SCSI Library on different plattforms - one is SUN Sparc - for diagnostic tools.
    For accessing the devices we are using sgen and ioctl calls. Herefore the sgen driver and his config-file sgen.conf will be used to create the device files under /dev/scsi/.
    Is there a API to create the device files within a C++ program, so the driver and our tool can dynamically access new attached devices. The problem is, that the user has to configure the list of devices first and than start and stop the sgen driver outside the program.
    We'd like to move this functionality within our library for improvements. In addition the user has to know which ID-range and type of devices he wants to use for it and define those in the config file "sgen.conf".
    In other words, we're looking for API calls which :
    1.) Check if the driver is installed
    2.) Create new device files (if necessary)
    Any information is appreciated
    Thanks in advance
    Tim

    sgen driver may not be loaded because nothing has accessed the device, I can't think of anything but modinfo to check, or maybe use elf on /dev/ksyms to look for sgen specific symbols?
    update_drv is the way to tell a driver that its driver.conf file has changed this came in in solaris 9 , you could have an external daemon that invokes update_drv apon being poked.
    sgen.conf has to be administered as it was perceived that having multiple device controlling something is prone to disaster so the user has to control what target device managed by which controller/tgt/lun
    certainly cfgadm might be of use to you and it has scsi specific command but how you access those from libcfgadm is an exercise in man page reading and looking at docs.sun.com;-)
    tim

  • After partition using fdisk, i can not see the new device file (/dev/sdd1)

    I used fdisk -l to partition /dev/sdd, use the entire disk as partition 1. it looks successful:
    # fdisk -l /dev/sdd
    Disk /dev/sdd: 10.7 GB, 10737418240 bytes
    64 heads, 32 sectors/track, 10240 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x35e3e2c4
    Device Boot Start End Blocks Id System
    /dev/sdd1 1 10240 10485744 83 Linux
    the problem: i don't see the device file /dev/sdd1. tried to delete it and partition again, the same.
    also tried
    - mknod b 8 70 /dev/sdd1, to manually create it, but when i use oracleasm createdisk DISK2 /dev/sdd1, the command won't recognize manually crated /dev/sdd1.
    - reboot the server,
    - "partprobe" command, no luck.
    in addition, cat /proc/partitions seems including /dev/sdd1:
    cat /proc/partitions
    major minor #blocks name
    8 16 292935982 sdb
    8 0 143338560 sda
    8 1 512000 sda1
    8 2 142825472 sda2
    252 0 25608192 dm-0
    252 1 25608192 dm-1
    252 2 62423040 dm-2
    252 3 35012608 dm-3
    252 4 20480000 dm-4
    252 5 10240000 dm-5
    252 6 4096000 dm-6
    8 32 10485760 sdc
    8 33 10484736 sdc1
    8 48 20971520 sdd
    8 49 20971504 sdd1
    8 64 10485760 sde
    8 65 10485744 sde1
    any advice?
    Thanks as alwasy!
    Edited by: 943714 on Apr 25, 2013 10:55 AM

    After you create a new partition, always verify it:
    # fdisk -l /path/to/diskOnce that confirms the new partition, you must tell the kernel to re-read the partition table. Several ways to do this, depending on what your storage connection is. This often works:
    # partprobe /path/to/mydiskThen check if the kernel sees the partition:
    # grep /proc/partitions mydiskIf it does, you are done.

  • [SOLVED]Video device file switches when starting Motion in daemon mode

    I am not sure whether this should be here or in Kernel and Hardware.
    Motion live stream shows gray frame which says "Unable to open video device" and /var/log/errors.log gives:
    Failed to open video device /dev/video0: No such file or directory
    Could not fetch initial image from camera
    Motion continues using width and height from config file(s)
    When I plug my Philips SPC1300NC webcam in it shows up as a recognized usb device, both by lsusb and under /dev.  Initially it comes in as /dev/video0, but after running motion the device file is /dev/video1.  If I kill motion, the device file still being video 1, and edit the configuration file (/etc/motion/motion.conf) to use /dev/video1 instead of /dev/video0 the device file name changes back when I start motion.  It is always opposite of whatever I have in the configuration file.
    system: arch arm
    user is in video group
    output of lsusb:
    $lsusb
    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
    Bus 001 Device 116: ID 0471:0331 Philips (or NXP) SPC 1300NC PC Camera
    video device configuration:
    # Videodevice to be used for capturing (default /dev/video0)
    # for FreeBSD default is /dev/bktr0
    videodevice /dev/video0
    ls /dev before running motion:
    ls /dev | grep video
    video0
    ls /dev after running motion in daemon mode (still running):
    ls /dev | grep video
    video1
    So far I have attempted to remove and add back in gspca modules with and without device plugged in.
    That was the only tidbit I could find online regarding the issue.  I have had motion set up with this camera before, but it was on a different machine running x86_64 arch.
    thanks
    SOLUTION
    I wasn't thinking about the draw for the camera and was trying to just have it powered through the usb on a raspberry pi (need a powered usb hub).  I am not sure however why the device file switches when there is not enough power, so if you come across this an know please post a reply.
    Last edited by brewforce (2013-01-31 03:05:08)

    andre.ramaciotti wrote:And I'm not sure if you should put that & after exec awesome. It works fine here without it.
    No & after entries in .xinitrc . You've commented out the awesome entry.

  • Could not open the device file /dev/nvidia0

    and yet:
    [root@mythfe01 dev]# ls -alh nvid*
    crw-rw-rw- 1 root root 195, 0 Mar 26 16:06 nvidia0
    crw-rw-rw- 1 root root 195, 255 Mar 26 16:06 nvidiactl
    and:
    [root@mythfe01 dev]# lsmod | grep nv
    nvidia 4083280 0
    agpgart 28872 1 nvidia
    but:
    NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).
    (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
    (EE) NVIDIA(0): *** Aborting ***
    I am using a homemade kernel, but i can't think of a reason why that would prevent things from working properly considering the module loaded ok.
    Any thoughts?

    Moo-Crumpus wrote:Do you use udev? Have a look if there is a ruleset for nvidia, I remember there was one. Afaik, nvidia should be owned by the video group - well, once it was, I am not up to date and have no arch machine with nvidia right now.
    Could anyone specify how to do that? I have the exact same problem, although I use the default kernel that came with Arch.
    NVIDIA: could not open the device file /dev/nvidia0 (Permission denied).
    NVIDIA: Direct rendering failed; attempting indirect rendering.
    [kristjans@myhost ~]$ cat /proc/driver/nvidia/cards/0
    Model:           GeForce 6200 TurboCache(TM)
    IRQ:             22
    Video BIOS:      05.44.02.52.00
    Card Type:       PCI-E
    DMA Size:        39 bits
    DMA Mask:        0x7fffffffff
    [kristjans@myhost dev]$ ls -alh nvid*
    crw-rw---- 1 root 27 195,   0 2007-10-06 19:10 nvidia0
    crw-rw-rw- 1 root 27 195, 255 2007-10-06 19:10 nvidiactl
    [kristjans@myhost dev]$ lsmod | grep nv
    nvidia               6829684  40
    i2c_core               20352  2 nvidia,i2c_piix4
    agpgart                27224  2 nvidia,ati_agp
    Last edited by KSiimson (2007-10-11 04:23:18)

  • Wildcarrd character in file communication channel ( Run OS Command Option )

    We have problem while executing the "move ( MV ) "  command with wildcard character ( '*' )  in file communication channel (Run Operating System command option ). Command is not executing properly.
    e.g. mv /archive/test* /output/
    have anyone experienced the same problem ?
    Thanks & Regards,
    Dijesh Tanna.

    As far as i know, that doesnt work.
    In Unix environment, the below code will work
    name=`test*`
    target=`xxxfolder`
    file_list=`find $name -type f`
    for fname in $file_list ; do
        echo "Moving: " $fname
        mv -Eignore $fname $target
    done
    Edited by: Praveen Gujjeti on Apr 12, 2010 5:44 PM
    Edited by: Praveen Gujjeti on Apr 12, 2010 5:46 PM

  • How to store character in file and display result on front panel

    hi
    currently i m working on FPGA project.i want to aquired data from FPGA board.i want to know about how to store character to file and contineous display each character on front panel in string format.
    i have complete up to character display on front panel but only single character display when i want all character in string format.
    Solved!
    Go to Solution.

    I don't see how this question is at all related to Digital I/O but it sounds like you just need a shift register with the concantanate string function.

  • Resume: Could not stat the resume device file After Update

    Peace!
    I  -Syu and rebooted to this error:
    resume:
    Could not stat the resume device file '/dev/disk/by-label/hda1'
    Please type in the full path name to try again
    or press Enter to boot the system:
    Figuring it must be something weird happening to the suspend procedure, I wanted to skip it and boot normally. So I pressed Enter... to no avail.
    Waiting for devices to settle .... done.
    Root device ' /dev/disk/by-label/hda2' doesn't exist, attempting to create it.
    ERROR: Failed to parse block device name for '/dev/disk/by-label/hda2'
    ERROR: Unable to create/detect root device '/dev/disk/by-label/hda2'
    Dropping to a recovery shell... type 'exit to reboot
    NOTE: klibc contains no 'ls' binary, use 'echo *' instead
    If the device '/dev/disk/by-label/hda2' gets created while you are here,
    try adding 'rootdelay=8' or higher to the kernel command-line
    ramfs$
    Now, I'm starting to think its not just due to the suspend procedure and maybe something more. Afterall, I did not suspend, I rebooted. I remember updating the kernel, klibc and perhaps udev.
    I wanted to try adding the rootdelay thing but the grub menu wouldn't show up.
    Sobs..
    I really need to research on failsafe fallback procedures... some kind of ultimate undo feature.
    Last edited by onguarde (2009-01-21 08:39:40)

    http://bbs.archlinux.org/viewtopic.php? … 58#p484758
    It seems someone else has similar problems...

  • How can I identify new new added harddisk and its device file

    Hello:
    I am confuse about it. It is about new harddisk map to device file issue.
    Example:
    I set up two harddisks by VMware SCSI 1:0 & SCSI 1:1, and I can see /dev/sdb /dev/sdc by "lvmdiskscan".
    The puzzle is how can I distinguish this two new harddisk mapping device file if SCSI 1:0 & SCSI 1:1 are also 1GB of each?
    Just like one which is right SCSI 1:0 map to /dev/sdb or /dev/sdc ? How can I check them using command?

    Normally /dev/sda is SCSI ID 0, /dev/sdb SCSI ID 1, etc.
    You can try lsscsi command, e.g.:
    # lsscsi
    [0:0:0:0]    disk    VBOX     HARDDISK         1.0   /dev/sda
    [0:0:1:0]    disk    VBOX     HARDDISK         1.0   /dev/sdb
    [0:0:2:0]    disk    VBOX     HARDDISK         1.0   /dev/sdc
    [0:0:3:0]    disk    VBOX     HARDDISK         1.0   /dev/sdd
    [2:0:0:0]    cd/dvd  VBOX     CD-ROM           1.0   /dev/sr0

Maybe you are looking for

  • PC with slow boot and pc speed, sudden high pc usage, delay-freeze when opening/performing something

    Hi, Before everything, two things: 1. I'm not a native english speaker so i may have some problems to speak properly/as objective as i'd like to. 2 . I'm writing in this section because i don't know the cause of my pc issues so i can't categorize the

  • PS crashes in Windows 7.  Possible windows explorer issue?

    Hi, I have an intermittent but annoying problem.  Basically, when I use the "Open" dialogue box to access a new file CS4 will hang, shutting down completely.  The same issue has occured when using the "Place" command.  It doesnt seem to happen when u

  • Java files not compiling

    i have 3 java files that im trying to compile for my CS class: IntCalc.java IntCalcPanel.java IntCalcGUI.java the panel uses IntCalc for an object and the GUI uses the panel as an object. i cannot compile the panel or the GUI in the command prompt be

  • FRM-92150 WEB Version too new.

    Hi, I got this error trying to use WebForms. I'm using IE5 with JInitiator 1.1.8.14, on a windows NT4 sp5 machine. Please, someone help me.

  • Custome sign in page

    Hi All, I am using OBIEE11g in Linuc box.I tried all the forumns.Each one says different solution. My requirment is When i open http://ip:9704/analytics it should be display my company logo for hole page,Not for the banner only.How will do and what a