Boot from (hd,5) ext3 68657365-9a2a-4fc8-b94f-680ce3a78102
Starting up...
[ 1.292173] Kernel Panic - not syncing: VFS: Unable to mount root fs to unknown-block(0,0)
................
(jatkuu)
................
rct0: alarms up to one month
EISA: Probing bus 0 at eisa.0
Cannot allocate resource for EISA slot 1
Cannot allocate resource for EISA slot 2
Cannot allocate resource for EISA slot 28
EISA: Detected 0 cards
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
Using IPI No-Shortcut mode
registered taskstats version 1
Magic number 0:644:502
rect_cmos 00:04 Setting system clock to 2008-11-28 22:57 UTC(
BIOS EDD Facility v0.16 2004-Jun-25, 0 Devices found
EDD Information not availabe
input: AT Translated Set 2 Keyboard as /devices/platform/i8042/serio0/input/input1
VFS: Cannot open root device: "UUID=88b84e2e-f85d-4267-9528-725e61bddf96" or unkown block(0,0)
Please append a correct "root=" boot option; here the abailable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs to unkown-block(0,0)
Käynnistä lätty livelevyllä ja kaiva esiin Pääte. Käske siellä sudofdisk -l ja lähetä komennon antama tuloste tänne. Jos osaat niin mounttaa kiintolevysi /boot-osoi ja kerro mitä siellä lukee tiedostossa /grub/menu.lst.
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x67cbab28
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6687 53713296 7 HPFS/NTFS
/dev/sda2 6688 9728 24426832+ 5 Extended
/dev/sda3 9729 12161 19543072+ b W95 FAT32
/dev/sda5 6688 6809 979933+ 82 Linux swap / Solaris
/dev/sda6 6810 6810 8001 83 Linux
/dev/sda7 6811 8026 9767488+ 83 Linux
/dev/sda8 8027 9728 13671283+ 83 Linux
Miksi erillinen /boot ? Sen pieni koko myös epäilyttää, mutta en tiedä, koska itse käytän ainostaan / ja /home +swap konfiguraatioita.
T:Jallu59
Käytin osiointiin tätä ohjetta http://linux.fi/wiki/Miten_osioisin_kiintolevyn (http://linux.fi/wiki/Miten_osioisin_kiintolevyn) . Olen ymmärtänyt, että tämä on suositeltu tapa.
Koodia: [Valitse]Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x67cbab28
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6687 53713296 7 HPFS/NTFS
/dev/sda2 6688 9728 24426832+ 5 Extended
/dev/sda3 9729 12161 19543072+ b W95 FAT32
/dev/sda5 6688 6809 979933+ 82 Linux swap / Solaris
/dev/sda6 6810 6810 8001 83 Linux
/dev/sda7 6811 8026 9767488+ 83 Linux
/dev/sda8 8027 9728 13671283+ 83 Linux
Valitettavasti en itse osaa tuota mounttausta (ainakaan vielä :)) , joten antaisitko ohjeen tuon perusteella.
sudo mkdir /testi
sudo mount /dev/sda6 /testi
df -h
Lee livelevyllä edelleen sen juureen kansio /testi:Koodia: [Valitse]sudo mkdir /testi
Liitä boottiosiosi siihen:Koodia: [Valitse]sudo mount /dev/sda6 /testi
Nyt asennetun Ubuntun /boot -osion tiedostojen pitäisi näkyä hakemistossa /testi. Katsopa samantien paljonko siellä on tilaa:Koodia: [Valitse]df -h
ubuntu@ubuntu:~$ sudo mount /dev/sda6 /testi
ubuntu@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 441M 2,0M 439M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 441M 2,0M 439M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 441M 0 441M 0% /lib/init/rw
varrun 441M 104K 441M 1% /var/run
varlock 441M 0 441M 0% /var/lock
udev 441M 2,8M 438M 1% /dev
tmpfs 441M 148K 441M 1% /dev/shm
rootfs 441M 85M 356M 20% /
/dev/scd0 699M 699M 0 100% /cdrom
/dev/loop0 676M 676M 0 100% /rofs
tmpfs 441M 12K 441M 1% /tmp
/dev/sda6 7,6M 5,1M 2,2M 71% /testi
Boot from (hd,5) ext3 68657365-9a2a-4fc8-b94f-680ce3a78102
Koodia: [Valitse]Boot from (hd,5) ext3 68657365-9a2a-4fc8-b94f-680ce3a78102
Olisko tossa se vika? Eli eikös sen pitäisi olla (hd0,5)?
Koodia: [Valitse]Boot from (hd,5) ext3 68657365-9a2a-4fc8-b94f-680ce3a78102
Olisko tossa se vika? Eli eikös sen pitäisi olla (hd0,5)?
Olisiko kellään ideaa, miten tämän voisi korjata?
Koodia: [Valitse]Boot from (hd,5) ext3 68657365-9a2a-4fc8-b94f-680ce3a78102
Olisko tossa se vika? Eli eikös sen pitäisi olla (hd0,5)?
Olisiko kellään ideaa, miten tämän voisi korjata?
(http://www.linuxconfig.org/images/f/fa/Editgrubbootoption.gif)
Eli menet grubissa editoimaan sitä Ubuntun riviä (muistaakseni e-näppäimellä), jolloin aukeaa yllä olevan tyyppinen kuva. Sitten e-näppäimellä editoit root -rivin oikeaksi (kuvan eka rivi). Sen jälkeen b-näppäimellä se käynnistää kyseisen valinnan.. Kun pääset (tai siis jos ja toivottavasti pääset) Ubuntuun saakka nii editoi /boot/grub/menu.lst -tiedostossa root oikeaksi.
Eikös se noin voisi mennä... ainakin ajattelisin ja muistelisin. Korjatkaa viisaammat tarvittaessa :)
Miten saan muokattua menu.lst - tiedostoa? Ongelma ilmeisesti ratkeasi sen kautta: http://www.maxhorvath.com/2008/11/problems-when-upgrading-to-ubuntu-810-kernel-panic-unable-to-mount-root-fs.html (http://www.maxhorvath.com/2008/11/problems-when-upgrading-to-ubuntu-810-kernel-panic-unable-to-mount-root-fs.html)
title GNU/Linux
root (hdx,y)
kernel /kernel-x.y.z root=/dev/hdXY
initrd /initrd.img
Live-cd:llä käyntiin. Mounttaa Ville Pöntisen ohjeen mukaan, mutta sda7. Sitten löytyy mountatusta kansiosta (mallissa /testi) alta Ubuntun tiedostot. Eli kansiosta /testi/boot/grub -hakemistosta löytyy menu.lst. Tiedoston lopusta löytyy Ubuntun rivit, jotka ovat tyyliin:Koodia: [Valitse]title GNU/Linux
root (hdx,y)
kernel /kernel-x.y.z root=/dev/hdXY
initrd /initrd.img
Jos sitä root riviä ei ole, niin koita lisätä ja toivon mukaan toimisi..
ubuntu@ubuntu:~$ sudo mkdir /test
ubuntu@ubuntu:~$ sudo mount /dev/sda7 /test/
ubuntu@ubuntu:~$ df -f
df: invalid option -- 'f'
Try `df --help' for more information.
ubuntu@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 441M 2,0M 439M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 441M 2,0M 439M 1% /lib/modules/2.6.27-7-generic/volatile
tmpfs 441M 0 441M 0% /lib/init/rw
varrun 441M 104K 441M 1% /var/run
varlock 441M 0 441M 0% /var/lock
udev 441M 2,8M 438M 1% /dev
tmpfs 441M 152K 441M 1% /dev/shm
rootfs 441M 85M 356M 20% /
/dev/scd0 699M 699M 0 100% /cdrom
/dev/loop0 676M 676M 0 100% /rofs
tmpfs 441M 12K 441M 1% /tmp
/dev/sda7 9,2G 2,2G 6,6G 25% /test
ubuntu@ubuntu:~$ cd /test/
ubuntu@ubuntu:/test$ ls
bin cdrom etc lib media opt root srv tmp var windows
boot dev home lost+found mnt proc sbin sys usr vmlinuz
ubuntu@ubuntu:/test$ cd b
bin/ boot/
ubuntu@ubuntu:/test$ cd boot/
ubuntu@ubuntu:/test/boot$ ls
ubuntu@ubuntu:/test/boot$ ls
ubuntu@ubuntu:/test/boot$
## ## End Default Options ##
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro quiet splash
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro single
title Ubuntu 8.10, memtest86+
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /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/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 8.10, kernel 2.6.27-7-generic
root (hd0,0)
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro quiet splash
]initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro quiet splash
initrd /initrd.img-2.6.27-7-generic
quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
Eli tuo alin rivi, jonka vaihdat (hd0,5).ubuntu@ubuntu:~$ sudo mkdir /testi
ubuntu@ubuntu:~$ sudo mount /dev/sda6 /testi/
ubuntu@ubuntu:~$ cd /testi/
ubuntu@ubuntu:/testi$ cd
grub/ lost+found/
ubuntu@ubuntu:/testi$ cd grub/
ubuntu@ubuntu:/testi/grub$ ls
default device.map e2fs_stage1_5 fat_stage1_5 installed-version jfs_stage1_5 menu.lst minix_stage1_5 reiserfs_stage1_5 stage1 stage2 xfs_stage1_5
ubuntu@ubuntu:/testi/grub$
ubuntu@ubuntu:/testi/grub$ sudo nano 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
## 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=88b84e2e-f85d-4267-9528-725e61bddf96 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)
# groot=68657365-9a2a-4fc8-b94f-680ce3a78102
## 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
## 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=(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
## 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 8.10, kernel 2.6.27-7-generic
root (hd0,1)
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /vmlinuz-2.6.27-7-generic root=UUID=88b84e2e-f85d-4267-9528-725e61bddf96 ro single
title Ubuntu 8.10, memtest86+
uuid 68657365-9a2a-4fc8-b94f-680ce3a78102
kernel /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/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
ubuntu@ubuntu:/testi/grub$ sudo update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
ubuntu@ubuntu:/testi/grub$ chroot sudo update-grub
chroot: cannot change root directory to sudo: No such file or directory
ubuntu@ubuntu:/testi/grub$ sudo update-initramfs -u
update-initramfs is disabled since running on a live CD
ubuntu@ubuntu:/testi/grub$ chroot sudo update-initramfs -u
chroot: cannot change root directory to sudo: No such file or directory
ubuntu@ubuntu:/testi/grub$ chroot
chroot: missing operand
Try `chroot --help' for more information.
Ensiksi liität livelevyn avulla ne osiot käyttöön, jonka jälkeen chroot(taat) itsesi sinne, jolloin pystyt tekemään kuvatut asiat, linux.fin wikissä on ohjeet kuinka tehdä. Muistaakseni linkin annoin jo aikaisemmassa viestissä.
ubuntu@ubuntu:/testi$ chroot /testi/
chroot: cannot change root directory to /testi/: Operation not permitted
ubuntu@ubuntu:/testi$ chroot /testi/grub/
chroot: cannot change root directory to /testi/grub/: Operation not permitted
ubuntu@ubuntu:/testi$ sudo chroot /testi/grub/
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ sudo chroot /testi/
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ sudo chroot /testi
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ chroot /testi
chroot: cannot change root directory to /testi: Operation not permitted
ubuntu@ubuntu:/testi$ sudo chroot /testi/grub/
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ sudo chroot /testi/grub
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ sudo chroot /testi
chroot: cannot run command `/bin/bash': No such file or directory
ubuntu@ubuntu:/testi$ sudo chroot /testi/
chroot: cannot run command `/bin/bash': No such file or directory
## default grub root device
## e.g. groot=(hd0,5)
# groot=(hd0,5)
sda5 swap
sda6 boot
sda7 /
sda8 /home
Koodia: [Valitse]/dev/sda6 7,6M 5,1M 2,2M 71% /testi
Ajoin komennot ohjeesi mukaan ja onnistuin päivittämään GRUB:n, mutta InitRd ei päivittynyt, vaan se valitti, että levylle ole enää tilaa.
Näyttäis siltä, että tuo boot-osio on vain 7,6M, joten ei ihme jos tila loppuu.. Siinä se ongelman juuri tässä nyt sitten taitaa ollakin. 100megaa kai riittäiskin johonkin.. Ainakin oma boot-kansioni on 12megaa tällä hetkellä. Mutta en osaa yhtään sanoa, mitä suositellaan boot-osion kooksi. Ehkä gdm tietää paremmin?
Mutta itse probleemaan gdm mainitsikin ratkaisut jo mitä kannattaa seuraavaks kokeilla.
Nyt toimii! Kiitos kaikille avusta :D Nyt alkoi läppärillä työskentely sujumaan... 8)
Ratkaisu oli siis se, että asensin Ubuntun ilman erillistä boot - osiomääritystä.
Nyt toimii! Kiitos kaikille avusta :D Nyt alkoi läppärillä työskentely sujumaan... 8)
Ratkaisu oli siis se, että asensin Ubuntun ilman erillistä boot - osiomääritystä.
Ei sillä koolla niin merkitystä ole, kun kuitenkin nykylevyillä riittää kokoa...
Itselläni oli 200Mb /boot osio joskus ennen muinoin, mutta kun sille ei ollut mitään järkevää tarvetta, niin poistin käytöstä.
Tuollaisen määrän saa kuitenkin menee helposti kun on 4-5 kerneliä niiden backupit ja muut härpäkkeet.