LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2014, 05:44 AM   #1
madanra
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
How do you read from & write to the bootloader inode of an ext2 filesystem?


ext2 has a number of reserved inodes, such as inode 2 being the root directory. Inode 5 is reserved for a bootloader. AFAIK Linux doesn't actually use this, but I would like to know how you read from & write to that inode.
 
Old 08-11-2014, 02:36 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
"5.3.5. EXT2_IMMUTABLE_FL - Immutable File

The blocks associated with the file will not be exchanged. If for any reason a file system defragmentation is launched, such files will not be moved. Mostly used for stage2 and stage1.5 boot loaders. "

So, writing a stage loader to it would write to it.

Also I'd assume the location is always a few bytes off partition edge. That area I forget exactly.
 
Old 08-11-2014, 02:38 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Some info http://uranus.chrysocome.net/explore2fs/es2fs.htm

So, writing a stage loader to it would write to it.

Also I'd assume the location is always a few bytes off partition edge. That area I forget exactly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - Newbie 16 09-01-2010 09:07 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - General 2 08-26-2010 03:32 PM
Read write ext2/3 in windows 7 anon109 General 14 06-01-2010 03:54 PM
LXer: Tips and Tricks: How do I find the inode size of an ext2/ext3 filesystem? LXer Syndicated Linux News 0 07-31-2007 11:01 AM
Multible newbie questions (pppd, ext2 vs ext3, and random inode read errors) (Slack10 Nicolae Slackware 8 08-28-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration