Unix/Linux installation in disk, without cdrom.

引导加载程序配置指南
本文提供了针对不同Linux发行版如Redhat、Ubuntu、OpenSUSE及Solaris 11的引导加载程序GRUB配置示例。包括从ISO文件中提取内核与初始化映像、选择硬盘分区等关键步骤。

1. Redhat :(extracting vmlinuz and initrd.gz in iso file's isolinux dir.)

 

grub>root (hd0,x)

grub>kernel /rhel/vmlinuz

grub>initrd  /rhel/initrd.gz

grub>boot

 

Select harddisk partion which contain iso file.

 

 

2. Ubuntu (extracting vmlinuz and initrd.lz in iso file's casper dir.)

grub>root (hd0,x)

grub>kernel /ubuntu/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-beta1-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8 apci=on

grub>initrd /ubuntu/initrd.lz

grub>boot

 

when entering the livecd GUI, hit <CTRL>+<ALT>+<F2> to umount -l /isodevice and return to GUI.

 

 

3. OpenSUSE (Extract linux and initrd from "boot/xxxx/loader" which xxxx is i386 or x86_64)

grub>kernel linux

grub>initrd initrd

grub>boot

 

when "Can't find the iso resipostiy ...." apears, hit <CTRL>+<ALT>+<F2> . then

#mount -l

#umount xxxx (all mounted disks, which are listed by mount -l, something like /mounts/mp_xxxx)

#mount /sdax /var/adm/mount/

Hits <CTRL>+<ALT>+<F7> to continue installation.

 

grub menu:

title SUSE Linux Enterprise Desktop 11
    root (hd1,6)
    kernel /boot/vmlinuz root=/dev/sda7 vga=791   resume=/dev/sda7  splash=silent showopts
    initrd /boot/initrd

 

4. Solaries 11(Extract MULTIBOOT and X86.MINIROOT from "/boot")

grub>kernel MULTIBOOT kernel/unix -B install_media=dsk

grub>module X86.MINIROOT

grub>boot

 

Then when menu appears, select "1" to enter the shell.

#mount -F pcfs /dev/dsk/c1t0d0p0:1 /mnt

#lofiadm -a /mnt/sol/sol.iso

#mount -F hsfs /dev/lofi/1 /cdrom

#exit

 

If iso path selection appears, then select networking installation, and enter "/cdrom" for the iso path.

 

 


出现 `Enter current password for root (enter for none): Could not open required defaults file: /mnt/cdrom/.my.cnf.54343 Fatal error in defaults handling. Program aborted` 错误,通常是由于 MySQL 在启动或执行操作时尝试读取一个不存在的默认配置文件导致的。以下是一些可能的解决方案: #### 检查并删除不存在的配置文件引用 当 MySQL 尝试读取 `/mnt/cdrom/.my.cnf.54343` 文件但该文件不存在时,就会出现此错误。可以通过指定正确的配置文件路径或删除错误的配置文件引用来解决。 - **方法一:使用 `--defaults-file` 参数指定正确的配置文件** 在执行 MySQL 命令时,使用 `--defaults-file` 参数明确指定正确的配置文件路径。例如: ```bash mysql --defaults-file=/etc/my.cnf -u root -p ``` - **方法二:检查环境变量和启动脚本** 检查环境变量 `MYSQL_HOME` 或启动脚本中是否引用了错误的配置文件路径。可以通过以下命令查看环境变量: ```bash echo $MYSQL_HOME ``` 如果发现环境变量设置错误,可以通过以下命令修改: ```bash export MYSQL_HOME=/path/to/correct/mysql/home ``` #### 创建或修复配置文件 如果 `/mnt/cdrom/.my.cnf.54343` 是一个必要的配置文件,可以尝试创建或修复它。 - **创建配置文件** 如果该文件确实需要存在,可以创建一个新的配置文件: ```bash touch /mnt/cdrom/.my.cnf.54343 chmod 644 /mnt/cdrom/.my.cnf.54343 ``` 然后根据需要编辑该文件,添加必要的配置信息。 - **修复配置文件** 如果文件已经存在但损坏,可以尝试从备份中恢复或手动修复。 #### 检查文件权限 确保 MySQL 用户有足够的权限访问配置文件。可以使用以下命令检查文件权限: ```bash ls -l /mnt/cdrom/.my.cnf.54343 ``` 如果权限不足,可以使用以下命令修改权限: ```bash chmod 644 /mnt/cdrom/.my.cnf.54343 ``` #### 检查挂载点 如果 `/mnt/cdrom` 是一个挂载点,确保该挂载点已经正确挂载。可以使用以下命令检查挂载情况: ```bash df -h /mnt/cdrom ``` 如果挂载点未挂载,可以使用以下命令挂载: ```bash mount /dev/cdrom /mnt/cdrom ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值