LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-21-2003, 10:02 PM   #1
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
problem grub :P


i just reinstalled windows and it changed the boot section and got rid of grub. How can i get grub back so i can use linux? Windows didnt modify the linux hdd tho
 
Old 07-21-2003, 11:13 PM   #2
evy
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Try to reboot your station with a linux boot disk.
From there you should be able to access your linux partition and re-enable grub for next time
 
Old 07-22-2003, 02:03 AM   #3
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Installing GRUB into MBR

After booting into Linux successfully, it is a good idea to make a GRUB bootdisk for similar situation in the future. This link may help you.

http://www.gnu.org/manual/grub/html_...l#Installation

Especially read the "Creating GRUB boot floppy" and "Installing GRUB natively" section.

Hope this may help.
 
Old 07-22-2003, 01:09 PM   #4
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Original Poster
Rep: Reputation: 15
ok does any 1 have an already made boot disk? I cant access linux to make 1
 
Old 07-22-2003, 01:16 PM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Download one in windows and copy it to floppy using rawrite.
 
Old 07-22-2003, 07:18 PM   #6
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Original Poster
Rep: Reputation: 15
where can i download 1?
 
Old 07-22-2003, 10:21 PM   #7
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Well, I have an already made GRUB boot disk but I am not familiar with
disk manipulation so I don't know how can I send the disk to you.

I created the disk using the following commands:
(quoted from GRUB documentation)

# cd /usr/share/grub/i386-pc
# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
# dd if=stage2 of=/dev/fd0 bs=512 seek=1
153+1 records in
153+1 records out

Can I just copy an image from a floppy and write it into the others to make
copies of it, like the way I make ISO images from CDROM? If so, what
utilities should I use? And how?

Btw, I've tried to mount the floppy but it requires me to specify a filesystem.
But I don't know which filesystem the disk is made of. Is there a way to easily
check the filesystem of a device in Linux?

Last edited by koyi; 07-22-2003 at 10:22 PM.
 
Old 07-22-2003, 10:45 PM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
koyi

when you come to the GRUB> prompt, enter

root (hd<press tab>,<press tab>)

tab after hd gives you a list of disks. Select the appropriate disk where Linux is installed
tab after the comma will give you a list of partitions. Select your linux boot partition.

now enter

configfile <press tab>

here, tab will give you a list of files

you should be able to type

configfile grub/grub.conf
boot

to boot into linux.

For Windows

rootnoverify (hdx,n)
chainloader +1

where x is the disk and n is the partition where Win resides.
 
Old 07-23-2003, 06:44 AM   #9
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
ppuru,

I am sorry but I think you misunderstood my question. I am not having problems with booting my linux. I just want to know if

1) I can make copy of a floppy disk by creating an image file from it.
2) Is there a way to determine the type of filesystem of a partition easily.

Thanks for your answer anyway. At least now I know that I can <press tab> to display possible list of candidates
 
Old 07-23-2003, 02:07 PM   #10
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Original Poster
Rep: Reputation: 15
there should be away u could copy the files from a floppy

Copy all the files, zip them and upload them to a server

I think that should work
 
Old 07-23-2003, 02:14 PM   #11
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
koyi,
Try this:
In linux, type cp /dev/fd0 /myimage.img at a prompt to make an image.
 
Old 07-23-2003, 02:19 PM   #12
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
bnumark,
Here's a link to a site with some disk images:
ftp://ftp.cerias.purdue.edu/pub/os/s...ent/bootdisks/
 
Old 07-23-2003, 03:46 PM   #13
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Original Poster
Rep: Reputation: 15
i see lots of files but which one of those files would work w/ grub / redhat?
 
Old 07-23-2003, 03:54 PM   #14
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The readme describes them.
When you write one to a disk with rawrite and boot it you'll get a prompt. In the prompt type:
mount root=/dev/<yourredhatpartition> ro
For Red Hat you may have to add some extra parameters
 
Old 07-23-2003, 04:40 PM   #15
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Original Poster
Rep: Reputation: 15
im a newbie :P i dunno wut partition its on How can i just format my hdd and reinstall everything, i might end up putting XP on the linux hdd cuz i got a new pc
 
  


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
Yet another GRUB problem eqxro Linux - Software 3 08-04-2004 09:27 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
grub problem jigs Linux - Newbie 7 09-18-2003 12:16 PM
GRUB problem pupunk98 Linux - Newbie 7 12-26-2002 04:34 AM

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

All times are GMT -5. The time now is 11:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration