Re: External USB hard drive "loosing" connection [Maxtor onetouch]



Hemant Bist wrote:
I will try remounting the drive from the script.[ Its a sbackup
package crontab running as root.]

I also suspect that its due to sleep mode. Could it have something to with
the fact that I reformatted the drive to ext3 from NTFS?

Was the hard drive not mounted? What did the program mkfs.ext3 end
with after it quit?


I found this article claiming that there is no problem with Maxtor drives.[
http://www.engadget.com/profile/1588927/].


Maxtor has a long history of failure. I will never buy one. I buy
only Western Digital because I have a giant 40 MB one I bought in 1985
and it is still good. All the newer ones are good.
Here are the errors I see in syslog.

.


localhost kernel: [174463.681864] sd 1:0:0:0: Device not ready.
localhost kernel: [174463.681885] end_request: I/O error, dev sda, sector
4655

This looks bad. Ubuntu doesn't use sda, it uses hda.

localhost kernel: [174463.687888] Aborting journal on device sda1.
localhost kernel: [175036.945142] ext3_abort called.
localhost kernel: [175036.945164] EXT3-fs error (device sda1):
ext3_journal_start_sb: Detected aborted journal
localhost kernel: [175036.945176] Remounting filesystem read-only

HB


On 3/12/08, Neil <hok.krat@xxxxxxxxx> wrote:

On Wed, Mar 12, 2008 at 5:47 AM, Hemant Bist <hemantbist@xxxxxxxxx> wrote:

Hi,
I recently bought a Maxtor onetouch extenal USB drive 500GB for backup

for

my ubuntu dapper system.
Every morning the backup script fails because it has problem in

accessing

the drive. Once I manually remount(sudo umount /dev/sda1; sudo mount
/dev/sda1) the drive and restart backup it works fine.
Has anyone seen this problem before? Any workarounds for this?

I'd simply start the script with "sudo umount /dev/sda1; sudo mount
/dev/sda1" That is, if it is a bash script. Other types of scripts
would need other commands, or a new script with that and the command
to execute the original script.
If you run the script as root (in the root crontab) it shouldn't even
be necessary to use sudo.
It might even be useful for the harddrive to shut down with the power
consumption.

just my 2 cents

Neil

--
There are two kinds of people:
1. People who start their arrays with 1.
1. People who start their arrays with 0.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users






--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Can "/etc/rc.conf" be replaced with a symlink?
    ... I could and may eventually write a script. ... I do believe that the mount point where I am wanting to ... > Could I maybe place this mount point above the root in fstab? ... You might consider writing a script that will backup ...
    (freebsd-questions)
  • SUMMARY: Backup fails on "permission denied"
    ... the reason backup utilities like "vdump" are able to do ... a "full" backup when run by the root user is that they inherit the root ... script can be set "setuid root" but that doesn't make the script have ...
    (Tru64-UNIX-Managers)
  • Re: Changing Users in a script
    ... Personally if I were writing this then if the script is running as ... root then instead of using 'sudo' here I would use 'su' instead. ... automatically call the generic backup script for that user. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: root privileges from cgi script?
    ... I require for a staff member to be able to initiate a backup script ... > a chain of backup processes. ... > I would welcome any suggestions on how to do two things from a CGI script; ... > I know suex can't be used because ROOT is specifically not allowed. ...
    (comp.unix.shell)
  • Re: External USB hard drive "loosing" connection [Maxtor onetouch]
    ... I will try remounting the drive from the script.[Its a sbackup ... package crontab running as root.] ... I found this article claiming that there is no problem with Maxtor drives.[ ... If you run the script as root it shouldn't even ...
    (Ubuntu)