Solved

Can linux be booted from hard disk?

Posted on 1998-09-08
5
251 Views
Last Modified: 2010-04-20
i installed win95 on drive c and linux in drive d.
but i wanna boot my linux from drive d, not from the boot disk i made or the lilo disk, can i do that?

how can i dial my isp to get online in lunix?

Thanx alot.
0
Comment
Question by:ezlee
  • 2
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
jreese earned 100 total points
ID: 1637969
1. Under Linux, edit /etc/lilo.conf:

# LILO configuration file
boot = /dev/hda
delay = 300   # 30 second delay before default (first) OS boots

image = /vmlinuz-2.0.35
  root = /dev/hda2
  label = kernel2.0.35

other = /dev/hda1
  label = win95
  table = /dev/hda

2. Run /sbin/lilo. This will set you master boot record (MBR) so that you will recieve a LILO prompt at boot time: if you do nothing, after 30 seconds, kernel 2.0.35 will boot. If you want to boot win95, press and release the right SHIFT key, the hit the TAB key. A boot list will appear. Type in one of the entries (kernel2.0.35 or win95 in this example), then hit ENTER. That OS will then boot.

For connecting to the net with Linux, check the PPP-HOWTO, usually found in /usr/doc/faq/howto.

Jim

0
 
LVL 3

Expert Comment

by:marcelofr
ID: 1637970
drive d is your second phisycal hard disk or is your second logical partition on the first disk?
0
 

Author Comment

by:ezlee
ID: 1637971
Thank you, jreese.

About ppp dialing, I can connected with my ISP with 'minicom', but I wanna use www browser under X-windows, so I need to know the way like using Trumpet Winsock in Windows System. Can you help me?  Thanks.

0
 

Author Comment

by:ezlee
ID: 1637972
Thank you, jreese.

About ppp dialing, I can connected with my ISP with 'minicom', but I wanna use www browser under X-windows, so I need to know the way like using Trumpet Winsock in Windows System. Can you help me?  Thanks.

0
 
LVL 1

Expert Comment

by:jreese
ID: 1637973
Use the pppd daemon and chat to set up a PPP session with your ISP. Here's an example:

Create a sh script in your bin directory (let's call it "go_ppp):
#!/bin/bash
/usr/sbin/pppd connect ~/bin/myppp /dev/cua1 115200 asyncmap 0 crtscts lock modem defaultroute

Then create the file "myppp" (which gets called by go_ppp):
#!/bin/bash
chat -t120 ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIAL TONE' '' ATDT8675309 CONNECT "" ogin:-BREAK-ogin: username
word: yourpassword

Edit according to your needs. Consult the man pages for pppd & chat, and look at the documentation under /usr/doc/faq/howto/PPP-HOWTO.gz

That should get you up and running; if not, let me know. You can get Netscape 4.5 from their home page.

Jim

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Noteā€¦
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now