Re: Graceful Shutdown of USB drives.

2010-06-04 Thread Charles Curley
On Fri, 4 Jun 2010 10:09:52 -0700 Von Fugal wrote: > Just a thought, but maybe the difference with "Safely remove drive" > (besides that it spins down) is that it unmounts all filesystems on > the device, making it safe to remove the device as a whole, rather > than unmounting what may or may not

Re: Graceful Shutdown of USB drives.

2010-06-04 Thread Michael Torrie
On 06/04/2010 11:09 AM, Von Fugal wrote: > Just a thought, but maybe the difference with "Safely remove drive" > (besides that it spins down) is that it unmounts all filesystems on the > device, making it safe to remove the device as a whole, rather than > unmounting what may or may not be the last

Re: Graceful Shutdown of USB drives.

2010-06-04 Thread Von Fugal
Just a thought, but maybe the difference with "Safely remove drive" (besides that it spins down) is that it unmounts all filesystems on the device, making it safe to remove the device as a whole, rather than unmounting what may or may not be the last FS left mounted on the device. Von Fugal -- Do

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Nicholas Leippe
It's predecesor tux2 was killed because of a patent threat that didn't even apply. It had gained traction and momentum, then got squashed. It almost feels like the momentum taken out of tux2 was also taken out of tux3 before it was even conceived. /* PLUG: http://plug.org, #utah on irc.freenode.ne

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Nicholas Leippe
On Mon, May 31, 2010 at 9:48 PM, Charles Curley wrote: >> You may still lose data, but with a decent filesystem, it will not >> come back on in a scrambled state despite pulling the power on it. >> One of the reasons I wish tux3 will come to fruition, is that it's not >> even journalled, yet it pr

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Charles Curley
On Mon, 31 May 2010 21:19:21 -0600 Nicholas Leippe wrote: > I recall back in the day when you had finer control over the hard > disks. You could low-level format. You could explicitly park the > heads. But, we didn't have journalling filesystems either. I remember when Seagate came out with the

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Nicholas Leippe
I recall back in the day when you had finer control over the hard disks. You could low-level format. You could explicitly park the heads. But, we didn't have journalling filesystems either. You may still lose data, but with a decent filesystem, it will not come back on in a scrambled state despite

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Stuart Jansen
On Mon, 2010-05-31 at 17:09 -0600, Charles Curley wrote: > Right. But pulling the cable without doing a umount could get messy. Uh huh. Sure. Whatever. Next you're going to tell me that yanking the power cord out in the middle of my reply is a bad ide EOL /* PLUG: http://plug.org, #utah on i

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Charles Curley
On Mon, 31 May 2010 16:46:20 -0600 Michael Torrie wrote: > I think you are incorrect about your idea that there's an unsafe way > to unmount the disk. Whenever you unmount a disk, before the command > returns, an implicit sync happens. Once the umount command finishes, > it's safe to remove the

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Michael Torrie
On 05/31/2010 04:27 PM, Charles Curley wrote: > Close. The sync is a good idea, though. I got smart on my googling and > found what I was looking for. Should anyone else care: > > http://www.charlescurley.com/blog/ > > or > > http://www.charlescurley.com/blog/archives/2010/05/31/shutting_down_us

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Charles Curley
On Mon, 31 May 2010 13:22:42 -0600 Nicholas Leippe wrote: > probably something like: > > sync && hdparm /dev/sdX --idle-unload && hdparm /dev/sdX -Y Close. The sync is a good idea, though. I got smart on my googling and found what I was looking for. Should anyone else care: http://www.charlesc

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Nicholas Leippe
On Mon, May 31, 2010 at 1:22 PM, Nicholas Leippe wrote: > probably something like: > > sync && hdparm /dev/sdX --idle-unload && hdparm /dev/sdX -Y > > If you know what command your desktop option runs, you may be able to > find the command that it's invoking by searching the output of running > th

Re: Graceful Shutdown of USB drives.

2010-05-31 Thread Nicholas Leippe
probably something like: sync && hdparm /dev/sdX --idle-unload && hdparm /dev/sdX -Y If you know what command your desktop option runs, you may be able to find the command that it's invoking by searching the output of running the binary through strings, or by replacing it with a wrapper script th

Graceful Shutdown of USB drives.

2010-05-31 Thread Charles Curley
I notice that when I simply umount a USB drive, it stays powered up until I unplug it. On the Gnome desktop, I can right click on a drive's icon. There are two options in the menu, "unmount" and "safely remove drive". I notice that when I do the latter, I see some activity on the drive for a few s