免费注册 查看新帖 |

Chinaunix

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

关于debian挂载分区的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-07 22:16 |只看该作者 |倒序浏览
debian:~# fdisk -l

Disk /dev/sda: 36.7 GB, 36747104256 bytes
64 heads, 32 sectors/track, 35044 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes


4 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        2       502       501       ext2                     
  b:      503      2903      2401       swap                     
  c:     2904      7672      4769       ext2                     
  d:     7673     35044     27372       ext2                     

我是这样写的
mount -t ext2 /dev/sda /usr
但出的结果却是
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
请问怎么啊?

论坛徽章:
0
2 [报告]
发表于 2005-11-07 22:18 |只看该作者
如果你不加类型参数呢?

论坛徽章:
0
3 [报告]
发表于 2005-11-07 22:21 |只看该作者
不行啊
debian:/# mount ext2 /dev/sda3 /usr
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .

论坛徽章:
0
4 [报告]
发表于 2005-11-07 22:22 |只看该作者
mount -t ext2 /dev/sda /usr


/dev/sda ?????
/usr   ??????
什么意思?

论坛徽章:
0
5 [报告]
发表于 2005-11-07 22:23 |只看该作者
原帖由 txl829 于 2005-11-7 22:21 发表
不行啊
debian:/# mount ext2 /dev/sda3 /usr
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted files ...


参数用错!

论坛徽章:
0
6 [报告]
发表于 2005-11-07 22:23 |只看该作者
ext2应该可以直接被识别的,我是说如果不加-t ext2这个参数情况会怎样?

论坛徽章:
0
7 [报告]
发表于 2005-11-07 22:24 |只看该作者
mount: you must specify the filesystem type

论坛徽章:
0
8 [报告]
发表于 2005-11-07 22:25 |只看该作者
它说必须指定文件系统啊

论坛徽章:
0
9 [报告]
发表于 2005-11-07 22:26 |只看该作者
那么,你确定要挂载的文件系统的类型么?

论坛徽章:
0
10 [报告]
发表于 2005-11-07 22:27 |只看该作者
用fdisk -l
Disk /dev/sda: 36.7 GB, 36747104256 bytes
64 heads, 32 sectors/track, 35044 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes


4 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        2       502       501       ext2                     
  b:      503      2903      2401       swap                     
  c:     2904      7672      4769       ext2                     
  d:     7673     35044     27372       ext2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP