© J.C. Kessels 2009
MyDefrag Forum
May 19, 2013, 12:09:13 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Questions and help
>
Defragging at system boot up
Pages: [
1
]
« previous
next »
Print
Author
Topic: Defragging at system boot up (Read 2837 times)
Maleko
JkDefrag Supporter
Posts: 16
Defragging at system boot up
«
on:
September 19, 2010, 10:07:32 am »
I am curious as whether or not it's possible to do offline defragmentation without the help of bootcd. Does anyone know how windows runs a system chkdsk at boot up, you know that text mode after bios initializing but right before windows starting up? Is it possible to run mydefrag like that?
Logged
jonib
JkDefrag Hero
Posts: 810
Re: Defragging at system boot up
«
Reply #1 on:
September 19, 2010, 01:00:41 pm »
Chkdsk and other programs that can run early in the Windows boot process, use
Windows Native API
and it's different to what Windows programs use when run after it has booted up.
MyDefrag don't support this. Read this FAQ fow to run it as early as possible:
How to run MyDefrag at boot-time?
.
jonib
Logged
MyDefrag script syntax highlighting generator
.
Maleko
JkDefrag Supporter
Posts: 16
Re: Defragging at system boot up
«
Reply #2 on:
September 20, 2010, 05:54:55 am »
I see but this isn't something impossible to add into mydefrag, right? I see some commercial defragmenting tools and also disk partitioners could do this sort of thing.
Maybe mydefrag author, jeroen could say something about this.
«
Last Edit: September 20, 2010, 07:17:41 am by Maleko
»
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Defragging at system boot up
«
Reply #3 on:
September 20, 2010, 06:21:44 am »
Quote from: Maleko on September 20, 2010, 05:54:55 am
this isn't something impossible to add into mydefrag, right?
Native programs can use only a very small set of system calls, because they must run while Windows is not yet started. It is therefore not possible to take a Windows program (such as MyDefrag) and simply add some stuff so it will work in the Native environment. To make a version of MyDefrag that works in the Native environment I would basically have to start from scratch, it would be a completely new program. It has been on my wishlist for a long time to do that, but it has a very low priority for various reasons.
Logged
Maleko
JkDefrag Supporter
Posts: 16
Re: Defragging at system boot up
«
Reply #4 on:
September 20, 2010, 07:16:17 am »
Quote from: jeroen on September 20, 2010, 06:21:44 am
To make a version of MyDefrag that works in the Native environment I would basically have to start from scratch, it would be a completely new program. It has been on my wishlist for a long time to do that, but it has a very low priority for various reasons.
Ah fair enough
Thanks for the clarification, jeroen!
Logged
boco
JkDefrag Hero
Posts: 153
Re: Defragging at system boot up
«
Reply #5 on:
September 22, 2010, 03:58:33 am »
The only free defragger with boot defrag support I know is UltraDefrag (Open Source).
http://ultradefrag.sf.net/
Logged
T hi s Sign a tu re is q uit e sor te d -op tim i zed b y desi gn .
Steve
JkDefrag Supporter
Posts: 13
Re: Defragging at system boot up
«
Reply #6 on:
September 22, 2010, 07:43:59 pm »
What about booting off a usb stick that has Windows installed there and then defragmenting your main drive? Could you then move system files?
Logged
ScorpionGTfx
JkDefrag Senior
Posts: 32
Re: Defragging at system boot up
«
Reply #7 on:
September 22, 2010, 08:15:15 pm »
There is Puran Defrag too.
Logged
Darlis
JkDefrag Hero
Posts: 1707
Re: Defragging at system boot up
«
Reply #8 on:
September 22, 2010, 10:30:50 pm »
Quote from: Steve on September 22, 2010, 07:43:59 pm
What about booting off a usb stick that has Windows installed there and then defragmenting your main drive? Could you then move system files?
You would be able to move for example the pagefile and other non critical files, but special files like $logfile will always be unmovable if you use the original Windows NTFS driver that comes with every Windows system.
Logged
Need help creating a script? Try
MyDefrag Script Creator
.
Tokafondo
Newbie
Posts: 3
Re: Defragging at system boot up
«
Reply #9 on:
December 03, 2010, 12:47:18 pm »
There is someone that has made a step towards native mode management:
http://amdf.pp.ru/nt_native_application_shell_eng.php
Logged
jeroen
Administrator
JkDefrag Hero
Posts: 7155
Re: Defragging at system boot up
«
Reply #10 on:
December 03, 2010, 07:08:06 pm »
Thanks for that link, interesting. I'm afraid it doesn't change much as MyDefrag is concerned, though. I see that at the moment it is not possible to run a program from that console, but even if that were possible then it would still not be possible to run MyDefrag like that. Only programs that are specially programmed for native mode can be run in native mode.
Logged
amdf
Newbie
Posts: 1
Re: Defragging at system boot up
«
Reply #11 on:
March 01, 2011, 07:56:26 am »
Quote from: jeroen on December 03, 2010, 07:08:06 pm
Thanks for that link, interesting.
The site is moved to
http://hex.pp.ua/nt-native-applications-shell-eng.php
Quote from: jeroen on December 03, 2010, 07:08:06 pm
I see that at the moment it is not possible to run a program from that console, but even if that were possible then it would still not be possible to run MyDefrag like that. Only programs that are specially programmed for native mode can be run in native mode.
Current version (0.12) can run another processes, but they should be native apps too. It is not possible to run a win32 exe from native mode, because win32 subsystem is not active at that time. Only native apps such as autochk.exe can start.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...