Portál AbcLinuxu, 20. července 2025 20:40
power/autosuspend 143 144 This file contains an integer value, which is the 145 number of seconds the device should remain idle before 146 the kernel will autosuspend it (the idle-delay time). 147 The default is 2. 0 means to autosuspend as soon as 148 the device becomes idle, and -1 means never to 149 autosuspend. You can write a number to the file to 150 change the autosuspend idle-delay time.
martin@debian:/etc$ more fstab # /etc/fstab: static file system information. # # file system mount point type options dump pass proc /proc proc defaults 0 0 /dev/sda1 /mnt/windows_c ntfs defaults,user,umask=000,nls=utf8 0 0 /dev/sda5 /mnt/windows_d ntfs defaults,user,umask=000,nls=utf8 0 0 /dev/sda3 / ext3 errors=remount-ro 0 1 /dev/sda4 /home ext3 defaults 0 2 /dev/sda6 none swap sw 0 0 /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0Měl by to být disk asi sda6 nebo nevím jaký číslo a název dát usb disku. Měl by být v /media/venku/
hdparm - zkuste prostudovat man stranky.
Pokud se disk zastavi, tak je ovsem stale primountovany a pri pokusu o cteni ci zapis se zase rozbehne.
To prece bezproblemu funguje - mam to vyzkouseno.
Nebo si napsat nejaky jednoduchy skript jez bude periodicky z disku neco (vzdy jineho) cist do /dev/null
Pripadne cist nahodne vybrane sektory. Nahodne proto, pac stejne by byly cteny z cache, a disk by se zastavil.
How to disable power management on Seagate FreeAgent storage solutions on Linux system. 1 - It is supposed in this sample that the drive is attached to device /dev/sdc 2 - Check that the right drive is selected: $ sudo sdparm -a /dev/sdc /dev/sde: Seagate FreeAgent? Pro 400A Power condition mode page: IDLE 0 [cha: n, def: 0, sav: 0] STANDBY 1 [cha: y, def: 1, sav: 1] ICT 0 [cha: n, def: 0, sav: 0] SCT 9000 [cha: y, def:9000, sav:9000] 3 - Force restart the drive ( if the drive was in stanby mode): $ sudo sdparm --command=start /dev/sdc 4 - Disable power management: $ sudo sdparm --clear STANDBY -6 /dev/sdc 5 - Check the drive power management has been disabled: $ sudo sdparm -a /dev/sdc /dev/sde: Seagate FreeAgent? Pro 400A Power condition mode page: IDLE 0 [cha: n, def: 0, sav: 0] STANDBY 0 [cha: n, def: 1, sav: 0] ICT 0 [cha: n, def: 0, sav: 0] SCT 0 [cha: n, def:9000, sav: 0]2. Pomoci udev Tohle pouzivam a zatim to vsude zabralo. Vytvorit soubor /etc/udev/rules.d/85-usb-hd-fix.rules s obsahem
# Seagate FreeAgent allow_restart fix (i/o errors) SUBSYSTEMS=="scsi",DRIVERS=="sd",ATTRS{vendor}=="Seagate*",ATTRS{model}=="FreeAgent*", RUN+="/bin/sh -c 'echo 1 > /sys/class/scsi_disk/%k/allow_restart'" Pro novejsi verze udevu jsou jine parametry # Seagate FreeAgent allow_restart fix (i/o errors) BUS=="scsi",DRIVER=="sd",SYSFS{vendor}=="Seagate*",SYSFS{model}=="FreeAgent*", RUN+="/bin/sh -c 'echo 1 > /sys/class/scsi_disk/%k/allow_restart'"Samozrejme vendor a model upravit dle konkretniho disku.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.