Operating System - Linux
1825795 Members
2240 Online
109687 Solutions
New Discussion

Re: where is / partition?

 
monu_1
Regular Advisor

where is / partition?

Hi All,

How can we know, where is root partition at grub prompt?

by mistaken changed in fstab file and now could not finding /.

Please advice.

Thx,
MKS
3 REPLIES 3
Stuart Browne
Honored Contributor

Re: where is / partition?

Generally on a recent system, the file systems will be mounted by label, i.e.

LABEL=/ / ext3 defaults 1 1

If you boot from a rescue CD of some kind, you should be able to find it fairly easily, and fix the fstab.
One long-haired git at your service...
Srimalik
Valued Contributor

Re: where is / partition?

boot from a rescue CD
do fdisk -l ( this will list all the partiotions)

mount each of the linux partitions at some location by the contents of the mountpoint you can tell whether it is root partion or not.


abandon all hope, ye who enter here..
skt_skt
Honored Contributor

Re: where is / partition?

is the server still up?

Compare to the o/p of mount -l . That gives a mapping between the device/partition to the mount point.

from mount -l
/dev/sda9 on / type ext3 (rw) [/]

in fstab
LABEL=/ / ext3 defaults 1 1