NTFS DEFRAG on Ubuntu!

The place to post if you need help or advice

Moderators: ChriThor, LXF moderators

NTFS DEFRAG on Ubuntu!

Postby churst1 » Sat Jul 21, 2007 4:22 pm

I have a external hard-drive, NTFS-formatted.
I need to defrag it But i dont want to loose the data on it.
I run ubuntu 'feisty' on a old pc2800 computer.
Can you defrag NTFS on Linux????? Please help!
churst1
 
Posts: 16
Joined: Sat Jul 21, 2007 4:16 pm

RE: NTFS DEFRAG on Ubuntu!

Postby caf4926 » Sat Jul 21, 2007 8:21 pm

fragmentation is really a windblows problem
i'm not aware of anything
CAF4926
caf4926
 
Posts: 40
Joined: Mon Dec 26, 2005 6:28 am
Location: The English Lake District

RE: NTFS DEFRAG on Ubuntu!

Postby nordle » Sat Jul 21, 2007 8:29 pm

churst1:

Why is it NTFS? If its so you can use it with other computers and can't install ext2/3 driver on them, then can you not use that machine to defrag it?

If there is no reason to have NTFS, ditch it, copy the data to another disk, and re-format using ext3.
Leave a 15MB partiton as VFAT to hold the windows ext2/ext3 driver on it, so you can install on any machine to view your data.

http://www.ext2fsd.com/

Or maybe better:

http://www.fs-driver.org/index.html
I think, therefore I compile
nordle
LXF regular
 
Posts: 1501
Joined: Fri Apr 08, 2005 9:56 pm

Re: RE: NTFS DEFRAG on Ubuntu!

Postby ollie » Sun Jul 22, 2007 2:54 am

nordle wrote:churst1:

Why is it NTFS? If its so you can use it with other computers and can't install ext2/3 driver on them, then can you not use that machine to defrag it?

If there is no reason to have NTFS, ditch it, copy the data to another disk, and re-format using ext3.


If the external drive is being used to work on data from both Linux and Windows you are better off formatting as FAT32. Windows can only format partitions up to 32 GB as FAT32, but can read and write to FAT32 partitions much larger. As nordle said, copy the data to somewhere else then use Linux (or it is even easier in Mac OS X) to create and format the partition as FAT32. You now have an external hard drive that can be read & written too by Windows, Linux & Mac OS X.
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

RE: Re: RE: NTFS DEFRAG on Ubuntu!

Postby MartyBartfast » Sun Jul 22, 2007 9:54 am

Just out of curiosity does anyone know, if you were to copy the data off somewhere else (tar/dd/cp or whatever), then delete it from the NTFS drive and just copy the data back, would the files be copied back contiguously?
I have been touched by his noodly appendage.
MartyBartfast
LXF regular
 
Posts: 842
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK

RE: Re: RE: NTFS DEFRAG on Ubuntu!

Postby Dutch_Master » Sun Jul 22, 2007 11:12 am

The housekeeping chores by the Linux kernel is so much superior to whatever M$ came up with that there aren't even defrag-progs for Linux!
Dutch_Master
LXF regular
 
Posts: 2587
Joined: Tue Mar 27, 2007 1:49 am

Re: RE: Re: RE: NTFS DEFRAG on Ubuntu!

Postby Rhakios » Sun Jul 22, 2007 11:30 am

MartyBartfast wrote:Just out of curiosity does anyone know, if you were to copy the data off somewhere else (tar/dd/cp or whatever), then delete it from the NTFS drive and just copy the data back, would the files be copied back contiguously?


Well dd probably wouldn't work as it makes a bit-for-bit copy, but I find copying the data off, formatting the device, then copying it back, works well enough for fat formatted devices.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Re: RE: NTFS DEFRAG on Ubuntu!

Postby nelz » Sun Jul 22, 2007 8:44 pm

ollie wrote:If the external drive is being used to work on data from both Linux and Windows you are better off formatting as FAT32.


Unless you are working with large files (>4GB) which FAT32 cannot handle.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9041
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Re: RE: NTFS DEFRAG on Ubuntu!

Postby ollie » Mon Jul 23, 2007 12:31 am

nelz wrote:Unless you are working with large files (>4GB) which FAT32 cannot handle.


Sorry for not providing full limits, but then there is no cross platform format 100% guaranteed to work. Hopefully this has changed with ntfsprogs and Fuse for Mac OS X.
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

RE: Re: RE: NTFS DEFRAG on Ubuntu!

Postby nelz » Mon Jul 23, 2007 8:16 am

There's also NTFS-3G, a FUSE filesystem for NTFS and Paragon's NTFS for Linux, a commercial product. both work well for NTFS reading and writing.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9041
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Use a ghost boot disc

Postby Myztry » Fri Aug 10, 2007 3:20 am

Back in the old days when I was a Windows User (Ubuntu now), I used to use Ghost when I wanted a serious defrag. It may sound silly but persevere.
Make a back up image using ghost, then restore it back over the source. Ghost does a restore file by file. It also happens to do it in file, directory and sector sorted order.
The pleasant by product is your once grinding box would come up quickly after about a few intermittent Drive Led flashes.
This could be done outside your OS via a boot disc. The only reason I stopped doing this is because Ghost became cumbersome and required multiple boot discs. Still the original simple floppy versions could handle NTFS fine.
Also you end up with a backup file, though you need a spare partition to place it.
Myztry
 
Posts: 1
Joined: Fri Aug 10, 2007 3:12 am

RE: Use a ghost boot disc

Postby nordle » Fri Aug 10, 2007 11:08 pm

I recently install WinXP on a machine, installed all the apps, all the files etc

The system was pretty quick.

I defragged the hd as a last thing to do before leaving and re-booted. The system was horrible, reallly really slow, I could here the drive crunching away like crazy.

I booted again, and again. The result was the same, and after a few more defrags over the last month, its still slow as anything.

Further supporting Myztry's point.
I think, therefore I compile
nordle
LXF regular
 
Posts: 1501
Joined: Fri Apr 08, 2005 9:56 pm


Return to Help!

Who is online

Users browsing this forum: No registered users and 6 guests

cron