[SOLVED] errors with fdisk and cryptsetup; is my drive going bad?

I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attributed to allowing Windows to "fix" it after improper dismount (e.g. a hard kill).
I decided to re-format with ext4 and only use it from Arch, but now I'm wondering if I may have a hardware issue with the drive. I've tried a lot more (like going through the full zero write after mounting the drive as a temporary dm-crypt device), but here's the condensed version to illustrate the problem.
system info
This is on a fresh boot. Just adding that as I've had issues with kernel modules after updating if a new kernel comes through. A fresh boot removes that potential issue.
$ uname -a
Linux arch_840 4.0.3-1-ARCH #1 SMP PREEMPT Wed May 13 15:38:47 CEST 2015 x86_64 GNU/Linux
$ lsmod | grep dm_
dm_crypt 28672 2
dm_mod 98304 5 dm_crypt
$ lsmod |grep xts
xts 16384 2 serpent_sse2_x86_64,twofish_x86_64_3way
gf128mul 16384 2 lrw,xts
smartctl status
Figured I should check the drive. There's a lot of old age and pre-fail warnings, but this post would seem to suggest I'm okay?
# smartctl -A /dev/sdb
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.3-1-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
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 0x002f 100 100 051 Pre-fail Always - 0
2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
3 Spin_Up_Time 0x0023 090 089 025 Pre-fail Always - 3330
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 703
5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 3707
10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 104
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 734
191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 17
192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
194 Temperature_Celsius 0x0002 064 053 000 Old_age Always - 24 (Min/Max 16/47)
195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 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 0x002a 100 100 000 Old_age Always - 3
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 104
225 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 214068
Disk info, delete existing partition, new MBR, create new partition
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.26.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x76d37b6d
Device Boot Start End Sectors Size Id Type
/dev/sdb1 63 976768064 976768002 465.8G 83 Linux
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0x2cd60f13.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-976773167, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):
Created a new partition 1 of type 'Linux' and of size 465.8 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
trying to format with cryptsetup
I had a bunch of custom options, but other Arch posts suggested just trying the default, which is what I've done here. It fails with the same error as when I try to pass a cipher, key size, etc. ("Command failed with code 5: IO error while encrypting keyslot.").
# truecrypt -v --debug luksFormat /dev/sdb1
bash: truecrypt: command not found
[root@arch_840 jwhendy]# cryptsetup -v --debug luksFormat /dev/sdb1
# cryptsetup 1.6.6 processing "cryptsetup -v --debug luksFormat /dev/sdb1"
# Running command luksFormat.
# Locking memory.
# Installing SIGINT/SIGTERM handler.
# Unblocking interruption on signal.
WARNING!
========
This will overwrite data on /dev/sdb1 irrevocably.
Are you sure? (Type uppercase yes): YES
# Allocating crypt device /dev/sdb1 context.
# Trying to open and read device /dev/sdb1.
# Initialising device-mapper backend library.
# Timeout set to 0 miliseconds.
# Iteration time set to 1000 miliseconds.
# Interactive passphrase entry requested.
Enter passphrase:
Verify passphrase:
# Formatting device /dev/sdb1 as type LUKS1.
# Crypto backend (gcrypt 1.6.3) initialized.
# Detected kernel Linux 4.0.3-1-ARCH x86_64.
# Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.
# Checking if cipher aes-xts-plain64 is usable.
# Using userspace crypto wrapper to access keyslot area.
# Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32 bytes
# KDF pbkdf2, hash sha1: 996745 iterations per second.
# Data offset 4096, UUID 181fed4d-42f2-4f0f-8b70-cb7ba459e25f, digest iterations 121625
# Updating LUKS header of size 1024 on device /dev/sdb1
# Key length 32, device size 976771120 sectors, header size 2050 sectors.
# Reading LUKS header of size 1024 from device /dev/sdb1
# Key length 32, device size 976771120 sectors, header size 2050 sectors.
# Adding new keyslot -1 using volume key.
# Calculating data for key slot 0
# KDF pbkdf2, hash sha1: 1008246 iterations per second.
# Key slot 0 use 492307 password iterations.
# Using hash sha1 for AF in key slot 0, 4000 stripes
# Updating key slot 0 [0x1000] area.
# Using userspace crypto wrapper to access keyslot area.
IO error while encrypting keyslot.
# Releasing crypt device /dev/sdb1 context.
# Releasing device-mapper backend.
# Unlocking memory.
Command failed with code 5: IO error while encrypting keyslot.
Things also tend to hang with respect to the drive at this point. For example, fdisk -l spits out /dev/sda partitions immediately and then just hangs instead of printing out /dev/sdb info, then eventually quits (without ever writing it).
Any suggestions on where to look/how to troubleshoot? I found some possibly related posts, but nothing that looks promising:
- Impossible to crypt the drive using cryptsetup (fixed by rebooting)
- cryptsetup fails to open Udev cookie 0xd4d94f5 (semid 0) waiting for z (no responses; the hang after seems similar)
There's a couple odds and ends references to cryptsetup 1.6.6 having issues. I downloaded 1.6.4-1 and 1.6.5-1 and -2 from ARM to try, but wanted to post this in the meantime in case something stuck out.
Last edited by jwhendy (2015-05-29 16:01:40)

@qinohe I thought of that and the other day started formatting with mkfs.ext4; unfortunately, it was at work and I had to leave before I could let it finish. It had been chugging along a good few hours, and I was surprised it would take that long. I was able to format it with ext4 using Windows 7 (I dual boot) with the MiniTool Partition Wizard but I didn't use it like that before trying to solve the cryptsetup issue again.
This last time around, I was getting unresponsive behavior. I think I need to reboot each time I try something with cryptsetup, as any commands related to that drive seem to hang afterwards (fdisk, umount, eject, mkfs, or trying crypsetup again). Perhaps I'll just let it cook overnight with mkfs and see if I can at least have an unencrypted, but functional drive.
One interesting tidbit is that even though cryptsetup fails, when I've tried to issue mkfs afterward, it asks me to confirm that I want to format the disk since it has a LUKS header... so something appears to have been written. Is it possible the header is causing some issues? I don't know much about the structure of a disk (like what range the MBR resides in, what constitutes a header, etc.) but have been wondering if there's some way to start really, really clean with the disk. Like I'd just bought it -- something appears to be lingering around from previous efforts?
@frostschutz I'll check tomorrow. That's a good question. Just checked journalctl and here are some of the errors that appear; unfortunately, I wasn't watching so I can't tell you what matches up with what command:
May 23 09:32:22 arch_840 systemd-udevd[7784]: inotify_add_watch(7, /dev/sdb1, 10) failed: No such file or directory
May 23 09:32:22 arch_840 kernel: usb 3-4: stat urb: status -108
### there's lots like this; like 10 in a row with various sector values listed
May 23 09:32:19 arch_840 kernel: Buffer I/O error on dev sdb1, logical block 61341696, lost async page write
May 23 09:32:19 arch_840 kernel: blk_update_request: I/O error, dev sdb, sector 490735616
### there's also a bunch like this, from tab #0 -> #29 (not colored red, so not sure they're errors?)
May 23 09:32:19 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 CDB: opcode=0x2a 2a 00 1d 07 bc 10 00 04 00 00
May 23 09:32:18 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
I paged down quite a ways and those seem like the unique messages when I search the journal for "sdb". Anything stand out? I will say that the same sector numbers appeared in multiple blocks of the third error type listed, so that makes me wonder if something is genuinely wrong with the disk. I'll post the output of the full smartctl scan when I hopefully run it tomorrow.
Thanks for chiming in!

Similar Messages

  • [Partially Solved] Error with bsdtar and symbolic links

    I'm trying to install a package (asymptote) from AUR but am running into an odd error.  During the extract phase I get errors like
    asymptote-1.70/base/asy-keywords.el: Can't update time for asymptote-1.70/base/asy-keywords.el: Function not implemented
    bsdtar: Error exit delayed from previous errors.
    I found a post that may help: http://bbs.archlinux.org/viewtopic.php?id=50750.  Do I really have to do this?
    By the way, I too am running on a Linode (Xen virtualization).
    Thanks,
    Luis
    Last edited by banbh (2009-05-24 00:22:13)

    I have not got to the bottom of my problems with bsdtar and symlinks.  I suspect it must have something to do with either my configuration (derived from the Arch image provided by Linode) or running under virtualisation.
    However, others might find my work-around useful, so I document it below.
    I downloaded asymptote from AUR using wget ("wget http://aur.archlinux.org/packages/asymptote/asymptote.tar.gz"), unpacked it, then patched the PKGBUILD
    $ diff -u PKGBUILD.orig PKGBUILD
    --- PKGBUILD.orig 2009-05-23 17:58:47.000000000 -0400
    +++ PKGBUILD 2009-05-23 18:00:49.000000000 -0400
    @@ -11,9 +11,12 @@
    'used if present at compile time: freeglut, gsl, fftw')
    source=(http://downloads.sourceforge.net/sourceforge/asymptote/$pkgname-$pkgver.src.tgz)
    md5sums=('1ded335bc63b662a6eb920a4c065706c')
    +noextract=($pkgname-$pkgver.src.tgz)
    build() {
    - cd $srcdir/$pkgname-$pkgver
    + cd $srcdir
    + tar xzf $pkgname-$pkgver.src.tgz
    + cd $pkgname-$pkgver
    ./configure --enable-gc=/usr --prefix=/usr \
    --with-latex=/usr/share/texmf/tex/latex || return 1
    make asy || return 1
    After that I simply did a "makepkg" followed by "sudo pacman -U asymptote-1.73-1-i686.pkg.tar.gz"

  • [SOLVED]Error with makepkg and nspluginwrapper.

    Hi all,
    I am trying to install flash plugin for firefox.  When I run makepkg I get this error...
    ==> ERROR: install scriptlet (nspluginwrapper.install) does not exist.
    I am not sure what is wrong, am I missing something?
    Diesel1.
    Last edited by diesel1 (2007-07-26 21:09:09)

    skottish wrote:
    diesel1 wrote:do I need PKGBUILD files in each directory?
    Yes. You need to build and install nsplugwrapper before you build nspluginwrapper-flash. So, unpack nspluginwrapper, cd into that directory, and follow the instructions on the Wiki. Once successful,  do the same for nspluginwrapper-flash.
    I finally realised I was using the wrong tarball!  Now I have the correct files it works ok.
    Thanks for the help skottish.
    Diesel1.

  • [SOLVED] Problem with "su" and "login".

    Hi, I reinstalled Arch Linux today when I updated "filesystem" and reboot appeared an error with root device, but I solved with installation CD.
    I restarted laptop after solving error with root device when I went to XFCE4 and open a terminal I tried to login as root with "su" and "su -" but showed this error:
    bash: su: command not found
    So I rebooted to start in text mode.
    When loaded SLIM I press ctrl+alt+F1 to enter text mode.
    I type root to login but did'nt appear to enter the pass, appeared again to enter login. I tried type my user but did the same.
    Someone can help me?
    Thanks!
    Last edited by surrealistic (2012-10-12 08:54:58)

    Thank you falconindy. I upgrade with --force because I search in Google the problem show "filesystem" when I tried install and I read that solution is upgrade "filesystem" with --foce.
    I tried to reinstall util-linux and now works. Thank you!

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    Thanks - I guess it is like there were two of me!
    I bought the iPhone first and it seemed natural to link it to the (work) e-mail address which was in constant use. The iMac for home use came next and it seemed natural to use my home e-mail address, particularly as I knew by then that I would lose the work address after my imminent retirement. The same logic went for the recent puchase of the MacAir. I am not sure what happened with the iPad (also a recent purchase) - iTunes seemed to puch me towards the same ID as the iPhone.
    It is not a huge problem - just makes my persona look schizoid! Otherwise very happy with everything Apple.

  • Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad

    Hello everybody,
    Can help anyone to resolve my problem.
    I have an Thinkpad W520 (42823FG), BIOS 8BET60WW 1.4        When I disconect AC power and remove battery and connect again, I see this message on screen:
    "Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad
    Press Esc to continue or F1 to enter Setup"
    Is this a system board problem or CMOS battery problem ?
    Thank you

    Hello and welcome,
    It's probably (hopefully) just the CMOS battery.  The easiest way to find out is to just replace that battery.
    Page 85 of the Hardware Maintenance Manual:
    Hardware Maintenance Manual
    Here's an example of the battery.  I'm not recommending (or not) this vendor:
    http://www.ebay.com/itm/New-Lenovo-ThinkPad-W500-W510-W520-W530-W700-W701-W701ds-CMOS-RTC-Backup-BAT...
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • [SOLVED]Problem with packettracer and firefox

    Hi
    I've got a problem with firefox and packettracer.
    When i click on pka file in firefox, it don't open this file in packettracer but wants to save on disk. I've got a version 5.3.1-1 packettracer and latest version firefox.
    I don't know when problem was occured but last week everything was ok. I think that's either update. Meyby it's important that when i type in console:
    update-desktop-database /usr/share/mime
    i've got such errors:
    Unknown media type in type 'all/all'
    Unknown media type in type 'all/allfiles'
    Unknown media type in type 'uri/mms'
    Unknown media type in type 'uri/mmst'
    Unknown media type in type 'uri/mmsu'
    Unknown media type in type 'uri/pnm'
    Unknown media type in type 'uri/rtspt'
    Unknown media type in type 'uri/rtspu'
    Unknown media type in type 'fonts/package'
    Unknown media type in type 'interface/x-winamp-skin'
    i have installed kde 4.5.5-1
    Do you know some solution for my problem?
    edit: update firefox solve my problem
    Last edited by ElNinijo (2013-06-08 08:35:12)

    I've had this happen now and again. You can rebind the lease yourself with:
    $ dhcpcd --rebind
    You could also try increasing the timeout by adding
    TimeoutDHCP=
    to your netctl profile/s - see netctl.profile(5) as WonderWoofy suggests. Although I haven't tried the latter.
    Last edited by youngdm (2013-09-01 22:01:05)

  • [solved] problem with zsh and makepkg

    I've had this problem for quite a while, but now finally it really starts pissing me off
    When I want to build a package with makepkg and the PKGBUILD has versioned dependencies, makepkg isn't able to resolve the dependencies.
    An example to demonstrate what this looks like
    PKGBUILD:
    # Maintainer: Army <[email protected]>
    pkgname=ardour3-svn
    _realname=ardour3
    pkgver=7501
    pkgrel=1
    pkgdesc="A multichannel hard disk recorder and digital audio workstation"
    arch=('i686' 'x86_64')
    url="http://www.ardour.org"
    license=('GPL')
    depends=("util-linux-ng" "liblrdf>=0.4.0" "liblo" "libgnomecanvasmm>=2.12.0" "slv2>=0.6.4" "aubio")
    makedepends=("boost>=1.39" "cppunit>=1.12.0" "soundtouch" "libvorbis>=1.1.2" "flac>=1.2.1" "python>=2.3" "jack-audio-connection-kit-svn")
    source=(${pkgname}.desktop)
    _svntrunk=http://subversion.ardour.org/svn/ardour2/branches/3.0
    _svnmod=${_realname}
    build() {
    cd ${srcdir}
    rm -rf ${_svnmod}-build
    svn co ${_svntrunk} ${_svnmod}
    cp -rf ${_svnmod} ${_svnmod}-build
    cd ${_svnmod}-build
    ./waf configure --prefix=/usr --configdir=/etc --tranzport --freesound --freedesktop --lv2 -p
    ./waf build
    DESTDIR="${pkgdir}" ./waf install
    # install some freedesktop.org compatibility
    install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${_realname}.desktop"
    md5sums=('2736c648e452ae45c703e48cf64f75e7')
    and this is the output:
    % makepkg -sir
    ==> Bestimme letzte SVN-Revision...
    -> Gefundene Version: 7501
    ==> Erstelle Paket: ardour3-svn 7501-1 (Di 27. Jul 00:44:01 CEST 2010)
    ==> Prüfe Laufzeit-Abhängigkeiten...
    ==> Prüfe Buildtime-Abhängigkeiten...
    ==> Installiere fehlende Abhängigkeiten...
    Passwort:
    zsh:1: 1.39 not found
    ==> Fehlende Abhängigkeiten:
    -> boost>=1.39
    -> cppunit>=1.12.0
    Seems like it changes
    makedepends=("boost>=1.39" "cppunit>=1.12.0" ...)
    to
    makedepends=("boost" "1.39" "cppunit" "1.12.0" ...)
    It doesn't matter if I put the dependencies into " or ' nothing, it's always the same output. I already created a new user to verify the situation, same problem there. With bash as shell all runs fine.
    I use grml-zsh-config from [extra], but that cannot be the trouble maker, I tested it with an uninstalled grml-zsh-config and a blank ~/.zshrc, still the same.
    How do you zsh users do this??
    Thanks for any idea!
    Last edited by Army (2010-07-28 08:01:19)

    Oh boy, sorry for these many posts, but without my sudo replacement package things are even worse!
    % bash -c "export SHELL=/bin/bash && makepkg -sir"
    ==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
    ==> Determining latest svn revision...
    -> Version found: 7518
    ==> Making package: ardour3-svn 7518-1 (Wed Jul 28 09:36:19 CEST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Installing missing dependencies...
    Password:
    zsh:1: 1.39 not found
    ==> ERROR: 'pacman' failed to install missing dependencies.
    ==> WARNING: Failed to remove installed dependencies.
    This command works with nosudo installed ... I get the same errors when I do
    % bash --login
    $ echo $SHELL
    /bin/zsh
    $ export SHELL=/bin/bash
    $ echo $SHELL
    /bin/bash
    $ export LANG=C
    $ makepkg -sir
    ==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
    ==> Determining latest svn revision...
    -> Version found: 7518
    ==> Making package: ardour3-svn 7518-1 (Wed Jul 28 09:41:51 CEST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Installing missing dependencies...
    Password:
    zsh:1: 1.39 not found
    ==> ERROR: 'pacman' failed to install missing dependencies.
    ==> WARNING: Failed to remove installed dependencies.
    Am I just still too much of a noob to see the obvious mistake I make or is makepkg really screwed up? Because in case I don't do anything wrong, I'll file a bug report asap!
    Last edited by Army (2010-07-28 07:43:05)

  • [SOLVED] Problem with Audio and Samba

    Hi, this is my first post. I think I should put here.
    I have a hard drive connected via network, and accessed the protocol with samba (smb). Mapping shared everything perfectly even see pictures without problems, but when it comes to playing music all players remain "flipped" do nothing, or give an error, but does not sound.
    On another computer with Ubuntu works without problem.
    I used VLC and Rytmmbox with the same results.
    Sorry for my English, I'm Spanish
    EDIT:  I tried with totem and if it works.
    Last edited by karendon (2013-03-01 17:57:42)

    No ideas

  • [SOLVED] Problem with modules and udev

    Hi everybody,
    I've been configuring Arch on my new laptop the last few days and today as I was going to perform the first backup, I noticed that my external HDD does not show up in /dev/ when I plug it in. I figured it could be a problem with udev and the fact that in my /etc/rc.conf I use MOD_AUTOLOAD="no" with an explicit list of MODULES generated with hwdetect (as suggested in the wiki).
    To "solve" this I just changed MOD_AUTOLOAD to "yes" and after a reboot everything worked fine.
    My questions are:
    1) Is it possible to keep that feature (udev detects usb drives and creates the corresponding /dev/sdX) while having MOD_AUTOLOAD="no" ? What is/are the appropriate module(s) I have to put in my MODULES array ?
    2) What other such "basic" MODULES could be very useful that hwdetect does not tell about.
    Sorry for any English mistakes (I'm not a native speaker) and thank you in advance for your help,
    yms
    Last edited by yms (2010-01-06 12:48:20)

    1) Thank you, it works perfectly.
    2) Yes I know the question is weird. The thing is I have no precise idea at the moment and I just wanted to know if there are other very widely used features such as the one described in 1) that hwdetect ommits and that has to be loaded in MODULES.
    Anyway, thank you very much, I consider this matter [solved]

  • [SOLVED] Problem with zsnes and xcb_io.c on arch64

    Well after doing a pacman -Syu, zsnes won't start, when i run it, it gives me the next output
    [pablo@pablo-laptop ~]$ zsnes
    ZSNES v1.51, (c) 1997-2007, ZSNES Team
    Be sure to check http://www.zsnes.com/ for the latest version.
    ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
    ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to redistribute it under certain conditions;
    please read 'LICENSE.TXT' thoroughly before doing so.
    Use ZSNES -? for command line definitions.
    Starting Mouse detection.
    Unable to poll /dev/input/event11. Make sure you have read permissions to it.
    Unable to poll /dev/input/event10. Make sure you have read permissions to it.
    Unable to poll /dev/input/event9. Make sure you have read permissions to it.
    Unable to poll /dev/input/event8. Make sure you have read permissions to it.
    Unable to poll /dev/input/event7. Make sure you have read permissions to it.
    Unable to poll /dev/input/event6. Make sure you have read permissions to it.
    Unable to poll /dev/input/event5. Make sure you have read permissions to it.
    Unable to poll /dev/input/event4. Make sure you have read permissions to it.
    Unable to poll /dev/input/event3. Make sure you have read permissions to it.
    Unable to poll /dev/input/event2. Make sure you have read permissions to it.
    Unable to poll /dev/input/event1. Make sure you have read permissions to it.
    Unable to poll /dev/input/event0. Make sure you have read permissions to it.
    ManyMouse: 0 mice detected.
    zsnes: xcb_io.c:515: _XReply: Assertion `!dpy->xcb->reply_data' failed.
    Abortado
    it was working fine until yesterday, i've been searching about xcb_io.c but sadly i haven't found anything useful.
    Edit:
    it seems i can run it fine as sudo but not as a regular user
    Edit2:
    well it seems that there was something wrong with my .zsnes folder, i deleted it (well first i made a backup of it) and i can run zsnes again.
    Edit3:
    well, it seems i got a problem with opengl and my catalyst driver (but i'm guessing because i haven't tried with radeon) because i can use it without opengl but as soon as i change the video option to use opengl it crashes with the same error (zsnes: xcb_io.c:515: _XReply: Assertion `!dpy->xcb->reply_data' failed.) should i file a bug report or something???
    Last edited by jpablo (2011-08-30 17:12:55)

    Finally i had to edit my .htaccess file adding a RewriteBase rule to it.

  • [SOLVED] Problem with netctl and dhcpcd

    Hi everybody,
    I had a problem with netctl and dhcpcd.
    I was using netctl and wifi-menu to connect to wirelless networks with dhcp.
    It worked fine at home, then i went to a friend where it also worked but then i went back home and it failed at every try with those error messages:
    dhcpcd[2718]: version 6.0.5 starting
    dhcpcd[2718]: wlp9s0: rebinding lease of 192.168.1.154
    dhcpcd[2718]: wlp9s0: reject NAK via 192.168.178.1
    dhcpcd[2718]: wlp9s0: soliciting a DHCP lease
    dhcpcd[2718]: wlp9s0: offered 192.168.178.44 from 192.168.178.1
    dhcpcd[2718]: timed out
    network[2659]: DHCP IP lease attempt failed on interface 'wlp9s0'
    systemd[1]: netctl@wlp9s0\xxx.service: main process exited, code=exited, status=1/FAILURE
    systemd[1]: Failed to start Automatically generated profile by wifi-menu.
    systemd[1]: Unit [email protected] entered failed state.
    I figured that dhcpcd tried to rebind an ip that my router rejected and didn't accept the ip that it offered instead.
    The solution was to delete:
    /var/lib/dhcpcd/dhcpcd-wlp9s0.lease
    now how can i configure netctl and or dhcpcd so that won't happen again and that it accepts all ips offered by routers?
    Last edited by Samy (2013-09-04 13:32:13)

    I've had this happen now and again. You can rebind the lease yourself with:
    $ dhcpcd --rebind
    You could also try increasing the timeout by adding
    TimeoutDHCP=
    to your netctl profile/s - see netctl.profile(5) as WonderWoofy suggests. Although I haven't tried the latter.
    Last edited by youngdm (2013-09-01 22:01:05)

  • [SOLVED]problem with GNOME and wireless connection

    Hi!
    I'm new to Arch Linux, and have run into a few problems after installation.
    My computer is a HP Pavilion dv6000.
    I installed using "xf86-video-nouveau" driver, as i understand this is the best choice for "Nvidia Geforce Go 7400". Is it?
    I also installed the complete "gnome", "gnome-extra", "gdm", "gnome-tweak-tool" and "gnome-shell-extensions" packages, but when I boot into gdm login, it automatically starts in fallback mode (the one who has "applications" and "places" in the top panel instead of "activities". What am I doing wrong here?
    Btw, when I go to System settings - system info - graphics, there are three lines; "Driver", "Experience", "Forced Fallback Mode". "Driver" line only says driver, and is blank after. "Experience" line says "Fallback".  "Forced Fallback Mode" is set to OFF.
    Also, I cannot figure out how to get my wireless network set up correctly.
    When i open System Settings - Network, I get an error saying System network is not compatible with this version.
    Any help with this woill be greatly appreciated!
    $ iwconfig
    lo        no wireless extensions.
    wlan0     IEEE 802.11abg  ESSID:off/any 
              Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Power Management:on
    eth0      no wireless extensions.
    Last edited by pkuvaas (2012-01-18 21:57:46)

    pkuvaas wrote:
    Thanks!
    -dri driver worked. But if the NVIDIA driver works better, I should probably consider using that one.
    I tried to install the NVIDIA binary driver, but when i tried to run
    # chmod -X NVIDIA-Linux-x86-290.10.run
    # ./NVIDIA-Linux-x86-290.10.run
    I got a message telling me to close x first.
    How can I do this?
    Ho ho ho buddy, I see you're trying to install the nvidia driver from the website. Have another look here:
    https://wiki.archlinux.org/index.php/Nvidia#Installing
    the drivers are available through pacman Installing the driver through pacman will automatically take care of removing things that conflict and installing things you need to ge t the NVIDIA driver to work.
    NVIDIA _might_ be better, 3d support in nouveau is still somewhat experimental and nouveau doesn't have all the power management features yet. It'll be something to experiment with. Have a good read of the NVIDIA and NOUVEAU wiki articles
    pkuvaas wrote:
    As for the wireless issue, I googled around a bit and found that the driver I need is ilw3945.
    I added this to /etc/rc.conf:
    DAEMONS=(...ilw3945...)
    as it seems the drivers are included in udev.
    However, when i try to open System Settings -> Network, it says
    The system network services are not compatible with this version.
    So I'm getting a little restless to find out what I can do to get the wireless network configurated properly, and how I can do it.
    Any ideas?
    First I think you've fundamentally misunderstood something. Drivers for linux come in module form, not in DAEMON form. A DAEMON is an application that runs in the background (sound server, network service, etc etc).
    ilw3945 would have to be added to your MODULES section in /etc/rc.conf if that is the module you need.
    humor me and post the output of this command:
    $ lspci

  • Error with calculations and printing output

    Been a few months since I did any kind of java programming and cannot seem to figure out what is wrong with my program. It gives me an error with rentalCost when it goes to printout the value, does not seem calculate the values, and does not print any of the things I call for at the end. Maybe I need a seperate class or the if/else statements are wrong. The point of the program is for fun, but is to calculate the cost for a cabin based on certain coniditions the user inputs. Any help would be much appreciated. NOTE: There are no comments yet due to I put them in after I finish the program.
    import java.util.Scanner;
    public class Test
         public static void main (String [] args)
              String season, cabinGrade;
              double rentalCost, days, finalCost;
              Scanner input = new Scanner(System.in);
              System.out.print("What season will you be staying during? ");
              season = input.nextLine();
              System.out.print("What kind of cabin? ");
              cabinGrade = input.nextLine();
              System.out.print("How many days are you staying? ");
              days = input.nextDouble();
              input.close();
              if (season == "pre-season" && cabinGrade == "regular" && (days < 7))
                   rentalCost = ((days * 55) * .9) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = ((300 + (days * 55)) * .9) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "regular" && (days < 7))
                   rentalCost = ((days * 55) * .75) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = ((300 + (days * 55)) * .75) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "luxury" && (days < 7))
                   rentalCost = ((days * 100) * .85) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "luxury" && (days >= 7))
                   { days = days -7;
                     rentalCost = ((600 + (days * 100)) * .85) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "luxury" && (days < 7))
                        rentalCost = ((days * 100) * .75) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "luxury" && (days >= 7))
                   { days = days -7;
                     rentalCost = ((600 + (days * 100)) * .75) * 1.0925;
              else if(season == "prime" && cabinGrade == "regular" && (days < 7))
                   rentalCost = (days * 55) * 1.0925;
              else if(season == "prime" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = (300 + (days * 55)) * 1.0925;
              else if(season == "prime" && cabinGrade == "luxury" && (days < 7))
                   rentalCost = (days * 100) * 1.0925;
              else if(season == "prime" && cabinGrade == "luxury" && (days >= 7))
                   { days = days - 7;
                     rentalCost = (600 + (days * 100)) * 1.0925;
              System.out.println("Season : " + season);
              System.out.println("Cabin grade: " + cabinGrade);
              System.out.println("No. of days: " + days);
              System.out.println("Rental cost: " + rentalCost);
    }

    Lgndryhr wrote:
    Been a few months since I did any kind of java programming and cannot seem to figure out what is wrong with my program. Maybe I need a seperate class or the if/else statements are wrong. The point of the program is for fun, but is to calculate the cost for a cabin based on certain coniditions the user inputs. Any help would be much appreciated. NOTE: There are no comments yet due to I put them in after I finish the program.
    At the very least you need to tell us what you expected this code to do and what it actually did...

Maybe you are looking for