热门关键字:  ubuntu  分区  Fedora  linux系统进程  函数

mount问答之一 linux 挂装

来源: 作者: 时间:2007-08-15 Tag: 点击:

mount问答之一

本站 null

〖返回〗〖转发〗

Q:为什么我的软驱MOUNT不上? 

A:在LINUX中MOUNT命令是将某个文件系统挂在主目录中,所以不是将软驱MOUNT上
去,而是将软盘MOUNT上去,也就是说在MOUNT时软驱中必须有软盘!

A:请试试: 
mount -t msdos /dev/fd0 /mnt/floppy 
mount -t ext2 -r /dev/fd0 /mnt/floppy 

A:其实放进软盘后,直接mount /mnt/floppy就可以了!

A:In fact I''''d like to modify the poor fants in my Netscape (Chinese, 
of cause). I found a small software(the name is XFont Generator) 
which can convert the fonts in M$ Windows to X Window, so I converted 
some fonts and saved in floppy disk, so that led to the problem that 
RedHat could not get the resource of *.bdf file. But now this problem 
has been solved. I used mtools to solve this problem: 
# mdir a: --check the files in my floppy 
# mcopy a:/song12.bdf /usr/games/song12.bdf 
# bdftopcf /usr/games/song12.bdf | gzip -c > song12.pcf.gz 
# cp song12.pcf.gz /usr/X11R6/lib/X11/fonts/misc 
# mkfontdir /usr/X11R6/lib/X11/fonts/misc 
song12.bdf is the font I converted through XFont Generator. Forgive 
me I am really a beginner I stored the song12.bdf to /usr/games! I 
really do not know where to put it is better. 
Now the Chinese in my NetScape is much better than before. I should 
thank you all for your kindly help. I really have learnt a lot from 
all of you. 
==============================================================
Q:敲入“mount/dev/fd0/ /mnt/floppy后显示出“you must specify the filesystem type”,为什么?

A:作为可移动介质, 它的文件系统是多样的, 所以如果 
您不指定文件系统, mount如今是还没有办法判断的. 
mount还没有智能化到那种程度. 一般来讲大家都是 
使用M$的fat格式为多, 所以这种情况下的语法命令 
应该是`mount -t vfat /etc/fd0 /mnt/floppy 
一劳永逸的做法是修改/etc/fstab文件. 你自己看 
一下就会很容易理解的. 就是这么一句话: 
/dev/fd0 /mnt/floppy vfat noauto 0 0 
以后使用来自MicroSoft平台格式化的软盘, 直接敲入 
mount /mnt/floppy就可以挂载vfat的软盘啦. 
==============================================================
我试图将一个普通档案 mount 成 filesystem 。我看了 man mount 及 
man losetup 。於是我照了上面所说的步骤来做,结果如下: 
man losetup 说,我可以: 
dd if=/dev/zero of=/file bs=1k count=100 
losetup -e des /dev/loop0 /file 
Password: 
Init (up to 16 hex digits): 
mkfs -t ext2 /dev/loop0 100 
mount -t ext2 /dev/loop0 /mnt 
...               
umount /dev/loop0 
losetup -d /dev/loop0 
我照做了,结果却是: 
dd if=/dev/zero of=/file bs=1k count=100 
losetup -e des /dev/loop0 xx 
Password: 
Init (up to 16 hex digits): 
ioctl: LOOP_SET_STATUS: Invalid argument 
看样子,似乎是我的 kernel 少了些什麽东东 (ps 我的 kernel 中已将 
loopback device 做成 module 了) 。我想请问的是, losetup 
的 -e option 中, des 及 xor 到底是什麽意思? 而在使用 -e des 
时, losetup 又问我 Init: ,那又是什麽意思? 
以上的办法不成,所以我只好这样试: 
dd if=/dev/zero of=/file bs=1k count=100 
losetup /dev/loop0 xx          ===> 似乎成功了 
mkfs -t ext2 /dev/loop0 100 
mount -t ext2 /dev/loop0 /mnt 
结果就 mount 成功了==========================================================
Q:文章说:mount/dev/had1/mnt命令就可以把win98分区挂到/mnt文件夹中,我却不
成功,why? 
thanks
 
A:你说的文件没将概念说明白, 所以, 你不知道如何正确mount 
是这样子的: 
首先你必须知道泥win98所在的分区, 例如是/dev/hda1之类的, 
然后建一个目录,例如 mkdir /mnt/win98 
然后使用mount命令: mount /dev/hda1 /mnt/win98 
有必要的话, 你还必须指明文件系统类型. 另外, 你必 
===========================================================
Q:
Linux如何mount NetWare分区?如何访问NOVELL服务器?谢谢 

A:
At 03/22/00 10:41 PM, zhang wrote: 
>Linux如何mount NetWare分区? 
>如何访问NOVELL服务器?谢谢 
you should installed ncpfs ( a software package that include IPX/SPX 
protocol) 
then you can use some commands like ncpmount to mount the NetWare 
partition( sorry, i forget the exact command, so you should read the 
help document yourself) 
but there is something unhappy for us, the owner of this package has 
just builded this software from NetWare 3.1, and hasn''''t tested it in 
NetWare 4.11, I have tried to ncpmount a NetWare partition in my 
office which use 4.11, and it happens that i am visiting the right 
server but it could not let me in although i give the correct 
password.:-( 
=====================================================

整理:iamafan




相关文章:
Scaling out MySQL - Hardware today and tomorro
MySQL教会我使用GnuPG验证软件包
MySQL中MyISAM引擎与InnoDB引擎性能简单测试
mysqladmin在线帮助文档
install a MySQL source distribution
Mysql备份脚本(未验证)
每小时Dump所有mysql数据库到NAS存储设备上
MySQL数据库5.0的my.cnf配置选项
MYSQL建表实例
一些对Mysql DBA有用的脚本
MySql数据引擎简介与选择方法
通向MySQL神秘王国的图形化之路
mysql 中show 命令用法详细介绍
Linux自动备份MySQL数据库 实用方法
如何导入导出MySQL数据库
MySQL创始人力劝用户暂缓部署MySQL 5.1
mysql权限管理
Mysql自动备份脚本
升级mysql
mysql日志
MySql带参数的存储过程编写(动态执行SQL语句)
ERROR 1045 (28000): Access denied for 报错解决
sql优化
配置源码安装的MySQL同时支持多个字符集
MySQL数据表类型 数据类型
sql文件无法读取
mysql 中如何进行IP地址的存放
正在表达式在mysql中的使用
sql mode
linux安装mysql可执行安装包