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?
|
Readlink /dev/disk/by-label/<whatever>
|
When I do Readlink /data it says command not found
|
Huh - readlink is in coreutils ... :confused:
Try "ls -al /dev/disk/by-label". |
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
|
Don't try to interpret what I said, do what I said.
|
Are you saying literally dev disk then whatever my label is?
|
No, he is saying that you literally type in the command
Code:
ls -al /dev/disk/by-label |
I get ls: /dev/disk/by-label no such file or directory
|
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. |
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. |