| 導購 | 订阅 | 在线投稿
分享
 
 
 

mount問答之一 linux 挂裝

來源:互聯網網民  2006-12-17 09:48:20  評論

mount問答之一 linux 挂裝

mount問答之一 linux 挂裝 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

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
mount問答之一 linux 挂裝 mount問答之一 linux 挂裝 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
󰈣󰈤
王朝萬家燈火計劃
期待原創作者加盟
 
 
 
>>返回首頁<<
 
 
 
 
 
 熱帖排行
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有