Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I created a logical volume and can see it when i run lvdisplay. However, when I try to mount it, I get the following error message:
root@xxxxxxx:/etc# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-sysbak,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Command to mount in fstab: /dev/VolGroup00/sysbak /sysbak ext3 rw,noatime 0 0
~
After creating the LV you have to layout a filesystem on it. LV is just creating the device (similar to a disk partition).
Your entry shows you're trying to do ext3 filesystem so to layout an ext3 you'd run:
mkfs -t ext3 /dev/mapper/VolGroup00-sysbak
After than you can try your mount command.
Adding the file to /etc/fstab doesn't do the layout - it is just a way to insure the filesystem mounts automatically at boot but it assumes you've done the layout already.
This worked but I had to redo the entire LVM setup (not a big deal), because I inadvertently formatted the entire partition, not just the LV. Doh. Once I recreated the PV, VG and LV's and then formatted the LV's as ext4, everything worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.