LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab only has labels, not /dev/stuff needed for e2fsck (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-only-has-labels-not-dev-stuff-needed-for-e2fsck-4175410714/)

anon091 06-10-2012 06:06 AM

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?

syg00 06-10-2012 06:11 AM

Readlink /dev/disk/by-label/<whatever>

anon091 06-10-2012 06:16 AM

When I do Readlink /data it says command not found

syg00 06-10-2012 06:20 AM

Huh - readlink is in coreutils ... :confused:

Try "ls -al /dev/disk/by-label".

anon091 06-10-2012 06:22 AM

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

syg00 06-10-2012 06:26 AM

Don't try to interpret what I said, do what I said.

anon091 06-10-2012 06:29 AM

Are you saying literally dev disk then whatever my label is?

TobiSGD 06-10-2012 06:34 AM

No, he is saying that you literally type in the command
Code:

ls -al /dev/disk/by-label

anon091 06-10-2012 06:50 AM

I get ls: /dev/disk/by-label no such file or directory

michaelk 06-10-2012 10:28 AM

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.

anon091 06-11-2012 08:16 AM

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!


All times are GMT -5. The time now is 10:05 PM.