LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-18-2013, 05:39 PM   #16
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184

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.
 
Old 07-18-2013, 06:14 PM   #17
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
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?
 
Old 07-19-2013, 02:28 AM   #18
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by tigerflag View Post
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 View Post
Is there anything else I should do?
Enjoy the weekend
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it required for /bin to be mounted as separate partition?? kirtikjr Linux - Software 3 07-12-2007 06:18 PM
developing on separate partitions mtdew3q Suse/Novell 5 05-18-2007 03:04 PM
e2fsck: root partitions and ro mounted partitions Clemente Linux - General 4 11-06-2006 10:32 PM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 03:42 AM
how do i separate the partitions...? perry Slackware 2 11-20-2003 04:40 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration