LinuxQuestions.org
Review your favorite Linux distribution.
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 03-18-2017, 09:11 PM   #1
ComputerCritic
Member
 
Registered: Mar 2017
Posts: 43

Rep: Reputation: Disabled
Angry fix filesystem errors on Linux


I am using OpenSUSE Leap. I tried XFS_repair(8) but it shows "syntax error near unexpected token 8". Why can't they make it like Windows? What am I actually supposed to do? Why no examples? That's why I dislike CLI. It's 80's. Just with GUI shortcuts is much faster, don't you think? No one has asked about this error. It showed no results on Google.
 
Old 03-18-2017, 10:07 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,414
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
a "syntax error" means you didn't "use the command" correctly.

try typing
Code:
XFS_repair --help
see how you go.

I use ext4 as a journaling File system, so I haven't had to do this, yet.

If it was easy, everybody would be doing it.

Don't give up. :-)
 
Old 03-18-2017, 10:10 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,362

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
Quote:
Originally Posted by ComputerCritic View Post
I am using OpenSUSE Leap. I tried XFS_repair(8) but it shows "syntax error near unexpected token 8".
The "(8)" is just the documentation section where the manpage is stored. If you type "man 8 XFS_repair" (or, probably, just "man XFS_repair") in a terminal window you should see the manual page for that command.

The reason that "(8)" is included in the text you were reading is that occasionally the same name appears in two different sections, such as "mount(8)" the adminstrative command vs. "mount(2)" the system call that actually does the work. Yes, it's confusing until you realize that.
 
1 members found this post helpful.
Old 03-18-2017, 10:30 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I tried XFS_repair(8)
Did you try it without the 8?
The manual doesn't mention an integer, or a pair of parens for that matter...

Quote:
xfs_repair [ -dfLnPv ] [ -m maxmem ] [ -c subopt=value ] [ -o subopt[=value] ] [ -t interval ] [ -l logdev ] [ -r rtdev ] device
xfs_repair -V
Quote:
That's why I dislike CLI.
I would guess the reason you dislike it is you don't know how to use it. It's a C api, so just like programming, it's got a learning curve you may not want to invest in.
Quote:
Just with GUI shortcuts is much faster, don't you think?
No. I've never met a person who can work on the CLI and prefers to click the buttons. It's unbelievably slow and uninformative and you can never really be sure what the thing just did.
It's a little like using a hatchet when you really need a scalpel.
Shell/Shell scripting is a very helpful skill if you're going to work with Linux, however it's not required.
Quote:
Why can't they make it like Windows?
Ubuntu, would give you a more "Windows-like" experience. Suse is an engineering platform, it designed for a user with a base level competence, it's probably not the Distro for you.

Last edited by dijetlo; 03-18-2017 at 10:35 PM.
 
1 members found this post helpful.
Old 03-19-2017, 05:05 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,603

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
although it is a bit offtopic here, but probably helps you to understand: http://linux.oneandoneis2.org/LNW.htm
 
1 members found this post helpful.
  


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
LXer: How to fix 'Fontconfig warning' errors in Linux LXer Syndicated Linux News 0 09-24-2015 06:00 PM
Filesystem errors, how do I tell which volume its on from log errors? rjo98 Linux - Newbie 5 03-09-2011 03:20 PM
Fix filesystem /partition Zero4 Linux - Newbie 3 11-04-2010 02:00 AM
help:how to repair or fix filesystem? sonix Linux - General 2 12-08-2005 07:04 PM

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

All times are GMT -5. The time now is 05:37 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