Posts

Showing posts from January, 2019

/etc/rc.local hdparm disk spindown asetukset

#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # hdparm -B255 -S60 /dev/sdb # set disk spindown timers to 1,5 hours (-S243) or 1h (-S242) or 30min (-S241) # to check spin status: "hdparm -C /dev/sd?" # hdparm -S242 /dev/sdb & # hdparm -S242 /dev/sdc & # hdparm -S242 /dev/sdd & # hdparm -S242 /dev/sde & # hdparm -S242 /dev/sdf & # hdparm -S242 /dev/sdg & # hdparm -S242 /dev/sdh & # hdparm -S242 /dev/sdi & # hdparm -S242 /dev/sdj & # hdparm -S242 /dev/sdk & # hdparm -S242 /dev/sdl & # hdparm -B255 -S60 /dev/sdb # TOIMII hdparm -B253 -S242 /dev/sdb hdparm -B127 -S241 /dev/sdb hdparm -S241 /dev/sda #toimii WD Whiteillä exit 0

hdparm HDD Spindown

1. Edit your system's startup file Open up a terminal window, if your are using Linux Mint copy/paste the following: sudo pluma /etc/rc.local on Ubuntu use sudo gedit /etc/rc.local The difference is just in the standard graphical text editor application installed. You can of course install pluma on Ubuntu or gedit on Linux Mint if you like. 2. Composing the right command In a terminal window type hdparm -B /dev/sd? The drives that are set to a value higher than 127 (except 255) won't spin down, the drives that show "not supported" either manage this value on their own or are that old that they are not supporting power management at all. Talking about sata disks, the former is the most possible reason. To set the drive to the highest power saving level with the highest performance and yet allow it to spin down after 15 minutes type the following command in your rc.local file. Product and Serial being the output from sudo lshw -class disk hdparm -B...

NTFS levyn mounttaaminen Ubuntu 18.04

Edit your fstab: sudo nano /etc/fstab Find your HDD UUID: UUIDs can be found in /dev/disk/by-uuid/ (usually map to /dev/sd*) Enter following line to fstab: UUID=<your uuid> /mnt/mountingpoint ntfs-3g permissions,defaults 0 2  Test to see if it mounts:  sudo mount -a