免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1244 | 回复: 0
打印 上一主题 下一主题

Ubuntu下mount windows下的分区 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-10 18:23 |只看该作者 |倒序浏览
最近使用ubuntu遇到问题了,使用wibi自动安装的,好像最大空间只能是30G。现在我vmware下面的ubuntu空间已经不够了,所以才看了下如何mount分区:

在虚拟机ubuntu下想使用windows其它盘的文件。进入ubuntu后,打开终端,
输入:sudo fdisk -l
出现

Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000298fd
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3749    30113811   83  Linux
/dev/sda2            3750        3916     1341427+   5  Extended
/dev/sda5            3750        3916     1341396   82  Linux swap / Solaris
关闭ubuntu,是关机。
在VMware Workstation下点击:VM-->settings,打开Virtual Machine setting,Add-->选Hard Disk,Next:Use a physical disk(for advanced users) ,Next :Use individual partitions,Next:对照空间大小把E、F、G盘的复选框都沟上,Next,Finish,OK。启动Ubuntu。
打开终端,再次输入:sudo fdisk -l

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcceb0fb0
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6374    51199123+  2d  Unknown
/dev/sda2            6375       30394   192940650    f  W95 Ext'd (LBA)
/dev/sda5            6375       19950   109049188+   7  HPFS/NTFS
/dev/sda6           19951       30394    83891398+  2d  Unknown
Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000298fd
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        3749    30113811   83  Linux
/dev/sdb2            3750        3916     1341427+   5  Extended
/dev/sdb5            3750        3916     1341396   82  Linux swap / Solaris

有些的现在就已经mount成功了,但有的机器可能不会成功,应该和软件环境有关。我的就不能mount,提示错误:

[email=root@root]root@root[/email]
:# mount -t ntfs /dev/sda5 /media/windowsD
Incomplete multi-sector transfer: Input/output error
Record 5 has no FILE magic (0x44414142)
Failed to mount '/dev/sda5': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.


这时候可以安装ntfsprogs然后运行ntfsfix
apt-get install ntfsprogs
之后 ntfsfix /dev/sda5

[email=root@root]root@root[/email]
# ntfsfix /dev/sda5
Mounting volume... FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda5 was processed successfully.

OK,mount成功。
在根目录media下面可以看到分区里面的文件了。在桌面上也有一个图标。

可是,问题接着来了,查了资料,你只能从NTFS分区上读数据,不能进行写操作。

超级郁闷,看来还得继续了.

各位如果有现成的方法能够直接增加ubuntu硬盘大小的,请发给我,谢谢。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/105635/showart_2091072.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP