1

I have a question, how do I move my /dev/mapper/datos-datos_lv so I can use that space on /? I want to use the space from /dev/mapper/datos on the/` filesystem.

df -h
Filesystem          Size    Used    Avail   Use%    Mounted on
/dev/sda1           92G     5.8G    82G     7%      /
devtmpfs            1.9G    0       1.9G    0%      /dev
tmpfs               1.9G    140K    1.9G    1%      /dev/shm
tmpfs               1.9G    41M     1.9G    3%      /run
tmpfs               1.9G    0       1.9G    0%      /sys/fs/cgroup
/dev/mapper/datos   296GB   63M     281G    1%      /opt
tmpfs               379M    28K     379M    1%      /run/user/1000

What I want to achieve is:

df -h
Filesystem          Size    Used    Avail   Use%    Mounted on
/dev/sda1           388G    5.8G    82G     7%      /
devtmpfs            1.9G    0       1.9G    0%      /dev
tmpfs               1.9G    140K    1.9G    1%      /dev/shm
tmpfs               1.9G    41M     1.9G    3%      /run
tmpfs               1.9G    0       1.9G    0%      /sys/fs/cgroup
tmpfs               379M    28K     379M    1%      /run/user/1000

Is there any way to get 388G on /?

closed as unclear what you're asking by Gilles, Jeff Schaller, thrig, mdpc, Kusalananda Jun 16 '17 at 23:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Your question is not clear. What do you want to do? Do you want to use the space from /dev/mapper/datos on the / filesystem? – Gilles Jun 16 '17 at 20:52
  • Yes Gilles! That's what I need. :# – Arieel Jun 17 '17 at 2:40
0

If you are on / you can't unmout this partition since you are using it. Try booting from an external source say a cd or usb with something like gparted: http://gparted.sourceforge.net/livecd.php

Access terminal and run, assuming the partition once the live cd is mounted is 1, if not replace it with the correct partition df -h may help:

umount /dev/sda1
mount /dev/mapper/datos-datos_lv /
  • The question is vague, but so is your answer. What do you think the question means? What do you propose to achieve? – Gilles Jun 16 '17 at 20:55
  • English is not my first language! Sorry haha. I want to be able to use that space on /. So for example I'd have a total of 388GB on /. Not sure if it's possible. – Arieel Jun 17 '17 at 1:52
  • @Gilles I understood he is trying to mount /dev/mapper/datos-datos_lv on / and user that instead of the disk or partition he currently has on there. Is that right @xKurisu? – Eric Semwenda Jun 17 '17 at 4:47
-1

You need to edit /etc/fstab and make sure you remove the mount point for your "datos" disk

umount /opt
mkdir /datos (for instance)
echo "/dev/mapper/datos-datos_lv /datos ext3 defaults 0 0" >> /etc/fstab
mount /datos

This is assuming you use ext3

  • The question is vague, but this does not make any sense given the df output. – Gilles Jun 16 '17 at 20:54
  • English is not my first language! Sorry haha. I want to be able to use that space on /. So for example I'd have a total of 388GB on /. Not sure if it's possible. – Arieel Jun 17 '17 at 1:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.