Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Auto mount drive on connect & and spindown on iddle
Auto mount drive on connect & and spindown on iddle
Hi!
I have USB external hard drive that before I have Bubba was connected to my Win desktop PC. Now I connected them to Bubba without problem by using Admin Web interface.
But of course I would like to do that on reboot. So I found descriptions about automount.
But I would like to make it so that outomount also happens when I disk hardware is connected. In my case that disk is enough noisy - so I would like to switch them off and then switch back without touching admin web interface.
Probably another economich solution could be spin down on inactivity - is it possible on USB disks?
I have USB external hard drive that before I have Bubba was connected to my Win desktop PC. Now I connected them to Bubba without problem by using Admin Web interface.
But of course I would like to do that on reboot. So I found descriptions about automount.
But I would like to make it so that outomount also happens when I disk hardware is connected. In my case that disk is enough noisy - so I would like to switch them off and then switch back without touching admin web interface.
Probably another economich solution could be spin down on inactivity - is it possible on USB disks?
Last edited by janeks on 28 Sep 2008, 13:43, edited 1 time in total.
Found myself:
First make directory where your usb drive will be mounted. I made usb_h in /home/storage/extern
Give apropriate permissions by chmod.
Find your USB volume label:
Add into /etc/fstab (f.ex. nano /etc/fstab) follwing line:
But it works only for boot time, when HD is disconected or switched off then it does not automount.
First make directory where your usb drive will be mounted. I made usb_h in /home/storage/extern
Give apropriate permissions by chmod.
Find your USB volume label:
Code: Select all
ls /dev/disk/by-label -lah
Code: Select all
LABEL=your_label /home/storage/extern/usb_h your_disktype auto 0 0
Allready tried - unsuccesfuly.hdparm may be able to spin it down

Gave some kind of incompatibility error.
Also tried one spindown utility - accepts command, but no result.
Now I am trying spindown from:
http://code.google.com/p/spindown/
But I hooked on makeing when got following problem:
make: g++: Command not found
But I have GCC...
How to correctly give permissions for attached USB drive
Hi!
How to correctly give permissions for attached USB drive?
Is it fstab, mount point or disk (/dev/sdb1)?
I tried permision commands on mount point but nothing happens when disk is mounted.
Now mu usb disk is readonly, but I would like also write access.
Thanks in advance!
How to correctly give permissions for attached USB drive?
Is it fstab, mount point or disk (/dev/sdb1)?
I tried permision commands on mount point but nothing happens when disk is mounted.
Now mu usb disk is readonly, but I would like also write access.
Thanks in advance!
Spindown solved
Solved by using Spindown daemon from:
http://code.google.com/p/spindown/
Also from there I learn correct command for spinning down (at least for my Buffalo drive station external disk):
Note: This is good only for external HD, that you don't use frequently. Too often spindowns/ups will short life of your HD.
http://code.google.com/p/spindown/
Also from there I learn correct command for spinning down (at least for my Buffalo drive station external disk):
Code: Select all
sg_start --stop /dev/sdb1
Thanks!
FWIW, I recently tried enabling the auto-spindown built into the kernel driver, but couldn't get it to work. Whereas "sg_start 0 /dev/sdb" works fine to spin down. Spin-up is automatic, i.e. on first access to the drive. Great.
Using just the sg_start command, you could even simply add a periodic crontab entry to spin disks down, e.g. at night.
-jcw
FWIW, I recently tried enabling the auto-spindown built into the kernel driver, but couldn't get it to work. Whereas "sg_start 0 /dev/sdb" works fine to spin down. Spin-up is automatic, i.e. on first access to the drive. Great.
Using just the sg_start command, you could even simply add a periodic crontab entry to spin disks down, e.g. at night.
-jcw