Complete and utter stupidity with permissions

Status
Not open for further replies.

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Just out of curiosity should I delete everything here you think and just start everything from new? I think that would probably be the best option?!?

drwxr-xr-x 2 root wheel 18 Jan 31 2015 .VirutalBox.meta/
drwxr-xr-x 3 root wheel 3 Jan 25 2015 .plugins/
drwxr-xr-x 5 root wheel 5 Dec 3 2015 .warden-files-cache/
drwxr-xr-x 17 root wheel 23 Jan 31 2015 .warden-template-VirtualBox-4.3.12/
drwxr-xr-x 18 root wheel 22 Jan 25 2015 .warden-template-pluginjail--x64/
drwxr-xr-x 18 root wheel 22 Dec 3 2015 .warden-template-pluginjail--x64-20151206171428/
drwxr-xr-x 18 root wheel 22 Jul 9 19:09 .warden-template-pluginjail--x64-20160710083033/
drwxr-xr-x 17 root wheel 23 Jan 31 2015 VirutalBox/
Just the items which have VirtualBox in the name. The other stuff is just freenas jails stuff. But if you are doing a complete cleanup of all jails and plugins, then yes, you could delete everything listed above but honestly, I'd do the minimum at first and see if that takes care of your issues.
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
Just the items which have VirtualBox in the name. The other stuff is just freenas jails stuff. But if you are doing a complete cleanup of all jails and plugins, then yes, you could delete everything listed above but honestly, I'd do the minimum at first and see if that takes care of your issues.

Yeah it doesn't really matter to me if I delete everything as the only other plugin I use is plex which takes all of 5 minutes to get going again.

I'm stuck on removing the Jails directory at the moment with this error

"cannot unmount /.warden-template-VirtualBox-4.3.12"

If I can just get my head this then I'm sure I can get this sorted

Thanks for the help!
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
In the GUI, Storage icon, now find the jails directory and delete it. Using the GUI makes things easy.
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
In the GUI, Storage icon, now find the jails directory and delete it. Using the GUI makes things easy.

Yeah tried that and from the gui and cli as well and it always gives me this error

"cannot unmount /.warden-template-VirtualBox-4.3.12"

And I cannot seem to find any way of stopping/unmounting/killing anything to do with Virtualbox

The hunt goes on... :)

I will fix this one way or another
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I know it can be done because I've been there myself many months ago. I just don't want to delete files on my machine to test it out. Did you stop all the jails and VMs? I assume so. Have you gone into a shell and tried remove the files? How about a reboot?

I'm sure you will figure it out. Best of luck to you. Time for me to make dinner, wife on her way home from work.
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
I know it can be done because I've been there myself many months ago. I just don't want to delete files on my machine to test it out. Did you stop all the jails and VMs? I assume so. Have you gone into a shell and tried remove the files? How about a reboot?

I'm sure you will figure it out. Best of luck to you. Time for me to make dinner, wife on her way home from work.

Nar mate don't go deleting files because of my stuff up!! :)

I have fixed the problem but not in the way I would have liked, I just copied all the files off that set of drives destroyed it and recreated it. Thats killed the jail directory!

One thing I have noticed after reinstalling VirtualBox and setting up a test VM to make sure things are working, which they are, And that is I didn't notice straight away a slight mistake in the copying command

cp -R SSVPN/ /mnt/Tank2/jails/VirtualBox/usr/home/vbox/VirtualBox\ VMs/

Which has created a new directory called VirtualBox\ VMs

Instead of

cp -R SSVPN/ "/mnt/Tank2/jails/VirtualBox/usr/home/vbox/VirtualBox VMs/"

I'm a little nervous about trying to delete the second directory called VirtualBox\ VMs is case it stuffs something up again :confused:
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
'\ '

Is an escape for space. Both cmds seem equivalent to me
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
'\ '

Is an escape for space. Both cmds seem equivalent to me

Well there are now 2 directories
1) VirtualBox VMs
2) VirtualBox\ VMs

The first one is obviously the one I want to keep.
 
Last edited:

styno

Patron
Joined
Apr 11, 2016
Messages
466
I'm a little nervous about trying to delete the second directory called VirtualBox\ VMs is case it stuffs something up again :confused:
Now would be a good time to set up a snapshot policy ;)

Also, you can rename that directory first to something less dangerous and without a space in the name. If that goes well you can delete it..

The slash and space is there because of the quotes you used with the cp command, use them in the mv command to rename the directory and you'll be good.
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
Now would be a good time to set up a snapshot policy ;)

Also, you can rename that directory first to something less dangerous and without a space in the name. If that goes well you can delete it..

The slash and space is there because of the quotes you used with the cp command, use them in the mv command to rename the directory and you'll be good.


Dude I have already got the snapshots working, once everything was up and running it was the first thing I did this is never going to happen again! :)

Cracking idea around renaming before deleting the directory thats also taken care of now.

Thanks for the help
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
So all is good again in the Spud world?
 

Spud

Contributor
Joined
Oct 23, 2011
Messages
117
Yep and I can say with full confidence that I'll never make that same mistake again!

Thanks for the help
 
Status
Not open for further replies.
Top