Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Laitealue => Aiheen aloitti: murhaajamake - 10.09.09 - klo:00.56
-
Moron!!
Minulla on Compaq presario cq71, johon olen paiskannut ubuntu 9.04 järjestelmän. nyt ongelmaksi on koitunut se, että läppärin omista kaiuttimista en saa ääniä ulos, mutta kuulokkeista kyllä. Olen tarkistanut, että mikään mute ei ole päällä ja master volumet on täysillä, mutta pihaustakaan ei kuulu pääkaiuttimista. käytössä olleessa winukassa kaiuttimet kyllä toimivat, joten kaiuttimissatai kuulokeliitännässä ei siis ole vikaa.
päivitin koneeseen uusimman alsa-paketin mutta se ei tuonut ratkaisua.
hyvöt ystäväiseni, mikä neuvoksi?? auttakaa uusi pupuntun käyttäjä toimivan liinuksin polulle!!
kiitos jo etukäteen vaivannäöstä!!
-
Aja komentorivillä (pääte)
alsamixer
ja tarkista ettei volume ole mutella mistään.
-
pc beeperin kohdalla siinä volumepalkin alla on sinisillä kirjaimilla MM, elikkä oletan sen muteksi ja pc piippari saa sillain ollakki, kaikissa muissa on 00 vihreellä pohjalla ja volumet melkein täysillä. sama ongelma on edelleen voimassa.
-
voiko toi ääniongelma johtua jostain ubuntun omista asetuksista? ku tosiaan alsa mixerissä on kaikki äänet päällä, mutta silti tää toimii tälläin päin hemmettiä. luulis että äänikortin ajurit tms on kunnossa ku kuulokkeista tulee ääni...
-
Mitä sanoo komento päätteessä:
aplay -l
t: Antti ;)
-
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
tollasta huttua tuli
-
Bugia tuosta on olemassa
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/274424 (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/274424)
ja ratkaisuksi ehdotetaan että,
muokataan alsa.conf tiedostoa:
gksudo gedit /etc/modprobe.d/alsa-base.conf
ja lisätään sinne rivi:
options snd-hda-intel enable_msi=1
ja sitten buuttia koneelle.
t: Antti ;)
-
jees, mä tein ton muutoksen, mutta vieläkään ei äänet tuu.
onko sillä mitään väliä, mihin kohtaan tota alsa-base conffia mä ton rivin kirjotan? mä vaan paiskasin sen sinne loppuun ja tallensin... oliko oikee toimintatapa??
kiitos Antti ku oot nähny vaivaa :)
-
Tuo piiri on sen verran uusi ettei ALSA vielä kunnolla tue tuota korttia.
Pitäisi olla korjattu uudemmissa ALSA:n versioissa.
@make, se tiedoston loppu oli ihan hyvä paikka sille rimpsulle.
-
mä hommasin aikasemmin tähän uudemman version tosta alsasta, alsa mikserissä lukee versiona 1.0.21, eikös se pitäis olla aikalailla uusin?
-
mä hommasin aikasemmin tähän uudemman version tosta alsasta, alsa mikserissä lukee versiona 1.0.21, eikös se pitäis olla aikalailla uusin?
1.0.21 on tosiaan uusin ALSAn versio, mutta joissain tapauksissa vaaditaan myös uudempi kerneli (joka tarjoaa ajurit)
Jos olet tehnyt muutoksia /etc/modprobe.d/alsa-base.conf tiedostoon niin poista ne muutokset, kun kerran käytössä on uusin ALSA.
Kokeile jos mahdollista niin 9.10 version liveCD:tä, toimiiko siinä äänet?
-
Pitää koittaa jossain vaiheessa, ny on vähän hankalaa. taidan ensiavuks ostaa jonkun kaiutinpaketin tähän masiinaan ni sillä saa ainaki mekkalat pihalle kuulokeliitännän kautta :D kiitos kaikille avustusta antaneille!!
-
Myös ostin Gigantin tarjouksesta Compaq Presario cq71 läppärin. Panin siihen suoraan Ubuntu 9.04. W-laneja ei näkynyt ollenkaan ennen kuin kokeeksi päivitin saamani ohjeen mukaan synapticilla kernelin linux-backports-modules-jaunty-generic. Uudellenkäynnistys ja w-lanit näkyivät.
Äänet eivät kuulu läppärin omista kaiuttimista, mutta kuulokeliitännästä kylläkin. Kokeilen nyt levyltä 9.10 versiota - beta-versio??? Hain tämän sivulta http://cdimage.ubuntu.com/daily-live/20091003/ - mutta äänet eivät edelleenkään toimi kuin kuulokeliitännässä. Ei tuo nyt suuremmin haittaa kun useimmiten käyttää kuitenkin kuulokkeita ja voi kytkeä tarvittaessa kaiuttimet. Mutta kiva olisi saada koneen omat kaiuttimet toimimaan ...
-
Kyseisen koneen omistajana sain ääniongelmat hoitumaan Karmicissa asentamalla synapticista linux-backports-modules-alsa-karmic paketin ja käynnistämällä koneen uudestaan.
-
mulla auttoi compaq cq61 koneeseen lisäämällä /etc/modprobe.d/alsa-base.conf tiedoston loppuun rivi
options snd-hda-intel model=hp-m4
koko filu näyttää tältä:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
options snd-usb-caiaq index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
options snd-hda-intel model=hp-m4
Edit taisin ensin tehdä tämän:
Step 1: Open Terminal from "Applications->Accessories->
Terminal"
Step 2: Run the following commands (copy/paste each command into the Terminal and then hit <enter>)
sudo aptitude update
sudo aptitude install wget build-essential ncurses-dev libncurses5-dev gettext linux-headers-$(uname -r)
# go to your home directory (which is what cd ~ does, so ~ is actually <your homedirectory>)
cd ~
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2
tar xjf alsa-driver-1.0.19.tar.bz2
tar xjf alsa-lib-1.0.19.tar.bz2
tar xjf alsa-utils-1.0.19.tar.bz2
cd ~/alsa-driver-1.0.19
./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r)
make
sudo make install
cd ~/alsa-lib-1.0.19
./configure
make
sudo make install
cd ~/alsa-utils-1.0.19
./configure
make
sudo make install
ja sitten muutin sen rivin
-
Kyseisen koneen omistajana sain ääniongelmat hoitumaan Karmicissa asentamalla synapticista linux-backports-modules-alsa-karmic paketin ja käynnistämällä koneen uudestaan.
Tämä auttoi ja äänet kuuluvat koneen omista kaiuttimista ja myös erillisistä kaiuttimista tarvittaessa. Suurkiitos!
Saman koneen mikrofoniongelmat skypessä sain myös ratkaistuiksi päivittämällä Karmicciin.
http://forum.ubuntu-fi.org/index.php?topic=28876.0
Risto
-
Laitan nyt tähän ketjuun oman ääniongelmani.
aplay -l
aplay: device_list:223: äänikortteja ei löytynyt...
alsamixer: function snd_ctl_open failed for default: No such file or directory
Olisiko joku ystävällinen ja auttaisi, että mies pystyy katselemaan youtubea :)
-
alsamixer: function snd_ctl_open failed for default: No such file or directory
Onko alsamixer asennettu? terveisin Timo
-
alsamixer: function snd_ctl_open failed for default: No such file or directory
Onko alsamixer asennettu? terveisin Timo
Kyllä on aikaisemmin ollut asennettuna. Yritin asentaa sitä mutta tuli ilmoitus: Pakettia alsamixer ei löytynyt
Laitan nyt tähän sources.listin. Oonkohan mie sählänny tietämättäni vahingossa jotain ???
# deb cdrom:[Ubuntu 9.04 _karmic Jackalope_ - Release i386 (20090420.1)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic universe
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://fi.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb http://linux.getdropbox.com/ubuntu karmic main
deb http://ppa.launchpad.net/shutter/ppa/ubuntu karmic main
deb http://packages.medibuntu.org/ karmic free non-free
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
-
Koska olen "konsoli-kammoinen" käytän Synapticia. ;) Vilkaisin mitä haulla alsamixer löytyy ja minulla on asennettuna "alsa-utils" versio 1.0.18-1ubuntu11. Tällä paketilla saan käytiin alsamixerin konsolissa kirjoittamalla "alsamixer". terveisin Timo
-
Tuo alsa-utils on asennettu. Alsamixer ei silti käynnisty.
-
Alsamixer ei käynnisty, koska äänilaitteet puuttuvat kokonaan, eli vika on ajureissa. Katsoitko jo kernelin version komennolla uname -r, kuten neuvoin toisessa keskustelussa (http://forum.ubuntu-fi.org/index.php?topic=29822.msg231809#msg231809)?
-
Alsamixer ei käynnisty, koska äänilaitteet puuttuvat kokonaan, eli vika on ajureissa. Katsoitko jo kernelin version komennolla uname -r, kuten neuvoin toisessa keskustelussa (http://forum.ubuntu-fi.org/index.php?topic=29822.msg231809#msg231809)?
Sori, unohdin vastat tuohon :-[
uname -r
2.6.28-15-generic
-
No niin, eli Jauntyn kerneli on käytössä edelleen, kuten monilla muillakin ääniongelmien kanssa taistelevilla. Kokeilitko sudo update-grub -komentoa? Sen jälkeen kone pitää käynnistää uudelleen.
-
Kokeilin, ei auta.
-
Eli uudelleenkäynnistyksen jälkeen on edelleen sama 2.6.28-kerneli käytössä? Näytä /boot/grub/menu.lst -tiedoston sisältö ja mitä tiedostoja /boot-hakemistossa on:
ls -l /boot
-
ls -l /boot
-rw-r--r-- 1 root root 528310 2009-09-09 15:56 abi-2.6.28-15-generic
-rw-r--r-- 1 root root 629174 2009-10-16 21:03 abi-2.6.31-14-generic
-rw-r--r-- 1 root root 96804 2009-09-09 15:56 config-2.6.28-15-generic
-rw-r--r-- 1 root root 111371 2009-10-16 21:03 config-2.6.31-14-generic
drwxr-xr-x 3 root root 4096 2009-11-08 17:15 grub
-rw-r--r-- 1 root root 7000044 2009-11-07 21:59 initrd.img-2.6.28-15-generic
-rw-r--r-- 1 root root 7646018 2009-11-07 21:39 initrd.img-2.6.31-14-generic
-rw-r--r-- 1 root root 128796 2009-10-23 19:11 memtest86+.bin
-rw-r--r-- 1 root root 1450680 2009-09-09 15:56 System.map-2.6.28-15-generic
-rw-r--r-- 1 root root 1664737 2009-10-16 21:03 System.map-2.6.31-14-generic
-rw-r--r-- 1 root root 1074 2009-09-09 15:58 vmcoreinfo-2.6.28-15-generic
-rw-r--r-- 1 root root 1196 2009-10-16 21:06 vmcoreinfo-2.6.31-14-generic
-rw-r--r-- 1 root root 3491312 2009-09-09 15:56 vmlinuz-2.6.28-15-generic
-rw-r--r-- 1 root root 3890400 2009-10-16 21:03 vmlinuz-2.6.31-14-generic
/boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
/boot
abi-2.6.28-15-generic memtest86+.bin
abi-2.6.31-14-generic System.map-2.6.28-15-generic
config-2.6.28-15-generic System.map-2.6.31-14-generic
config-2.6.31-14-generic vmcoreinfo-2.6.28-15-generic
grub vmcoreinfo-2.6.31-14-generic
initrd.img-2.6.28-15-generic vmlinuz-2.6.28-15-generic
initrd.img-2.6.31-14-generic vmlinuz-2.6.31-14-generic
-
/boot/grub/menu.lst-tiedostossa pitäisi olla paljon muutakin. Näytä se ihan kokonaan tai lataa vaikka pastebin.comiin, jos ei mahdu tälle foorumille.
-
Oho, se ei tullutkan kokonaan. Eli tässä
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=b7d2c8f8-e841-47de-8893-aed3788e5672
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=3
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.10, kernel 2.6.31-14-generic
uuid b7d2c8f8-e841-47de-8893-aed3788e5672
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro splash
initrd /boot/initrd.img-2.6.31-14-generic
quiet
title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)
uuid b7d2c8f8-e841-47de-8893-aed3788e5672
kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro single
initrd /boot/initrd.img-2.6.31-14-generic
title Ubuntu 9.10, kernel 2.6.28-15-generic
uuid b7d2c8f8-e841-47de-8893-aed3788e5672
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet
title Ubuntu 9.10, kernel 2.6.28-15-generic (recovery mode)
uuid b7d2c8f8-e841-47de-8893-aed3788e5672
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro single
initrd /boot/initrd.img-2.6.28-15-generic
title Ubuntu 9.10, memtest86+
uuid b7d2c8f8-e841-47de-8893-aed3788e5672
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Windows Vista (loader)
rootnoverify (hd0,3)
savedefault
makeactive
chainloader +1
-
No nyt menee mystiseksi. Silloin kun käynnistät koneen ja GRUB:n käynnistysvalikko avautuu, mitä vaihtoehtoja siinä näkyy? Onko "Ubuntu 9.10, kernel 2.6.31-14-generic" valittavissa ja oletko käynnistänyt sen vai jonkin muun?
Jos GRUB:n valikossa ei näy 2.6.31-kerneliä, kokeile asentaa GRUB uudelleen ensimmäisen kiintolevyn MBR:ään: sudo grub-install /dev/sda
-
No niin, nyt on koneessa äänet. Mutta mutta, konetta käynnistettäessä grub ei tule automaattisesti näkyviin. Ja sitten, kun sen näkyville saan, niin siinä ei näy koneelle asennettua Mintiä ollenkaan, vaan Ubuntu ja koneelta jo poistettu joku Vistan asennus juttu.
-
Ahaa, nyt alkaa selvitä, eli GRUB olikin asennettu Mintin puolelta. Ilmankos se ei päivittynyt ennen kuin asensit uudelleen Ubuntusta käsin.
Joudut lisäämään Mintin käynnistystiedot Ubuntun puolella /boot/grub/menu.lst -tiedoston loppuun. Näytä Mintin menu.lst, jos tarvitset apua. Editoinnin voi tehdä päätteessä komennolla sudo nano /boot/grub/menu.lst tai graafisesti: gksudo gedit /boot/grub/menu.lst
Vista-valinnan saat myös pois editoimalla menu.lst:stä nämä rivit pois:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Windows Vista (loader)
rootnoverify (hd0,3)
savedefault
makeactive
chainloader +1
GRUB-valikon saat näkyviin kommentoimalla rivin hiddenmenu, eli muokkaa tämä:
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
Muotoon:
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
Kun saat Mintin käyntiin, kernelin päivittymisongelmat voisi jatkossa välttää asentamalla joko Mintin tai Ubuntun GRUBin jakelun juuriosion käynnistystietueeseen: sudo grub-install /dev/sdaX (missä sdaX on käynnissä olevan jakelun juuriosio -- selviää vaikkapa komennolla mount | grep " / "). Toisen jakelun GRUB asennetaan levyn MBR:ään (/dev/sda). Sitten MBR:ssä olevan GRUBin menu.lst-tiedostoon lisätään:
title Toinen jakelu
rootnoverify (hd0,Y)
chainloader +1
missä (hd0,Y):n Y on X-1, eli jos juuriosio on /dev/sda5, sitä vastaa (hd0,4).
-
Tässä on Mintin menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 5
## Graphical boot menu location
gfxmenu=/boot/gfxmenu/linuxmint.message
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda8 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Linux Mint 7 Gloria x64, kernel 2.6.28-11-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Linux Mint 7 Gloria x64, kernel 2.6.28-11-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Linux Mint 7 Gloria x64, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Windows Vista (loader)
rootnoverify (hd0,3)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-15-generic (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro splash
initrd /boot/initrd.img-2.6.28-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode) (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro single
initrd /boot/initrd.img-2.6.28-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-14-generic (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro splash
initrd /boot/initrd.img-2.6.28-14-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode) (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro single
initrd /boot/initrd.img-2.6.28-14-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-13-generic (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro splash
initrd /boot/initrd.img-2.6.28-13-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode) (on /dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=b7d2c8f8-e841-47de-8893-aed3788e5672 ro single
initrd /boot/initrd.img-2.6.28-13-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 9.04, memtest86+ (on /dev/sda6)
root (hd0,5)
kernel /boot/memtest86+.bin
savedefault
boot
-
Ok, eli pitäisi riittää, että lisäät Ubuntun menu.lst:n loppuun tämän:
title Linux Mint 7 Gloria x64, kernel 2.6.28-11-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Linux Mint 7 Gloria x64, kernel 2.6.28-11-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro single
initrd /boot/initrd.img-2.6.28-11-generic
-
Hirmuisen isot kiitokset nm. Äänet toimii ja grubista löytyy Ubuntu ja Mint :D
Ilman tätä foorumia olisin ihan hukassa. Täältä saa helposti apua ongelmiin ja ja auttajat ovat ystävällisiä :)