bug-grub
[Top][All Lists]
Advanced

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

Re: Modifying grub to run system on certain dates


From: adrian15
Subject: Re: Modifying grub to run system on certain dates
Date: Fri, 28 Oct 2005 11:57:35 +0200

I have a workaround for your problem, although there are two options on
your system:

Windows is installed in FAT32 (Read this message)
Windows is installed in NTFS (You should use a Grub called grubwin32 or
similar)

Do you know the manager from Windows that let's you perform some actions in
a date or similar... I think it's called Programmed Tasks.

1º Create a file called myfile.txt with 4 or 5 letters in c:\windows
2º Create a .bat called c:\putme.bat
with contents:
copy c:\windows\myfile.txt c:\myfile.txt

3º Program (let's suppose you like monthly) monthly to run c:\putme.bat

4º I suppose that your Linux is configured with a default runlevel that
restores Windows image... what does happen when you restore? It does happen
that c:\myfile.txt no longer exists because it was not in the original
image!

5º That's it. Well, that's not all folks! We need to setup grub menu.lst.

menu.lst:

default 0
fallback 1
timeout 0

title Windows has to be restored
cat (hd0,0)/myfile.txt
# YOUR LINUX ROOT
# YOUR LINUX KERNEL
# YOUR LINUX INITRD
# YOUR BOOT COMMAND
# (IN OTHER WORDS) WHAT YOU HAVE RIGHT NOW TO BOOT YOUR LINUX
# AND RESTORE THE IMAGE

title Windows normal boot
# I suppose you have it like that:
rootnoverify(hd0,0)
chainloader +1
makeactive
boot


Just make sure the image to restore has not the c:\myfile.txt and once
you've done all of this, it should work.

----


I repeat this will only work if your Windows is in FAT32. For NTFS you may
check the "win32" grub or make another fat32 partition on your system or
another thing.

http://grub4dos.sourceforge.net/
http://www.skyjammer.com/files/knoppix/


Please tell me if my method helps you. This cat, fallback thing is the aim
of Auto Reinstall Grub on MBR feature in Grub Super Disk, which has as new
webpage: http://adrian15.raulete.net/grub/


adrian15





reply via email to

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