[SOLVED]Low Disk Space

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 12:34 am

You could mount the big partition as a data partition with mount instructions in fstab, and then create symlinks, bookmarks, or use binding to create links to the partition's content.
HOWTO: Create & Use a Separate DATA Partition - gold_finger
Create a /data partition with symlinks - xenopeek
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Low Disk Space

Post by Cosmo. » Mon May 16, 2016 6:15 am

I am astonished about the file fstab. I thought because of the output here that sda5 is auto-mounted, but this is obviously not the case.

How much space is free on sda5?

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 11:15 am

When I originally had only a 500GB HD, there were only 6 partitions. Now that I have a 1TB HD, There are 7 partitions. Both times, the Linux Mint Live DVD made the partitions automatically. I don't understand why there is a difference. Why is that?

Code: Select all

loy@loy-Vostro-220-Series ~ $ sudo lsblk
[sudo] password for loy: 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0 468.1G  0 part 
├─sda3   8:3    0     1K  0 part 
├─sda5   8:5    0 430.5G  0 part 
├─sda6   8:6    0     4G  0 part [SWAP]
└─sda7   8:7    0  28.9G  0 part /
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0  39.2M  0 part 
├─sdb2   8:18   0 172.3G  0 part 
├─sdb3   8:19   0     1K  0 part 
├─sdb5   8:21   0 289.4G  0 part 
└─sdb6   8:22   0     4G  0 part 
sr0     11:0    1  1024M  0 rom  
loy@loy-Vostro-220-Series ~ $ 



User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 11:31 am

Cattleman wrote:When I originally had only a 500GB HD, there were only 6 partitions. Now that I have a 1TB HD, There are 7 partitions. Both times, the Linux Mint Live DVD made the partitions automatically. I don't understand why there is a difference. Why is that?
It looks like you have an extra data partition on the 1TB drive. You either created that or it already existed.

You can mount sda5 when you boot by editing /etc/fstab.
First create a mount point:

Code: Select all

sudo mkdir /data_sda5
Take ownership of that mount point:

Code: Select all

sudo chown loy:loy /data_sda5
Open /etc/fstab in your text editor:

Code: Select all

gksudo gedit /etc/fstab
Add these 2 lines to the end

Code: Select all

# mount sda5
UUID=d73dfe0e-8184-43bf-a754-3a96e86da8f0   /data_sda5   ext4   defaults,noatime   0   2
Then mount it with the command:

Code: Select all

sudo mount -a
You can create folders on sda5 in your file manager. Give them names that are different from the existing names (Music, Downloads, Documents).
Then in your file manager, right-click on the new folder > Make Link
Move the link to your Home
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Low Disk Space

Post by Cosmo. » Mon May 16, 2016 12:21 pm

lsblk tells the size of a partition, but not the free space.

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 12:30 pm

Sorry, free space is 419GB

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 1:24 pm

I opened terminal window and created a mount point and took ownership of that mount point
1. sudo mkdir /data_sda5
2. sudo chown loy:loy /data_sda5
I opened text editor and edited /etc/fstab (added 2 lines to the end.)
3. gksudo gedit /etc/fstab
4. # mount sda5
UUID=d73dfe0e-8184-43bf-a754-3a96e86da8f0 /data_sda5 ext4 defaults,noatime 0 2
5. I saved edit
6. Mounted it with the command sudo mount -a

This is the result

Code: Select all

loy@loy-Vostro-220-Series ~ $ sudo lsblk
[sudo] password for loy: 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0 468.1G  0 part 
├─sda3   8:3    0     1K  0 part 
├─sda5   8:5    0 430.5G  0 part /data_sda5
├─sda6   8:6    0     4G  0 part [SWAP]
└─sda7   8:7    0  28.9G  0 part /
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0  39.2M  0 part 
├─sdb2   8:18   0 172.3G  0 part 
├─sdb3   8:19   0     1K  0 part 
├─sdb5   8:21   0 289.4G  0 part /media/loy/5d9aa4f7-1377-4509-b420-f21e53eceb73
└─sdb6   8:22   0     4G  0 part 
sr0     11:0    1  1024M  0 rom  
loy@loy-Vostro-220-Series ~ $ 
But how exactly can I create folders on sda5?

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 2:09 pm

You can use the file manager to create new folders, or you can use the terminal:

Code: Select all

mkdir /data_sda5/Photos

Code: Select all

mkdir /data_sda5/MusicSingles

Code: Select all

mkdir /data_sda5/NewVideos

... whatever folder names you like...

You will see the /data_sda5 in your file manager under Devices in the left sidebar
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 4:16 pm

I opened terminal window and entered sudo mkdir /data_sda5/NewPictures but I don't see /data_sda5 under Devices in the left sidebar of my file manager.

What is wrong?
Last edited by Cattleman on Mon May 16, 2016 4:29 pm, edited 1 time in total.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 4:24 pm

Open a terminal and post the result of:

Code: Select all

ls -la /
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 4:32 pm

loy@loy-Vostro-220-Series ~ $ ls -la /
total 112
drwxr-xr-x 25 root root 4096 May 16 12:21 .
drwxr-xr-x 25 root root 4096 May 16 12:21 ..
drwxr-xr-x 2 root root 4096 Mar 29 12:32 bin
drwxr-xr-x 3 root root 4096 Apr 26 12:37 boot
drwxr-xr-x 2 root root 4096 Jan 9 16:19 cdrom
drwxr-xr-x 23 root root 4096 May 16 15:20 data_sda5
drwxr-xr-x 17 root root 4540 May 16 15:04 dev
drwxr-xr-x 150 root root 12288 May 16 15:22 etc
drwxr-xr-x 3 root root 4096 Jan 9 16:20 home
lrwxrwxrwx 1 root root 33 Jan 9 16:22 initrd.img -> boot/initrd.img-3.19.0-32-generic
drwxr-xr-x 25 root root 4096 May 10 16:22 lib
drwxr-xr-x 2 root root 4096 Feb 23 08:48 lib32
drwxr-xr-x 2 root root 4096 Feb 23 08:48 lib64
drwx------ 2 root root 16384 Jan 9 10:13 lost+found
drwxr-xr-x 3 root root 4096 Jan 9 16:47 media
drwxr-xr-x 2 root root 4096 Apr 10 2014 mnt
drwxr-xr-x 5 10490 floppy 4096 Jan 10 13:23 opt
dr-xr-xr-x 165 root root 0 May 16 10:04 proc
drwx------ 11 root root 4096 May 16 11:09 root
drwxr-xr-x 25 root root 800 May 16 15:04 run
drwxr-xr-x 2 root root 12288 May 1 12:27 sbin
drwxr-xr-x 2 root root 4096 Nov 28 08:19 srv
dr-xr-xr-x 13 root root 0 May 16 15:30 sys
drwxrwxrwt 6 root root 4096 May 16 15:17 tmp
drwxr-xr-x 11 root root 4096 Jan 10 12:40 usr
drwxr-xr-x 11 root root 4096 Nov 28 08:57 var
lrwxrwxrwx 1 root root 30 Jan 9 16:22 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
loy@loy-Vostro-220-Series ~ $

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 4:42 pm

Cattleman wrote:
loy@loy-Vostro-220-Series ~ $ ls -la /
drwxr-xr-x 23 root root 4096 May 16 15:20 data_sda5
You can see that /data_sda5 is owned by root.
Try the command again:

Code: Select all

sudo chown loy:loy /data_sda5
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 4:42 pm

Cattleman wrote:
loy@loy-Vostro-220-Series ~ $ ls -la /
drwxr-xr-x 23 root root 4096 May 16 15:20 data_sda5
You can see that /data_sda5 is owned by root.
Try the command again:

Code: Select all

sudo chown loy:loy /data_sda5
Then, again

Code: Select all

ls -la /
to see if it has changed.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 4:45 pm

Code: Select all

loy@loy-Vostro-220-Series ~ $ sudo chown loy:loy /data_sda5
[sudo] password for loy: 
loy@loy-Vostro-220-Series ~ $ ls -la /
total 112
drwxr-xr-x  25 root  root    4096 May 16 15:33 .
drwxr-xr-x  25 root  root    4096 May 16 15:33 ..
drwxr-xr-x   2 root  root    4096 Mar 29 12:32 bin
drwxr-xr-x   3 root  root    4096 Apr 26 12:37 boot
drwxr-xr-x   2 root  root    4096 Jan  9 16:19 cdrom
drwxr-xr-x  23 loy   loy     4096 May 16 15:20 data_sda5
drwxr-xr-x  17 root  root    4540 May 16 15:04 dev
drwxr-xr-x 150 root  root   12288 May 16 15:22 etc
drwxr-xr-x   3 root  root    4096 Jan  9 16:20 home
lrwxrwxrwx   1 root  root      33 Jan  9 16:22 initrd.img -> boot/initrd.img-3.19.0-32-generic
drwxr-xr-x  25 root  root    4096 May 10 16:22 lib
drwxr-xr-x   2 root  root    4096 Feb 23 08:48 lib32
drwxr-xr-x   2 root  root    4096 Feb 23 08:48 lib64
drwx------   2 root  root   16384 Jan  9 10:13 lost+found
drwxr-xr-x   3 root  root    4096 Jan  9 16:47 media
drwxr-xr-x   2 root  root    4096 Apr 10  2014 mnt
drwxr-xr-x   5 10490 floppy  4096 Jan 10 13:23 opt
dr-xr-xr-x 166 root  root       0 May 16 10:04 proc
drwx------  11 root  root    4096 May 16 11:09 root
drwxr-xr-x  25 root  root     800 May 16 15:04 run
drwxr-xr-x   2 root  root   12288 May  1 12:27 sbin
drwxr-xr-x   2 root  root    4096 Nov 28 08:19 srv
dr-xr-xr-x  13 root  root       0 May 16 15:30 sys
drwxrwxrwt   7 root  root    4096 May 16 15:38 tmp
drwxr-xr-x  11 root  root    4096 Jan 10 12:40 usr
drwxr-xr-x  11 root  root    4096 Nov 28 08:57 var
lrwxrwxrwx   1 root  root      30 Jan  9 16:22 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
loy@loy-Vostro-220-Series ~ $ 
I then mkdir /data_sda5/NewVideos but still can't see anything different when I looked for it.

sdb5 is listed under devices but not sda5 when I look for it with file manager.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 4:54 pm

Cattleman wrote:I then mkdir /data_sda5/NewVideos but still can't see anything different when I looked for it.
OK, you got the ownership done.
Did you click on the data partition in your file manager (listed under Devices in the sidebar)?
In the terminal, you can enter

Code: Select all

ls /data_sda5
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 5:01 pm

Code: Select all

loy@loy-Vostro-220-Series ~ $ ls /data_sda5
bin   etc         lib         media        NewVideos  root  srv  usr
boot  home        lib64       mnt          opt        run   sys  var
dev   initrd.img  lost+found  NewPictures  proc       sbin  tmp  vmlinuz
loy@loy-Vostro-220-Series ~ $ 

NewVideos directory is listed but where is it in the file manager?

File manager left sidebar shows no sda5 bit it shows

Devices
503 GB sda2
311 GB sdb5
XP sdb2

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 5:17 pm

I am sorry if I steered you wrong on that. Mine appears under devices with the little "mounted" icon following it.

You can see that the folders you created - NewVideos and NewPictures, are there, along with folders that already existed on that partition (which you probably don't need for anything).

In your file manager, click on "File System". Then double-click on "data_sda5" to open it.
Click on the Bookmarks menu at the top of the window > Add Bookmark
Now data_sda5 should show in the sidebar under Bookmarks.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 5:32 pm

It shows under bookmark as /

How do I create a link as previously mentioned? The make link selection is greyed out and will not work.

I also can't create a new folder or directory in sda5 with file manager. I can only create it in terminal.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Low Disk Space

Post by austin.texas » Mon May 16, 2016 5:44 pm

Cattleman wrote:It shows under bookmark as /
It shows as / because you bookmarked /. You didn't open the data_sda5 folder.
You have to double-click on /data_sda5 and open it. Then create your bookmark,
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cattleman
Level 3
Level 3
Posts: 124
Joined: Tue Dec 02, 2014 11:59 am

Re: Low Disk Space

Post by Cattleman » Mon May 16, 2016 6:07 pm

My Bad. Now I have it. I made new bookmarks. When I move them to home, I assume that you mean home sda7 not home sda5. Correct?

Now, how do I save a file to this new download directory? When I tried to download a Mint Rosa ISO to NEWDownloads, I was refused permission.
Last edited by Cattleman on Mon May 16, 2016 6:23 pm, edited 1 time in total.

Post Reply

Return to “Other topics”