Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-22-2017, 03:14 AM   #1
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 7, SH4, Debian
Posts: 349

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, 04:25 AM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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, 10:15 AM   #3
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,406
Blog Entries: 8

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

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

 drive state is:  active/idle

 drive state is:  standby

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

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

 setting standby to 23 (1 minutes + 55 seconds)
 issuing sleep command

 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.


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 08:55 PM
Symbolic link not allowed or link target not accessible rheluser Linux - Server 3 09-04-2012 11:22 AM
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 07:47 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08:40 AM
Is it safe / a good idea to disable disk spindown? MasterOfTheWind Linux - Hardware 1 09-01-2007 09:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 PM.

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