taopai Apprentice
Joined: 19 Sep 2005 Posts: 287 Location: Warsaw, Poland
|
Posted: Fri Dec 28, 2007 5:26 pm Post subject: Dwie nieścisłości w Handbooku |
|
|
Cześć,
Ostatnio instalowałem od nowa moje Gentoo i w dwóch miejscach miałem wątpliwości ze względu na nieścisłości w Handbooku.
1. W punkcie 8.a. Filesystem Information znajduje się przykładowy fstab.
przykładowy fstab: | /dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
Kiedyś, o ile dobrze pamiętam, był on rozszerzony o dwie dodatkowe linijki.
dwie dodatkowe linijki: | proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
Znajdują się one również w przykładowym fstabie, jednak jako że nie było ich w Handbooku, zakomentowałem je.
mój fstab: | # /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# Partycje systemowe
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / jfs noatime 0 1
/dev/hda2 none swap sw 0 0
# Partycje pozostałe
/dev/hda4 /home ext3 noatime 0 2
/dev/hdc1 /home/michal/Kontener ext3 noatime 0 2
# NOTE: The next line is critical for boot!
# proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
Wszystko póki co działa, ale nie wiem czy nie powinienem jednak odkomentować tych dwóch linijek...
2. W rozdziale 10. Configuring the Bootloader znajduje się notka dotycząca konfiguracji bootloadera w przypadku używania jfs.
Quote: | If your root filesystem is JFS, you must add " ro" to the kernel line since JFS needs to replay its log before it allows read-write mounting. |
Notka ta nie wyjaśnia czy "root filesystem" odnosi się do "root (hd0,0)" czy może do "root=/dev/hda3". W tworzonym grub.conf uwzględniłem obie możliwości.
grub.conf: | # Boot automatically after 10 secs.
timeout 10
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# Splash image to show behind grub.
splashimage=(hd0,0)/grub/splash.xpm.gz
# For booting GNU/Linux
title Gentoo-2.6.23-r5 ro
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r5 ro root=/dev/hda3 video=uvesafb:1024x768-32@85,mtrr:3,ywrap
title Gentoo-2.6.23-r5
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r5 root=/dev/hda3 video=uvesafb:1024x768-32@85,mtrr:3,ywrap
title Gentoo-2.6.23-r3 ro
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r3 ro root=/dev/hda3 video=uvesafb:1024x768-32@85,mtrr:3,ywrap
title Gentoo-2.6.23-r3
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/hda3 video=uvesafb:1024x768-32@85,mtrr:3,ywrap |
Nie ważne co wybiorę, system zawsze wstaje, a ja siedzę tylko i zastanawiam się jak to powinno wyglądać.
Pozdrawiam,
Tao |
|