大家好。虽然有很多如何挂载硬盘的帖子。
但我想和我想要的答案还是不一样的。所以写了这个帖子。
昨天我在XP里用WUBI装了UBUNTU 8.04 我有3块硬盘。
1.sata 80GB XP 和UBUNTU
2.sata 320GB 文件
3.ide 120GB(在UBUNTU里不显示)
怎样才可以在UBUNTU里看到这个硬盘呢。
麻烦各位了!
[问题]看不到 硬盘的问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 3
- 注册时间: 2007-12-23 13:06
- dsj
- 帖子: 810
- 注册时间: 2008-08-21 20:26
要先看你这个硬盘未能挂载的信息,如:
具体弹出的信息如下:
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdb1': 操作不支持
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdb1 /media/sdb8 ntfs-3g force 0 0
我采用的就是这个方法
首先如果还没有设立挂载点的话应该先
sudo mkdir /media/sdb8
红字突出的数字写多少都无所谓
然后进行手动挂载
在进行这一步之前要检查你的系统是否有 NTFS-3G 一遍来说在7.10以上的版本都应该有,如果没有的话
sudo apt-get install ntfs-3g
下一步进行挂载
sudo mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force
这样手工挂载就成功了。
具体弹出的信息如下:
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdb1': 操作不支持
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdb1 /media/sdb8 ntfs-3g force 0 0
我采用的就是这个方法
首先如果还没有设立挂载点的话应该先
sudo mkdir /media/sdb8
红字突出的数字写多少都无所谓
然后进行手动挂载
在进行这一步之前要检查你的系统是否有 NTFS-3G 一遍来说在7.10以上的版本都应该有,如果没有的话
sudo apt-get install ntfs-3g
下一步进行挂载
sudo mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force
这样手工挂载就成功了。
- dsj
- 帖子: 810
- 注册时间: 2008-08-21 20:26
让系统开机时自动挂载磁盘具体方法:
查询磁盘uuid
ls -al /dev/disk/by-uuid
总用量
0drwxr-xr-x 2 root root 120 2008-05-03 08:02 .
drwxr-xr-x 5 root root 100 2008-05-03 08:02 ……
rwxrwxrwx 1 root root 10 2008-05-03 08:02 084C-084D -> ……/……/sda4
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 93b32f8a-9284-455c-9e68-319d38f7970f -> ……/……/sda3
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 ea5e6210-b4c9-45e5-b6c4-f904156d3954 -> ……/……/sda1
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 ffe6dd79-73c0-4d9f-8b8c-7ec1036ee270 -> ……/……/sda2
挂载基本原理:
使用mount挂载/dev下的某设备到/media下
类似于ln -s命令
例如,我/dev下的磁盘有4块,分别是
sda1 swap
sda2 /home
sda3 /
sda4 fat32
那么我就需要
mount /dev/sda4 /media/disk
这样就挂载上了
但是如果要把这个命令写到/etc/fstab里,让系统自己识别并挂载呢?
可以加入一行
/dev/sda4 /media/disk vfat user,auto,umask=002,gid=1000,utf8 0 0
其中,vfat是指fat32格式 ,utf8是编码格式,umask是指定访问权限,gid是我的用户id .
使用uuid格式写成
UUID=084C-084D /media/disk vfat user,auto,umask=002,gid=1000,utf8 0 0
如果是ntfs格式挂载的磁盘应该写成(参考)
UUID=084C-084D /media/disk ntfs user,nls=utf8,umask=0222,gid=1000,auto 0 0
查询磁盘uuid
ls -al /dev/disk/by-uuid
总用量
0drwxr-xr-x 2 root root 120 2008-05-03 08:02 .
drwxr-xr-x 5 root root 100 2008-05-03 08:02 ……
rwxrwxrwx 1 root root 10 2008-05-03 08:02 084C-084D -> ……/……/sda4
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 93b32f8a-9284-455c-9e68-319d38f7970f -> ……/……/sda3
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 ea5e6210-b4c9-45e5-b6c4-f904156d3954 -> ……/……/sda1
lrwxrwxrwx 1 root root 10 2008-05-03 08:02 ffe6dd79-73c0-4d9f-8b8c-7ec1036ee270 -> ……/……/sda2
挂载基本原理:
使用mount挂载/dev下的某设备到/media下
类似于ln -s命令
例如,我/dev下的磁盘有4块,分别是
sda1 swap
sda2 /home
sda3 /
sda4 fat32
那么我就需要
mount /dev/sda4 /media/disk
这样就挂载上了
但是如果要把这个命令写到/etc/fstab里,让系统自己识别并挂载呢?
可以加入一行
/dev/sda4 /media/disk vfat user,auto,umask=002,gid=1000,utf8 0 0
其中,vfat是指fat32格式 ,utf8是编码格式,umask是指定访问权限,gid是我的用户id .
使用uuid格式写成
UUID=084C-084D /media/disk vfat user,auto,umask=002,gid=1000,utf8 0 0
如果是ntfs格式挂载的磁盘应该写成(参考)
UUID=084C-084D /media/disk ntfs user,nls=utf8,umask=0222,gid=1000,auto 0 0