Author Topic: Partcopying a CD bootsector?  (Read 3569 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Partcopying a CD bootsector?
« on: September 21, 2005, 07:00:03 pm »
I can't find any good documentation on partcopy. Anyhow, I want to copy sector 0 (thats 1 for non-zero-based literate people =p) to a file, for.. educational purposes.

Can anyone help?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Partcopying a CD bootsector?
« Reply #1 on: September 21, 2005, 10:03:15 pm »
You have dd?

Windows?  http://uranus.it.swin.edu.au/~jn/linux/rawwrite/dd.htm

Also, you might be interested in the El Torito Bootable CD-ROM Format Specification v1.0.

Google is amazing....
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Partcopying a CD bootsector?
« Reply #2 on: September 21, 2005, 10:31:14 pm »
Eh, I've always used partcopy for writing/reading single sectors. I'll check it out tomorrow after school. Thanks MyndFyre!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline mfqr

  • Newbie
  • *
  • Posts: 25
  • I'm new here!
    • View Profile
Re: Partcopying a CD bootsector?
« Reply #3 on: September 21, 2005, 10:52:59 pm »
excuse me for intruding, but since this is concerning a bootsector, shouldnt this be in the OS dev forums?

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Partcopying a CD bootsector?
« Reply #4 on: September 22, 2005, 12:39:40 am »
Who said it's about OS Development?  He just wants to read a bootsector.

FYI Joe, the CD ROM bootsector will be identical to a floppy disk bootsector; the boot code to enable CD ROM booting is in the BIOS.

dd is good for reading/writing to any block device.  I basically dd'd with if=/dev/hda to copy my entire hard drive, MBR and everything.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline mfqr

  • Newbie
  • *
  • Posts: 25
  • I'm new here!
    • View Profile
Re: Partcopying a CD bootsector?
« Reply #5 on: September 22, 2005, 07:37:57 am »
oh i thought he wanted to write his own boot sector to a floppy...

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Partcopying a CD bootsector?
« Reply #6 on: September 22, 2005, 07:38:33 am »
Well, this is OS Development, to a degree. I'm disassembling the Windows XP bootloader to see how it works. =)
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Partcopying a CD bootsector?
« Reply #7 on: September 22, 2005, 02:20:20 pm »
Why not just load up the ntldr file?
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.