Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there anyway to defrag Linux? I'm using Suse 10.1. I've heard there is no need to but my hard drive is really thrashing around and it's causing preformance issues.
I too think this is something other than a fragmentation problem (we’re assuming this is ext2 or ext3, right?), but there’s no need not to look and see…
Quote:
Originally Posted by GothManiac
Not a Linux pro, can you explain to me out to mount a partition as read only?
The easiest (and safest) way to do this would actually be from a livecd (where you don’t need the filesystem mounted at all). From, e.g., knoppix, go to a root terminal make sure your host’s normal filesystems (e.g., /dev/hda1, etc.) are not mounted. Then, type in “e2fsck -nf /dev/hda1” (replace hda1 with one of your partitions). Repeat for all the partitions you use. At the end of the report, it gives you something that looks like this (taken from one of my boxen):
I too think this is something other than a fragmentation problem (we’re assuming this is ext2 or ext3, right?), but there’s no need not to look and see…
The easiest (and safest) way to do this would actually be from a livecd (where you don’t need the filesystem mounted at all). From, e.g., knoppix, go to a root terminal make sure your host’s normal filesystems (e.g., /dev/hda1, etc.) are not mounted. Then, type in “e2fsck -nf /dev/hda1” (replace hda1 with one of your partitions). Repeat for all the partitions you use. At the end of the report, it gives you something that looks like this (taken from one of my boxen):
XFS filesystems have a special tool called for “filesystem reorganizer” or “xfs_fsr” to do “defragmentation” (see man 8 xfs_fsr).
P.S., it would have made this thread a lot shorter, if you said what filesystem you were using in the first place.
Sorry, didn't even think of file system type until it was mentioned.
Can't find any reference to xfs_fsr in man or man 8.
Updated man and still nothing.
Updated xfs and that got it. I'll give that a try.
It looks like by reading the man page, that xfs runs on mounted directories.
Tried it and it looks like it's running.
Thanks for the help.
Last edited by GothManiac; 05-03-2007 at 11:32 PM.
Originally Posted by osor
I too think this is something other than a fragmentation problem (we’re assuming this is ext2 or ext3, right?), but there’s no need not to look and see…
The easiest (and safest) way to do this would actually be from a livecd (where you don’t need the filesystem mounted at all). From, e.g., knoppix, go to a root terminal make sure your host’s normal filesystems (e.g., /dev/hda1, etc.) are not mounted. Then, type in “e2fsck -nf /dev/hda1” (replace hda1 with one of your partitions). Repeat for all the partitions you use. At the end of the report, it gives you something that looks like this (taken from one of my boxen):
Code:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.