Author Topic: [SOLVED] Arch autofs  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

Offline nulldigit

  • Serf
  • *
  • Posts: 28
  • Cookies: -2
  • syntax sugar om nom
    • View Profile
[SOLVED] Arch autofs
« on: July 10, 2014, 10:26:08 am »
I have a torrent client running 24/7 under Arch and everything is okay. I have it mounted in my home dir and point the torrents there.

The issue I have is, when I leave the media center/arch for to long, the external drive I use either spins down or something happens where in /dev it is now sdc instead of sdb. The only time I have ever seen that happening is when the pc is still running and something is removed and re-inserted or something to do with mount issues.

I tried editing fstab but that is more for boot, and I can't predict  where the external will reside in /dev

I installed autofs but don't quite know how to config it to work, I have read about HAL but it almost seems depreciated since the Arch Handbook I have was in 2009 and doesn't account for the /bin changes and all not to mention the rc crap....

I am okay with manualy mounting the drive, but it is a pest if I want the torrents to work since they are going to that drive. All the I/O errors are hurting my ratio and waned to see if you guys could give some insite.

I have disabled the DPS stuff so the energy star crap is disabled, haven't tested with a reboot cause no kernel updates yet. I had/have a feeling it was something to do with dps and the enrgy suff cause "xset -q" show the spin-down/hibernate crap set to 600, I'm thinking if i just have the pc running without the suspend and stuff then the drive wont get confused and show /dev a new device.

Just looking for feedback, that it all.
« Last Edit: July 13, 2014, 04:45:15 am by nulldigit »
N/A

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Arch autofs
« Reply #1 on: July 10, 2014, 11:04:53 pm »
If you have the drive plugged in all the time why don't you just set it to mount on a specific partition in fstab? It shouldn't change if you do that.

Or am I missing something?
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline nulldigit

  • Serf
  • *
  • Posts: 28
  • Cookies: -2
  • syntax sugar om nom
    • View Profile
Re: Arch autofs
« Reply #2 on: July 10, 2014, 11:55:43 pm »
If you have the drive plugged in all the time why don't you just set it to mount on a specific partition in fstab? It shouldn't change if you do that.

Or am I missing something?

I tried that, but like when I go to work and come home, it is listed under dev as a new drive.

I.E. before work its /dev/sdb1 after work its /dev/sdc1.

I disabled the energy star stuff with
Code: [Select]
xset -dpms, it seems to not be doing it anymore. I'm thinking it had something to do with hibernating or something.
« Last Edit: July 10, 2014, 11:57:17 pm by nulldigit »
N/A

Offline voodoo

  • Serf
  • *
  • Posts: 42
  • Cookies: 4
  • Try Harder
    • View Profile
    • Security Voodoo
Re: Arch autofs
« Reply #3 on: July 13, 2014, 12:46:39 am »
Can you post your fstab?
keep it simple

Offline nulldigit

  • Serf
  • *
  • Posts: 28
  • Cookies: -2
  • syntax sugar om nom
    • View Profile
Re: Arch autofs
« Reply #4 on: July 13, 2014, 04:44:31 am »
No need. I removed it from fstab and mount it myself on reboot. I haven't had a problem since turning the energy star stuff off. I have 2 external hdds now and no problems at all.
N/A