Cant create virtual harddisk in home folder

Asked by HASHIR

in VirtualBox i cant create virtual hard disk in home folder, I don't have any other folders, please help me to solve issue

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
delance
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

df -h

Thanks

Revision history for this message
delance (olivier-delance) said :
#2

What's the error message ?
Can you give the output of:
  ll -d $HOME

Revision history for this message
HASHIR (h2hashir) said :
#3

Failed to create the hard disk storage Win XP.vdi.
Could not create the directory '/home/hashir/.VirtualBox/HardDisks' (VERR_ACCESS_DENIED).
Details:

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
VirtualBox
Interface:
IVirtualBox {2158464a-f706-414b-a8c4-fb589dfc6b62}

Revision history for this message
HASHIR (h2hashir) said :
#4

Output for ll -d $HOME

hashir@hashir-laptop:~$ ll -d $HOME
drwxr-xr-x 49 hashir hashir 4096 2010-08-06 14:57 /home/hashir/

Revision history for this message
HASHIR (h2hashir) said :
#5

Output for ll -d $HOME

hashir@hashir-laptop:~$ ll -d $HOME
drwxr-xr-x 49 hashir hashir 4096 2010-08-06 14:57 /home/hashir/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Hashir,
You have failed to give the output of the command I gave
Please do so

Thanks
-Andy

Revision history for this message
delance (olivier-delance) said :
#7

Can you give the output of:
  ll -d /home/hashir/.VirtualBox/
You should have something like "drwxr-xr-x". The four first letters are important.

Revision history for this message
HASHIR (h2hashir) said :
#8

hashir@hashir-laptop:~$ ll -d /home/hashir/.VirtualBox/
drwxr-xr-x 2 root root 4096 2010-08-05 14:11 /home/hashir/.VirtualBox//
hashir@hashir-laptop:~$

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Please open a terminal and type or better copy from here and paste into terminal the row below then press enter:

sudo chown -R $USER.$USER $HOME

the system will ask you a password: give your user password, you will not see nothing when you type it, then press enter

Revision history for this message
HASHIR (h2hashir) said :
#10

The outpu is like this

hashir@hashir-laptop:~$ sudo chown -R $USER.$USER $HOME
chown: cannot access `/home/hashir/.gvfs': Permission denied
hashir@hashir-laptop:~$
hashir@hashir-laptop:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Thats normal.

drwxr-xr-x 2 root root 4096 2010-08-05 14:11 /home/hashir/.VirtualBox/

The file is owned by root, this is usually caused by you running nautilus with sudo instead of gksudo.

You still haven't give the output of:

df -h

Thanks.

Revision history for this message
Best delance (olivier-delance) said :
#12

Please open a terminal and type or better copy from here and paste into terminal the row below then press enter:
         sudo chown -R hashir:hashir $HOME

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#13

So now please try... please close this question marking as solved

Thank you

Revision history for this message
HASHIR (h2hashir) said :
#14

Thanks delance, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

HASIR, do you by any chance run commands lik:

sudo nautilus
and/or
sudo gedit

?