LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2017, 02:14 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 7, SH4, Debian
Posts: 316

Rep: Reputation: 8
Symbolic link and disk spindown


I have 3 HDD installed in my PC. First disc is a 128GB SSD disc with OS only. The second contains large amount of data, but changes on it are very rare. The third HDD collects video clips from surveillance system so it works practically non-stop.
One subdir located on third HDD is linked symbolically to subdir located on second HDD.
I want to spin-down second HDD using hdparm command.
My question is. Does any operation done on physical third HDD will spin-up second HDD because of this symbolic link?
 
Old 06-22-2017, 03:25 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
Probably not. It's one of those things you just have to try. Hdparm will return whether the drive is asleep.
 
Old 06-22-2017, 09:15 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Huh. I didn't know hdparm had that nice feature. Here's an example:

Code:
hdparm -C /dev/sda; hdparm -C /dev/sdb; hdparm -C /dev/sdc

/dev/sda:
 drive state is:  active/idle

/dev/sdb:
 drive state is:  standby

/dev/sdc:
 drive state is:  standby
Here's an example of code I use to spin down the 2nd and 3rd hard drives:

Code:
hdparm -S 23 -Y /dev/sdc; hdparm -S 23 -Y /dev/sdb

/dev/sdc:
 setting standby to 23 (1 minutes + 55 seconds)
 issuing sleep command

/dev/sdb:
 setting standby to 23 (1 minutes + 55 seconds)
 issuing sleep command
Personally, I would nest the symlink inside an auxiliary directory which is never regularly browsed to. For example, you might put it in /home/macko/Desktop/Links/ instead of putting it directly on the Desktop. Or within /home/macko/Documents/Links/ instead of directly in /home/macko/Documents.

Basically, file system browsers often peek just inside the link for some sort of .directory file or whatever. This might not spin up the drive, if the necessary info is cached. But it's really annoying and hard to pin down the cause when that drive spins up for a nonobvious reason.
 
1 members found this post helpful.
  


Reply

Tags
spindown, symbolic link


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can I make a symbolic link that is dynamic link->$HOME/file? croog Linux - General 4 10-14-2012 07:55 PM
Symbolic link not allowed or link target not accessible rheluser Linux - Server 3 09-04-2012 10:22 AM
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 06:47 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
Is it safe / a good idea to disable disk spindown? MasterOfTheWind Linux - Hardware 1 09-01-2007 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration