LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-15-2006, 01:16 PM   #1
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Rep: Reputation: 15
Exclamation Is there a scan and defragmentation application in SUSE 10?


Good morning staff and visitors,
Does SUSE 10.0 have an application for scanning and defragmenting my Dell 4600 second internal hard drive (drive F: the primary slave drive) on which only SUSE 10.0 is installed? Yesterday Partition Magic indicated this drive currently has developed "bad" partitions!!

Sincerely,
langbein
 
Old 01-15-2006, 01:26 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Does SuSE still boot properly in spite of the PM warning?

If so, I wouldn't trust PM; it isn't a Linux native application. In Linux distros, there is a command-line app called fsck to check and repair Linux filesystems (see the man pages for fsck).

PS. Because *nix systems manage files differently from mswindows, defrag is not an issue.

Last edited by bigrigdriver; 01-15-2006 at 01:28 PM.
 
Old 01-15-2006, 02:06 PM   #3
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Original Poster
Rep: Reputation: 15
Is there a scan and defragmentation application in SUSE 10? Reply to Thread

Hello Bigrigdriver,

I appreciate your response. Yes, I have just now booted successfully into SUSE 10.0!
I was slightly suspicious of this new PM finding, but wanted to get input from those with Linux experience. The entire Ext 2 partition on which SUSE resides displays no swap or other indicators of occupancy; during 2+ months with SUSE 9.3 and immediately after the January 12, 2006 installation the Linux partition "looked" normal.
Will watch and see what happens. The portion of the F drive (~60GB) still formatted as NTFS scanned normal this morning using the scan/defrag application in WinXP.

Thanks again,
langbein
 
Old 01-15-2006, 02:37 PM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The filesystem drivers under linux resort the read/write acess to files, so the movement of the read/write head of the harddisk is minimized. Defragmentation is not necessary under Linux.
 
Old 01-15-2006, 03:30 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
If you have bad blocks (you may, it happens) you should use fsck or e2fsck to check/repair them.
 
Old 01-15-2006, 06:54 PM   #6
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Original Poster
Rep: Reputation: 15
Question Is there a scan and defragmentation application in SUSE 10?

Quote:
Originally Posted by linmix
If you have bad blocks (you may, it happens) you should use fsck or e2fsck to check/repair them.
Good evening and thanks for this suggestion, linmix,
Three questions:
1.Are both commands suitable for SUSE 10? If so, what is the difference between "fsck" and "e2fsck ?" Which would be more useful in this situation?
2.Are these commands used in Linux or Windows?
3.What prompt is required for their use?

Sincerely,
langbein
 
Old 01-16-2006, 10:28 AM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
1) yes. Difference? Not quite sure of the finer detail, but it appears e2fsck is a newer app based in origin on fsck. To find out about the two check their man pages ('man fsck' or 'man e2fsck')

2)Linux only (as far as I know). I don't know of any linux tools that can defrag windows partitions though.

3) I suppose any prompt will do as they are not shell specific apps. You should be root to be able to us them though. To become root type 'su' at the command line of your shell and give the root password when asked.
 
Old 01-18-2006, 01:12 PM   #8
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Original Poster
Rep: Reputation: 15
Lightbulb Is there a scan and defragmentation application in SUSE 10?

Hello readers,
As of 01/18/06 there seems to be a consensus that Windows "SCAN" is replaced with "FSCK" in SUSE; and Windows defragmentation is not an issue in the Linux OS.
As to the "bad" diagnosis of my SUSE partition on the second internal hard drive by Partition Magic, a monitor reviewed my partition data [located/copied at /etc/fstab] and concluded Partition Magic "can't recognize the reiserfs format." The partition data at /etc/fstab was intact and displayed no errors.
Sincerely,
langbein
 
Old 01-19-2006, 09:28 AM   #9
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Happy you found a sollution

BTW: langbein > longshanks > strider ... any Tolkien ideas in that or am I groping?
 
Old 01-19-2006, 11:58 AM   #10
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,500
Blog Entries: 2

Rep: Reputation: 68
Quote:
Originally Posted by langbein
1.Are both commands suitable for SUSE 10? If so, what is the difference between "fsck" and "e2fsck ?" Which would be more useful in this situation?
Yes. fsck is a wrapper to a specific filesystem checker. Besides e2fsck (which is a hard link to fsck.ext2), there are several file system checkers that fsck can call:
fsck.cramfs fsck.ext3 fsck.minix fsck.reiserfs fsck.xfs
fsck.ext2 fsck.jfs fsck.msdos fsck.vfat


Quote:
Originally Posted by langbein
2.Are these commands used in Linux or Windows?
Linux only.

Quote:
Originally Posted by langbein
3.What prompt is required for their use?
I understand you want to know what are the options in command line ?
Suppose your disk is a ATA disk, and the first partition is a ext2 partition. So, fsck -t ext2 /dev/hda1 will check it's integrity.
To scan for badblocks, use the option c for a read only test or double c for a read-write non-destructive test. Something like that: fsck -cc -t ext2 /dev/hda1

Warning: The check can not be done under a live partition. un-mount it first !


Sincerely,
 
Old 01-19-2006, 12:24 PM   #11
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Original Poster
Rep: Reputation: 15
Hello linmix

Quote:
Originally Posted by linmix
Happy you found a sollution
BTW: langbein > longshanks > strider ... any Tolkien ideas in that or am I groping?
That is a great extended interpretion of the German word langbein, which I think is literally "longleg(s)."
JRR Tolkien and my paternal grandmother would be pleased and flattered.
Langbein is the maiden name of my departed ancestor: Thekla Langbein, who married Edward Dietert in the Kerrville/Comfort region of the Texas Hill Country. They and many other immigrants setted in this part of Texas, during the mid-1800s, after their ships offloaded them on the Gulf Coast. Humidity and mosquitos quickly convinced them to "put on their traveling shoes" and move inland into the fertile, drier, and fresh water streams of the uplands known today as the Hill Country. Enough Texas history.

Appreciate your software help and interest in my lq.org user name.

Sincerely,
langbein
 
Old 01-19-2006, 12:39 PM   #12
langbein
Member
 
Registered: Oct 2005
Location: Richland, WA
Distribution: Ubuntu Linux 6.06 LTS/Gnome
Posts: 75

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by marozsas
I understand you want to know what are the options in the command line?
Suppose your disk is a ATA disk, and the first partition is a ext2 partition. So, fsck -t ext2 /dev/hda1 will check it's integrity.
To scan for badblocks, use the option c for a read only test or double c for a read-write non-destructive test. Something like that: fsck -cc -t ext2 /dev/hda1
Warning: The check can not be done under a live partition. un-mount it first !
Sincerely,
Thank you marozsas for this complete answer to my recent post. This is huge help in the final (I hope) resolution of the partition "bad" diagnosis from a Windows oriented Partition Magic.

One question: How do I "un-mount" my Primary Slave internal hard drive that is a SCSI drive with an Ext2 partition for Linux OS?

Thanks again,
langbein
 
Old 01-19-2006, 01:08 PM   #13
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Unmounting is done with umount /dev/hda1. However you cannot unmount your root partition as you can only unmount partitions that are not in active use.

There may be other ways to do this, but to run fsck on your root partition you'd have to boot from a live distro or rescue cd.

I do however remember reading something about a way to tell fsck to run at boot time, but don't remember the specifics. Maybe someone else (nudge nudge marozsas) can tell you.

(I do speak german and langbein does indeed mean 'longleg', but I thought longshanks was a bit more poetic )
 
Old 01-20-2006, 04:51 AM   #14
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,500
Blog Entries: 2

Rep: Reputation: 68
Quote:
Originally Posted by langbein
I do however remember reading something about a way to tell fsck to run at boot time, but don't remember the specifics. Maybe someone else (nudge nudge marozsas) can tell you.
Yes, thank you for the chance !

Each distro implements this in some way. In SuSE 9.0/10.0 if exists a file named /forcefsck then the root filesystem will be checked at the boot time.

To force a check in other filesystem, boot in single user mode (type s at grub boot options field ) and run "fsck.ext2 -f /dev/hda<n>" manually.

regards,
 
Old 01-21-2006, 08:26 AM   #15
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
obrigado!

Anyone for other distros? Maybe a general sollution?
 
  


Reply



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
To SCAN or not to SCAN? HP750xi Suse 9.2 Pro newtwolinux Linux - Hardware 4 06-22-2005 04:02 PM
Defragmentation??? janhouse00 Linux - Newbie 1 03-16-2005 10:16 PM
Defragmentation Obie Linux - General 3 07-21-2004 02:10 AM
RH need to do defragmentation?? yenonn Linux - General 4 08-15-2003 02:15 AM
Defragmentation? Half_Elf Linux - Hardware 2 07-18-2002 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:32 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
Open Source Consulting | Domain Registration