4 TB ext4 mount problem

Latest response

Hi,

I cannot mount 4 TB disk partition (logical volume ) . I created as gpt by gparted.

mount -t ext4 /dev/mapper/vgOpt-opt /opt/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vgOpt-opt,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Responses

Check you actually have a filesystem there:

file -Ls  /dev/mapper/vgOpt-opt

If not, you'll need to make one with mkfs.etx4

If so, you can check it like fsck /dev/mapper/vgOpt-opt

Hello Yasar,

Please describe what you did. The command give by Jamie shows on my RHEL 6.9 box that /dev/mapper/volumegroup-logical_volume is a symlink. So it does not show whether it contains a filesystem.

Regards,

Jan Gerrit Kootstra

P.S. the OS release might be important in this discussion.

Ah, nice catch, I'll change that to find -Ls to follow symlinks

Yasar,

After you created the partition, did you create the file system? Creating the partition is the prerequisite to running a mkfs.xfs or mkfs.ext4 (or like) command to establish the file system after creating the partition. NOTE: IF YOU HAVE a partition already, try mounting it, but this time without the options...

So if your file system is /dev/mapper/vg0pt-opt try using mount /dev/mapper/vg0pt-opt /opt and if "/opt" is not the mountpoint, pick the right mount point (recommend against mounting against an existing-in-use mountpoint).

You can tell if a directory is or is not an active mountpoint using mountpoint /boot or mountpoint /var and so on. It will either say "/var is a mounpoint" or "/var is not a mountpoint".

Let us know if you need more help.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.