LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-14-2011, 06:46 PM   #1
franklinb
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Booting Debian 6 with no bootloader, no liveCD, and no bootable partition


Last night I decided to reinstall Debian and cover the old Windows partition completely. I used the executable installer at http://goodbye-microsoft.com to install it. The installation completed, but when I attempted to install grub, it coughed up an error. Then I realized I had no bootable partition. So I went back to the partition configuration step, and the installer froze and I couldn't do anything. So I rebooted the computer and now have no bootable partition and no grub.

I do, however, have some old live CD's of Puppy Linux 4.12 and DSLinux (dunno which version). When I try to make the partition bootable in DSL, it says it can't read the drive. When I try in Puppy, I can view the files on the drive (so I know Debian is installed), but it won't let me just adjust the boot flag either.

Is it possible to adjust the boot flag and install grub via the Puppy CD?

I can also use PXE to load a bootloader, if that helps. I tried using grldr to boot it, but I'm not sure if that mounted the partition correctly. I'm also not sure if I can boot that way without a boot partition.
 
Old 11-14-2011, 07:59 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
AFAIK you don't need the boot flag on you partition.

No GRUB is more serious. Great that you can boot in something else.

Boot
Mount the Debian disk below the /mnt directory, for example:
Code:
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
(Assuming you have a mnt directory and Debian is installed on sda1... you get the picture.

If Debian consists of more partitions, mount them as well in the directory tree below /mnt/sda1.

Now the trick:
Code:
chroot /mnt/sda1
and install grub with grub-install /dev/sda

While writing I realize your kernel version might not be compatible with the installed Debian version.

Recommended is to download a Debian live USB (rescue version), boot from the USB and follow the instructions above.

jlinkels
 
Old 11-17-2011, 04:21 AM   #3
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Debian uses grub2, hopefully the live CD you have uses grub2 also. But probably does not matter. This article has got me out of this bind many a times, look at section 12.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Ubuntu LiveCD from USB Stick using GRUB as the bootloader retrovertigo Ubuntu 0 08-30-2008 09:45 PM
Booting into Debian without Bootloader gamewolf Debian 10 04-28-2008 07:31 AM
Error: invalid or damaged bootable partition, when booting from USB. tarekahf Puppy 5 03-19-2008 09:09 AM
Make Debian and SUSE bootable from on logical partition lixy Linux - Newbie 3 03-28-2005 02:39 PM
Bootloader for liveCD: Is this possible? mrgrieves Linux - Software 4 05-13-2004 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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