NFB
Posts: 5
Joined: Thu Jan 28, 2016 12:59 pm

Unable to delete directory

Wed Oct 26, 2016 12:07 pm

Well Now... thought following the guide on booting an RPI3 from a USB stick should be straightforward. Nope.
Followed the instructions to the letter and it never worked it has just left me with a directory ,"091c1e96-1ff1-4e62-980e-5d1193cf7ae4". It contains all the root files but no matter what I cannot change the permissions neither can I delete it, no permission. Does anyone have a suggestion please? :oops:

ewaller
Posts: 32
Joined: Tue Oct 04, 2016 5:24 pm

Re: Unable to delete directory

Wed Oct 26, 2016 5:39 pm

Where is that directory? ( / /home ~ )
if, if, if you know you really want to get rid of that directory, you could use
sudo rm -rf 091c1e96-1ff1-4e62-980e-5d1193cf7ae4

BUT. That is a dangerous command if you type it wrong. The -rf means recursive and to force it. sudo says you have root's permissions and to treat you like $DEITY

User avatar
karrika
Posts: 1275
Joined: Mon Oct 19, 2015 6:21 am
Location: Finland

Re: Unable to delete directory

Wed Oct 26, 2016 6:06 pm

Before you decide to delete it you could have a look if it is a mount point.

In bash:

Code: Select all

mountpoint 091c1e96-1ff1-4e62-980e-5d1193cf7ae4
If it happens to be a mountpoint you should not delete it but unmount it instead.

Code: Select all

sudo umount 091c1e96-1ff1-4e62-980e-5d1193cf7ae4
My guess is that this lives in /media/pi/091c1e96-1ff1-4e62-980e-5d1193cf7ae4 and it happens to by the removable disk itself.

ewaller
Posts: 32
Joined: Tue Oct 04, 2016 5:24 pm

Re: Unable to delete directory

Wed Oct 26, 2016 6:28 pm

karrika wrote:Before you decide to delete it you could have a look if it is a mount point....
My guess is that this lives in /media/pi/091c1e96-1ff1-4e62-980e-5d1193cf7ae4 and it happens to by the removable disk itself.
That is an excellent point.

NFB
Posts: 5
Joined: Thu Jan 28, 2016 12:59 pm

Re: Unable to delete directory

Thu Oct 27, 2016 12:01 pm

mountpoint 091c1e96-1ff1-4e62-980e-5d1193cf7ae4
gives no such file or directory.
I should have mentioned in my original post that I have both formatted the USB Drive and sd card, even tried a new SD card.
I wonder if this resides in the rom?

NFB
Posts: 5
Joined: Thu Jan 28, 2016 12:59 pm

Re: Unable to delete directory

Thu Oct 27, 2016 12:06 pm

ewaller wrote:
karrika wrote:Before you decide to delete it you could have a look if it is a mount point....
My guess is that this lives in /media/pi/091c1e96-1ff1-4e62-980e-5d1193cf7ae4 and it happens to by the removable disk itself.
That is an excellent point.
Yes that is where it resides but will not umount.

jbudd
Posts: 1500
Joined: Mon Dec 16, 2013 10:23 am

Re: Unable to delete directory

Thu Oct 27, 2016 1:18 pm

I suspect that if you run the command "mount" it will list, along with lots of other filesystems, something like
/dev/sda1 mounted on /media/pi/boot
/dev/sda2 mounted on /media/pi/091c1e96-1ff1-4e62-980e-5d1193cf7ae4

In which case, the command to unmount them would be
sudo umount /dev/sda1 /dev/sda2

But it will not let you unmount a filesystem if it is in use

NFB
Posts: 5
Joined: Thu Jan 28, 2016 12:59 pm

Re: Unable to delete directory

Thu Oct 27, 2016 2:52 pm

jbudd wrote:I suspect that if you run the command "mount" it will list, along with lots of other filesystems, something like
/dev/sda1 mounted on /media/pi/boot
/dev/sda2 mounted on /media/pi/091c1e96-1ff1-4e62-980e-5d1193cf7ae4

In which case, the command to unmount them would be
sudo umount /dev/sda1 /dev/sda2

But it will not let you unmount a filesystem if it is in use
Well that seems to unmount but, power pi off, remove stick, reboot and no stick. Power off, insert stick and power on and Lo! there is my unwanted directory or mount point whatever it is.

hxmuller
Posts: 8
Joined: Tue Oct 25, 2016 1:57 pm

Re: Unable to delete directory

Thu Oct 27, 2016 3:11 pm

Note that I am not an expert with either LXDE nor PCManFM, but I believe PCManFM is configured to automatically mount USB storage devices. You can change this behavior by opening the file manager, PCManFM. Navigate to Edit > Preferences > Volume Management. Then you probably need to uncheck both:

- 'Mount mountable volumes automatically on program start-up'
- 'Mount removable media automatically when they are inserted'

NFB
Posts: 5
Joined: Thu Jan 28, 2016 12:59 pm

Re: Unable to delete directory

Thu Oct 27, 2016 5:04 pm

NFB wrote:Well Now... thought following the guide on booting an RPI3 from a USB stick should be straightforward. Nope.
Followed the instructions to the letter and it never worked it has just left me with a directory ,"091c1e96-1ff1-4e62-980e-5d1193cf7ae4". It contains all the root files but no matter what I cannot change the permissions neither can I delete it, no permission. Does anyone have a suggestion please? :oops:
The bigger the problem the easier the answer!
When I tried to make the Pi3 boot from USB I made an EXT4 partition with the boot files on. That was my wierd and wonderful problem. Format the stick to its full 8GB and the mountpoint goes away.
All I can say is that some mothers have some dull kids, but thanks all for your help'

Return to “Troubleshooting”