From owner-FreeBSD-users-jp@jp.FreeBSD.org Thu Aug 12 23:32:44 2010
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id o7CEWix21169;
	Thu, 12 Aug 2010 23:32:44 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from smtp01.sp-mail.jp (smtp1.sp-mail.jp [219.118.66.5])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id o7CEWiB21164
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Thu, 12 Aug 2010 23:32:44 +0900 (JST)
	(envelope-from rikimura@a011.broada.jp)
X-SpamStatus: Non-Spam
Received: from unknown (HELO xlnv.raspberry.net) (Z@221.47.207.168)
	by 219.118.66.5 with ESMTP; 12 Aug 2010 23:32:44 +0900
From: "S.Kimura (=?ISO-2022-JP?B?GyRCTFpCPEAuMGwbKEI=?=)" <rikimura@a011.broada.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
Message-Id: <20100812233242.4386a673.rikimura@a011.broada.jp>
In-Reply-To: <20100810063810.42afec22.rikimura@a011.broada.jp>
References: <20100803083831.53FA0589@graduate.chiba-u.jp>
	<20100806150050.63570581.rikimura@a011.broada.jp>
	<20100807063751.20093da9.rikimura@a011.broada.jp>
	<20100809104104.79771108@graduate.chiba-u.jp>
	<20100810063810.42afec22.rikimura@a011.broada.jp>
Organization: si:siba
X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; i386-xnote-freebsd8.1)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Thu, 12 Aug 2010 23:32:42 +0900
X-Sequence: FreeBSD-users-jp 93137
Subject: [FreeBSD-users-jp 93137] Re: =?ISO-2022-JP?B?GyRCJVYhPBsoQg==?=
 =?ISO-2022-JP?B?GyRCJUglbSE8JUAhPBsoQg==?=(
 =?ISO-2022-JP?B?GyRCJVYhPCVIJTslbCUvJT8hPBsoQg==?=)
 =?ISO-2022-JP?B?GyRCJEskRCQkJEY2NSQoJEYkLyRAJDUkJBsoQg==?= 
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: rikimura@a011.broada.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

$BLZB<(B at $BDG<F@8$^$l!"$G$9!#(B

On Tue, 10 Aug 2010 06:38:10 +0900
"S.Kimura ($BLZB<@.0l(B)" <rikimura@a011.broada.jp> wrote:
> On Mon, 9 Aug 2010 10:41:04 +0900
> <murata@graduate.chiba-u.jp> wrote:
> > >$B%&%=$r=q$$$?$+$bCN$l$^$;$s!#0JA0%$%s%9%H!<%k$7$?:]!"(Bmenu.lst $B$r<+J,$GJQ99$7$F(B 
> > >grub-install $B$r<B9T$7$?$i$7$$!"$H$$$&7|G0$,$"$j$^$9!#(B
> > 
> > $B$3$l$O$d$C$?$3$H$,$"$j$^$9!#(BVine$B$G$O$J$$$N$G$9$,!#(B
[$BCfN,(B]
> $B3NG'%$%s%9%H!<%k$N7o$ODI$C$F=q$-$^$9!#(B
> $B$J$K$7$m<B83MQ%^%7%s$,ITD4$G$7$F!#(B

$B$^$!!"OC$O(B Linux $B$K4X$o$k$N$G$9$,!D!D!#(B($B0J2<!"$9$Y$F(B i386 $BHG(B)
$B<B83$O!"(Bjunk $B$G9XF~$7$?(B NEC ValueStar VL700R/5 $B$H$$$&(B PC/AT $B8_495!$K!"(B
FreeDOS-1.0$B!"<j85$K$"$C$?(B FreeBSD-7.0-STABLE-200807 $B$r%$%s%9%H!<%k$7$F9T$J$$$^$7$?!#(B

A. $B%V!<%H%m!<%@!<$O(B lilo $B$+!"(Bgrub $B$+!#(B
  $B6aG/!"$@$$$?$$(B grub $B$i$7$$!#$K$7$F$b!"A4%G%#%9%H%j%S%e!<%7%g%s$ND4::$O$[$\IT2DG=!#(B
B. $B%$%s%9%H!<%i!<$O(B grub $B$N(B setup $B@h$r(B MBR $B$^$?$O(B PBR $B$K;XDj$G$-$k$+!#(B
  SSD/Linux-0.4-20100723$B!"(BVine Linux-5.1$B!"(BUbuntu-10.04 $B$J$I$O2DG=!#(B
  Fedora-13-i386-netinst $B$O;XDjIT2D$@$C$?$H5-21$7$F$$$k$,!"(Binstall $B$7@Z$l$:!#(B
C. MBR $B$K(B setup $B$7$?(B grub $B$K(B Windows $B$d(B FreeBSD $B$rEPO?$G$-$k$+$I$&$+!#(B
  Vine Linux-5.1$B!#(B install $B;~!"(BGUI mode $B$J$i:Y$+$/@_Dj$G$-$k!#(B
                   install $B;~!"(BText mode $B$@$H!"(BFreeBSD $B$r(B [$BDI2C(B]$B=PMh$J$$!#(B
                   install $B8e!"(Bgrub-install $B$GDI2C2DG=!#(B
  Ubuntu-10.04$B!#(B Windows(or DOS) $B$OEPO?$G$-$k!#(B
                 install $B8e!"(Bgrub-install $B$GDI2C2DG=!#(B
  SSD/Linux-0.4-20100723$B!#(B ssd $B$@$1$r<+F0E*$K(B grub $B$KEPO?!#(B
                           install $B8e!"(Bgrub-install $B$GDI2C2DG=!#(B
$B$H$$$&<B837k2L$rF@$^$7$?!#$d$O$j(B Vine $B$N%$%s%9%H!<%i!<$,7rF.(B(?)$B$7$F$$$k$h$&$G$9!#(B

$B:G8e$K;qNA$H$7$F!"(Bgrub.conf (menu.lst) $B$rNs5s$7$FCV$-$^$9!#:90[$,6=L#$U$+$$!#(B

// Vine Linux-5.1 $B$,=q$-9~$s$@(B menu.lst
# menu.lst generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,2)
#          kernel /boot/vmlinuz-version ro root=/dev/hda3
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5

title Vine Linux (Current kernel)
	root (hd0,2)
	kernel /boot/vmlinuz ro root=LABEL=/ vga=0x314 splash=silent 
	initrd /boot/initrd.img

title Vine Linux (Previous kernel)
	root (hd0,2)
	kernel /boot/vmlinuz.old ro root=LABEL=/ vga=0x314 splash=silent 
	initrd /boot/initrd.old.img
title FreeBSD
	rootnoverify (hd0,1)
	chainloader +1
title DOS
	rootnoverify (hd0,0)
	chainloader +1


// Ubuntu-10.04 $B$,=q$-9~$s$@(B grub.conf
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=cfc97005-c02c-4209-9553-1fd9f277d054 ro   quiet
	initrd	/boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
	echo	'Loading Linux 2.6.32-21-generic ...'
	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=cfc97005-c02c-4209-9553-1fd9f277d054 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cfc97005-c02c-4209-9553-1fd9f277d054
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "FreeDOS (on /dev/sda1)" {
	insmod fat
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 250f-1ef6
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

// Ubuntu grub.cfg $B$N$?$a$N(B $B:9J,(B ($B1n??;w(B)
--- grub.cfg.BAK	2010-08-10 21:52:41.717105448 +0900
+++ grub.cfg	2010-08-10 22:03:56.150366318 +0900
@@ -97,6 +97,16 @@
 ### END /etc/grub.d/20_memtest86+ ###
 
 ### BEGIN /etc/grub.d/30_os-prober ###
+menuentry "FreeBSD (on /dev/sda1)" {
+	insmod ufs
+	set root='(hd0,2,a)'
+	search --no-floppy
+	drivemap -s (hd0) ${root}
+	chainloader +1
+}
+### END /etc/grub.d/30_os-prober ###
+
+### BEGIN /etc/grub.d/30_os-prober ###
 menuentry "FreeDOS (on /dev/sda1)" {
 	insmod fat
 	set root='(hd0,1)'


// SSD/Linux-0.4-20100723 $B$,=q$-9~$s$@(B menu.lst
# Boot automatically after 5 secs.
timeout	5

# By default, boot the first entry.
default	0

# Fallback to the second entry.
fallback	1

# For booting SSD/Linux 0.4-20100723/2.6.16
title	SSD/Linux 0.4-20100723/2.6.16
root	(hd0,2)
kernel	/vmlinuz root=/dev/hda3

# For booting SSD/Linux 0.4-20100723/2.6.16 from FD
title	SSD/Linux 0.4-20100723/2.6.16 from FD
root	(fd0)
kernel	/bzImage root=/dev/ram
pause	Insert instfs floppy disk and type any key.
initrd	/initrd.fs.gz

// SSD menu.lst $B$N$?$a$N:9J,(B (9$B;~4VJd@5$J$7(B)
--- menu.lst.ssd	2010-08-13 05:52:25.000000000 +0900
+++ menu.lst	2010-08-13 05:59:41.000000000 +0900
@@ -18,3 +18,14 @@
 kernel	/bzImage root=/dev/ram
 pause	Insert instfs floppy disk and type any key.
 initrd	/initrd.fs.gz
+
+title FreeBSD
+	makeactive
+	rootnoverify (hd0,1,a)
+	chainloader +1
+
+title DOS
+	makeactive
+	rootnoverify (hd0,0)
+	chainloader +1
+

-- 
$BLZB<@.0l(B @$B@iMU8)D8;R;T>.D9D.(B
