LinuxQuestions.org
Help answer threads with 0 replies.
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 04-14-2005, 12:27 AM   #1
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
Unhappy rescue debian


Hi everyone,
I need my pc by 8 AM please help...

I asked my bro to install XP because i needed for school and he did but i cannot access debian now and i have my homework in there. I was using grub, don't have a rescue disk, don't know which hd partition it loads from. How do i figure it out and fix it?

Thanks for all the replies, i really need them
 
Old 04-14-2005, 01:30 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You can use your install cd to boot the box. You need to know the partition though and for this you would need at least some basic utilties on a boot disk be they either DOS or a Linux utility. You would be able to see the partitions from a DOS disk by using the command fdisk or Linux cfdisk. Once back in Debian you could then just do grub-install /dev/hdxy to get grub back. Do yourself a favour and make a floppy boot disk or cd. Have a look at this page of mine;

http://www.oats.org.uk/linux/gruboot.htm
 
Old 04-14-2005, 07:32 AM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You can also use a Knoppix CD if you have one. When you boot a Knoppix CD, it automatically detects partions and creates corresponding directories for them in /mnt, like /mnt/hda1, /mnt/hda2, etc. From Knoppix you can open a terminal, become root with "su", them mount the partitions. For example:
Code:
mount /dev/hda2 /mnt/hda2
You can then browse the partitions to find your Debian install. You can copy files from the partition to a USB drive, or copy files to e-mail through internet mail in Knoppix. You can also chroot from Knoppix to the Debian install. For example, if Debian is on /mnt/hda2:
Code:
chroot /mnt/hda2
At that point, you are running as root on your Debian system. You can run the grub-install command from there to fix your boot loader.

Knoppix is very handy to keep around
 
Old 04-14-2005, 02:09 PM   #4
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Original Poster
Rep: Reputation: 30
I did what you said m_yates and i got my stuff from the linux partiion. Now the problem is grub-install /dev/hdc2
Code:
/sbin/grub-install: line 477: /dev/null: Permission denied
/sbin/grub-install: line 479: /dev/null: Permission denied
/sbin/grub-install: line 477: /dev/null: Permission denied
/sbin/grub-install: line 479: /dev/null: Permission denied
/sbin/grub-install: line 477: /dev/null: Permission denied
/sbin/grub-install: line 479: /dev/null: Permission denied
/sbin/grub-install: line 477: /dev/null: Permission denied
/sbin/grub-install: line 479: /dev/null: Permission denied
/sbin/grub-install: line 477: /dev/null: Permission denied
/sbin/grub-install: line 479: /dev/null: Permission denied
The file /boot/grub/stage1 not read correctly.
is what i get... /dev/hdc1 is xp
 
Old 04-14-2005, 04:05 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You probably want to install grub in the master boot record so that it can handle booting windows and Debian. A good overview of configuration is here: http://www.gentoo.org/doc/en/handboo...part=1&chap=10 It is for Gentoo, but the same stuff applies in Debian.

Are you sure it is /dev/hdc? That is normally the IDE slot that the CD or DVD drive is connected to.
 
  


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
Debian rescue mode adityavpratap Debian 1 06-24-2005 04:00 AM
using debian sarge netinstallation as a rescue disk chocloman Debian 3 04-15-2005 08:37 PM
Debian rescue mode: Kernel panic manudath Linux - Software 0 02-16-2005 12:25 PM
How is Rescue used? darkfnord Linux - Newbie 4 05-19-2003 06:26 PM
Debian 2.2r5 asking for rescue floppy Rodcl Linux - Distributions 3 07-25-2002 10:26 PM

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

All times are GMT -5. The time now is 08:47 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