Jump to content











Photo
- - - - -

Making file contiguous from Linux


  • Please log in to reply
2 replies to this topic

#1 doveman

doveman

    Frequent Member

  • Advanced user
  • 449 posts
  • Location:Surrey
  •  
    United Kingdom

Posted 07 September 2012 - 11:39 AM

I've replaced a laptop's dodgy HDD with a CF card and got a few Linuxes booting with grub4dos from it but I also need to install a Portable XP.img.

The problem I have is that when I copy the img to the CF, despite it being 80% empty the file gets fragmented and so g4d can't boot it.

If I had a working XP on there I'd just use Wincontig under that but I don't.

Putting the img on a USB, defragging it from my Windows machine and then booting from that before copying the img to the CF and defragging it from there isn't going to work either as a) the laptop only has USB1 which is excruciatingly slow and B) it can't boot from USB anyway (although I might be able to get round that with PLOP).

All I can find in Linux forums is people saying how pointless and unnecessary defragging is under Linux, so I don't think I'll get much help there.

So is there anything that I can use in Linux to do the same thing as Wincontig (i.e identify and defrag individual files)?

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 September 2012 - 03:31 PM

All I can find in Linux forums is people saying how pointless and unnecessary defragging is under Linux, so I don't think I'll get much help there.

So is there anything that I can use in Linux to do the same thing as Wincontig (i.e identify and defrag individual files)?

Apart from this known nonsense that is circulating among the good Linux guys :whistling:, example:
http://www.howtogeek...-defragmenting/
making a file contiguous has (incredibly :w00t:) not as many connections with a "disk defrag" as it is performed under Windows than you might think (i.e. making single files contiguous is IMHO a far lesser priority in the optimization of a windows filesystem than other things, like placement and order of files).

Here:
http://linux.die.net/man/8/filefrag
http://www.cyberciti...-fragmentation/

See if this fits/works:
http://www.linuxques...sing-dd-856653/
http://htexmexh.my3g...ux/scripts.html

And/or (for filesystem defrag):
http://defragfs.sour....net/index.html
http://defragfs.sour...net/theory.html

:cheers:
Wonko

#3 doveman

doveman

    Frequent Member

  • Advanced user
  • 449 posts
  • Location:Surrey
  •  
    United Kingdom

Posted 07 September 2012 - 05:46 PM

Thanks, that looks like it should do the trick. Nice to see you back ;)

Whilst I've got your attention :juggler: , I'm having a bit of trouble with a 16GB CF in a laptop (it boots and loads Linux, just has trouble with LiveXP and Portable XP), so if you've got a moment, perhaps you could take a look at my other thread and see if you have any ideas http://reboot.pro/16737/page__st__75 :D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users