Thanks for the help and info.

I hadn't been unmounting before removing. Too used to the MS plug and pull world I guess (though I guess it causes problems there as well) and i figured that the auto mounting would also do auto dismounting (not very well thought through I know....). I will make sure that in the future I do and that its included in the backup script.

Wow. Not used to learning so much on a firday afternoon.... Time to head home. Thanks all for the help.

Nathaniel



----Original Message Follows----
From: "Stephen J. Gowdy" <[EMAIL PROTECTED]>
Reply-To: "Stephen J. Gowdy" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [email protected]
Subject: Re: [Linux-usb-users] Writing to USB2 HD at more than 1.2 mb/s
Date: Thu, 9 Feb 2006 23:05:04 -0800 (PST)

With the sync option it writes everything you send before writing the next
thing. This is really inefficent which is why it is so slow. The risk is
that if you do just pull the cable you can loose data that is hanging
around in a memory cache. If you umount (you always do that, right?) the
filesystem it will do a sync before the prompt returns, then you can pull
the cable out.

On Fri, 10 Feb 2006, Nathaniel Staples wrote:

> Greg
>
> Removing sync from the usbmount.conf file seems to have solved the problem > but I have no idea why! (and would be very interested in knowing) Especially
> after reading the message in the file :
>
> # WARNING!  Removing "sync" from the options is a very bad idea and
> # might result in severe data loss.
>
> I also get more feed back doing a copy now than I used to.
>
> #sudo time cp /srv/userdata/nathaniels/home/comtel.myo /media/usb0/
> 0.06user 1.91system 0:15.13elapsed 13%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (0major+164minor)pagefaults 0swaps
>
> Whats with the minor pagefaults anything to worry about?
> Any other side effects of takig sync out of that options list beside the
> need for a manual (or scripted) sync before pulling the drive?
>
> Nathaniel
>
>
> ----Original Message Follows----
> From: Greg KH <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: [Linux-usb-users] Writing to USB2 HD at more than 1.2 mb/s
> Date: Thu, 9 Feb 2006 21:22:44 -0800
>
> On Fri, Feb 10, 2006 at 02:54:35PM +1000, Nathaniel Staples wrote:
>  > This is causing me me a lot of frustration.
>  >
> > Am trying to get some external hard disks to work properly under Ubuntu > > 5.10. After much screwing around (for some reason they included very old > > usbmount packages) I have managed to get them to auto mount correctly and > > the there is no problem at all with the read speed (25 mb/s) But I cant
> get
> > it to write at more than 1.2 mb/s. I have recently taken over management
> of
>  > the system and these hds were supposedly being to used for nightly
> backups
> > for the last year or so (they weren't even formatted). The system is used
>  > as a samba file server and has no graphical interface installed.
>  >
>  > usbtree shows that it is connected as a USB2 device (480 mb/s), hdparm
> > gives 26 mb/s reads and practical tests with time show the same. I didn't > > notice a problem until I tried a manual run of my backups script and it > > took over 30 hours (started it on Friday afternoon). Haven't found a tool > > to test write speeds but practical tests with time are showing only 1.2 > > mb/s. Obviously this isn't going to help me much when I have over 150g of
>  > data to backup every night.
>  >
>  > They are currently formatted ext3. I tested one formatted ntfs on a
> windows
>  > computer and there was no problems with the transfer rates either
> direction.
>
> What kernel version are you using?
>
> What is the output of 'mount' with the disk plugged in?  Are you sure
> the "sync" option isn't enabled for your disk?
>
> thanks,
>
> greg k-h
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> [email protected]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>

--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | SLAC, MailStop 34,       |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
|http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
|EMail: [EMAIL PROTECTED]       | Tel: +1 650 926 3144     |
 \------------------------------------+-------------------------/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to