Καλημέρα σε όλους!
Χθές έπεσε στα χέρια μου το καινούργιο νετμπουκ ππου θα χρησιμοποιω μαζί με το κορίτσι μου οπότε χρειαζόμαστε και τα windows.Το λαπτοπάκι είχε ήδη dual boot ( windows 7 & netbook remix 9.10 ) αλλά δε μου άρεσε πολύ, ήταν και πολύ περιορισμένο το /home σε 10 Gb οπότε είπα να κάνω μία φρέσκια εγκατάσταση ubuntu, να βάλω και το /home μου να είμαι κομπλέ.
Κάπου τα έμπλεξα όμως και έχω το ίδιο πρόβλημα που αναφέρει και ο φίλος εδώ.
Θυμάμαι ότι στην εγκατάσταση είχε προεπιλογή γιά τον grub ολόκληρο τον σκληρό γενικά ( sda )
αλλά εγώ επέλεξα χειροκίνητα το sda1 (που απ' ότι φαίνεται βρίσκεται και ο loader των windows)
Το έκανα αυτό με το σκεπτικό όταν θα χρειαζόταν να φορμάρουμε τα windows να μην πείραζε τον grub.
Μετά στο πρώτο boot μου έβγαλε αυτό :
error: the symbol 'grub_xputs' not foundκαι λύθηκε με live cd έτσι :
- Κώδικας: Επιλογή όλων
sudo mount /dev/sdXX /mnt
sudo grub-install --root-directory=/mnt devsdX
Η κατάσταση έχει τώρα ως εξής :
- Κώδικας: Επιλογή όλων
j0hn-e@netbook:~$ sudo fdisk -l
[sudo] password for j0hn-e:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7fe108f7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 13294 106674176 7 HPFS/NTFS
/dev/sda3 17487 19457 15824026 f W95 Ext'd (LBA)
/dev/sda4 13294 17487 33686528 83 Linux
/dev/sda5 17488 19369 15117165 83 Linux
/dev/sda6 19370 19457 706828+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Ακολούθησα και τις οδηγίες σου
Epirotes , χωρίς αποτέλεσμα όμως.
Τέλος, το αποτέλεσμα από το script είναι το εξής:
- Κώδικας: Επιλογή όλων
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for (,msdos5)/boot/grub.
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 306459175 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe
sda3: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda6: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/sda2 206,848 213,555,199 213,348,352 7 HPFS/NTFS
/dev/sda3 280,928,653 312,576,704 31,648,052 f W95 Ext d (LBA)
/dev/sda5 280,928,655 311,162,984 30,234,330 83 Linux
/dev/sda6 311,163,048 312,576,704 1,413,657 82 Linux swap / Solaris
/dev/sda4 213,555,200 280,928,255 67,373,056 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 2AD8966BD8963553 ntfs Data Files System
/dev/sda2 28649AA0649A7074 ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda4 452344c5-4f21-44af-8e10-1a033e945c3d ext4
/dev/sda5 969297c0-9b5d-42f5-b3ef-56f11c91d26a ext4
/dev/sda6 8002d81c-1448-4298-87f9-69b5e1f6f458 swap
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda4 /home ext4 (rw,commit=0)
=========================== sda5/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
set locale_dir=($root)/boot/grub/locale
set lang=el
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=969297c0-9b5d-42f5-b3ef-56f11c91d26a ro quiet splash
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
echo 'Loading Linux 2.6.35-27-generic ...'
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=969297c0-9b5d-42f5-b3ef-56f11c91d26a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=969297c0-9b5d-42f5-b3ef-56f11c91d26a ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=969297c0-9b5d-42f5-b3ef-56f11c91d26a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 969297c0-9b5d-42f5-b3ef-56f11c91d26a
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 2ad8966bd8963553
chainloader +1
}
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
=============================== sda5/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 nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=969297c0-9b5d-42f5-b3ef-56f11c91d26a / ext4 errors=remount-ro 0 1
# /home was on /dev/sda4 during installation
UUID=452344c5-4f21-44af-8e10-1a033e945c3d /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=8002d81c-1448-4298-87f9-69b5e1f6f458 none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
156.9GB: boot/grub/core.img
148.3GB: boot/grub/grub.cfg
144.9GB: boot/initrd.img-2.6.35-22-generic
144.9GB: boot/initrd.img-2.6.35-27-generic
156.9GB: boot/vmlinuz-2.6.35-22-generic
156.9GB: boot/vmlinuz-2.6.35-27-generic
144.9GB: initrd.img
144.9GB: initrd.img.old
156.9GB: vmlinuz
156.9GB: vmlinuz.old
=======Devices which don't seem to have a corresponding hard drive==============
sdb
Το πρόβλημα είναι ότι δεν μου είναι και καθόλου εύκολο να το λύσω αποκαθιστώντας το loader των windows, γιατί ούτε cd τους έχω ,ούτε και drive έχει το netbook.
Να με συμπαθάτε γιά το σεντόνι, να 'στε καλά!