Mounting a Logical Volume at Boot - fedora 13
I have a logical volume on my disk that I use for storage/backup.
Is there any way to get it to mount automatically at boot?
besides the auto mount in fedora ? ( it should just auto set it up in /media )
adding a line to the /etc/fstab ?
Assuming your logical volume is called mylogvol (in a volume group called myvolgroup) and you're mounting on a mount point called mydir; add the following line (you need root priveleges) to /etc/fstab:
Thereafter either a reboot or mount -a will have the logical volume mounted.
my advice is to use fdisk -l to discover your partition.
create a directory as a mount point.
then edit /etc/fstab (just mimic the existing lines)
then issue the mount command just specifying the mount point. If it succeeds it will succeed again after a reboot.
Not a bad summary but consider the OP is using LVM. Thus over and above the partition he/she would need to create volume groups and logical volumes. You then mount the actual logical volume on your mount point (which will be different to an "ordinary" partition).
so i tried editing /etc/fstab and chose as a mount point a folder in my home dir called /home/<...>/Space. I had already added a bunch of music to the partition and it doesn't show up in this folder. the only difference is that if I mount the partition (manually) in it is a folder called Space. here is the content of /etc/fstab (Skynet being the name of my pc)
/dev/mapper/vg_skynet-lv_root / ext4 defaults 1 1
UUID=d0ea18be-a518-4d20-9d12-d0b67fbcabf7 /boot ext4 defaults 1 2
/dev/mapper/vg_skynet-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_skynet-lv_swap swap swap defaults 0 0
/media/space /home/<...>/Space ext4 defaults 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
thanks ahead everybody!!
Before you added that line to /etc/fstab; if you had a directory called /home/<...>/Space in which you placed music; remember this directory would have been by default mounted on the root filesystem.
Now, once you've added this line into fstab and rebooted/mounted; you now have /home/<...>/Space mounted on /media/space - a different filesystem. This is why you no longer see your music in /home/<...>/Space.
If you did something like:
|All times are GMT -5. The time now is 11:55 AM.|