忍不住想问

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
njuptlf
帖子: 3
注册时间: 2007-11-21 16:46

忍不住想问

#1

帖子 njuptlf » 2007-11-22 13:13

安装编译环境我知道是apt-get install build-essential
但我是用硬盘安装的ubuntu,所以没有光盘,那应该怎么装呢?
在校园网,也没法不能上网
怎么能从安装镜像文件中来装这个编译环境呢
头像
用戶無效
帖子: 461
注册时间: 2007-10-23 21:11
来自: 香港

#2

帖子 用戶無效 » 2007-11-22 13:19

mount ubuntu iso to install~
njuptlf
帖子: 3
注册时间: 2007-11-21 16:46

#3

帖子 njuptlf » 2007-11-22 13:31

那我的ubuntu.iso是放在c盘
在ubuntu系统中可以看到windows文件夹就是原来的c盘
怎么在命令中定位这个镜像文件呢
估计不能直接写mount ubuntu.iso to install吧
有劳了!
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#4

帖子 zhuqin_83 » 2007-11-22 13:33

咱学校还在用drcom么?那么论坛里就有方法上网的。
不然就把cd添作源,最好是DVD版本。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
njuptlf
帖子: 3
注册时间: 2007-11-21 16:46

#5

帖子 njuptlf » 2007-11-22 13:45

找到三楼说的那个帖子了
多谢各位
头像
用戶無效
帖子: 461
注册时间: 2007-10-23 21:11
来自: 香港

#6

帖子 用戶無效 » 2007-11-22 15:18

有时候,我们拿到的光盘映像文件为 .bin/.cue 格式,如果要在 Ubuntu 中使用,那么可以将其转换为 .iso 格式。在 Ubuntu 中有一个命令行的程序 BinChunker 能够完成该任务。 在终端中输入 sudo apt-get install bchunk 指令可以立即安装 BinChunker 程序。

假如我们要把 image.bin/image.cue 转换为 image.iso,则使用下列命令: bchunk image.bin image.cue image.iso 关于 bchunk 更多选项的说明,可以使用 man bchunk 查询。

然后使用mount和umount就可以实现虚拟光驱的功能

mount -o loop .iso /media/vcdrom

Using loop Kernel Module

First you need to make the directory to put the ISO into using the following command

sudo mkdir /media/isoimage

Now you need to add the loop module to your kernel.

What kernel loop module does?

I want to give brief introduction to kernel loop module.Using the module loop it is possible to mount a filesystem file. squashfs is a “loop” with (de)compression (Compressed Loopback Device) and it is possible to mount a compressed filesystem like a block device and seamlessly decompress its data while accessing it.

Use the following command to load loop module

sudo modprobe loop

Mount ISO Image

If you want to mount you need to use the following command

sudo mount debianetch.iso /media/isoimage/ -t iso9660 -o loop

支持中文加个参数iocharset=utf8

sudo mount -t iso9660 -o iocharset=utf8,loop debianetch.iso /media/isoimage/

In the above command you can replace debianetch.iso to your own iso image.

Now you should have your iso file mounted, and accessible from your desktop.

Unmount ISO Image

Unmount ISO Image Using the following command

sudo umount /media/isoimage
回复