LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2004, 02:58 PM   #1
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Rep: Reputation: 15
Question Disk Maintenance on Linux


On Windows XP I have Norton Systemworks 2003 Pro installed to clean my registry, defrag my hard drive and scandisk my hard drive.

On SuSE Linux 9.0 what do I have to equivalent to these tools? Do I even need to defrag files on Linux or "scandisk" the hard drive on Linux? What does Linux have for disk maintenance? And if there is something please tell me it's GUI, I hate using shells to do stuff. I have to admit I'm a slave to my mouse.
 
Old 04-18-2004, 03:13 PM   #2
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
I'm not sure
Linux file system type have no fragment.
So defragment is usefulless.
 
Old 04-18-2004, 03:17 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
yeah i heard that the disk defragmentor in windows was just a work-around for a crappy file system.

i installed widowsXP a few days ago... and now some system files have managed to be broken into 500 fragments despite the fact that the disk is only 1 gig in use (6 gig disk)
 
Old 04-18-2004, 05:22 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,716

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
linux does not have a registry... enough said.

Linux filesystem really do not have a fragmentation problem. One of my PC's has been running for more then 6 years (when I had to replace a hard drive) and I don't think the disk fragmentation reported by fsck has ever gone over 2%.

A filesystem check is performed on start up after so many boots or days. Just like windows and scandisk if your PC crashes or a orderly shutdown isn't performed a filesystem check will be done on the next boot. Journalized filesystems are better at recovering after crashes then an ext2 filesystem.
 
Old 04-18-2004, 05:44 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
You don't need to run a scandisk (or fsck in the *nix case) on any FS with a journal. The journal will automatically recover any lost fragments. This includes ext3, ReiserFS, XFS, JFS, and even NTFS. I'm sure you're using one of those.


Basically with Linux (and *nix in general) is that as long as the system is working/running, it'll continue to work just as well for as long as you want. The only thing that'll stop it is if YOU break something. Windows on the otherhand naturally degrades. :P
 
Old 04-18-2004, 05:45 PM   #6
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
I was pretty sure NTFS is not a journaling file system... does it have some other way of recovering lost sectors or am I just totally wrong?
 
Old 04-18-2004, 07:23 PM   #7
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Original Poster
Rep: Reputation: 15
Another note to add to my "linux is better than windows" list. That's f**king awesome, thanks every one.
 
Old 04-28-2004, 10:40 AM   #8
sekharnet
LQ Newbie
 
Registered: Apr 2004
Location: New York, USA
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by hus
I'm not sure
Linux file system type have no fragment.
So defragment is usefulless.

Thats a joke.
Does unix change the harddisk tracks to bubble memory or what?

Linux uses very good disk drivers which manage through put lot better than Windows drivers. That foes not mean linux disks do not fragment.

Best way to de-fragment disks in any OS is to
1.take a coplete backup file based backup (with zip/tar etc not dd)
2.format the disk
3.Restore your contents on to the disk.
 
Old 04-28-2004, 10:46 AM   #9
sekharnet
LQ Newbie
 
Registered: Apr 2004
Location: New York, USA
Posts: 2

Rep: Reputation: 0
Re: Disk Maintenance on Linux

Quote:
Originally posted by WarlockofVirgo
On Windows XP I have Norton Systemworks 2003 Pro installed to clean my registry, defrag my hard drive and scandisk my hard drive.

On SuSE Linux 9.0 what do I have to equivalent to these tools? Do I even need to defrag files on Linux or "scandisk" the hard drive on Linux? What does Linux have for disk maintenance? And if there is something please tell me it's GUI, I hate using shells to do stuff. I have to admit I'm a slave to my mouse.

Regularly defragmenting disks with any utility will reduce the disk life slightly.
Best way is to backup files and restore them on any OS.

Technical explanayion:
Disks are made of magnetically polarized tracks. we create data on the disks by changing the polarization. Polarization change is efective only for a given number of cycles.

Regular Disk defragmenting software writes and rewrites a lot of file peices which will use up the polarization cycles and reduce the disk list to an extent.

Raja Surapaneni
 
Old 11-15-2004, 11:12 PM   #10
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Regularly defragmenting disks with any utility will reduce the disk life slightly.
i have my doubts
ive had a 10 gig drive since 1998? i think
and it has suffered daily defrags with windows 98 and xp due to downloading from p2p and i'm currently using it with linux instead.



but i do have a vfat32 drive in linux i do need to defrag that.

icurrently have to reboot my machineonce a week to defrag it in windows
any proggy to help?
 
Old 11-16-2004, 12:16 AM   #11
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
I read once that for linux, since it is a multiuser system, it doesn't matter much if the disk is fragmented or not. Something about files being accessed randomly at the same time or something.
 
Old 11-16-2004, 05:40 AM   #12
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Random Access simply means that the disk can seek to any address instantly.... where as old sequential access memory (Like Casette Tapes) can only read the memory from start to finish, and require fast forwarding / rewinding to seek.

As for the Same time thing.... well, maybe you were hearing about milti-tasking ?

ANyways... the file system, is somthing linux will have advantage over windows for a long time.

MS is developeing WinFS. they dropped support for it in longhorn because of development times, but they are still planning on implementing it within the next 5 years... After that, it may be years before they even plan on implementing a replacement.

and for all the Hype around WinFS, all it is, is a Database system built ontop of sucky NTFS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintenance of linux box Belize Linux - General 3 10-24-2005 10:12 AM
Linux maintenance Ageless Linux - Newbie 7 04-29-2005 09:52 AM
Linux maintenance? voyciz Linux - Newbie 6 06-22-2004 11:05 PM
system on maintenance on linux santasballz Linux - Newbie 8 03-01-2004 07:31 AM
and some Linux maintenance questions... grapier Linux - Newbie 4 01-12-2004 01:23 PM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration