cancel
Showing results for 
Search instead for 
Did you mean: 

Corrupted LABEL file

 
Ismail Azad
Esteemed Contributor

Corrupted LABEL file

Hi experts,

There is a typical standard procedure for repairing a corrupted label file. But why do I execute the following command as part of the process :-
chroot /ROOT /sbin/sh

Thanx gurus
Read, read and read... Then read again until you read "between the lines".....
7 REPLIES
Viktor Balogh
Honored Contributor

Re: Corrupted LABEL file

Hi,

I don't know what your procedure is, but can explain the functionality of the chroot command:

# chroot /ROOT /sbin/sh

the above command starts a new sh shell, and in this shell the new root directory will be your previous /ROOT directory. From that shell, you see only the descendant directories from under /ROOT.

e.g.:

A file in your initial shell under /ROOT/newfile will be visible in sh under /newfile.

I hope you get it. If not, you can read some more info from the man page of chroot:

# man 1m chroot

Regards,
Viktor

****
Unix operates with beer.
Torsten.
Acclaimed Contributor

Re: Corrupted LABEL file

You usually do this when running a recovery shell - this is not really related to a corrupted LABEL file!



The LABEL file is written by using the

lvlnboot -r|-b|-s|-d|-R

commands!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Anoop Sivan
Frequent Advisor

Re: Corrupted LABEL file

Hello Ismael,
When a normal boot is not successful, we need to booting from some recovery medium(IUX- server/CD)in to a recovery shell.A Program called loadfile which is run from the recovery medium loads essential files in to a RAM based file system (8MB). So when we enter chroot /ROOT /sbin/sh makes the /ROOT file system your root file system.
Ismail Azad
Esteemed Contributor

Re: Corrupted LABEL file

Torsten,

I am aware with the commands for lvlnboot to update the pointers for primary swap, boot and root logical volumes. And yes I am in the recovery shell and I was talking bout repairing a corrupted LABEL file from recovery shell because my system does not boot!! Thanks anyways...
Read, read and read... Then read again until you read "between the lines".....
Torsten.
Acclaimed Contributor

Re: Corrupted LABEL file

>> why do I execute the following command as part of the process :-
chroot /ROOT /sbin/sh




Well, during recovery you boot the system NOT from the boot disk, but from a RAM disk. With "chroot" you try to bring the original boot disk back into place as root disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ismail Azad
Esteemed Contributor

Re: Corrupted LABEL file

Yes that's it torsten. So the RAM based file system is not only used for Ignite. It's also when u are booting from a CD into recovery shell. Nice to know.Anoop - (info was useful). Thanks

Regards
Read, read and read... Then read again until you read "between the lines".....
Ismail Azad
Esteemed Contributor

Re: Corrupted LABEL file

Thank you everyone.
Read, read and read... Then read again until you read "between the lines".....