| Linux Forum Index » Linux Setup » working directory... |
|
Page 1 of 1 |
|
| Author |
Message |
| jackassplus... |
Posted: Thu Oct 22, 2009 4:00 am |
|
|
|
Guest
|
I have a process that I started while in /mnt/usb (though the data
isn't in that directory). I can't unmount the volume. Is there a way
to move the working directory of the process to another directory?
It's a mysql instance that I expect to run for the next week or so
chewing on a huge dataset. I'd rather not kill the process. I don't
mind stopping it for a short period of time (^Z) if that will help. |
|
|
| Back to top |
|
|
|
| The Natural Philosopher... |
Posted: Thu Oct 22, 2009 8:47 am |
|
|
|
Guest
|
jackassplus wrote:
Quote: I have a process that I started while in /mnt/usb (though the data
isn't in that directory). I can't unmount the volume. Is there a way
to move the working directory of the process to another directory?
It's a mysql instance that I expect to run for the next week or so
chewing on a huge dataset. I'd rather not kill the process. I don't
mind stopping it for a short period of time (^Z) if that will help.
Oh dear.
I suspect you are cattled.
I know of no way personally.
Perhaps someone else does. |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia... |
Posted: Fri Oct 23, 2009 11:42 am |
|
|
|
Guest
|
On Oct 22, 10:47 am, The Natural Philosopher <t... at (no spam) invalid.invalid>
wrote:
Quote: jackassplus wrote:
I have a process that I started while in /mnt/usb (though the data
isn't in that directory). I can't unmount the volume. Is there a way
to move the working directory of the process to another directory?
It's a mysql instance that I expect to run for the next week or so
chewing on a huge dataset. I'd rather not kill the process. I don't
mind stopping it for a short period of time (^Z) if that will help.
Oh dear.
I suspect you are cattled.
I know of no way personally.
Perhaps someone else does.
You're cattled. You might try to plug in another USB device and rsync
or 'cp -a' the contents of your first device to the second device,
then remove that. |
|
|
| Back to top |
|
|
|
| Doug Freyburger... |
Posted: Fri Oct 23, 2009 12:28 pm |
|
|
|
Guest
|
The Natural Philosopher wrote:
Quote: jackassplus wrote:
I have a process that I started while in /mnt/usb (though the data
isn't in that directory). I can't unmount the volume. Is there a way
to move the working directory of the process to another directory?
It's a mysql instance that I expect to run for the next week or so
chewing on a huge dataset. I'd rather not kill the process. I don't
mind stopping it for a short period of time (^Z) if that will help.
Oh dear.
I suspect you are cattled.
Yup.
Is it a cheap USB stick? Get another, pop it in, use cpio or tar to
copy the contents of the stuck one, remove the new one. The same
process works for an expensive drive but costs more dollars. |
|
|
| Back to top |
|
|
|
| Wanna-Be Sys Admin... |
Posted: Thu Oct 29, 2009 12:54 pm |
|
|
|
Guest
|
The Natural Philosopher wrote:
Quote: jackassplus wrote:
I have a process that I started while in /mnt/usb (though the data
isn't in that directory). I can't unmount the volume. Is there a way
to move the working directory of the process to another directory?
It's a mysql instance that I expect to run for the next week or so
chewing on a huge dataset. I'd rather not kill the process. I don't
mind stopping it for a short period of time (^Z) if that will help.
Oh dear.
I suspect you are cattled.
I know of no way personally.
Perhaps someone else does.
The OP stated they didn't need the data on the mounted directory, so
everyone's mention that they are screwed until they copy data is
probably not correct. Anyway, if a forced umount doesn't do the trick,
as others have mentioned, you need to put in a new USB stick and then
umount it. Then restart MySQL.
--
Not really a wanna-be, but I don't know everything. |
|
|
| Back to top |
|
|
|
|