「わかりました」>「あんまりわかってません」の間接的な用法


by ayamem
カレンダー
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

GentooXのlinuxrcで見えるもの

37:mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /cdrom
38:mount -o loop /cdrom/rootfs /ram
以上より、
E・・・/dev/ide/host0/bus0/target0/lun0/part50
あと、fdisk -l /dev/hda*にて以下確認
F・・・/dev/ide/host0/bus0/target0/lun0/part55
G・・・/dev/ide/host0/bus0/target0/lun0/part56
--------------------------------------------------------
つまり、gentooxをFドライブに配置したい場合は37行目を、
配置したいディレクトリを変更する場合は38行目を
変更すればよい。

以下linuxrcの中身



#!/bin/sh -x
###
# Gentoox initrd
# Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
###


PATH=/sbin:/bin:/usr/sbin:/usr/bin:/
export PATH

umask 022

mount -t proc none /proc
mount -t devpts none /dev/pts
echo 0x100 > /proc/sys/kernel/real-root-dev

mkdir -p /cdrom /ram /proc

insmod /lib/modules/`uname -r`/fat.o
insmod /lib/modules/`uname -r`/fatx.o

mount
mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /cdrom
mount -o loop /cdrom/rootfs /ram

# Switch roots and run init
cd /ram
pivot_root . initrd
/etc/init.d/devfsd start
#/sbin/hdparm -d 0 /dev/hda
if [ ! -p /dev/initctl ]
then
rm -f /dev/initctl
mknod -m 600 /dev/initctl p
fi
kill -USR1 1

umount -n /initrd/proc >/dev/null 2>&1
#exec chroot . /sbin/init dev/console 2>&1
exec chroot . sh -c 'umount -n /initrd >/dev/null 2>&1;\
exec -a init.new /sbin/init 2'\
dev/console 2>&1
[PR]
by ayamem | 2005-05-07 10:03 | Linux-メモ