bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I Install GRUB Program Files to FAT32 Partition


From: sburtchin
Subject: Re: How Do I Install GRUB Program Files to FAT32 Partition
Date: Wed, 8 Nov 2006 00:46:35 -0800 (PST)


adrian15 wrote:
> 
> sburtchin escribió:
>> I noticed that if I defrag, the stage_2 file can get moved, then GRUB
>> can't
>> find it.  Is there a way to lock it down to a specific starting sector,
>> just
>> as the os has certain files at predefined locations?
> Short answer: NO.
> Long answer: I will try to take my windows and run cmd or command.com
> and see if :
> 
> attrib +s z:\boot\grub\stage2
> 
> ( :) You can use the properties tab too on Windows!  and the system value)
> 
> forces defrag program not to move the stage2 file.
> 
This was the problem with "GRUB for Windows" with the (modified) stage1 and
stage2 being called by boot.ini and both residing in \boot\grub.  After each
defrag, the stage1 could'nt find stage2.  When I installed GRUB to the MBR
from Knoppix it looked like the stage1.5 was written to the sectors
following the MBR (flashed by very quickly).  If this is the case, then GRUB
should be able to find stage2 in the FAT now.  Thanks for the tip, but I
will assume this is a non-problem in the normal use of GRUB.  If the problem
recurs, I will try the "attrib +s" and report back with results.



adrian15 wrote:
> 
> sburtchin escribió:
>> Does the command "partnew" only write values into the MPT (ie. the
>> partition
>> itself is not touched)?
> Yes. I've seen the source code and they only modify the mbr and thus
> only the partition table.
>> 
>> Can I use eg. "partnew (hd1,2) 0x00 0 0" to blank one of the MPT entries? 
>> Is my syntax correct?
> 
> I suppose the syntax is right. As a the partition type Grub expects a
> number... you can write it in hexadecimal notation and Grub parses it.
> 
I agree this is the most likely function of "partnew".  I could'nt safely
test before, but now I have a testbed.  If I find any differences, I will
report back results, but I expect not.



adrian15 wrote:
> 
> sburtchin escribió:
>> Is there an equivalent ("partnew" like) GRUB command for writing to
>> EPT's?  OR, is there a
>> GRUB command that can write a specific sector?
> I've made a very limited dd command on super grub disk (SGD is not
> intended to work on hard disk and has not the partnew command but it can
> be added.)
> 
>>  I want to share an extended
>> partition, but the last logical partition for DOS & Win3.1 will be in the
>> middle of the extended partition for the more advanced os's.  Therefore,
>> the
>> second  entry in this EPT should be different depending on the os being
>> booted.
> 
> Can you please ellaborate on this example? I like this complex boot
> situations? Can you please tell us something as MS-DOS could see that if
> it was created like that but if it is created the other way....
> 
> 
> 
>> 
>> Can the command "parttype" be used with logical partitions as well as
>> primary ones (eg. "parttype (hd0,7) 0x0C")?
> 
> It seems that yes.
> 
> I've seen on the code that next_partition code... so ... it is possible
> to modify the "mbr" of an extended partition.
> That means that a enhanced partnew command could be written but I
> currently do now the technical details (what numbers and values are
> exactly written in the "partition table" of the extended partition)
> about how all these things work.
> 
> If you can search documentation about it I may work on it sooner ( I
> have currently other projects on mind. )
> 
This dialog has gotten way beyond the original subject of this thread, so I
am starting a new thread ("How To Write Extended Partition Tables from
GRUB?")to address these issues.  Thanks for all the help here.  See you
there!
-- 
View this message in context: 
http://www.nabble.com/How-Do-I-Install-GRUB-Program-Files-to-FAT32-Partition-tf2368587.html#a7234729
Sent from the Grub - Bugs mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]