SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-05-12 07:18:22

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 192

Moving mount points in LVM [Solved]

Using the marvellous LVM & Sidstrap guides, I've installed a gleaming new system. Everything went swimmingly well until...
I like to have a seperate music partition, but I like to mount it at

/home/daddy/music

I forgot. Now I would like to move it from

/home/music

to

/home/daddy/music 

I've edited fstab to reflect this, but this hasn't worked & I'm assuming it's something to do with LVM. Can anyone help please?
Here is my current unedited fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/lv-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=7bffa61d-7537-45ca-8bca-7894d4a6524b /boot           ext2    defaults        0       2
/dev/mapper/lv-home /home           ext4    defaults        0       2
/dev/mapper/lv-music /home/music     ext4    defaults        0       2
/dev/mapper/lv-var /var            ext4    defaults        0       2
/dev/mapper/lv-swap none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
#/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0

Many thanks

[Edit]
I should also add that /home/music is empty as is /home/daddy/music

Last edited by donkeyotay (2013-05-12 15:10:23)


I didn't say it was your fault... I said I was going to blame you.

Offline

Be excellent to each other!

#2 2013-05-12 08:37:07

VDP76
#! Bean Roaster
Registered: 2012-04-12
Posts: 840

Re: Moving mount points in LVM [Solved]

does your user own the folder?
change fstab to reflect the new mount point

/dev/mapper/lv-music /home/daddy/music     ext4    defaults        0       2

reboot, then check

ls -l /home/daddy | grep music

the folder should be owned by root, do

sudo chown daddy:dayy /home/daddy/music

and enjoy the music... wink


#!#!#! Forum etiquette #!#!#!
Are you a new member!? Have you introduced yourself?!
CLI basics | LVM | smxi | chrooting | multiarch

Offline

#3 2013-05-12 09:21:23

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 192

Re: Moving mount points in LVM [Solved]

Many thanks for the reply. I've done as you say and got the result...
however I still have

/home/music

as well as

/home/daddy/music

fstab looks like this now

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/lv-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=7bffa61d-7537-45ca-8bca-7894d4a6524b /boot           ext2    defaults        0       2
/dev/mapper/lv-home /home           ext4    defaults        0       2
/dev/mapper/lv-music /home/daddy/music     ext4    defaults        0       2
/dev/mapper/lv-var /var            ext4    defaults        0       2
/dev/mapper/lv-swap none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
#/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0

Should I still have

/home/music

Many thanks  smile


I didn't say it was your fault... I said I was going to blame you.

Offline

#4 2013-05-12 10:32:08

VDP76
#! Bean Roaster
Registered: 2012-04-12
Posts: 840

Re: Moving mount points in LVM [Solved]

you're welcome! smile

I guess /home/music/ is going to sit there as an empty folder until you delete it...before doing so, just check that it is indeed empty and that the LV is mounted in the right place...

Last edited by VDP76 (2013-05-12 10:33:16)


#!#!#! Forum etiquette #!#!#!
Are you a new member!? Have you introduced yourself?!
CLI basics | LVM | smxi | chrooting | multiarch

Offline

#5 2013-05-12 15:10:02

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 192

Re: Moving mount points in LVM [Solved]

That's it smile
Simply deleted it.
Thanks for the reply.


I didn't say it was your fault... I said I was going to blame you.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo