I am wondering how I can mount an LV on boot
I mount it manually by typing mount -t ext3 /dev/VolGroup00/solus /home/solusvm
However I assume it can possibly mounted using fstab? If so what would I put in there? If not how would I get it to mount on boot?
Mount LVM on boot
Re: Mount LVM on boot
Yes, you can mount it through /etc/fstab in the normal way. Just put /dev/VolGroup00/solus in the first column where you'd normally put the device name.
Re: Mount LVM on boot
Sorry I'm a bit of a Linux noob, on the next part would i put /home/solusvm ? would it basically be /dev/VolGroup00/solus /home/solusvm ext3 defaults 1 2
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: Mount LVM on boot
[quote]
dan223 wrote:
Sorry I'm a bit of a Linux noob, on the next part would i put /home/solusvm ? would it basically be /dev/VolGroup00/solus /home/solusvm ext3 defaults 1 2[/quote]
Yes, it could be. However you are the only one who knows your system and what you are attempting to do with it. ;-)
So, please try the following --
[code]
[b]man fstab[/b]
[/code]
dan223 wrote:
Sorry I'm a bit of a Linux noob, on the next part would i put /home/solusvm ? would it basically be /dev/VolGroup00/solus /home/solusvm ext3 defaults 1 2[/quote]
Yes, it could be. However you are the only one who knows your system and what you are attempting to do with it. ;-)
So, please try the following --
[code]
[b]man fstab[/b]
[/code]
Re: Mount LVM on boot
Thanks,
I just hoping some can confirm that the below is correct:
/dev/VolGroup00/solus /home/solusvm ext3 defaults 1 2
The left hand side is the LVM, the middle is the area to mount and the file system type, not t sure what the defaults etc is for?
I just hoping some can confirm that the below is correct:
/dev/VolGroup00/solus /home/solusvm ext3 defaults 1 2
The left hand side is the LVM, the middle is the area to mount and the file system type, not t sure what the defaults etc is for?
Re: Mount LVM on boot
As [b]Alan[/b] said, `man fstab` is the definitve resource for the format of the file.
But presuming that you want to mount /dev/VolGroup00/solus on /home/solusvm and that the LV contains an ext3 filesystem that you want mounted with the default options then that is correct. If you add the line, umount /home/solusvm then run `mount -a` it will mount it for you as it would during the boot process. If it's syntactically wrong then it will tell you about it as you mount -a.
But presuming that you want to mount /dev/VolGroup00/solus on /home/solusvm and that the LV contains an ext3 filesystem that you want mounted with the default options then that is correct. If you add the line, umount /home/solusvm then run `mount -a` it will mount it for you as it would during the boot process. If it's syntactically wrong then it will tell you about it as you mount -a.