Unix Technical Forum

Re: booting linux from CD

This is a discussion on Re: booting linux from CD within the Linux Operating System forums, part of the Unix Operating Systems category; --> Nomor S. Pam wrote: > > I've been booting linux by loading LILO from floppy. I just got a ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:20 AM
David
 
Posts: n/a
Default Re: booting linux from CD

Nomor S. Pam wrote:
>
> I've been booting linux by loading LILO from floppy. I just got a new
> floppyless notebook with a CDROM drive. How can I boot linux from CDROM
> without installing LILO or GRUB to hard disk?


Make a bootdisk then "dd" it to a file.
Then "mkisofs -b file" using the file from above as the boot image.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.21 i686 (GCC) 3.3
Uptime: 3 days, 20:30, 1 user, load average: 1.16, 1.06, 1.07

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:20 AM
Beth
 
Posts: n/a
Default Re: booting linux from CD

David <thunderbolt01@netscape.net> wrote in message news:<WiHSa.108694$Ph3.14155@sccrnsc04>...
> Nomor S. Pam wrote:
> >
> > I've been booting linux by loading LILO from floppy. I just got a new
> > floppyless notebook with a CDROM drive. How can I boot linux from CDROM
> > without installing LILO or GRUB to hard disk?

>
> Make a bootdisk then "dd" it to a file.
> Then "mkisofs -b file" using the file from above as the boot image.


Is there any way of creating a bootable CD without creating a bootdisk
first? I don't have a working diskette drive.

- Beth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:20 AM
David
 
Posts: n/a
Default Re: booting linux from CD

Beth wrote:
>
> Is there any way of creating a bootable CD without creating a bootdisk
> first? I don't have a working diskette drive.


# dd if=/dev/zero of=bootdisk bs=1440k count=1
# mke2fs bootdisk
# mkdir /mnt/disk
# mount -o rw,loop=/dev/loop0 bootdisk /mnt/disk
# lilo -b /dev/loop0
# umount /mnt/disk
# mkisofs -b bootdisk

You should check this as it is off the top of my head and I
haven't tested it but it should give you an idea as to how it is
done.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.21 i686 (GCC) 3.3
Uptime: 4 days, 19:45, 1 user, load average: 1.02, 1.09, 1.08

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:20 AM
David
 
Posts: n/a
Default Re: booting linux from CD

David wrote:
> Beth wrote:
>
>>
>> Is there any way of creating a bootable CD without creating a bootdisk
>> first? I don't have a working diskette drive.

>
>
> # dd if=/dev/zero of=bootdisk bs=1440k count=1
> # mke2fs bootdisk
> # mkdir /mnt/disk
> # mount -o rw,loop=/dev/loop0 bootdisk /mnt/disk
> # lilo -b /dev/loop0
> # umount /mnt/disk
> # mkisofs -b bootdisk
>
> You should check this as it is off the top of my head and I haven't
> tested it but it should give you an idea as to how it is done.
>


You could use "syslinux" also but you would format the file to
MSDOS format so that syslinux can write to it.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.21 i686 (GCC) 3.3
Uptime: 4 days, 19:45, 1 user, load average: 1.02, 1.09, 1.08

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 07:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com