LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-24-2007, 11:12 AM   #1
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Rep: Reputation: 15
Grub error 17


Hi ,
After resizing partition (increase Linux partition and decrease Windows) I get Grub error 17 and PC stuck . Any ideas ?
Thanks.
 
Old 02-24-2007, 11:17 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Reinstall GRUB. You can access your Linux install from a live disc, chroot to it and reinstall grub. Sometimes when you resize partitions, you move the kernel and other files needed at boot time, so you have to reinstall the bootloader.
 
Old 02-24-2007, 01:05 PM   #3
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
where do I get this live disc ? is it same disc for all distribution ? should I get one from Debian ?
 
Old 02-24-2007, 02:42 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by giraf
where do I get this live disc ? is it same disc for all distribution ? should I get one from Debian ?
I don't think Debian has a live cd. Use something like gnuparted or system-rescue-cd. The links are available at distrowatch.com.
 
Old 02-24-2007, 03:22 PM   #5
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
I found live cd from Debian (casper) , few questions :
1. What is its root (sudo ?)
2. How exactly do I install Grub ? I tried to install with apt-get but I do not have access to internet. Can I install it from the cdrom , pls tell me step by step command ...
Thanks.
 
Old 02-24-2007, 03:38 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Go look for any post from saikee - check his sig line for pointers.
Last time I looked (some months) he had all the detail you could possibly want.

Perhaps you should describe what you did to resize the partitions, and is the data inthose partitions viewable from the liveCD ??.
 
Old 02-25-2007, 04:19 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by giraf
I found live cd from Debian (casper) , few questions :
1. What is its root (sudo ?)
2. How exactly do I install Grub ? I tried to install with apt-get but I do not have access to internet. Can I install it from the cdrom , pls tell me step by step command ...
Thanks.
I've never used that cd, so can't tell you much about it. What you need to do is run the live cd, login as root and mount your Linux installation (the one on the hard drive) somewhere e.g. /media/debian. After that "chroot" into that environment and reinstall grub e.g.
Code:
#chroot /media/debian
#grub-install /dev/hda
 
Old 02-26-2007, 07:17 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by reddazz
I've never used that cd, so can't tell you much about it. What you need to do is run the live cd, login as root and mount your Linux installation (the one on the hard drive) somewhere e.g. /media/debian. After that "chroot" into that environment and reinstall grub e.g.
Code:
#chroot /media/debian
#grub-install /dev/hda
Isn't mounting /dev not required in the chroot?
Something like
Code:
mount /dev/ /media/debian/dev -o rbind
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Software 11 02-25-2007 07:42 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 11:58 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration