LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2004, 10:11 AM   #1
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Rep: Reputation: 0
restoring linux boot from DOS


Hi!

I'm looking for a way to get into linux from DOS.

I'm running the folowing configurtation:

/hda1/ -> FAT16/"Win98"
/hda5/ -> FAT16
/hdb1/ -> FAT16
/hdb2/ -> Ext3/"RedHat Linux 8" (psyche)

Currently the system boot's into Windows 98 so I'm looking for a way to boot into the Linux configuration on hdb2.

Best Regards,
Snt
 
Old 01-04-2004, 10:41 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
use loadlin. but you need the kernel file on the 98 partition if you plan to do this.
 
Old 01-04-2004, 11:03 AM   #3
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
loadling via autoboot.bat

Quote:
Originally posted by ugenn
use loadlin. but you need the kernel file on the 98 partition if you plan to do this.
Hi!

Thanks for your reply, I've tried loadlin via the autoboot.bat file included on the dosutils directory from RedHat FTP but it seems it's only for installing RedHat Linux and not for accessing preinstalled instalations...

Let me know if it is still possible to boot into my existing RedHat instalation without reinstalling the whole system.

Best Regards,
Snt
 
Old 01-04-2004, 11:09 AM   #4
johnallen
Member
 
Registered: Oct 2003
Location: Twin Cities
Posts: 32

Rep: Reputation: 15
Have you tried using the CD to boot off of? There should be a repair mode where it mounts your linux partition on.
 
Old 01-04-2004, 11:13 AM   #5
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 32
Indeed. I think you shouldn't try using DOS utilities to try to get into your instalation. Just boot your CD and, if you're not given the option to type "rescue" before the installation, then the installed will surely detect your previous installation and will ask you if you wish to reinstall or rescue.
 
Old 01-04-2004, 11:32 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592Reputation: 3592
//Moderator note: you have cross/doubleposted a message, which is against the LQ Rules. Cross-posting is considered bad netiquette on your part, a waste of resources on LQ's part and a waste of time for LQ members who take the time your question.
Please do not do that again.
 
Old 01-04-2004, 12:53 PM   #7
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
booting into linux whitout CD or resquedisk

quote:
--------------------------------------------------------------------------------
Originally posted by demmylls
do you have the boot disk.
you can always boot from boot disk and then make restoration from there.

another method is to use your linux installation disk like redhat/ mandrake does, a bootable cd normally the 1st disk of the distros installations disk.

if you use redhat you can insert the 1st installation disk of redhat in to cdrom then set bios boot priority to cdrom then boot until you get message to install redhat, by there you can then type linux rescue.

if you dont know much about linux command and some basic knowledge of how the linux is boot then you'll get stuck.

if needed more guide you can post here
--------------------------------------------------------------------------------



Hi!

Thanks for your reply,

The problem is, I haven't got an Linux bootdisk or CD. I downloaded the image files from RedHat FTP and installed it with the included dosutils (autoboot.bat/loadlin) but now I would like to keep my old/existing Linux instalation and install an dualboot or create an floppy to boot into linux.

Let me know if it is possible.

Best Regards,
Snt
 
Old 01-04-2004, 01:02 PM   #8
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
-

-

Last edited by celeb-x; 01-25-2004 at 02:02 PM.
 
Old 01-04-2004, 04:01 PM   #9
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
You have 2 possibilities:
1) start with loadlin, then when your install system is loaded press alt+f2 (or ctrl+alt+f2 if you are in X). You'll probably get a shell, use it to install a bootloader such as lilo or grub
2) if the previous fails, you have no choices but installing grub on a boot floppy from dos and use it to boot. At the moment is seems gnu server is down so I can't give you precise links (should be somewhere under www.gnu.org/software/grub). I hope it will be accessible soon.
Note that grub is not trivial to use, so you should first read (and maybe print) the howto
Best wishes
 
Old 01-05-2004, 02:46 AM   #10
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
So it's not possible just to install something from dos to access an existing linux, correct?

It should be made!!

Thanks again for your contribution to this post, I think I will print the Linux Bootdisk HOWTO and start reading

Best Regards,
Snt
 
Old 01-05-2004, 05:02 AM   #11
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Quote:
Originally posted by celeb-x
So it's not possible just to install something from dos to access an existing linux, correct?

It should be made!!
It has. loadlin does what you want perfectly. You're just not using it right.
You have to pass to loadlin /dev/hdb? as the device to mount / on.

An alternative solutions is Tom's root boot disk (google for this).

Last edited by ugenn; 01-05-2004 at 05:28 AM.
 
Old 01-14-2004, 09:46 AM   #12
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
-

-

Last edited by celeb-x; 01-25-2004 at 02:03 PM.
 
Old 01-14-2004, 10:46 AM   #13
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
If you manage to get a self-contained grub bootdisk, you can give the following commands at boot prompt:
Code:
rootnoverify (hd1,1)
kernel=/vmlinuz
boot
However, I think it's strange you can't access the disk the other way, I suspect you messed up the filesystem or partition table: what error message do you get running "mount /dev/hdb2 /mnt" ?
 
Old 01-14-2004, 12:40 PM   #14
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ac1980
If you manage to get a self-contained grub bootdisk, you can give the following commands at boot prompt:
Code:
rootnoverify (hd1,1)
kernel=/vmlinuz
boot
However, I think it's strange you can't access the disk the other way, I suspect you messed up the filesystem or partition table: what error message do you get running "mount /dev/hdb2 /mnt" ?
Hi!

The message I receive when I try to mount any of my /dev/ partitions is:

error mountpoint is not a directory, I tried multiple dirs and also /mnt

I have GRUB and LILO but no bootdisk to boot it...

Please tell me where to get it if you know

Best Regards,
Snt

Last edited by celeb-x; 01-25-2004 at 02:05 PM.
 
Old 01-15-2004, 01:17 AM   #15
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Re: tom's root bootdisk

Quote:
Originally posted by celeb-x
Hi!

Thanks for the information, I've tried Tom's Root Bootdisk and managed to get a commandable root but my harddisks weren't mountable and I did not find a way to get back into my existing linux or install a bootloader from one of the dos partitions.

Please help! Please tell me what I need to do to get my old linux bootable again.

Best Regards,
Snt
tom's rtbt uses a ramdisk as it's designed as a "total crash" recovery system, hence it doesnt use anything from the HD because there might not even be a functional one there. You therefore have to mount the disks manually.

try mount /dev/XXXX /mnt(*where XXXX is your Linux HD partition)

then run this command...
chroot /mnt /sbin/lilo

this should restore your linux partition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux boot with dos :King_58: General 1 10-01-2004 02:41 PM
restoring linux boot from DOS celeb-x Linux - General 3 01-04-2004 11:31 AM
restoring linux boot from DOS celeb-x Red Hat 1 01-04-2004 11:31 AM
boot dos machine to linux shamz Linux - Networking 1 12-29-2003 03:11 PM
How do you boot DOS from Linux?? justin2net Linux - General 8 06-10-2003 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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