Re: Vypnuti HDD, LILO...


To czdebian-l zavinac debian bod cz
From Hans Ginzel <hans zavinac kolej bod mff bod cuni bod cz>
Date Tue, 5 Nov 2002 10:38:14 +0100
Mail-followup-to czdebian-l zavinac debian bod cz
User-agent Mutt/1.4i


On Mon, Nov 04, 2002 at 11:10:54PM +0100, Jan Fuchs wrote:
> diky moc za VASE rady, ale stale mi Emacs nereaguje na stisk ceskych
> klaves, nejspis mam spatne nastavenou klavesnici, neumi ani klavesu ALT,
> tak pouzivam ESC to jde, nevi nekdo jak to vyresit???

    O klavesnici (pod konsoli) jsem psal podrobne tak pred mesicem: man
loadkeys, showkey, zless /usr/doc/console-tools/lct.txt.gz,
zless /usr/share/keymaps/i386/qwerty/cz-lat2-prog.kmap.gz,
links http://www.matfyz.cz/hans/Unix/Console/Keyboard/.

> Pak bych se chtel zeptat jakym zpusobem muzu vypinat ci uspavat disky
> pres prikazovou radku...

        man hdparm; -C, -S, -y, -Y, -Z

   Je vhodne nainstalovat jineho update daemona (bdflush), aby se disky
pri kazdem syncu (~ kazdou minutu) neprobouzeli. Vitam odkazy s vice
informacemi a navody pro notebooky na toto tema. Rovnez vitam informace
o uspesnem fungovani.

> A jeste mam problem s nastavenim LILA (zatim jsem to provizorne vyresil
> pomoxi XOSL, ale chtel bych to rozchodit i pomoci LILA), na jednom disku
> Primarni MASTER Linux
> Primarni SLAVE Windows
> Sekundarni MASTER CD-ROM
> Sekundarni SLAVE CD-RW

   man lilo.conf, gv /usr/share/doc/lilo-doc/user.ps.gz

   Potrebujete presvedcit lilo, aby pri bootovani z win prehodilo disky,
tj. aby se win_disk stal "masterem", proste prvnim diskem (C:). Teda
zalezi, jak jste ty win instaloval. Oni sami si mysli, ze jsou na C:
nebo D:? Mozna to lze zmenit v msdos.sys

        ; See Microsot Windows 95 Resource Kit

        [Paths]

        HostWinBootDrv=C
        WinBootDir=C:\WINDOWS
        WinDir=C:\WINDOWS


# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
# | computer will most likely fail to boot if a kernel-image      |
# | post-install script or you don't remember to run `lilo'.      |
# |                                                               |
# +---------------------------------------------------------------+

# If the disk is not the master on primery driver
#disk = /dev/hda
#       bios = 0x80
#disk = /dev/hdb
#       bios = 0x81

# Support LBA for large hard disks.
#
lba32

# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda3
read-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
compact

# Installs the specified file as the new boot sector
#
#install=/boot/boot-text.b
# Enable boot menu:
# colors: kbgcrmyw, for blacK, Blue, Green, Cyan, Red, Magenta, Yellow, and
#         White:  upper  case for intense (fg only), lower case for dim
#         <text>:<highlight>:<border>:<title>
#menu-scheme=kg:Gk:kg:Wg
menu-scheme=gk:kg:gk:Gk
menu-title="Linux Loader Boot Menu"
install=/boot/boot-menu.b
# Enable graphical boot menu:
#install=/boot/boot-bmp.b
#bitmap=/boot/debian-bootscreen-woody.bmp
#bmp-colors=1,,0,2,,0
#bmp-table=120p,173p,1,15,17
#bmp-timer=254p,432p,1,0,0

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
# delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=100
# single-key

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
vga=5

# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=linux
        append="reboot=warm ide0=autotune hdd=ide-scsi"
        #initrd=/initrd.img
        optional

image=/vmlinuz.old
        label=linuxOLD
        optional

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.

other=/dev/hdb1
        label=dos
        map-drive  = 0x80
                to = 0x81
        map-drive  = 0x81
                to = 0x80

### vi: set ts=8 sw=8 nowrap: ################################################


   Kvuli te vypalovacce potrebujete append="hdd=ide-scsi" viz
zless /usr/share/doc/HOWTO/en-txt/CD-Writing-HOWTO.gz.


        Zdravi
                                        Hans

Partial thread listing: