OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 12:56 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: jump to sector(of file wich contain the file name:'second')
PostPosted: Mon Feb 26, 2018 1:26 pm 
Offline

Joined: Mon Feb 26, 2018 12:52 pm
Posts: 2
Hi all,

First I have to say i did not learn the assembly language... so the question i guess is more
easily asked than be answered.
I have my own website :http://212.114.109.207/boot/boot.html where you can
enter in the first textarea some 'bootloader code' if you press the make iso button there
will be a .iso output wich you can burn on a dvd-rw. The bootloader works.
Its made with the command(php):

$op=system("genisoimage -b prog".$getal.".img -no-emul-boot -boot-load-size 4 -o discprog".$getal.".iso /var/www/boot/ >> ".$getal."3.txt 2>&1 ",$back);

In the second textarea(second[random].img) you can add more code(at least that is the idea)...
but how to jump to that file(second[random].img).

I burned an .iso file on my own dvd-rw(TDK) and it contains a lot of files...
The second[random].img file is what i am looking for... i opened the burned .iso
file with: 'iso-buster' and if i am right it said : LBA 37.
I burned it on a other dvd-rw(HEMA) and it said : LBA 36.

So how do i jump to that file...?

Thx,

Frederik


Top
 Profile  
 
 Post subject: Re: jump to sector(of file wich contain the file name:'secon
PostPosted: Mon Feb 26, 2018 2:31 pm 
Offline
Member
Member
User avatar

Joined: Sat Nov 22, 2014 6:33 pm
Posts: 934
Location: USA
Every loader system, whether it be first stage, second, third, twenty third, whatever, must be at one stage or another file system aware. The CD/DVD you are using, most likely has a file system on it. Your loader *must* parse this file system to find the file and its location. Even if you simply use blocks of data, your loader will eventually have to parse some kind of list to retrieve the correct block.

My opinion is not to start OS Development using a CD or DVD (.ISO image) as your starting media device. I would use a hard drive image which means that you can, with minor changes, make it work on a floppy, USB thumb drive, hard drive, etc., even a bootable CD once you get the idea of how they work.

As another note, you really need to give more information. Did you create your own boot loader for this ISO image? If you did, you should understand the file system the CD/DVD media uses.

Anyway, my opinion is to start with an easier form of media.

Hope this helps,
Ben
http://www.fysnet.net/osdesign_book_series.htm


Top
 Profile  
 
 Post subject: Re: jump to sector(of file wich contain the file name:'secon
PostPosted: Tue Feb 27, 2018 12:39 am 
Offline

Joined: Mon Feb 26, 2018 12:52 pm
Posts: 2
Thank you for your comment/reaction .
I did 'this' once on a floppy (happy with it :lol: ), but from understanding
it totally it never came.
I have more the hope to program a simple os ,without
learning assembly (doing it with functions)... but i will fail [-X

Thx again =D> ,

Frederik


Top
 Profile  
 
 Post subject: Re: jump to sector(of file wich contain the file name:'secon
PostPosted: Tue Feb 27, 2018 2:16 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
If you don't understand assembler (which begs the question of how you wrote this code in the first place) then you probably shouldn't attempt a bootloader. Copy-pasting code that you don't understand is a recipe for failure.

There are a number of good bootloaders; use one of them and concentrate on the programming that interests you, and is within your capabilities.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 123 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group