LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Separate partitions mistakenly mounted inside of / (https://www.linuxquestions.org/questions/slackware-14/separate-partitions-mistakenly-mounted-inside-of-4175470088/)

zhjim 07-18-2013 04:39 PM

Okay. As I was stupid enough not even ask you about the output of mount (which shows what the system actually has in its file tree structure) I'd say /music is inside the partition you have mounted as / (root of your filesystem).

Some excursion. mount shows what the system right now has mounted... Bad to explain a word by itself... Just what the file system is made off.
/etc/fstab is what gets mounted on boot of the system.

So the reason why your / is filled up is due to /music not beeing a seperate filesystem|partition. (read | as or). Cause it did not get mounted correctly. Lets clean up things and have /music to be moved to the partition that actually should hold that data.

Create a directory for your partition that should contain your music data.
Code:

mkdir /target/target
mount /dev/sda6 /target/music
mv -a /music/* /target/music

That will move all content of /music (on your / partition) to the actual music partition which resides on /dev/sda6.

After that we can create according /etc/fstab entries.

Get acquainted to the output of the mount command to see what is inside the file system tree.

tigerflag 07-18-2013 05:14 PM

Before reading your last post I changed the mount locations in fstab for /dev/sda5 from /data to /mnt/data, and for /dev/sda6 from /music to /mnt/music.

Here is my fstab now:

Code:

/dev/sda7        swap            swap        defaults,discard        0  0
/dev/sda1        /                ext4        noatime,defaults,discard 1  1
/dev/sda5        /mnt/data        ext4        auto,user,rw,exec,discard 1  2
/dev/sda6        /mnt/music      xfs        noatime,auto,user,rw,exec 1  2
/dev/sr0        /media/dvd      auto        ro,user,auto,unhide  0      0
/dev/sr1        /media/dvd1      auto        ro,user,auto,unhide  0      0
#/dev/sr1        /mnt/dvd          auto        auto,users,rw,exec  0  0
#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,users,rw,umask=00 0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0
tmpfs                  /tmp                  tmpfs      defaults,size=1000m  0  0

Rebooted.

Opened a file manager and copied the music from /music to /mnt/music. It opens and plays just fine from /mnt/music. So I deleted /music from the / directory.

Double-checked the contents of /data (nothing in there but a test file which I moved to /mnt/data), then deleted /data from / directory.

All the deleted music ended up in the trash, so I deleted that.

Here's the output from df -h:
Code:

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        12G  4.5G  6.5G  42% /
/dev/sda5      4.9G  138M  4.5G  3% /mnt/data
/dev/sda6        88G  5.8G  83G  7% /mnt/music
tmpfs          3.9G    0  3.9G  0% /dev/shm
tmpfs          1000M  8.0K 1000M  1% /tmp

Everything seems good now. Is there anything else I should do?

zhjim 07-19-2013 01:28 AM

Quote:

Originally Posted by tigerflag (Post 4992831)
Here's the output from df -h:
Code:

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        12G  4.5G  6.5G  42% /
/dev/sda5      4.9G  138M  4.5G  3% /mnt/data
/dev/sda6        88G  5.8G  83G  7% /mnt/music
tmpfs          3.9G    0  3.9G  0% /dev/shm
tmpfs          1000M  8.0K 1000M  1% /tmp

Everything seems good now.

Loooookkkiing good. Root Partition is down to normal size. Music has the same size now as it had while the files where in /music.
And the reboot show that the mount options in /etc/fstab also work. Everything back to where it belongs.

Quote:

Originally Posted by tigerflag (Post 4992831)
Is there anything else I should do?

Enjoy the weekend :)


All times are GMT -5. The time now is 03:25 AM.