Pagina 1 di 1
[RISOLTO][Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 8:44
da eufass
buongiorno,
su acer aspire ho win7 e poi maverick
ho aggiunto una partizione fat32 (volevo leggere posta sia con win che linux), al reboot mi ha dato grub rescue (ahhhhg!!!!)
adesso sono con usb live,
ho letto le istruzioni "Ripristinare Grub", ma vorrei essere sicuro di non avere fatto un grande casino
allego immagine gparted
grazie
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0x97fc97fc
Device Boot Start End Blocks Id System
/dev/sda1 1 1658 13312000 27 Unknown
/dev/sda2 * 1658 1671 102400 7 HPFS/NTFS
/dev/sda3 1671 17056 123583272 7 HPFS/NTFS
/dev/sda4 17057 30402 107196080 f W95 Ext'd (LBA)
/dev/sda5 17057 17659 4843566 b W95 FAT32
/dev/sda6 17660 29878 98142208 83 Linux
/dev/sda7 29878 30402 4205568 82 Linux swap / Solaris
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x5ad7ae1e
Device Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760001 c W95 FAT32 (LBA)
Disk /dev/sdd: 2002 MB, 2002780160 bytes
62 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ab830
Device Boot Start End Blocks Id System
/dev/sdd1 * 1
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 9:18
da patel
per aggiungere la partizione hai spostato quella di Ubuntu ? la prossima volta riduci partendo da destra e non da sinistra.
Posta
e il contenuto di
/etc/fstab e di
/boot/grub/grub.cfg preso dalla partizione sda6
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 9:32
da eufass
ecco:
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: UUID="036ec1a8-efd0-4dc0-8589-23bc6a4470f2" TYPE="ext3"
/dev/sda1: LABEL="PQSERVICE" UUID="DAA41C49A41C2B11" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="2A72A46372A4358B" TYPE="ntfs"
/dev/sda3: LABEL="ACER" UUID="988AAC6B8AAC4798" TYPE="ntfs"
/dev/sda5: LABEL="POSTA" UUID="17E7-25F1" TYPE="vfat"
/dev/sda6: UUID="0066e72d-b865-431f-86a5-2ab911c60eba" TYPE="ext4"
/dev/sda7: UUID="3020ae69-30ac-4d13-b459-66ca696c4961" TYPE="swap"
/dev/sdb1: LABEL="TERA" UUID="1A06-0638" TYPE="vfat"
/dev/sdd1: LABEL="P^?M-^KnM-3M-^}`bb" UUID="ACDB-3DAA" TYPE="vfat"
ubuntu@ubuntu:~$ cat /etc/fstab
aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda7 swap swap defaults 0 0
#
# 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="5"
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 0066e72d-b865-431f-86a5-2ab911c60eba
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 0066e72d-b865-431f-86a5-2ab911c60eba
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
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-28-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 0066e72d-b865-431f-86a5-2ab911c60eba
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=0066e72d-b865-431f-86a5-2ab911c60eba ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-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 0066e72d-b865-431f-86a5-2ab911c60eba
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=0066e72d-b865-431f-86a5-2ab911c60eba ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-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 0066e72d-b865-431f-86a5-2ab911c60eba
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 0066e72d-b865-431f-86a5-2ab911c60eba
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set daa41c49a41c2b11
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2a72a46372a4358b
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 ###
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 9:37
da patel
con cat /etc/fstab mi hai postato il fstab della live, avevo detto
il contenuto di /etc/fstab e di /boot/grub/grub.cfg preso dalla partizione sda6
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 9:47
da eufass
scusa,
ecco:
# /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).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=0066e72d-b865-431f-86a5-2ab911c60eba / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=3020ae69-30ac-4d13-b459-66ca696c4961 none swap sw 0 0
/dev/sda3 /media/ACER ntfs-3g silent,umask=0,locale=it_IT.utf8 0 0
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 9:51
da patel
grub.cfg e fstab sono ok, quindi basta ripristinare il grub seguendo la guida
http://wiki.ubuntu-it.org/Amministrazio ... Ripristino utilizzando sda6 al posto di sda1 e non considerando la parte relativa a /boot.
Se hai difficoltà posta tutto quello che appare a terminale.
Altro metodo è utilizzare Supergrub2
http://developer.berlios.de/project/sho ... p_id=10921
lanciare Ubuntu e dare da terminale
Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 10:05
da eufass
grande

grazie
[Risolto] Re: [Grub] pasticcio partizioni e grub rescue
Inviato: domenica 3 aprile 2011, 10:06
da eufass