LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem grub :P (https://www.linuxquestions.org/questions/linux-software-2/problem-grub-p-74733/)

bnumark 07-21-2003 10:02 PM

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

evy 07-21-2003 11:13 PM

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

koyi 07-22-2003 02:03 AM

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.

bnumark 07-22-2003 01:09 PM

ok does any 1 have an already made boot disk? I cant access linux to make 1

aaa 07-22-2003 01:16 PM

Download one in windows and copy it to floppy using rawrite.

bnumark 07-22-2003 07:18 PM

where can i download 1?

koyi 07-22-2003 10:21 PM

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?

ppuru 07-22-2003 10:45 PM

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.

koyi 07-23-2003 06:44 AM

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 :)

bnumark 07-23-2003 02:07 PM

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

aaa 07-23-2003 02:14 PM

koyi,
Try this:
In linux, type cp /dev/fd0 /myimage.img at a prompt to make an image.

aaa 07-23-2003 02:19 PM

bnumark,
Here's a link to a site with some disk images:
ftp://ftp.cerias.purdue.edu/pub/os/s...ent/bootdisks/

bnumark 07-23-2003 03:46 PM

i see lots of files but which one of those files would work w/ grub / redhat?

aaa 07-23-2003 03:54 PM

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

bnumark 07-23-2003 04:40 PM

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


All times are GMT -5. The time now is 02:05 AM.