LinuxQuestions.org
Help answer threads with 0 replies.
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 07-30-2003, 10:18 AM   #1
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Rep: Reputation: 30
does linux have a scandisk utility?


does it have?
 
Old 07-30-2003, 10:31 AM   #2
v3rb0
Member
 
Registered: Jun 2003
Location: Europe, Latvia
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
yes, smth. like that is in linux.
take a look @ `man fsck`
 
Old 08-03-2003, 11:04 PM   #3
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Original Poster
Rep: Reputation: 30
there is 'man fsck', but i cannot run it under the shell.

does it need a separate installation? if it does, what package do i need to install?
 
Old 08-04-2003, 12:59 AM   #4
lappen
Member
 
Registered: Aug 2003
Location: Sweden
Posts: 83

Rep: Reputation: 15
fsck runs automaticly at boottime...

http://forums.devshed.com/archive/33/2002/11/4/47838
 
Old 08-04-2003, 11:13 AM   #5
v3rb0
Member
 
Registered: Jun 2003
Location: Europe, Latvia
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
you need to be root to run fsck manualy
 
Old 08-04-2003, 08:24 PM   #6
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Original Poster
Rep: Reputation: 30
yup, i did an "su" but nothing happened... take a look at this...

nateraln@localhost nateraln]$ su
Password:
[root@localhost nateraln]# fsck
bash: fsck: command not found
[root@localhost nateraln]#
 
Old 08-04-2003, 08:38 PM   #7
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
you have to specify what drive:

Code:
#fsck /dev/hda


BUT DONT RUN IT ON A MOUNTED PARTITION! If you must, boot into runlevel 1, but idealy, boot into a floppy or cd distro to do it.
 
Old 08-04-2003, 09:14 PM   #8
stephenh
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 9.0
Posts: 11

Rep: Reputation: 0
Quote:
spyghost wrote
yup, i did an "su" but nothing happened... take a look at this...

nateraln@localhost nateraln]$ su
Password:
[root@localhost nateraln]# fsck
bash: fsck: command not found
[root@localhost nateraln]#
In that case try /sbin/fsck (which is the absolute path to the fsck program).

Please heed contrasutra's advice before you proceed.
 
Old 08-04-2003, 10:31 PM   #9
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
u must exit X windows and unmount your root partition

then login as root with the text interface and run fsck /dev/hda4 or whatever
 
Old 09-15-2003, 11:55 AM   #10
mrwylli
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Unhappy i cant check an ntfs partition with fsck

(first of all im very newbie)
I have read these posts and after test and test, this is the result which i get:

[root@cliente******** mrwylli]# /sbin/fsck /dev/hda1
fsck 1.27ea (14-Mar-2002)
fsck: fsck.ntfs: not found
/sbin/fsck: Error 2 while executing fsck.ntfs for /dev/hda1

Now i will explain what is what i need: i had winXp and mandrake 9 installed in my computer, one day i was changing partition table with partition magic 8 and the power failed (electric energy shutdown) and when it returned,the partition of WinXp (/dev/hda1) with NTFS filesystem didnt and doesnt work (it only restart and restart...) and now what i need is a program to repair the partition table of /dev/hda1 from linux.
I also advice that winXP is in its own hard disk and Mandrake is in the same situation (it has its own HD)


Thank you, im waiting forward for a solution.

Last edited by mrwylli; 09-15-2003 at 11:58 AM.
 
Old 09-15-2003, 02:21 PM   #11
Greyweather
Member
 
Registered: Aug 2003
Distribution: Ubuntu 4.10
Posts: 311

Rep: Reputation: 30
Given that Linux can't even write to NTFS partitions, I doubt it would have much luck in trying to fix it.

What about your WinXP system recovery CDs?

Last edited by Greyweather; 09-15-2003 at 02:22 PM.
 
Old 09-15-2003, 02:32 PM   #12
v3rb0
Member
 
Registered: Jun 2003
Location: Europe, Latvia
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
..and take a look with cfdisk do you still have windows partition.

but imho there is no way with fsck to fix ntfs, `cause fsck is for simple problem fixing. ntfs is not writeable by default in some distros, and you need to recompile kernel to enable it (?). And ntfs is not recomended to write from linux, you can damage it.
 
Old 09-15-2003, 03:46 PM   #13
mrwylli
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
solution found!!!

Thank you very much!!!

The first thing i thought was in the recovery cds but i cant find them in my room, but at the end they have returned to me!!!

Now everything its ok and i also have learned some interesting things about linux, again, thank you very much i will ask again very soon!!!
 
Old 02-15-2006, 10:19 AM   #14
jetxee
LQ Newbie
 
Registered: Feb 2006
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by spyghost
yup, i did an "su" but nothing happened... take a look at this...

nateraln@localhost nateraln]$ su
Password:
[root@localhost nateraln]# fsck
bash: fsck: command not found
[root@localhost nateraln]#
You should have used "su -" instead of su, to get root's PATH (/sbin/fsck is not usually in normal users' path).

Otherwise, you may try running it like /sbin/fsck /usr/sbin/fsck or something like this.

fsck.vfat -a /dev/hda1 (or /dev/hdaX, where X is the number of partition) will do check and repair automatically.
Do umount /dev/hda1 before.
 
Old 02-15-2006, 06:16 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
In short,
su
switches to a new user, but leaves env as per orig user
su -
switches to a new user with new user's env
HTH
 
  


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
Scandisk under linux? kevingpo Fedora 20 07-06-2005 11:39 AM
What's the Linux-equivalent of MS scandisk? johnMG Debian 4 12-22-2004 08:27 PM
Scandisk in Linux ako Linux - Newbie 3 01-15-2004 05:36 AM
linux scandisk? versaulis Linux - Software 1 10-22-2003 06:51 PM
Newbie 1.01 : How to 'Scandisk' in Linux? thomassounness Linux - Newbie 3 04-07-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 PM.

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