LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Linux
Author Message
stf
Stray Dog


Joined: 29 Sep 2001
Posts: 5

Post Posted: Sat Sep 29, 2001 3:52 pm   Post subject: Reply with quote Back to top  

I'm trying to follow the dual boot tutorial on this site for win2k and Redhat Linux but after I've installed Linux and I'm to the part where I need to use my bootdisk to load up Linux and copy the lilo config over to win2k the disk fails. When its loading initrd.img it gives me this error:

Boot failed: please change disks and press a key to continue.

I have two hard drives, one with Win2k and the other with Linux. I loaded lilo on the Linux hard drive so I can't get into it without the bootdisk. I have installed Redhat multiple times and its never created a good bootdisk, anyone know why?

Thanks,
stf
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sat Sep 29, 2001 4:24 pm   Post subject: Reply with quote Back to top  

did you do it with more than one physical floppy? they have a high failure rate

The redhat cd can probably be used as resue cd. Don't know that for sure but is likely

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
stf
Stray Dog


Joined: 29 Sep 2001
Posts: 5

Post Posted: Sat Sep 29, 2001 4:27 pm   Post subject: Reply with quote Back to top  

I'm reinstalling right now and I'm going to try another floppy. I did see a recover choice on the cd boot menu if I remember correctly I'll try to check that out to.

Thanks,
stf
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sat Sep 29, 2001 5:03 pm   Post subject: Reply with quote Back to top  

Quote:

I'm reinstalling right now and I'm going to try another floppy. I did see a recover choice on the cd boot menu if I remember correctly I'll try to check that out to.

Thanks,
stf



remember on which partition you did your / . That is what you have to know when you are trying to use the cd as rescue.

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
stf
Stray Dog


Joined: 29 Sep 2001
Posts: 5

Post Posted: Sat Sep 29, 2001 5:13 pm   Post subject: Reply with quote Back to top  

Ok after reinstall the bootdisk (new one) still didn't work. So I put in the cd and went to the rescue section. It got me to the shell and put an image of my system under /mnt/sysimage. So I got under there and it showed all my dirs. So I mounted the floppy which seemed to go fine (I saw the light flash on the drive). Then I copied LILO boot sector to disk which also seemed to work since it read the disk and said records in/out. So I put the disk into another machine to see if it had got copied but nothing was there, it didn't put linux.bin on the disk. I also tried accessing the disk through /mnt/floppy but it doesn't even find or accesss the disk through that dir. Anything I should try under the recovery shell?

Thanks,
stf
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sat Sep 29, 2001 5:37 pm   Post subject: Reply with quote Back to top  

chroot /mnt/sysimage
after this the linux will (sort of) think that what is one the harddisk is / . Then type in mkbootdisk to make a bootdisk. This should make a bootdisk but if it doesn't work i want to see the error-message

You can't see the flopy at /mnt/floppy because you didn't mount it. For dd, what is used to make the bootfloppy, the floppy doesn't need to be mounted

ps /sbin/mkbootdisk is a shell-script so reading it is not only possible but also adviseble

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
stf
Stray Dog


Joined: 29 Sep 2001
Posts: 5

Post Posted: Sat Sep 29, 2001 5:56 pm   Post subject: Reply with quote Back to top  

When I just type 'mkbootdisk' it just defines its usage:

usage: mkbootdisk [--version] [--noprompt] [mkinitrdargs <args>] [--device <devicefile>] [--verbose -v] [--compact] <kernel> (ex: mkbootdisk --device /dev/fd1 2.0.31)

Tried typing in the example just to see what it would do and it said:
/lib/modules/2.0.31 is not a directory.

Thanks,
stf
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sat Sep 29, 2001 6:10 pm   Post subject: Reply with quote Back to top  

After reading the article i have decided to do it differently. my excuse of your inconviniance:-D

1: boot system with redhat cd as rescue cd

2: #chroot /mnt/sysimage

3: check if /etc/lilo-conf points to /dev/hda5 or whatevery you have as root of your linuxsystem, you can check this in your /etc/fstab file

4: #lilo check for errors if none go to next stage

5: install mtools. It is probably on the redhat cd's, if not download it and put it on a floppy. It lets you read and write dosfloppies without mounting them

6: mtools uses almost the same sintax (don't know if it's written correctly and if you get what i mean) so dir a: becomes mdir a:
copy a:readme.txt ~/ becomes mcopy a:readme.txt ~/
del becomes mdel, cd -> mcd,

7: #dd if=/dev/hda5 bs=512 count=1 of=/root/linux.bin

8: #mcopy /root/linux.bin a:

9: exit out of chroot by #exit

10: reboot with #shutdown -h now

11: start w2k

12: now i listen to you how to do it[Very Happy]

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sat Sep 29, 2001 6:12 pm   Post subject: Reply with quote Back to top  

Quote:

When I just type 'mkbootdisk' it just defines its usage:

usage: mkbootdisk [--version] [--noprompt] [mkinitrdargs <args>] [--device <devicefile>] [--verbose -v] [--compact] <kernel> (ex: mkbootdisk --device /dev/fd1 2.0.31)

Tried typing in the example just to see what it would do and it said:
/lib/modules/2.0.31 is not a directory.

Thanks,
stf




/lib/modules/your_kernel/ is

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
stf
Stray Dog


Joined: 29 Sep 2001
Posts: 5

Post Posted: Sat Sep 29, 2001 7:15 pm   Post subject: Reply with quote Back to top  

csign:

YOU ARE THE BEST!!! It finally works!

Unfortunately in the process I found out that it didn't install gcc or at least it didn't put its place under the PATH var. I couldn't compile mtools so I had to use the RPM to install. Other than that its working great!

Thanks!
stf
View user's profile Send private message Send e-mail
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Sun Sep 30, 2001 4:07 am   Post subject: Reply with quote Back to top  

Quote:

csign:

YOU ARE THE BEST!!! It finally works!

Unfortunately in the process I found out that it didn't install gcc or at least it didn't put its place under the PATH var. I couldn't compile mtools so I had to use the RPM to install. Other than that its working great!

Thanks!
stf



I don't think gcc is installed under the PATH var(more /usr/bin). But installing them after the fact isn't that difficult.

_________________
Toxin wrote:
It's on Fox News - it must be true.
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!