problem from resizing Ubuntu.vmx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem from resizing Ubuntu.vmx

2,106 Views
HuiShao
Fresh Out Contributor

Working under virtual machine shipped with QSB DVD, virtual hardisk file Ubuntu.vmx quickly was ran out of disk space. Tried to resize the harddisk space by "virtual machin settings -> harddisk -> utilities -> expand" and got 20G more space in guest OS Ubuntu. However, after partition and formating it into ext4, it turns into READ ONLY after mount command.

 

What I did is:

$sudo mount -t ext4 /dev/sda3 /home/lucid/work

 

Plus if I go to modify /etc/mtab to add one more line similar to "/dev/sda1", it is gone after reboot.

 

Can anybody help on that? I would be ideal if I can re-size root partition directly.

Labels (1)
0 Kudos
Reply
3 Replies

2,042 Views
HuiShao
Fresh Out Contributor

thanks! Guys.

 

I have to change onwership of /home/lucid/work from root to lucid by

sudo chown lucid:lucid /home/lucid/work

 

Then it ends up writtable.

0 Kudos
Reply

2,042 Views
Yuri
NXP Employee
NXP Employee

You may to to use option remount :

mount -o remount,rw /dev/sda1 /home/lucid/work

0 Kudos
Reply

2,042 Views
PaulRobertson
Contributor I

I have not tried this.  So you will understand these "offerings" are just brainstorming:

   1) Although read/write is supposed to be the default, it seems possible you could add the -w option (or -o rw).

   2) Check the mode/owner of the directory /home/lucid/work and make sure that isn't set to preclude writing.

hth,

pr

0 Kudos
Reply