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 - 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 01-20-2015, 01:31 AM   #1
Changry
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Server sleep issues


Hello,

I've recently built a home server by updating my old gaming PC and adding a second drive. I used fstab to mount the second drive and everything has been working great.

I only need the server to work when I'm home and awake so I set it up to sleep and wake on lan. Now when the PC wakes up the second drive is not mounted anymore.

Does anyone know what I can do to fix this?

Thanks
BTW I'm using Xubuntu.
 
Old 01-20-2015, 02:00 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what line did you put in your /etc/fstab for this disk?

Evo2.
 
Old 01-20-2015, 02:08 AM   #3
Changry
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

what line did you put in your /etc/fstab for this disk?

Evo2.
I added the line below at the end:

/dev/sdb1 /mnt/content ext4 defaults 0 0
 
Old 01-20-2015, 02:40 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

that looks to me like it should mount automatically on boot. The only thing I would suggest to change is the last "0" to "2" (see "The sixth field" section in the fstab man page).

Does it mount if you run the following:
Code:
mount -a
as root? If not are there any error messages? And does it mount if you run:
Code:
mount /mnt/content
as root? Any error messages?

Also, did you check the logs in /var/log/ for clues?

Evo2.
 
Old 01-20-2015, 05:28 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Code:
/dev/sdb1 /mnt/content ext4 defaults,auto 0 0
You have to set auto option to fstab so that mount -a automatically mounts it.
 
Old 01-20-2015, 07:12 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by veerain View Post
You have to set auto option to fstab so that mount -a automatically mounts it.
From the fstab man page
Code:
             defaults
                     use  default  options: rw, suid, dev, exec, auto, nouser,
                     and async.
So auto does not need need to be explicitly listed.

I wonder now if I've missunderstood the OP: is the machine actually being shut down? Or suspended to ram or disk?

Evo2.
 
Old 01-20-2015, 07:34 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
What distribution / version are you running? Are you running a desktop?

Also is the drive internal or external i.e PATA, SATA, or USB?
 
  


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
how to make ubuntu server 11.04 go to sleep when idle? wf201626 Linux - Newbie 1 08-16-2011 01:30 PM
Laptop server goes to sleep and will not stay awake UNCMo96 Linux - Newbie 3 11-02-2010 07:25 PM
Toshiba laptop ACPI sleep issues KDE cferron Linux - Hardware 0 01-24-2008 02:00 PM
Searching for Server (BOOTP/DHCP) <sleep> <sleep> .. .. Eileen Linux - Networking 12 10-21-2005 01:14 AM
Linux server goes into sleep mode? medpa1 Linux - Networking 3 03-07-2002 06:12 AM

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

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