System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change label in fstab in linux ?

SOLVED
Go to solution
AA786
Frequent Advisor

How to change label in fstab in linux ?

LABEL=/boot1 /boot
how to change LABEL to /boot only

i want like below
LABEL=/boot /boot
ll it bootup after changing fstab?pls help
5 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: How to change label in fstab in linux ?

You first should identify why you have /boot1. Check your partition labels with dumpe2fs -h /dev/sdXX and you can modify your label with e2label. Then change fstab.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
AA786
Frequent Advisor

Re: How to change label in fstab in linux ?

my log
LABEL=/boot1 /boot
----
/dev/cciss/c0d0p1 256666 19537 223877 34% /boot
-------
i want to change the entry in fstab to
LABEL=/boot /boot
-------



Rob Leadbeater
Honored Contributor

Re: How to change label in fstab in linux ?

Hi,

You probably need to use tune2fs...

# man tune2fs

# tune2fs -L /boot /dev/cciss/c0d0p1

Hope this helps,

Regards,

Rob
dirk dierickx
Honored Contributor

Re: How to change label in fstab in linux ?

e2label is the command the change your disk labels.
AA786
Frequent Advisor

Re: How to change label in fstab in linux ?

thanks to all