Ubuntu-po aktualizacjach nie startuje-błąd

dsc00139n.th.jpg

to po resecie jak instalowałem aktualizacje dla ubuntu i aktualizowałem język.

Ten problem się nie raz pojawiał. Odal LiveCD, podmontuj partycję z systemem i edytuj menu.lst. Zamień w menu.lst w opcji kernel root=/dev/disk/by-uuid/xxxxxxxxxxxxx , gdzie X to właśnie uuid na root=/dev/sda5 (z tego co widzę system bootuje się z sda5, jeśli inaczej to dopasuj).

Pozdrawiam!

proszę, wytłumacz szczegółowo- jestem kompletnym zielonym z linuxem mam do czynienia tyle co z ubuntu umiem sources wpisać i konkretnie nic poza tym.

Myślałem o formacie-ale mam tam ważne pliki od neta (konfiguracja nad którą się głowiłem godzine) i nie chce formatować-chce naprawić koniecznie.

Co do tego że system bootuje sie z sda5 to prawda. na sda6 mam swapa. i widze że trzeba ten uuid wpisać ale skąd to mam wziąść?

UUID masz wpisany a ja proponuję zmienić go na normalne oznaczenie dysku :slight_smile: Zrób tak, odpal Ubuntu w LiveCD. Gdy system się załaduje odpal terminal i postępuj następująco:

sudo su

mount /dev/sda5 /mnt

gedit /mnt/boot/grub/menu.lst

Szukasz linijki kernel i zmieniasz tam opcję z root=/dev/disk/by-uuid/tutaj_jest_nr_uuuid na root=/dev/sda5. Jeszcze możesz zmienić też /etc/fstab, jednak zanim coś w nim zrobisz, zrób jego kopię w ten sposób :

cp -v /mnt/etc/fstab /mnt/etc/fstab.backup

Teraz można przejść do edycji w ten sposób:

gedit /mnt/etc/fstab

I tam gdzie masz uuid zamieniasz na oznaczenia typu sda, czyli tam gdzie masz / dajesz zamiast uuid /dev/sda5, dla swap zamist uuid /dev/sda6 itd. Prawdopodobnie tak to u Ciebie będzie wyglądało:

# /etc/fstab: static file system information.

#

# Use 'vol_id --uuid' to print the universally unique identifier for a

# device; this may be used with UUID= as a more robust way to name devices

# that works even if disks are added and removed. See fstab(5).

#

# 

proc /proc proc defaults 0 0

/dev/sda5 / ext3 errors=remount-ro 0 1

#/dev/sda7 /home ext3 defaults 0 2

/dev/sda6 none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

Jeśli masz jeszcze partycję montowaną w /home to odkomentuj tą linijkę:

#/dev/sda7 /home ext3 defaults 0 2

Czyli usuń kratkę # i jeśli jest na innej partycji niż sda7 to zmień. Zapisz zmiany i kolejno:

umount /mnt

reboot

Jeśli coś namieszasz w /etc/fstab i system nie ruszy to się nie martw, bo prosiłem abyś sobie zrobił kopię tego pliku, więc o tym nie zapomnij :slight_smile:

Pozdrawiam!

mam jeszcze pytanie:

# /etc/fstab: static file system information.

#

# Use 'vol_id --uuid' to print the universally unique identifier for a

# device; this may be used with UUID= as a more robust way to name devices

# that works even if disks are added and removed. See fstab(5).

#

# 

proc /proc proc defaults 0 0

/dev/sda5 / ext3 errors=remount-ro 0 1

#/dev/sda7 /home ext3 defaults 0 2

/dev/sda6 none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

w tym tutaj mampytanie: oprócz partycji linuxowych (nie mam home! !!

Nie, nie musisz ale możesz je dodać, jeśli chcesz aby były automatycznie montowane, np. u mnie wygląda to tak:

roobal@debian:~$ cat /etc/fstab 

# /etc/fstab: static file system information.

#

# Use 'vol_id --uuid' to print the universally unique identifier for a

# device; this may be used with UUID= as a more robust way to name devices

# that works even if disks are added and removed. See fstab(5).

#

# 

proc /proc proc defaults 0 0

# / was on /dev/sda6 during installation

/dev/sda6 / ext3 errors=remount-ro 0 1

# /home was on /dev/sda8 during installation

/dev/sda8 /home ext3 defaults 0 2

# swap was on /dev/sda7 during installation

/dev/sda7 none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0


# Windows Seven


/dev/sda3	/windows	ntfs-3g	defaults	0	0

roobal@debian:~$

Pozdrawiam!

Czyli tak to powinno wyglądać u mnie?

Dodam że cd-rm który na liście jest uwzględniony mam DVD i co ważne na złączu sata.

Tak a co do DVD to nie robi różnicy, bo on już jest oznaczony jako SATA (scd0).

Pozdrawiam!

niestety to nie pomogło nadal to samo. roobal po tym jak zapisałem tam gdzie podałeś zapisałem sobie ten pliczek na pendrive. Z wklejam tutaj na forum-zobacz co jest źle i wyedytuj tak by działało.

# 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 30


## 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=791272d4-bc5e-4f23-a368-5dfcb6fdb702 ro


## default grub root device

## e.g. groot=(hd0,0)

# groot=791272d4-bc5e-4f23-a368-5dfcb6fdb702


## 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=(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=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 Ubuntu 9.04, kernel 2.6.28-15-generic

uuid 791272d4-bc5e-4f23-a368-5dfcb6fdb702

kernel /boot/vmlinuz-2.6.28-15-generic root=/dev/sda5 ro quiet splash 

initrd /boot/initrd.img-2.6.28-15-generic

quiet


title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)

uuid 791272d4-bc5e-4f23-a368-5dfcb6fdb702

kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=791272d4-bc5e-4f23-a368-5dfcb6fdb702 ro single

initrd /boot/initrd.img-2.6.28-15-generic


title Ubuntu 9.04, kernel 2.6.28-11-generic

uuid 791272d4-bc5e-4f23-a368-5dfcb6fdb702

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=/dev/sda5 ro quiet splash 

initrd /boot/initrd.img-2.6.28-11-generic

quiet


title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)

uuid 791272d4-bc5e-4f23-a368-5dfcb6fdb702

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=791272d4-bc5e-4f23-a368-5dfcb6fdb702 ro single

initrd /boot/initrd.img-2.6.28-11-generic


title Ubuntu 9.04, memtest86+

uuid 791272d4-bc5e-4f23-a368-5dfcb6fdb702

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/sda1

title Windows Vista (loader)

rootnoverify	(hd0,0)

savedefault

makeactive

chainloader	+1
title Ubuntu 9.04, kernel 2.6.28-15-generic

kernel	/boot/vmlinuz-2.6.28-15-generic root=/dev/sda5 ro quiet splash 

initrd /boot/initrd.img-2.6.28-15-generic

quiet


title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)

kernel	/boot/vmlinuz-2.6.28-15-generic root=/dev/sda5 ro single

initrd /boot/initrd.img-2.6.28-15-generic


title Ubuntu 9.04, kernel 2.6.28-11-generic

kernel	/boot/vmlinuz-2.6.28-11-generic root=/dev/sda5 ro quiet splash 

initrd /boot/initrd.img-2.6.28-11-generic

quiet


title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)

kernel	/boot/vmlinuz-2.6.28-11-generic root=/dev/sda5 ro single

initrd /boot/initrd.img-2.6.28-11-generic


title Ubuntu 9.04, memtest86+

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/sda1

title Windows Vista (loader)

rootnoverify	(hd0,0)

savedefault

makeactive

chainloader	+1

Poprawione. Tak w ogóle miałem wcześniej pytać. Na starych jądrach też jest ten problem? Bo problem w końcu pojawił się po aktualizacji i to prawdopodobnie wina jądra.

Pozdrawiam!

jak widz e mam właśnie do wyboru inne jądro w bootloaderze-zaraz spróbuję uruchomić starsze i zobaczymy czy da rade.

Dodane 23.08.2009 (N) 15:08

stare jądro działa ale jest takie jakieś…mega okrojone? nawet opcji wyłączania kompa nie ma (tylko hibernacja)

Dodane 23.08.2009 (N) 15:31

ehhh to co podałeś niestety NIE DZIAŁA. podmieniłem to co trzeba (liste) i niestety wywala taki error:

grub.th.jpg

dobrze że miałem kopie zapasowa -uratowała mnie od usunięcia gruba.

proszę Cię teraz o to byś mi zedytował KOMPLETNY wpis menu.lst- tak żebym mógł go wy edytować usunąć zawartość i zapisać ta wy edytowaną przed Ciebie. Z góry dzięki.

Ten błąd się już nie raz pojawiał, jak znajdę jego rozwiązanie to Ci je podam :slight_smile:

Pozdrawiam!

ok dzięki z góry ale to chyba wyniknęlo ze zlego menu.lst