<br><br><div class="gmail_quote">On Wed, Mar 12, 2008 at 5:48 PM, Fajar Priyanto <<a href="mailto:fajarpri@cbn.net.id">fajarpri@cbn.net.id</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wednesday 12 March 2008 11:47:33 Hemant Bist wrote:<br>
> Hi,<br>
> I recently bought a Maxtor onetouch extenal USB drive 500GB for backup for<br>
> my ubuntu dapper system.<br>
> Every morning the backup script fails because it has problem in accessing<br>
> the drive. Once I manually remount(sudo umount /dev/sda1; sudo mount<br>
> /dev/sda1) the drive and restart backup it works fine.<br>
> Has anyone seen this problem before? Any workarounds for this?<br>
<br>
</div>Maybe the auto-sleep disconnect the drive? Is there any related messages<br>
in /var/log/syslog?<br>
<br>
As a work around you can set a crontab to prevent the drive from sleeping,<br>
maybe a 'ls -l /var/backup' for every 10 minutes.</blockquote><div>Hey,<br><br>I agree it sounds like a sleep issue, but this solution seems like overkill, <br>if this is the only time it is an issue why not add the remount to the start <br>
of the backup script?<br>You _may_ be able to run `sudo mount -o remount /dev/sda1` instead of <br>the two separate commands.<br>If you don't want to have to enter a sudo password and also don't want to <br>give blanket nopasswd access to mount then write your remounts in a script,<br>
chown root; chmod 744; then add permissions for the script to you sudoers.<br><br>cheers,<br>Owen.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br><br>