problem from resizing Ubuntu.vmx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

problem from resizing Ubuntu.vmx

2,069 次查看
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.

标签 (1)
0 项奖励
回复
3 回复数

2,005 次查看
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 项奖励
回复

2,005 次查看
Yuri
NXP Employee
NXP Employee

You may to to use option remount :

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

0 项奖励
回复

2,005 次查看
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 项奖励
回复