LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-01-2010, 12:12 PM   #1
jongkind
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Mounted external harddisk and suspend


In Debian if I suspend the PC, will the external mounted harddisk safely umount automatically?

I want to make sure that the integrity of my external HDD is not compromised while the PC goes in the suspend mode.
 
Old 06-01-2010, 03:56 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
In Debian if I suspend the PC, will the external mounted harddisk safely umount automatically?
Which "Debian" ? There are many to choose from.
Quote:
I want to make sure that the integrity of my external HDD is not compromised while the PC goes in the suspend mode.
OK. But please feel free to test the behaviour of your linux distribution.

This will probably take you less time than posting a question here and waiting for an answer.

If it doesn't work to your liking, please post further details, then maybe we can help you further.
 
Old 06-02-2010, 12:28 PM   #3
jongkind
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Version is Debian Squeeze with Gnome.

I tested it already some time ago, things seem to go well, but it's not as straightforward as you pretend....

The crulpit is that it is not clear whether the external harddisk stops spinning before the PC goes into suspend mode, which can lead to external harddisk hardware failure, see e.g. these links:

http://ssergeje.wordpress.com/2009/0...ves-in-ubuntu/

or

http://elliotli.blogspot.com/2009/01...-in-linux.html

grtz.
 
Old 06-02-2010, 01:02 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I have never worried about disks not spinning down when they were unmounted, and nothing bad has ever happened to my external drives in the time I have been using linux. I am always careful to unmount them (one way or another) before I remove them though.

In 10.04 I notice that my external HDD now spins down when it is "Safely removed" from the gnome GUI.
Neat, and I see this as an improvement, but before, I just used to wait a few seconds, and then pull the USB plug. Then it would spin down. This drive is about four years old, and as I said, I have never had a problem with it (it is ext3 formatted, and passed fsck with a clean bill of health about two weeks ago).

So, as I said, if you are worried, please do some experiments: Put some non-essential data on the drive, then try suspend or whatever (I'd suggest you do try this more than once), and see what happens. Run fsck on it (when it is unmounted, of course), even if errors have not been reported. Then you'll have your answer, and please post it here.

I confess that I do not use suspend, sleep, hibernate etc: My devices are either "on", and being used for something, or "off". I have an odd dislike of these "in-between" states. Perhaps I'm a binary geek at heart
 
Old 06-02-2010, 04:01 PM   #5
jongkind
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
After suspending the system with no external HDD file open drive letter remains /dev/sdb1; with a file open it changes to /dev/sdc1. That does not seem to be OK.

The output of e2fsck is given below. Nothing strange as far as I can see.



38789 inodes used (0.04%)
158 non-contiguous files (0.4%)
47 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 38574/86
43260758 blocks used (11.81%)
0 bad blocks
3 large files

33362 regular files
5194 directories
0 character device files
0 block device files
0 fifos
0 links
224 symbolic links (119 fast symbolic links)
0 sockets
--------
38780 files
 
  


Reply



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] After suspend to RAM, BIOS can't find my harddisk w4b Linux - Hardware 3 05-26-2010 07:00 AM
External harddisk (USB) not mounted robbbert Linux - Hardware 9 08-14-2006 06:43 AM
Harddisk fails. /home cannot be mounted bladehaze Linux - Hardware 1 10-08-2005 08:36 PM
reformat external harddisk alexbreugelmans Linux - Newbie 1 06-30-2005 08:11 AM
External lan harddisk? kalleanka Linux - Hardware 0 07-18-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:18 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