[Solved]Messed up my USB

Hello, I've been messing around with my usb, trying to make a live usb with debian on it. I used the dd command in the terminal. After multiple failures I just gave up, and I want the usb back to normal.
I tried fixing it whit the KDE partition manager, realizing that I suck with the terminal.
The manager displays the drive and the sdb1 partition on it but the file system is unknown. I can't do anything other than delete the partition.
The partition is successfully deleted and I'm left with unallocated space.
I click on "new partition", keep the settings normal, ext2 file system, and then apply changes.
Here's where the errors happen and the operation is aborted. This is the output:
Job: Check file system on partition ‘/dev/sdb1’
Command: e2fsck -f -y -v /dev/sdb1
e2fsck 1.42.9 (4-Feb-2014)
/dev/sdb1 is in use.
e2fsck: Cannot continue, aborting.
Check file system on partition ‘/dev/sdb1’: Error
Create a new partition (14.91 GiB, ext2) on ‘/dev/sdb’: Error
I've tried formatting to different file systems but i always get the same error, i also tried formatting it on a windows machine but with no success either.
Last edited by matej617 (2014-05-04 05:56:23)

Enindu wrote:
Did you use dd command?
sudo dd bs=4M if=/path/to/os.iso of=/dev/sdx
Try a software like GParted for create a new partition table. You must read this wiki page too.
How to restore USB drive
Thanks, i installed gparted and it fixed my problem

Similar Messages

  • [solved]PS3 Sixaxis Controller USB only

    There are plenty of software and howtos to use the PS3 sixaxis controller with bluetooth, but I don't have bluetooth on my desktop.   
    Dmesg shows that the controller is registering:
    [100186.397697] usb 7-5: new full-speed USB device number 4 using ohci_hcd
    [100186.659669] sony 0003:054C:0268.0007: Fixing up Sony Sixaxis report descriptor
    [100186.703911] input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:13.0/usb7/7-5/7-5:1.0/input/input7
    [100186.704469] sony 0003:054C:0268.0007: input,hiddev0,hidraw4: USB HID v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:13.0-5/input0
    I think I have the appropriate modules loaded:
    lsmod | grep -i usb
    usb_storage 47511 0
    usblp 13010 0
    usbhid 41820 1 hid_logitech_dj
    hid 87322 4 hid_sony,hid_generic,usbhid,hid_logitech_dj
    scsi_mod 131599 4 usb_storage,libata,sd_mod,sr_mod
    usbcore 175663 8 usblp,usb_storage,hid_sony,ohci_hcd,ehci_hcd,ehci_pci,usbhid,xhci_hcd
    usb_common 954 1 usbcore
    $ lsmod | grep -i joydev
    joydev 9695 0
    When I cat /dev/input/js0, I don't get the cascade of chaotic characters I expect when I hit the buttons and move the axes.  Instead, I get just two of those strange characters you get when you cat a binary file, and they do not change when I play with the controller.  I installed jstest and jstest-gtk, and messed around with them.  jstest-gtk knows that I have a sixaxis controller plugged in, but I see no evidence that it is receiving input from the controller when I mess around with it, including when I use the "calibrate" feature;  all that happens is that once I complete the "wizard", all values go to 0.  The reason I am doing this is of course steam, and Steam Big Picture does not respond to the controller either.  jscal -c /dev/input/js0  shows no evidence of receiving input from the controller.   Is there some kernel module that I'm missing?  Googling sixaxis kernel module doesn't reveal anything to me. 
    Thanks in advance.
    Last edited by Convergence (2013-05-11 20:53:10)

    I think I solved it by hitting the "PS" button.

  • [SOLVED] No sound through usb soundcard in Google Chromium

    Hi there,
    Before switching to Arch I had used my external usb soundcard in Ubuntu and Kubuntu which worked almost flawlessly except for no sound through Google Chromium in Kubuntu. I thought this may have been isolated when switching KDE on Arch but I'm stilling having the same problem. All audio works through the external soundcard except for Chromium.
    Does anyone know how I can change sound preferences in Chromium or other way to solve this problem?
    Thanks,
    Last edited by bennylb0 (2010-06-02 06:04:14)

    Not sure exactly what I did but I fiddled with the default soundcard configuration and now it works.

  • WIFI problems solved with D-Link USB WIFI adapter...

    I have a brand new Macbook Air and I have persistent problems connecting to my home wifi network. Sometimes I can connect to the router but not the internet, but usually Airport won't connect at all: it keeps asking me for the password for our home network (even though it's stored), so I re-enter the password, but it still can't connect. When it gets to this point I know that I either have to live without internet for the rest of the day, or disrupt my work and everyone else in the household by rebooting my computer and reseting the router (sometimes just one of these actions will work, but it's unpredictable).
    So I bought a D-Link DWA-125 USB wireless adapter and installed drivers from Ralink (http://www.ralinktech.com/support.php?s=3) and it pretty much solves the issue.
    I don't know what further proof Apple needs that this is a problem with the Air and not the internet/router/etc. It's rather comical that I have to use an ugly old USB adapter to get a brand new Macbook Air to connect to internet in my own home.

    vilayyyy wrote:
    I've had my Macbook for 2 yrs and the wifi basically never worked - only when I'm right next to the router, at school, or of course the Apple Store. I tried to get apple to fix it under AppleCare, but since it was working perfectly in the store, they said there was nothing they could do.
    If your Mac works well at school, or the Apple Store but not at home, the problem definetly  is not the Mac and therefore there is no need to buy a external usb wifi device.
    You better will fix the settings of your home router and after that your Mac will be fast and smooth on your home wifi.
    I've had only on very rare situations a problem with d-link routers over the years and think (if not damaged) even your d-link will work pretty good with your Mac.
    Would you be so kind and explain the settings of your home router and what model it is?
    Lupunus

  • [SOLVED]Can't mount USB Flashdrive.

    I cannot use my Flash Drive in Linux anymore. I've flashed Arch using Win32ImageWriter, installed it, but now, a few days after, I wanted to use it for something else, but it does not mount.
    I've opened KDE Partition Manager, my Flash Drive shows up, but it reports a 2.74 PiB size, even though it's just 8 GB.
    dmesg | tail  -n10 has the following output:
    [ 2302.625827] sd 11:0:0:0: [sdc] Write Protect is off
    [ 2302.625836] sd 11:0:0:0: [sdc] Mode Sense: 43 00 00 00
    [ 2302.626571] sd 11:0:0:0: [sdc] No Caching mode page present
    [ 2302.626580] sd 11:0:0:0: [sdc] Assuming drive cache: write through
    [ 2302.631614] sd 11:0:0:0: [sdc] No Caching mode page present
    [ 2302.631629] sd 11:0:0:0: [sdc] Assuming drive cache: write through
    [ 2302.634768] sdc:
    [ 2302.640141] sd 11:0:0:0: [sdc] No Caching mode page present
    [ 2302.640154] sd 11:0:0:0: [sdc] Assuming drive cache: write through
    [ 2302.640161] sd 11:0:0:0: [sdc] Attached SCSI removable disk
    Yeah, it does not report any partitions, even though I've formatted it in Windows like 10 times, tried to create a bootable GParted USB, copied a bunch of random files.
    What can I do? All this happened after Win32ImageWriter, worked fine under Linux Distros before.
    Help will be appreciated, Thanks.
    Last edited by archie0 (2012-07-10 19:22:35)

    Updating from Linux 3.3.4 solved my problem.

  • [SOLVED] cannot mount vfat usb

    When I plug in my usb device an error is shown:
    Error mounting /dev/sdc1 at /run/media/toni/BE40-9797: Command-line `mount -t "vfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,showexec,flush" "/dev/sdc1" "/run/media/toni/BE40-9797"' exited with non-zero exit status 32: mount: unknown filesystem type 'vfat'
    How can I solve this?
    Last edited by toni (2013-12-11 20:59:11)

    So, why did the reboot work ? (asked rhetorically)
    Unlike some other famous operating systems,it is not likely that you machine had reached some unstable state requiring a restart to put it into a known state.
    In your case, you probably updated the kernel.  When this happens, the kernel modules on disk for the running kernel are replaced by those for the new kernel.  After you did the upgrade, you plugged in your USB device.  The kernel looked for its modules, but they were gone -- replaced by those for the new kernel.  After rebooting, you are now running the kernel that matches the installed modules.

  • Need help to solve problem regarding Serial/USB want to get data on event base

    Hello This NI Forums have helped me a lot in learning the Labview, every time I am in problem people on this forums have helped me.
    Actually I need some example VI which could guide me to solve my problem.
    I want to get data on USB speed 1mega and should be event handled means when every a byte is received at com port ( which is always Hex value)  should be written in text file without the loosing the data.
    Thanks in advance 

    1. Use polling. Use the "Bytes at Serial Port" to read the data.
    2. No way to write each byte at a file at this speed . Store them in an array and every some time write the file and empty the array.
    3. If you can start with lower transfer rates and then go up to 1Mbps.

  • [SOLVED] BIOS not detecting USB Drives after i installed Arch

    SOLVED: In BIOS under 'Advanced' disable 'Fast BIOS Mode'.
    Original post:
    Hi there!
    I'm fairly new to the arch (and linux) scene and just setup my Samsung 530U3B with a brand new installation of arch. Everything went fine and the system is running flawlessly. Almost.
    I just happend to notice that BIOS is not checking for USB drives anymore, it just somehow skips that part. If enter the boot selection, the bootable USB drive won't show up. Neither does it show up in BIOS setup. I tried to boot with the same USB drive that i used to install arch just yesterday, the live media does not boot - the drive doesn't even blink. The boot priority is set to usb drive first, the boot selection screen (hammering f10 during boot) doesn't give me any other option than to boot from the normal SSD. Also, prior to the arch installation (came with w7 installed) the BIOS screen would stay for about 2seconds and then proceed to boot - this doesn't happen anymore. When i press the power button greeted by the grub bootloader in about 1s.
    I tried 2 different usb drives, both with the arch iso (same that i used to install the currently running OS, downloaded yesterday). The drives also show up once my arch is booted (starting to blink just after i hit enter in grub). Also, both drives boot without a problem on my desktop computer.
    Anyone got any ideas?
    I don't really now what kinda of information would be helpful so i'm just dumping stuff i know:
    BIOS: Phoenix SecureCore Tiano Version 04XK
    Machine: Samsung 530U3B
    SSD: Samsung MZ7PC128HAFU-000
    ISO used to install (checksum ok): archlinux-2012.07.15-netinstall-dual.iso
    Last edited by araex (2012-07-26 16:57:47)

    DSpider wrote:
    The boot priority is set to usb drive first
    Welcome to the forum.
    If you just set the USB stick to be first in the boot order, the next option (from the list) takes its place the moment you unplug it. You need to set the BIOS to boot from your equivalent of "Removable Devices" first, "Internal Drives" second and "Optical Drives" third.
    The USB stick doesn't show up at all. I set the priority as follows:
    1. USB HDD
    2. USB FDD
    3. USB CD
    4. SATA CD
    5. SATA HDD
    6. NETWORK
    I used that same configuration to install arch. USB doesn't seem to initialize at all. Also, if i enter "usb" in the grub commandline, no devices are listed.
    Thanks!
    UPDATE:
    I just figured it out. In my BIOS under 'Advanced' the 'Fast BIOS Mode' was enabled, once i disabled it, everything went fine. I don't remember changing that option. Silly me.
    Sorry for your time
    Last edited by araex (2012-07-26 16:56:30)

  • [SOLVED] Encrypted root on USB drive problem

    Hi,
    I have encrypted root on external USB harddrive. On one machine it works just fine, LUKS ask for password and system starts.
    On second it does not work. I tryed nearly all possible combinations of modules and hooks. I can also access my usb drive if I use break=y. I am using current kernel & utils, I definitely use right paths...
    Machine is an Dell with Intel chipset. My USB drive is like this:
      /dev/sdb1 - big fat32
      /dev/sdb2 - ext2 boot with Grub, kernel and initrd image
      /dev/sdb3 - root fs, reiserfs encrypted with LUKS
    I made little debuging and it seems that encrypt hook was launched, but did not make anything. Before I digg deeper I wonder that someone had same problem, or can give me advice.
    Kernel panic screenshot:
    PS: how can I put busybox to initrd image? echo * sucks.
    Thanks
    Last edited by Trained.Monkey (2007-10-10 09:42:13)

    I solved, problem is that encrypt is running BEFORE usb drive is fully initialized. Encrypted partition is not found and not used.
    Solotion:
    put sleep 5 at beggining of encrypt hook. You must also add sleep binary at installer.

  • Solving Prolific PL-2303 USB to Serial Comm Port installation issues

    Hello everybody,
    More and more machines are comming without Parallel and serials ports, they are comming with USB external ports only.
    Some have the RS-232 and Parallel headers in the motherboard, and that should last for about a year I think.
    At any rate, the issue I was facing is the following:
    (a) Installing Prolific PL-2303 USB to Serial Comm Port on Windows XP Pro SP3 works OK and system runs fine. there are some capacity issues regarding the buffer size, but that is another post.
    (b) Installing on WEPOS 1.1 SP3 on some motherboards (Older ones) that have at least the Parallel headers and a serial port, the device also works as with (a)
    (c) Installing on WEPOS 1.1 SP3 with a machine with only external USB's (no parallel / serial port or headers). The installation process runs OK. but when the device
    is plugged I get the following error message:
    "An error ocurred during the installation of the device"
    "A service Installation section in this INF is invalid"
    (d) Installing on POSReady 2009. I get the same as with (c)
    This is how I solved, after many frustrating reboots with the same message about the INF section and multiple Prolific drivers tried.  I started digging windows:
    (1) Find the setupapi.log and read it, if the OS is a fresh install it will not be too long.
    (2) Read this:
    #-166 Device install function: DIF_SELECTBESTCOMPATDRV.
    #I063 Selected driver installs from section [ComPort] in "c:\windows\inf\oem15.inf".
    #I320 Class GUID of device remains: {4D36E978-E325-11CE-BFC1-08002BE10318}.
    #I060 Set selected driver.
    #I058 Selected best compatible driver.
    #-166 Device install function: DIF_INSTALLDEVICEFILES.
    #I124 Doing copy-only install of "USB\VID_067B&PID_2303\5&B6C3FC&0&2".
    #-166 Device install function: DIF_REGISTER_COINSTALLERS.
    #I056 Coinstallers registered.
    #-166 Device install function: DIF_INSTALLINTERFACES.
    #-011 Installing section [ComPort.NT.Interfaces] from "c:\windows\inf\oem15.inf".
    #I054 Interfaces installed.
    #-166 Device install function: DIF_INSTALLDEVICE.
    #I123 Doing full install of "USB\VID_067B&PID_2303\5&B6C3FC&0&2".
    #-035 Processing service Add/Delete section [ComPort.NT.Services].
    #E339 Add Service: Binary "C:\Windows\system32\DRIVERS\serenum.sys" for service "Serenum" is not present.
    #E032 Error 0xe0000217: A service installation section in this INF is invalid.
    #E275 Error while installing services. Error 0xe0000217: A service installation section in this INF is invalid.
    #E122 Device install failed. Error 0xe0000217: A service installation section in this INF is invalid.
    #E154 Class installer failed. Error 0xe0000217: A service installation section in this INF is invalid.
    [2010/02/13 23:32:24 2004.2]
    (3) So it was the serenum.sys file that Windows needed to find in the ..\system32\drivers folder. I got the serenum.sys from one of the temporary folders created by the installation process.
    (3a) So, I think that windows installs this sys file if it recognizes the motherboard has at least one parallel or serial port.
    (4) So good luck when installing your serial device to your POS solution. I will open another thread if I have problems with the buffer size of the device.
    Humberto Sequeira

    Hello Terry,
    Indeed, they were not intended as POS system, the EEE Top machines are candy to the eye, but for my taste they do not work in POS environment (I give them 1 year before they pop). Regarding the other, well competition is tought, so you have to get creative in order to keep costs down, and this one can be used as a waiter stations, that do not need heavy serial comunications.
    Anyways, the POSReady does not install these system files if the installation does not detect a serial or parallel port (which make sense, as why would it install drivers for a device that is not detected). I posted this for others to be aware of this when they select the hardware that will be offered to their customers, as good old "on mother-board" serial and parallel ports cannot be beaten by their USB imitations (IRQ and memory addressing processing are needed for end devices to function properly).
    Have a great weekend,
    Humberto

  • [SOLVED] Problem with external USB drive started yesterday

    My system freezes for about 65 seconds at the login screen. After 65 seconds, I can login and everything is normal afterwards.
    I discovered that I can eliminate the freeze by disconnecting the external USB drive from the PC. Here are the error messages from kernel.log when the drive is connected:
    Oct 15 23:10:14 localhost kernel: [ 17.035091] usb 1-1.3: device descriptor read/64, error -110
    Oct 15 23:10:29 localhost kernel: [ 32.155955] usb 1-1.3: device descriptor read/64, error -110
    Oct 15 23:10:29 localhost kernel: [ 32.325394] usb 1-1.3: new high speed USB device number 4 using ehci_hcd
    Oct 15 23:10:31 localhost kernel: [ 34.045126] MediaState is connected
    There is supposed to be a kernel boot option (irqpoll) to prevent this from occurring. However, that option seems to no longer work for kernels after 2.6.39. If I try using it with Arch, the system will not boot, saying all the CPU's failed.
    I also don't understand why this just started happening yesterday, as the USB drive has been connected to the PC longer than I've been using Arch. Also, my kernel has not been updated since I installed Arch on Oct 8.
    Does anyone know another fix or workaround for this problem?
    Thanks,
    Tim
    Last edited by ratcheer (2011-10-17 01:30:08)

    Problem solved
    I feel stupid, but I also feel better. I turned off the PC, disconnected the power from the USB drive for about 15 seconds, reconnected the power, rebooted, removed the irqpoll kernel option, and Ubuntu started, perfectly. I need to learn that the USB drive just goes freaky sometimes and remember to do this. But, this is only the second time I've had to do this in months of use.
    Tim

  • [SOLVED] Installing Arch on usb stick - login to emergency mode only

    I have checked fstbe which is correct
    block is in HOOKS line. Also added ext4 to MODULES
    not but not least, i have used that usb for live distros and full installs. also portioned with gparted
    most attractive errors in log are
    kvm disabled in bios (i am installing only 32 bit version, booted to 32bit)
    can not execute plymouth
    any ideas
    thanks in advance
    Last edited by Archhotep (2013-03-25 13:19:28)

    WonderWoofy wrote:
    Archhotep wrote:
    Trilby wrote:It will continue working until you change what usb's are plugged in again.  If you want a real solution use UUID in fstab.
    I understand that. but both UUIDs and devices (/dev/sdX) are there in fstab if I am correct. I will check that in evening. if so did i make a mistake in generating fstab.
    I have generated fstab with
    genfstab -p /mnt >> /mnt/etc/fstab  (does this happens if i forget -p).
    as I have done this multiple times, I might have done some thing wrong. I will edit that file manually and removed /dev/sdx entries from that
    Honestly, you are not very good at sharing what is actually in your configs.  So as Trilby said above, no one really knows what is in your fstab, since you have not actually shared that with this thread. 
    As far as I can tell, when I run "genfstab -p /" on my running machine, letting the output just be dumped to stdout, it doesn't give me UUIDs anywhere.  And from your statement it seems you haven't even actually checked.
    What I have done in the past is used labels.  For example if you are using ext2, ext3, or ext4, you could assign a label using "e2label".  So lets say you label your rootfs (/) "usb_root".  Now instead of using the unreliable /dev/sdXY format, you can use LABEL=usb_root in your fstab, and in the bootloader you can use root=LABEL=usb_root (or root=/dev/disk/by-label/usb_root).
    I would also like to mention that this quote sucks:
    Archhotep wrote:No. UUIDs are there in the boot loader (I think) and grub was working fine and why the system is trying to boot at first place.
    There are a number of people who are patiently trying to walk you through this issue (with quite a bit more hand holding that usually takes place around here), and you don't have the decency/appreciation to even take the time to confirm what you are actually using in the configs that everyone is telling you to check and/or change.
    Sir,
    I was a standard linux (i mean ubuntu etc) user until sometime back.  I don't know exactly what should be there in /etc/fstab. I also do not know what information you might need to help me. If any one asked me the details about /etc/fstab etc might have provided. I have given what info what I felt was appropriate and enough. I do not have that machine with me when I was posting lat post, otherwise I might have posted. that laptop is at home. I already said thanks in my third post immediately after I solve the problem.
    Sorry if I am wrong, and thatnk you once again for letting me about labels.
    If I still have a question about /etc/fstab, i will post my fstab.
    I don't know where to look to know that my boot loader is using uuid or dev. It would be great help.
    Last edited by Archhotep (2013-03-25 16:06:11)

  • [Solved] Messed up Nokia6280s usr-permissions by mounting

    //edit: Problem "solved": Yesterday evening, after I made this post, I met my girlfriend and she told me that it works again, so the problem ended in smoke, no idea how and why...
    Hm, title est omen: A few days ago, I mounted the Nokia 6280 cellphone of my girlfriend as "standard usb-stogare disk" (chose that in the Nokia menu that comes up when the phone detects a usb connection) without any problems.
    But since I did that, it's not possible to play the videos we made beforehand on the phone. It's also not possible to make new videos or voice recordings. However one can take new pictures or rename any file on the smart-media-card.
    I'm not too good in this mobile stuff and don't know if this phone is running symbian os or someth else, it's not a Windows OS, that's all I can say (at least it doesn't look like it was). So I don't know if this OS knows user permissions, as well as I can't remember if I did execute something like "chown -R * jakob:users" on the mounted dir to gain read-access or not.
    My simple question is: Is it generally possible that I fscked something up by mounting the phone on my Arch box?.
    After we plugged the phone to my Arch Box we also went to another (Windows) PC to try out the Nokia-Phone-Software, where we copied one or two mp3's on the phone. But since that was with the original software it should not be the source of our problem, I hope.
    Maybe anyone here got this handy cellphone, too and knows what I am talking about (storage seems not to be the problem: 27 MB unused on the mini-SD-card) and may help us
    Thanks,
    .hellwoofa
    //edit: Problem "solved": Yesterday evening, after I made this post, I met my girlfriend and she told me that it works again, so the problem ended in smoke, no idea how and why...

    First of all thanks for the reply.
    The old image is gone, I thought I backed everything up (I saw the permissions afterwards). At the moment I reinstalled mysql, it is working. Apache needed some folders to be created in /var, I made them and is working now.
    For everything else I'm chmoding by hand, I'm almost finishing this and hopefully it will be ok
    Reinstalling arch would be a viable option but the installer-cd (2011.08) has serious issues installing on a GPT disk and since I managed to do it I prefer to avoid doing it again unless absolutely necessary.
    The good thing is that now /home and /srv are safe (my old disk was really old) and in their own partitions so any system changes, if they happen, won't be doing them any damage!

  • [SOLVED]How to disable USB autosuspend?

    Hello!
    A long time ago I installed Arch on my notebook and configured it's power saving using laptop-mode-tools. I also installed pm-utils for suspend/hibernate. USB autosuspend worked correctly - on battery every device (including mouse) was suspending and no autosuspend at all on AC. Some time ago, I don't remember when exactly, it stopped working. Now, no matter what, my mouse turns off after 2 seconds.
    Here is what I did:
    1. Checked my laptop-mode-tools configuration (removed comments for brevity):
    cat /etc/laptop-mode/conf.d/usb-autosuspend.conf
    DEBUG=0
    CONTROL_USB_AUTOSUSPEND="auto"
    AUTOSUSPEND_USE_WHITELIST=0
    AUTOSUSPEND_USBID_BLACKLIST=""
    AUTOSUSPEND_USBTYPE_BLACKLIST=""
    AUTOSUSPEND_USBID_WHITELIST=""
    AUTOSUSPEND_USBTYPE_WHITELIST=""
    BATT_SUSPEND_USB=1
    LM_AC_SUSPEND_USB=0
    NOLM_AC_SUSPEND_USB=0
    AUTOSUSPEND_TIMEOUT=2
    So far looks good.
    2. According to wiki, pm-utils might conflict with laptop-mode-tools. So I created a dummy file in /etc/pm/power.d for each of the scripts from /usr/lib/pm-utils/power.d . For the moment I don't care if I disabled too much. I just hope laptop-mode-tools covers all powersaving features.
    ls -l /etc/pm/power.d
    -rw-r--r-- 1 root root 0 08-08 19:58 hal-cd-polling
    -rw-r--r-- 1 root root 0 08-08 19:58 intel-audio-powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 journal-commit
    -rw-r--r-- 1 root root 0 08-08 19:36 laptop-mode
    -rw-r--r-- 1 root root 0 08-08 19:58 readahead
    -rw-r--r-- 1 root root 0 08-08 19:58 sata_alpm
    -rw-r--r-- 1 root root 0 08-08 19:58 sched_powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 wireless
    -rw-r--r-- 1 root root 0 08-08 19:59 xfs_buffer
    ls -l /usr/lib/pm-utils/power.d
    -rwxr-xr-x 1 root root 1316 2013-05-30 hal-cd-polling*
    -rwxr-xr-x 1 root root 870 2013-05-30 intel-audio-powersave*
    -rwxr-xr-x 1 root root 1290 2013-05-30 journal-commit*
    -rwxr-xr-x 1 root root 2722 2013-05-30 laptop-mode*
    -rwxr-xr-x 1 root root 201 2013-05-30 pcie_aspm*
    -rwxr-xr-x 1 root root 1222 2013-05-30 readahead*
    -rwxr-xr-x 1 root root 1131 2013-05-30 sata_alpm*
    -rwxr-xr-x 1 root root 652 2013-05-30 sched-powersave*
    -rwxr-xr-x 1 root root 2495 2013-05-30 wireless*
    -rwxr-xr-x 1 root root 1642 2013-05-30 xfs_buffer*
    Still no luck.
    3. As I found out, there is some kernel option CONFIG_PM_RUNTIME, which allows the kernel to autosuspend usb devices: source. It's on:
    cat /proc/config.gz| gunzip | grep CONFIG_USB_SU
    CONFIG_USB_SUPPORT=y
    And as I read here I can disable usb autosuspend using boot parameter. So i edited my /etc/default.grub, and now my grub.cfg looks like this:
    sudo cat /boot/grub/grub.cfg | grep usb
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    After rebooting I checked:
    cat /sys/module/usbcore/parameters/autosuspend
    -1
    Cool! It should work! But... it doesn't. The mouse still goes to sleep after 2 seconds, and:
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend_delay_ms; do cat $i;done
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend; do cat $i;done
    2
    2
    2
    2
    2
    2
    2
    2
    2
    Where doesn't this 2 (or 2000) come from? How disable this suspending and let laptop-mode-tools control it? What's going on?
    Last edited by PL_kolek (2014-08-09 13:14:23)

    For now I run
    sudo systemctl disable laptop-mode.service
    and changed in /etc/laptop-mode/laptop-mode.conf
    ENABLE_LAPTOP_MODE_TOOLS=0
    After rebooting I still have the same issues. Also, even after disabling laptop-mode-tools, the brightness changes after unplugging the laptop, so either the laptop mode wasn't disabled at all, or there is something else 'helping' me with powersaving.
    @brebs
    Thank you, but it looks for me more like a workaround than a solution. It could work, but it doesn't tell me what disables my mouse and where is the root of the problem.
    Last edited by PL_kolek (2014-08-09 12:39:39)

  • [SOLVED]mounting cdrom and usb devices doesn't work

    Hello,
    i have trouble mounting my usb devices. automount doesn't work and i can't mount them manually even as a superuser. here's the output of mount command:
    mount: wrong fs type, bad option, bad superblock on /dev/sdc,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    i can mount cdrom manually but i can't do the same for my usb stick and external hard drives. it always complains about the above regardless of the filesystem. my devices are working under windows and other linuxes so i know hardware is not the problem.
    i'm using lxde with pcmanfm.
    if you need any other files just ask.
    thanks
    Last edited by the gray (2009-03-16 20:15:18)

    above was the error when i tried to mount any usb device with "mount -t <type> /dev/sdc /media/mountpoint". and i couldn't mount any usb device as root from console. when i tried to mount devices using pcmanfm it just popped some empty dialogs and i couldn't find any mention of "IsCallerPriviliged failed" error so i (wrongly) presumed it wasn't that. i did try some of the other fixes mentioned in the forum with no success. but adding exec ck-launch-session startkde to my .xinitrc fixed the issue
    thanks again
    Last edited by the gray (2009-03-16 20:17:53)

Maybe you are looking for