Fedora Core 5配置小技巧

Linux大全评论728 views阅读模式

现就我个人使用Fedora Core 5的一些经验列在下面,来地晚了点,希望对大家有所帮助,该文档可以称为一篇Fedora Core 5的小技巧吧。我尽量在说清楚怎么做的同时增加一些为什么这么做的原因,希望能帮你更好的使用Fedora Core 5和其它的Linux发行版。

现假设你下载了Fedora Core 5的五张CD iso文件,并已经安装好了

1 加入其它一些有用的yum源方便以后的安装。

使用如下命令加入http://rpm.livna.org/源:

rpm -ivh http://rpm.livna.org/livna-release-5.rpm

实际有网络上有很多源可用,但为了避免冲突,现只加入这一个源。

你可以在http://rpm.livna.org/fedora/5/i386/ 浏览该源提供的软件包。

2 使系统能挂载ntfs分区。

输入命令:

yum -y install kmod-ntfs

即可安装好,你现在即可挂载windows的ntfs分区了。

3 挂载windows分区。

为方便其见,我们将挂载分区的设为开机自动挂载,即写入/etc/fstab。

现查看你的分区状况(据有如下的形式):

[root@localhost temp]# fdisk -l

Disk /dev/hda: 61.4 GB, 61492838400 bytes

255 heads, 63 sectors/track, 7476 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/hda1 * 1 653 5245191 7 HPFS/NTFS

/dev/hda2 654 1632 7863817+ 83 Linux

/dev/hda3 1633 7476 46941930 f W95 Ext'd (LBA)

/dev/hda5 1633 1698 530113+ 82 Linux swap / Solaris

/dev/hda6 1699 2382 5494198+ 83 Linux

/dev/hda7 2383 3688 10490413+ 7 HPFS/NTFS

/dev/hda8 3689 4211 4200966 b W95 FAT32

/dev/hda9 4212 5517 10490413+ 7 HPFS/NTFS

/dev/hda10 5518 7476 15735636 7 HPFS/NTFS

现在知道了分区状况后,用gedit打开文件/etc/fstab加入:

/dev/hda1 /mnt/hda1 ntfs defaults 0 0

/dev/hda6 /mnt/hda6 ext3 defaults 0 0

/dev/hda7 /mnt/hda7 ntfs defaults 0 0

/dev/hda8 /mnt/hda8 vfat defaults 0 0

/dev/hda9 /mnt/hda9 ntfs defaults 0 0

/dev/hda10 /mnt/hda10 ntfs defaults 0 0

保存即可。以后开机后就可自动挂载好你的分区了。注意以上的内容要根据你的分区状况灵活变通哦。

如你想现在就挂载,输入命令

mount -a

即可。现在你可以去看看能不能访问你的windows分区了。

4 不要置下载好的ISO文件不用,将其加入Yum源,方便以后快速安装Core仓库中的包。

方法:

a 假设你下载的ISO文件存于/dev/hda6分区中,且你已挂载好了分区,现你的/dev/hda6分区已经

挂载到/mnt/hda6目录上,假设此时你的/mnt/hda6中的 iso文件如下:

/mnt/hda6/FC-5-i386-disc1.iso

/mnt/hda6/FC-5-i386-disc2.iso

/mnt/hda6/FC-5-i386-disc3.iso

/mnt/hda6/FC-5-i386-disc4.iso

/mnt/hda6/FC-5-i386-disc5.iso

然后在目录/mnt下创建目录iso1,iso2,iso3,iso4,iso5。可使用如下命令完成:

mkdir -p /mnt/iso1 /mnt/iso2 /mnt/iso3 /mnt/iso4 /mnt/iso5

b 现在将我们的iso文件挂载到上面几个目录上,为方便以后的操作,使用很简单的shell程序来完成这个操作

使用gedit输入以下内容:

mount -o loop /mnt/hda6/FC-5-i386-disc1.iso /mnt/iso1

mount -o loop /mnt/hda6/FC-5-i386-disc2.iso /mnt/iso2

mount -o loop /mnt/hda6/FC-5-i386-disc3.iso /mnt/iso3

mount -o loop /mnt/hda6/FC-5-i386-disc4.iso /mnt/iso4

mount -o loop /mnt/hda6/FC-5-i386-disc5.iso /mnt/iso5

于文件名mount_iso存入目录/mnt,然后用命令chmod a+x /mnt/mount_iso使其成为可执行文件。

为方便以后卸载iso文件,在gedit输入以下内容:

umount /mnt/hda6/FC-5-i386-disc1.iso /mnt/iso1

umount /mnt/hda6/FC-5-i386-disc2.iso /mnt/iso2

umount /mnt/hda6/FC-5-i386-disc3.iso /mnt/iso3

umount /mnt/hda6/FC-5-i386-disc4.iso /mnt/iso4

umount /mnt/hda6/FC-5-i386-disc5.iso /mnt/iso5

于文件名umount_iso存入目录/mnt,然后用命令chmod a+x /mnt/umount_iso使其成为可执行文件。

现在输入命令/mnt/mount_iso就可以挂载你的iso文件。你可到/mnt/iso1目录内看看是否已经有你想要的内容了。

企鹅博客
  • 本文由 发表于 2019年9月11日 19:23:57
  • 转载请务必保留本文链接:https://www.qieseo.com/195949.html

发表评论