Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 05:10 AM
Aaron
 
Posts: n/a
Default Lilo on Floppy

OK, I have been searching online, haven't found this out, but I'm sure
it's really simple.

From reading online, as described above, it seems that I should be able
to have a floppy containing Lilo prepared to boot Linux or Windows (ME
in my case). My reasoning behind wanting this is I will be able to have
Windows load automatically, and I won't have to mess with boot
partitions, MBRs, and all other crap. I almost lost all my stuff once,
don't want to come close again.

Linux is already installed on other slave harddrive, Windows on master.
Just please let me have a disk that I can pop in whenever I want Linux.

The problem I've been having is that all directions for creating this
magical disk are done in Linux, which I currently do not understand or
have bootable. I would like to be able to make the disk in Windows.
Maybe a disk image could be sent to me, or something?

Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 05:10 AM
P.T. Breuer
 
Posts: n/a
Default Re: Lilo on Floppy

Aaron <aaron.axvig@sendit.nodak.edu> wrote:
> From reading online, as described above, it seems that I should be able
> to have a floppy containing Lilo prepared to boot Linux or Windows (ME
> in my case).


You can but why would you want to?

> My reasoning behind wanting this is I will be able to have
> Windows load automatically


You could have that simply by naming it as the default in lilo or grub -
there is no need to use a floppy.

> and I won't have to mess with boot
> partitions,


You don't have to mess with boot partitions. But even if you wanted to
mess with a boot partition, what's the difficulty with that? You make a
boot partition and put your kernel image and boot map onto it. But why
not put your kernel image and boot map on the root partition instead,
and nt make a boot partition at all?

> MBRs,


You always have to mess with the MBR, since that's where the boot
code is SO what? You can always chaneg it back, or forward, or
sideways.

> and all other crap.


There is no "other crap".

> I almost lost all my stuff once,


No you didn't. Messing with the boot sector does not affect your data.
Messing with the partition table does not affect your data. You can
always put things back the way they were and boot the way you used to
and read the partitions you used to read.

> don't want to come close again.


Then start wanting to.

> Linux is already installed on other slave harddrive, Windows on master.
> Just please let me have a disk that I can pop in whenever I want Linux.


Then go ahead. But why?

> The problem I've been having is that all directions for creating this
> magical disk are done in Linux,


That's correct. There is no magic.

> which I currently do not understand or


Then understand it.

> have bootable.



Then boot it.

> I would like to be able to make the disk in Windows.



You can't. Windows doesn't have the utilities. The best you could do
is copy a preprepared boot disk image to the floppy in windows, using
some raw copy utility for windows.

But why use a floppy at all? You can boot linux from windows boot
manager just fine. You can either use loadlinux.exe to boot a kernel
image on the msdos partition directly, or you can add a linux boot
sector to the list of boot sectors booted by the win.ini file,
after creating the linux boot sector on a partition boot record and
copying it to windows as a file.

But all those solutions require you to have the tools. And the tools
are in linux. So you will have to boot linux.

> Maybe a disk image could be sent to me, or something?


No, maybe you could pick one up from your distro cd. Why don't you just
oot from the cd? It can boot a disk installation just fine, as can
windows.

You are going about this barse-ackwards, thanks to your superstitions.
Lose them.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 05:11 AM
Laurenz Albe
 
Posts: n/a
Default Re: Lilo on Floppy

Aaron <aaron.axvig@sendit.nodak.edu> wrote:
> Linux is already installed on other slave harddrive, Windows on master.
> Just please let me have a disk that I can pop in whenever I want Linux.
>
> The problem I've been having is that all directions for creating this
> magical disk are done in Linux, which I currently do not understand or
> have bootable. I would like to be able to make the disk in Windows.
> Maybe a disk image could be sent to me, or something?


I don't know which distribution of Linux you installed, but most of them
offer you an option to create a boot floppy for the installation.

Why don't you just install your Linux again and make use of that?

It's difficult to create a boot floppy for you, since that depends
not only on the kernel you use, but also on your disk layout, and since
you seem to be unable to boot your Linux right now you will not be
able to get that information.

On the other hand, if you can access your Linux by booting from the
CDROM, you could try to create a boot floppy from there. Read man
pages, try 'apropos boot|grep floppy'.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 05:11 AM
JohnInSD At san DOT rr dot COM
 
Posts: n/a
Default Re: Lilo on Floppy

On Tue, 28 Sep 2004 20:40:49 -0500, Aaron <aaron.axvig@sendit.nodak.edu>
wrote:

>OK, I have been searching online, haven't found this out, but I'm sure
>it's really simple.


> mkrescue


'mkrescue' is part of the standard LILO distribution. Unfortunately, the 2.6
kernel is no so large that it will not fit on a 1.44M floppy.

> mkrescue --iso


will create a bootable CD image that can be burned with 'cdrecord'. But you'd
better have a BIOS that can boot from CD.


>
> From reading online, as described above, it seems that I should be able
>to have a floppy containing Lilo prepared to boot Linux or Windows (ME
>in my case). My reasoning behind wanting this is I will be able to have
>Windows load automatically, and I won't have to mess with boot
>partitions, MBRs, and all other crap. I almost lost all my stuff once,
>don't want to come close again.
>
>Linux is already installed on other slave harddrive, Windows on master.
> Just please let me have a disk that I can pop in whenever I want Linux.
>
>The problem I've been having is that all directions for creating this
>magical disk are done in Linux, which I currently do not understand or
>have bootable. I would like to be able to make the disk in Windows.


LILO is a Linux utility. It does not run under Windows.

>Maybe a disk image could be sent to me, or something?
>
>Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 05:11 AM
Lew Pitcher
 
Posts: n/a
Default Re: Lilo on Floppy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron wrote:
> OK, I have been searching online, haven't found this out, but I'm sure
> it's really simple.
>
> From reading online, as described above, it seems that I should be able
> to have a floppy containing Lilo prepared to boot Linux or Windows (ME
> in my case).


Yes, it is possible.

You prepare your lilo.conf file (under Linux) to boot, just as you would
if you were booting off of the MBR. Then, you run the lilo command with
the -b option to write the boot loader to the floppy disk rather than
the device specified in the lilo.conf file. So, your lilo command would
look something like

lilo -b /dev/fd0

> My reasoning behind wanting this is I will be able to have
> Windows load automatically, and I won't have to mess with boot
> partitions, MBRs, and all other crap. I almost lost all my stuff once,
> don't want to come close again.


Sensible approach.

> Linux is already installed on other slave harddrive, Windows on master.
> Just please let me have a disk that I can pop in whenever I want Linux.


Doable with lilo

> The problem I've been having is that all directions for creating this
> magical disk are done in Linux, which I currently do not understand or
> have bootable. I would like to be able to make the disk in Windows.
> Maybe a disk image could be sent to me, or something?


Sorry, but lilo only runs in Linux. Perhaps a bootable single-floppy
distribution will help you get started. Try Toms Root Boot (at
http://www.toms.net/rb/ ). Download the .ZIP version, and you can build
the boot in MSWindows, then you can boot /that/ floppy and get access to
your Linux system to build a /real/ lilo boot diskette.


> Aaron



- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBWs19agVFX4UWr64RAoP+AKC7QEe4esjHaf2XrItOhV/KjEHe8gCfXLgl
sWUNZ5/A+JhdkhhMigkHYc8=
=uYQd
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 05:11 AM
Aiehce
 
Posts: n/a
Default Re: Lilo on Floppy

On Tue, 28 Sep 2004 20:40:49 -0500, Aaron wrote:

> OK, I have been searching online, haven't found this out, but I'm sure
> it's really simple.

Yes it is, just few simple steps but HOWto docs contains more than
you need, and supposed tobe that way. You just gotta pick ones you need
from it, guess you don't read a lot usually
> From reading online, as described above, it seems that I should

be able
> to have a floppy containing Lilo prepared to boot Linux or Windows (ME
> in my case). My reasoning behind wanting this is I will be able to have
> Windows load automatically, and I won't have to mess with boot
> partitions, MBRs, and all other crap. I almost lost all my stuff once,
> don't want to come close again.
>
> Linux is already installed on other slave harddrive, Windows on master.
> Just please let me have a disk that I can pop in whenever I want
> Linux.

Ok here's more simple way.
hard code 'root device' using rdev command on kernel (either custom or
built one, but gotta tobe able to fit in floppy) Using cp command, copy to
floppy that's called boot disk without lilo
you just pop it into drive, it will boot in auto

now with lilo,
format floppy with fdformat, creat ext2 with mke2fs, mount it to ..say
/floppy ---now you have usable floppy mounted on the system
copy /dev/fd0, /dev/hda1234, hdb 1234( whatever disk devices you
have) copy kernel on the /floppy/boot, copy /etc/lilo.conf to
/floppy/lilo.conf == now you could specify location of all these when
you run lilo but those are the location lilo expects them to be
now in /floppy/lilo.conf, change line like boot=..mbr location or root of
device to boot=/dev/fd0
run lilo -r /floppy

and you might prefer boot with lilo, if you want to pass some parameters
to the kernel

> The problem I've been having is that all directions for creating

this
> magical disk are done in Linux, which I currently do not understand or
> have bootable. I would like to be able to make the disk in Windows.
> Maybe a disk image could be sent to me, or something?

Well It's possible. You could ask someone else with linux to make boot
image for you and write to floppy with rawrite something. But it's much
easier to make the disk in linux.
download rescue disk for you distribution from online, use it as boot
>
> Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 05:11 AM
Aaron
 
Posts: n/a
Default Re: Lilo on Floppy

Thanks for the responses, especially Peter's, which contained a bit
more sass and sarcasm than I generally care for. But really, all the
others were a great help.

Thanks to Lew Pitcher for agreeing that it's good to not risk things
you don't have to.

Anyway, I have decided that once I wrap up some critical college
applications and essays that I have going on, I will jump in again and
boot Linux. It's just that I think it would be very bad to have to
fix my computer while I have things on it that I spent a lot of time
on. Of course, I could back them up (and do), but I like to work on
them too.

So, based on your combined suggestions and the sorry realization that
Lilo is not able to do anything in Windows, I will probably redo my
Linux install (shouldn't have to do it all over again), and see if it
will do something nicer than last time.

Thanks again,

Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 05:12 AM
Lew Pitcher
 
Posts: n/a
Default Re: Lilo on Floppy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron wrote:
> Thanks for the responses, especially Peter's, which contained a bit
> more sass and sarcasm than I generally care for. But really, all the
> others were a great help.

[snip]
> So, based on your combined suggestions and the sorry realization that
> Lilo is not able to do anything in Windows, I will probably redo my
> Linux install

[snip]

That's an awful lot of work (and a bit of a risk) given that you now know of
other options that are less risky. Here's how I would do it...

1) obtain TomsRootBoot (in ZIP form) from the site I pointed you at
2) In MSWindows, build a TomsRootBoot diskette from the contents of
the tomsrtbt zip file
3) Boot tomsrtbt; you are now running linux
4) In tomsrtbt, mount your Linux partition to /mnt
5) chroot yourself into your Linux system
cd /mnt
chroot . /bin/bash
6) run lilo to build a Linux boot floppy
lilo -b /dev/fd0
7) exit your chroot environment
8) umount your hard drive
9) reboot, using the lilo boot disk you just built

- From that point on, you can just insert the lilo boot disk into your floppy disk
drive and reboot to get to your (current) Linux installation.


- --
Lew Pitcher
IT Consultant, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBW/aWagVFX4UWr64RAhMmAJ9J1/VuqHCewhW5lkIOXI/l2oHYFwCfWB+5
xMvP8R/bktBnXpWnMbuvoK0=
=6SRs
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 05:12 AM
Aaron
 
Posts: n/a
Default Re: Lilo on Floppy

Lew Pitcher <Lew.Pitcher@td.com> wrote in message news:<aES6d.23609$tT2.1337683@news20.bellglobal.co m>...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here's how I would do it...
>
> 1) obtain TomsRootBoot (in ZIP form) from the site I pointed you at
> 2) In MSWindows, build a TomsRootBoot diskette from the contents of
> the tomsrtbt zip file
> 3) Boot tomsrtbt; you are now running linux


Done.

> 4) In tomsrtbt, mount your Linux partition to /mnt


Step by step directions of what to type are really what I need. This
is what seems to really be frustrating me about Linux. In order to
get to an "easy" to use GUI like KDE, you have to know command line
things. I realize that this isn't true in most installation
scenarios, but still... Anyway, if you could list the things to type,
it would be quite helpful. I am familiar with DOS and have read about
using the Linux command line, but there is quite a lot. So, how to
mount?

> 5) chroot yourself into your Linux system
> cd /mnt
> chroot . /bin/bash


Hmm, maybe these are the directions I was looking for. My apologies.
Still, the above argument is applicable.

> 6) run lilo to build a Linux boot floppy
> lilo -b /dev/fd0
> 7) exit your chroot environment
> 8) umount your hard drive
> 9) reboot, using the lilo boot disk you just built
>
> - From that point on, you can just insert the lilo boot disk into your floppy disk
> drive and reboot to get to your (current) Linux installation.


That would be the best case scenario.

Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-18-2008, 05:12 AM
Lew Pitcher
 
Posts: n/a
Default Re: Lilo on Floppy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron wrote:
> Lew Pitcher <Lew.Pitcher@td.com> wrote in message news:<aES6d.23609$tT2.1337683@news20.bellglobal.co m>...
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Here's how I would do it...
>>
>>1) obtain TomsRootBoot (in ZIP form) from the site I pointed you at
>>2) In MSWindows, build a TomsRootBoot diskette from the contents of
>> the tomsrtbt zip file
>>3) Boot tomsrtbt; you are now running linux

>
>
> Done.
>
>
>>4) In tomsrtbt, mount your Linux partition to /mnt

>
>
> Step by step directions of what to type are really what I need. This
> is what seems to really be frustrating me about Linux. In order to
> get to an "easy" to use GUI like KDE, you have to know command line
> things. I realize that this isn't true in most installation
> scenarios, but still...


Naturally, this is frustrating, but it is unusual for most 'modern'
distributions. However, even MSWindows installs (I've done a few) sometimes
require commandline knowledge.

> Anyway, if you could list the things to type,
> it would be quite helpful. I am familiar with DOS and have read about
> using the Linux command line, but there is quite a lot. So, how to
> mount?


Assuming that your MSWindows filesystem is the first partition of the master IDE
drive on the primary channel (the likeliest case), then
mount -t vfat /dev/hda1 /mnt
should take care of it.

>>5) chroot yourself into your Linux system
>> cd /mnt
>> chroot . /bin/bash

>
>
> Hmm, maybe these are the directions I was looking for. My apologies.
> Still, the above argument is applicable.


Usually, installs go smoother than yours did, and these sorts of instructions
are unnecessary. Of course, in the analogous MSWindows situation, you'd /have/
to reinstall the OS, because there would be no other way to fix the problem.
Here, a simple set of commands can fix the problem in less than 5 minutes.

>>6) run lilo to build a Linux boot floppy

of course, this assumes that your /etc/lilo.conf was properly set up in
first place. You might want to copy it out and post it here, and we can
tell you what (if anything) to change. The only risk (now) is that, if your
lilo.conf file is incorrect, you won't be able to boot Linux from the LILO
floppy you are about to build.
>> lilo -b /dev/fd0
>>7) exit your chroot environment

at the commandline prompt, type
exit

>>8) umount your hard drive

at the commandline prompt, type
umount /mnt

>>9) reboot, using the lilo boot disk you just built

<ctrl><alt><delete> will do here.

>>- From that point on, you can just insert the lilo boot disk into your floppy disk
>>drive and reboot to get to your (current) Linux installation.

>
>
> That would be the best case scenario.


FWIW, I booted Linux this way for about 3 months before I trusted lilo to
properly build my MBR. It was a pita, but it did reassure me in the stability of
my Linux setup.

- --
Lew Pitcher
IT Consultant, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBXGFNagVFX4UWr64RAstFAKDO+Co6+yV0NcnxFs5gdp L2G/XAhQCgm8db
rDITp7gG0QJ2Pe2nOfZyYTw=
=RLKK
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532