Go to advanced search

by magicBanan3
Fri Mar 20, 2020 9:46 am
Forum: General discussion
Topic: Safe ejecting of random USB-Drive
Replies: 6
Views: 301

Re: Safe ejecting of random USB-Drive

PiGraham wrote:
Fri Mar 20, 2020 7:50 am
magicBanan3 wrote:
Fri Mar 20, 2020 6:28 am

What do you mean with "<user>"?
It means the name of the user account. The default for Rasbian is "pi"

So in the example:

Code: Select all

umount /media/pi/*
<user> = pi
Ah okay, I tried in this way: "umount /media/pi/nameOfUsb" and it works, but I still getting the same message.
by magicBanan3
Fri Mar 20, 2020 6:31 am
Forum: General discussion
Topic: Safe ejecting of random USB-Drive
Replies: 6
Views: 301

Re: Safe ejecting of random USB-Drive

Hello Folks, I'm new in the Raspberry Pi World and need your help. I try to eject some USB-drives of my PI with a Pythonsketch, therefore I use those Codes: sudo eject /dev/sda1 sudo umount /media/pi/* sudo eject /dev/sda I think that's your problem. You're unmounting the device *partition* and the...
by magicBanan3
Fri Mar 20, 2020 6:28 am
Forum: General discussion
Topic: Safe ejecting of random USB-Drive
Replies: 6
Views: 301

Re: Safe ejecting of random USB-Drive

jahboater wrote:
Thu Mar 19, 2020 3:42 pm
Please avoid "sudo", it is not needed to unmount your own disk.

I just do:

Code: Select all

sync
umount /media/<user>/xxxx
The sync is probably not needed, but does no harm.

Thank you for your answer!
What do you mean with "<user>"?
by magicBanan3
Thu Mar 19, 2020 3:12 pm
Forum: General discussion
Topic: Safe ejecting of random USB-Drive
Replies: 6
Views: 301

Safe ejecting of random USB-Drive

Hello Folks, I'm new in the Raspberry Pi World and need your help. I try to eject some USB-drives of my PI with a Pythonsketch, therefore I use those Codes: sudo eject /dev/sda1 sudo umount /media/pi/* sudo eject /dev/sda In my opinion those codes are working, because after I use the code I can't fi...

Go to advanced search