Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Mint ] disabling USB external drive spin off
New Posts  All Forums:Forum Nav:

[Mint ] disabling USB external drive spin off

post #1 of 12
Thread Starter 
Hello everyone,

I decided to bring back to life a super old laptop (10y or more) by throwing in as much RAM as I could and installing xcfe mint. But I stumbled upon this issue with the external drive: it automatically unmounts after some minutes, creating a frustrating experience. Under windows there are plenty of tiny "keep alive softwares", under linux I have not enough experience to come up with a self made solution (although I did some research on the topic and discovered that hdparm won't help when talking about USB drives rolleyes.gif ) so maybe you guys can share some tip...

thanks a lot smile.gif
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
post #2 of 12
While I'm not yet familiar w/ linux, I know in windows it's supposedly caused by a power saving setting. So I would investigate that distro's power saving settings.

In windows, IIRC, you go into device manager, and under the device options, allow windows to turn this device to save power, uncheck. Or something to that effect.
post #3 of 12
Thread Starter 
Quote:
Originally Posted by DesertRat View Post

While I'm not yet familiar w/ linux, I know in windows it's supposedly caused by a power saving setting. So I would investigate that distro's power saving settings.

In windows, IIRC, you go into device manager, and under the device options, allow windows to turn this device to save power, uncheck. Or something to that effect.
tnx for answering smile.gif unfortunately, the brilliant mind who designed that external hard drive, made it so the power saving function is completely managed by the hardware itself and the operative system has no saying in this process frown.gif
both hdparm and disk option are completely useless in this case (the latter having power savings option ruled out). It would be extremely weird to discover that no one somehow fixed this, as I suppose USB hard drives are pretty common nowadays and this problem is frequent.... smile.gif
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
post #4 of 12
try pasting the output of this command
Code:
dmesg | grep udev'\|'ntfs
Black & Green
(12 items)
 
Dev Box
(7 items)
 
 
CPUMotherboardRAMHard Drive
Core2 Duo E7400 Asus P5Q Hyper-X  Sandisk 
OSPower
Fedora 22 Thermaltake 650W 
  hide details  
Reply
Black & Green
(12 items)
 
Dev Box
(7 items)
 
 
CPUMotherboardRAMHard Drive
Core2 Duo E7400 Asus P5Q Hyper-X  Sandisk 
OSPower
Fedora 22 Thermaltake 650W 
  hide details  
Reply
post #5 of 12
Thread Starter 
Quote:
Originally Posted by Petrol View Post

try pasting the output of this command
Code:
dmesg | grep udev'\|'ntfs

sure thing:
Code:
[    1.830614] systemd-udevd[99]: starting version 204
[   14.329919] systemd-udevd[362]: starting version 204
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
post #6 of 12
Quote:
Originally Posted by _LDC_ View Post

tnx for answering smile.gif unfortunately, the brilliant mind who designed that external hard drive, made it so the power saving function is completely managed by the hardware itself and the operative system has no saying in this process frown.gif
both hdparm and disk option are completely useless in this case (the latter having power savings option ruled out). It would be extremely weird to discover that no one somehow fixed this, as I suppose USB hard drives are pretty common nowadays and this problem is frequent.... smile.gif

I actually have this issue and cause in windows myself. I knew to suggest what i did from researching my own issues. Mine are with a 1tb and 2tb portable external by toshiba. I've also tried the power saving options, but have come to the same conclusion. Only thing i could think of as a workaround would be to make a script as a sort of 'keep alove' signal to make a very small but timed query of the drove to keep it from going to sleep.

Also, idk if you have looked into it or not on your drive(s) already, but mine have USB HDD boards, not SATA in an enclosure with adapter. Otherwise I'd get a bracket and mount internally, or replace the enclosure.
post #7 of 12
Thread Starter 
Quote:
Originally Posted by DesertRat View Post

Only thing i could think of as a workaround would be to make a script as a sort of 'keep alove' signal to make a very small but timed query of the drove to keep it from going to sleep.
aye, that's what I thought of too, but I am no good with scripts T.T
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
post #8 of 12
Quote:
Originally Posted by _LDC_ View Post

sure thing:
Code:
[    1.830614] systemd-udevd[99]: starting version 204
[   14.329919] systemd-udevd[362]: starting version 204

is this from right after you noticed the drive unmount? dmesg is a good place for troubleshooting, I still think it might have something to do with udev, if the problem goes deeper it might still be possible to fix it with a udev rule.
Black & Green
(12 items)
 
Dev Box
(7 items)
 
 
CPUMotherboardRAMHard Drive
Core2 Duo E7400 Asus P5Q Hyper-X  Sandisk 
OSPower
Fedora 22 Thermaltake 650W 
  hide details  
Reply
Black & Green
(12 items)
 
Dev Box
(7 items)
 
 
CPUMotherboardRAMHard Drive
Core2 Duo E7400 Asus P5Q Hyper-X  Sandisk 
OSPower
Fedora 22 Thermaltake 650W 
  hide details  
Reply
post #9 of 12
Thread Starter 
Quote:
Originally Posted by Petrol View Post

is this from right after you noticed the drive unmount? dmesg is a good place for troubleshooting, I still think it might have something to do with udev, if the problem goes deeper it might still be possible to fix it with a udev rule.
not sure if this can be of any help to your evaluation of the problem but that is the result of issuing the command with the drive still plugged and operative; it's quite difficult to hit the exact moment of disconnection because the OS immediately auto-mount it right after the event.
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
post #10 of 12
Thread Starter 
while it's not my intention to necropost, I believe someone may benefit from a workaround I've found for the same problem on Ubuntu: keep in mind it won't affect the spinning, but it will avoid the super-annoying popup.

if you don't have it, install DConf
Code:
sudo apt-get install dconf-tools

from the menu, run DConf Editor, then click in this order:
Code:
org >  gnome > desktop > media-handling

remove the flag from:
Code:
automount-open

close dconf. No more annoying popup thumb.gif
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
The Creature
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k Asus P8Z68 V-Pro Sapphire HD 7950 OC Boost 16Gb Corsair Vengeance 
Hard DriveOptical DriveCoolingOS
OCZ Vertex3 6Gb/s + 2Tb Seagate GoFlex none Corsair H80 Linux LTS 64bit 
MonitorKeyboardPowerCase
Samsung SyncMaster BX2450 CoolerMaster Quickfire TK Corsair AX850 80+ Gold Corsair 600T Modded 
MouseMouse PadAudio
Steelseries Xai Steelseries HD E-Mu Tracker Pre USB 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Mint ] disabling USB external drive spin off