stefan <
stef...@gmail.com> writes:
> thanks for the answers!
No problem.
> I use nautilus. Now I know what is the problem. I can not safely
> remove some usb flash memory devices.
The reason I've normally found for this is that the drive is "busy". If
you have a shell visiting that drive or a file open on the drive then
you cannot cleanly umount.
> But another question> what is the difference between the eject option
> and safely remove?
I have no idea. I tend to unmount from the desktop where I can right
click on the device icon and select one of the options. I get the eject
options from my android phone, USB memory sticks, and, I believe,
optical disks. I get the safely remove option from my external 1/2TB
USB HDD.
> I wanted to post the error message which appears when I try to safely
> remove the usb drive, but now it works. Will post it next time.
Just in case you didn't know, many times these messages get written to
the file /var/log/messages. I tend to start examining this file with
tail and then combine that with grep if necessary. The man pages for
tail and grep will lead you there but here is a really simple and
incomplete list:
tail <file> will print the last 10 lines of <file>
tail -n <number> <file> will print the last <number> of lines in <file>
grep <string> <file> will find all instances of <string> in <file> and
print the lines to stdout. If piping output to grep the <file> is
unnecessary.
grep -v <string> <file> will print all lines that do NOT match the
<string>
grep -i <string> <file> will find all instances of <string> in <file>
but does so with no regard for case.
Now, we combine for a few examples:
I want to see all instances of the string "acpi" in the last 50 lines of
/var/log/messages without regard for case:
tail -n 50 /var/log/messages | grep -i acpi
which gives this output:
Jul 24 05:59:45 e6410 kernel: [1694002.370218] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
Jul 24 05:59:46 e6410 kernel: [1694003.341070] ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl] (20100428/evregion-474)
Jul 24 05:59:46 e6410 kernel: [1694003.341128] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.ECDV.ECR1] (Node ffff880216c54d80), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341195] ACPI Error (psparse-0537): Method parse/execution failed [\ECBT] (Node ffff880216c54e60), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341227] ACPI Error (psparse-0537): Method parse/execution failed [\ECG2] (Node ffff880216c54f20), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341258] ACPI Error (psparse-0537): Method parse/execution failed [\ECG6] (Node ffff880216c54fe0), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341292] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._BST] (Node ffff880216c565e0), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341332] ACPI Exception: AE_TIME, Evaluating _BST (20100428/battery-442)
Jul 24 05:59:47 e6410 kernel: [1694004.788633] ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl] (20100428/evregion-474)
Jul 24 05:59:47 e6410 kernel: [1694004.788706] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.ECDV.ECW1] (Node ffff880216c54dc0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788781] ACPI Error (psparse-0537): Method parse/execution failed [\ECWB] (Node ffff880216c54ee0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788809] ACPI Error (psparse-0537): Method parse/execution failed [\ECG6] (Node ffff880216c54fe0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788839] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._BST] (Node ffff880216c565e0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788912] ACPI Exception: AE_TIME, Evaluating _BST (20100428/battery-442)
Now, let's exclude instances of the word "Exception"
tail -n 50 /var/log/messages | grep -i acpi | grep -v "Exception"
Jul 24 05:59:45 e6410 kernel: [1694002.370218] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
Jul 24 05:59:46 e6410 kernel: [1694003.341128] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.ECDV.ECR1] (Node ffff880216c54d80), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341195] ACPI Error (psparse-0537): Method parse/execution failed [\ECBT] (Node ffff880216c54e60), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341227] ACPI Error (psparse-0537): Method parse/execution failed [\ECG2] (Node ffff880216c54f20), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341258] ACPI Error (psparse-0537): Method parse/execution failed [\ECG6] (Node ffff880216c54fe0), AE_TIME
Jul 24 05:59:46 e6410 kernel: [1694003.341292] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._BST] (Node ffff880216c565e0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788706] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.ECDV.ECW1] (Node ffff880216c54dc0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788781] ACPI Error (psparse-0537): Method parse/execution failed [\ECWB] (Node ffff880216c54ee0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788809] ACPI Error (psparse-0537): Method parse/execution failed [\ECG6] (Node ffff880216c54fe0), AE_TIME
Jul 24 05:59:47 e6410 kernel: [1694004.788839] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._BST] (Node ffff880216c565e0), AE_TIME
You can search for strings of multiple words by enclosing in quotes.
Perhaps this will help.
Best regards,
rdc