Δημοσιεύτηκε: 11 Δεκ 2009, 00:39
Εχετε καποιο προβλημα με τον Grub; Θελετε βοηθεια; Τοτε ακολουθηστε τα παρακάτω βηματα για να εξαχθουν
τεχνικες πληροφοριες απο τα partition και τα αρχεια grub που εχετε, ωστε να μπορεσουμε να βοηθησουμε!
Παρακαλουμε ξεκινηστε νεα συζητηση για την περιπτωση σας, στην ενοτητα του φορουμ Λειτουργικό Σύστημα.
Με το παρακατω script θα μπορεσουμε να εχουμε ολες τις πληροφοριες που χρειαζονται,
για να βοηθηθει καποιο μελος σε περιπτωση που εχει καποιο προβλημα με τον Grub (Boot loader) !
Πρωτα απ'ολα πρεπει να δουμε τον οδηγο για να κανουμε επαναφορα
εδω για Ubuntu 9.10 Επαναφορά Grub2 bootlοαder
εδω για Ubuntu 9.04 (και παλιοτερα) "Επαναφορά" grub
Σε περιπτωση οπου δεν μπορεσουμε να επιλυσουμε το προβλημα μας τοτε κανουμε το παρακατω.
Πρωτα απ' ολα κατεβαζουμε το αρχειο(script) απο εδω http://sourceforge.net/projects/bootinfoscript/files/
κατα προτιμηση την νεοτερη εκδοση που θα εχει.
Μολις κατεβει το αρχειο, το βαζουμε στο Home μας (Προσωπικος φακελος)
Ανοιγουμε τερματικο (Εφαρμογες/Βοηθηματα/Τερματικο)
και εκτελουμε τις δυο παρακατω εντολες μια-μια
- Κώδικας: Επιλογή όλων
chmod +x boot_info_script*.sh
sudo bash ~/boot_info_script*.sh
Μολις τελειωσουμε θα παρατηρησουμε πως μεσα στο Home μας (Προσωπικος φακελος)
εχει εμφανιστει ενα αρειο .txt με το ονομα RESULTS.txt
Εκει βρισκοντε ολες οι πληροφοριες που χρειαζονται.
Το ανοιγουμε και δημοσιευουμε ολοκληρο το περιεχομενο του,
στην ενοτητα Λειτουργικό Σύστημα!
Το περιεχομενου του αρχειου δεν περιεχει κανενα προσωπικο δεδομενο,
και δεν υπαρχει κανενας απολυτος κινδυνος να το χρησιμοποιησει καποιος, για καποια αλλη χρηση!
============================= Update ==============================
Το περιεχομενο του αρχειο RESULTS.txt θα ειναι σαν αυτο:
- Κώδικας: Επιλογή όλων
============================= Boot Info Summary: ==============================
=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #1 for /boot/grub.
sda1: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xede55a04
Partition Boot Start End Size Id System
/dev/sda1 * 63 29,334,689 29,334,627 83 Linux
/dev/sda2 29,334,690 68,404,769 39,070,080 83 Linux
/dev/sda3 68,404,770 74,268,494 5,863,725 82 Linux swap / Solaris
/dev/sda4 74,268,495 156,296,384 82,027,890 5 Extended
/dev/sda5 74,268,558 156,296,384 82,027,827 83 Linux
blkid -c /dev/null: ____________________________________________________________
/dev/sda1: UUID="23244617-965e-4cf3-8373-c87d09b09a5e" TYPE="ext4"
/dev/sda2: UUID="cec1184c-2253-45e4-b532-c027b3bcfd7f" TYPE="ext4"
/dev/sda3: UUID="6cf5e1f9-ac27-4bb2-b196-ce8f479dc64d" TYPE="swap"
/dev/sda5: UUID="eb75255a-0abc-47f6-b26e-c7aab9f69244" TYPE="ext3"
=============================== "mount" output: ===============================
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda2 on /home type ext4 (rw)
/dev/sda5 on /media/Data type ext3 (rw,noexec,nosuid,nodev,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/vagrale13/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=vagrale13)
=========================== sda1/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 23244617-965e-4cf3-8373-c87d09b09a5e
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=23244617-965e-4cf3-8373-c87d09b09a5e ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
=============================== sda1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s 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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=23244617-965e-4cf3-8373-c87d09b09a5e / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=cec1184c-2253-45e4-b532-c027b3bcfd7f /home ext4 defaults 0 2
# Data was on /dev/sda5
UUID=eb75255a-0abc-47f6-b26e-c7aab9f69244 /media/Data ext3 rw,user,relatime 0 2
# swap was on /dev/sda3 during installation
UUID=6cf5e1f9-ac27-4bb2-b196-ce8f479dc64d none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sda1: Location of files loaded by Grub: ===================
.0GB: boot/grub/grub.cfg
.0GB: boot/initrd.img-2.6.31-14-generic
.0GB: boot/initrd.img-2.6.31-15-generic
.0GB: boot/initrd.img-2.6.31-16-generic
.0GB: boot/vmlinuz-2.6.31-14-generic
.0GB: boot/vmlinuz-2.6.31-15-generic
.0GB: boot/vmlinuz-2.6.31-16-generic
.0GB: initrd.img
.0GB: initrd.img.old
.0GB: vmlinuz
.0GB: vmlinuz.old
Η εργασία υπάγεται στην άδεια Creative Commons Αναφορά-Μη εμπορική χρήση-Παρόμοια διανομή 3.0 Ελλάδα