Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
maurizioOffline
15 Post subject: (solved) grub error after dist-upgrade  PostPosted: 06.01.2013, 22:46



Joined: 2012-12-05
Posts: 50
Location: Italy
Status: Offline
Hallo all!
Aptosid-i386 running on amd64.
Today I dist-upgraded, and now when I restarted it's saying:

error: ELF header smaller than expected.
Entering rescue mode...
grub rescue>_

anyone knows what to do?

ps: while dist-upgrading light went off.
I restarted and did dist-upgrade again.
Everything seemed allright, and the computer worked all the afternoon. but now I rebooted and got this.
A live dvd of aptosid runs allright.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bfreeOffline
Post subject: RE: grub error after dist-upgrade  PostPosted: 06.01.2013, 23:55
Team Member


Joined: 2010-08-26
Posts: 254

Status: Offline
I think best to try following the instructions from the manual on how to re-install grub to the mbr by chrooting from the live-dvd.
 
 View user's profile Send private message  
Reply with quote Back to top
maurizioOffline
Post subject:   PostPosted: 07.01.2013, 12:19



Joined: 2012-12-05
Posts: 50
Location: Italy
Status: Offline
I need some help about setting up the chroot environment.

I have dual boot windows 7 and aptosid.
This is the output of /etc/fstab:
      Quote:

/dev/sda1 /media/disk1part1 ntfs noauto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
/dev/sda2 /media/disk1part2 ntfs noauto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
/dev/sda4 /media/disk1part4 vfat noauto,users,rw,quiet,umask=000,shortname=lower 0 0
/dev/sda5 /media/disk1part5 ntfs noauto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0
/dev/sda6 none swap sw 0 0
/dev/sda7 /media/disk1part7 ext4 noauto,users,rw,exec,relatime 0 0
/dev/sda8 /media/disk1part8 ntfs noauto,users,ro,dmask=0022,fmask=0133,nls=utf8 0 0


In /dev/sda1 there is windows,
in /dev/sda7 there is aptosid.
Grub is in the master boot record, on /dev/sda1, I suppose.

So I shall do
mkdir /mnt/aptosid-chroot
mount /dev/sda7 /mnt/aptosid-chroot
mount --bind /proc /mnt/aptosid-chroot/proc
mount --bind /run /mnt/aptosid-chroot/run
mount --bind /sys /mnt/aptosid-chroot/sys
mount --bind /dev /mnt/aptosid-chroot/dev
mount --bind /dev/pts /mnt/aptosid-chroot/dev/pts

then the manual says "if you use an EFI system partition"
what is an EFI system partition?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maurizioOffline
Post subject:   PostPosted: 07.01.2013, 13:27



Joined: 2012-12-05
Posts: 50
Location: Italy
Status: Offline
Did it!
with EFI instructions.
Thanks a lot!
Aptosid rules!
Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio