Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 23, 2013, 04:44:41 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Defragging at system boot up  (Read 2853 times)
Maleko
JkDefrag Supporter
***
Posts: 16


View Profile
« 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


View Profile
« 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

Maleko
JkDefrag Supporter
***
Posts: 16


View Profile
« 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



View Profile WWW
« Reply #3 on: September 20, 2010, 06:21:44 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


View Profile
« Reply #4 on: September 20, 2010, 07:16:17 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 Smiley Thanks for the clarification, jeroen!
Logged
boco
JkDefrag Hero
*****
Posts: 153



View Profile
« 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


View Profile
« 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



View Profile
« Reply #7 on: September 22, 2010, 08:15:15 pm »

There is Puran Defrag too.
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #8 on: September 22, 2010, 10:30:50 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


View Profile
« 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



View Profile WWW
« 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


View Profile
« Reply #11 on: March 01, 2011, 07:56:26 am »

Thanks for that link, interesting.
The site is moved to http://hex.pp.ua/nt-native-applications-shell-eng.php
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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!