LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-03-2020, 10:13 AM   #1
Sploog
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
spinning up before shutting down


My system runs mostly from SSD but I have two hard drives mounted as follows:

/dev/sdb1 /Photographs ext4 rw,relatime 0 0

/dev/sdc1 /Ddrive fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0

The are both set to spin down after a period of no use.

My problem is, when I shut the system down it has to spin up sdb1, the
ext4 formatted drive before shutdown completes. I am not so worried
about the time that takes, but more concerned not to wear out the disk
doing nothing useful.

sdc1, the ntfs drive, doesn't have the same problem. I am guessing
that the ext4 system software wants to write to sdc1 that it has
shut down cleanly. Is there a way to prevent that, or even better,
avoid spinning up the drive until the first time I use it (which
is often not at all in any given day).

Thanks for any help you can give. It is debian 10 by the way.
 
Old 05-03-2020, 11:43 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Hi Sploog,
Quote:
I am not so worried
about the time that takes, but more concerned not to wear out the disk
doing nothing useful.
Spinning the disk up and down during a session is likely to wear it out quicker. If the disk is spinning, by Newton's first law of motion, it should keep spinning if possible. Most data centres (which use flying rust disks) have probably had them spinning constantly for years!
Every time it has to spin back up it has to overcome the platter's inertia (also uses more power to spin up than maintain spin speed.) and possibly a thing known as "stiction" which translates as the friction in the hub bearings and also overcoming the "disk brake" effect of the heads on the platter. Though some disks will have a landing area, while others may park the heads off the disk.

So, in a word, Let 'em spin!

My

Play Bonny!

 
Old 05-03-2020, 12:36 PM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
I would guess that the ext4 drive spins up to verify the journal before it shuts down. Might have some metadata in memory that it needs to write?
 
  


Reply

Tags
ext4, shutdown



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] How to execute command before shutting down pc? luofeiyu Linux - Newbie 2 03-15-2016 04:42 AM
shutting down an interface when another interface goes down deadheadblues Linux - Networking 2 11-17-2014 05:48 PM
Errors on shutting down (does not let shut down) Sefid par Linux - Server 1 03-09-2014 03:27 PM
Shutting down and non shutting down x windows golden_boy615 Linux - General 1 03-01-2010 06:28 AM
shutting down computer does not auto power down... mmail75 Fedora 3 11-18-2003 07:25 PM

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

All times are GMT -5. The time now is 07:38 PM.

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