LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 06-10-2012, 06:06 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Rep: Reputation: 36
fstab only has labels, not /dev/stuff needed for e2fsck


I need to run an e2fsck on one of my arrays, but looking in fstab it only has labels which I don't think work with e2fsck. How do I find out what the label really is so I can put that in the e2fsck command to check that?
 
Old 06-10-2012, 06:11 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,801

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Readlink /dev/disk/by-label/<whatever>
 
Old 06-10-2012, 06:16 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
When I do Readlink /data it says command not found
 
Old 06-10-2012, 06:20 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,801

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Huh - readlink is in coreutils ...

Try "ls -al /dev/disk/by-label".
 
Old 06-10-2012, 06:22 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
I'm booted into repair filesystem mode, and all I know is the label of it, not the /dev/whatever I need to e2fsck it
 
Old 06-10-2012, 06:26 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,801

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Don't try to interpret what I said, do what I said.
 
Old 06-10-2012, 06:29 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
Are you saying literally dev disk then whatever my label is?
 
Old 06-10-2012, 06:34 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,874
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
No, he is saying that you literally type in the command
Code:
ls -al /dev/disk/by-label
 
Old 06-10-2012, 06:50 AM   #9
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
I get ls: /dev/disk/by-label no such file or directory
 
Old 06-10-2012, 10:28 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,536

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
Post your fstab. Are you sure you are using labels vs UUIDs? Are you using LVM?
Are there any other directories in /dev/disk?

Maybe the blkid command will provide the necessary information.

Last edited by michaelk; 06-10-2012 at 10:29 AM.
 
1 members found this post helpful.
Old 06-11-2012, 08:16 AM   #11
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
This is the volume i'm trying to e2fsck

LABEL=/data /data ext3 defaults 1 2

only thing under /dev/disk is by-path, which then has like 20 things under it.

looks like blkid does give me the /dev/whatever of each label!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/fstab labels do not come out consistently VirtualEJ Linux - Software 3 10-26-2009 12:18 PM
If I move hd labels, what changes? fstab, grub.conf... soloist Linux - General 6 03-16-2004 10:31 AM
appropiate fstab entries -- How to use labels jimieee Linux - Hardware 2 10-31-2003 03:29 AM
LABELs in /etc/fstab and grub.conf juggler Red Hat 1 09-28-2003 04:10 PM
Installing new harddisks...Questions about filesystems, labels and fstab needamiracle Linux - Hardware 5 09-23-2002 10:35 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration