Not able to mount root filesystem in NGE Linux Install

After you install NGEL Linux, sometimes you may face issue while mounting root filesystem.

It is a common issue and can occur if the /etc/fstab file not created successfully.

You can verify the contents of fstab file using below command:

# cat /etc/fstab

If the file is empty, it means the install script is not able to read the file successfully because there are no spaces around / in exisiting fstab file as per the script in install file.

fstablinenumber=`cat /etc/fstab | grep -in ' / ' | cut -d ":" -f1`
newuuid=`blkid | grep -i $partitionnumber | cut -d "=" -f2 | sed 's/ TYPE//;s/"//g'`
newfstabline="UUID=$newuuid  /  ext4  defaults,noatime    0 0"
###creating new fstab file for updated root
sed "${fstablinenumber}a $newfstabline" /etc/fstab | sed ${fstablinenumber}d > $ROOTPATH/etc/fstab
echo "FSTAB file updated..."

So you can either vi existing fstab file and enter space around / to resolve the issue.
And then you can run the NGELINUX install script again.

Or you can create the file manually:

[root@nglinux ~]# blkid | grep -i /dev/sda1
/dev/sda1: UUID="1c606740-6a94-42d0-bfdc-7b05a0d897e2" TYPE="ext4" 

And then update fstab with new root:

UUID=1c606740-6a94-42d0-bfdc-7b05a0d897e2 		/            ext4    defaults,noatime    0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments