[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 6:21 pm

Cattleman wrote: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 that you have the Bookmark, you can access any folder on that data partition.
If you want to create links (symlinks) - those you can create and move to Home. By Home I mean the Home that you see at the top of the list in your file manager (in the sidebar). You don't have to create symlinks, you can create bookmarks instead, for various folders.
This can get confusing, just because there are so many different ways that it can be done.
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 10:09 pm

I created bookmarks for the newly created folders. When I tried to download a file to NewDownloads, I got an error message.
The file could not be saved because you do not have the proper permissions. Choose another save directory

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:08 pm

Cattleman wrote:I created bookmarks for the newly created folders. When I tried to download a file to NewDownloads, I got an error message.
The file could not be saved because you do not have the proper permissions. Choose another save directory
Check the ownership of the folders in /data_sda5

Code: Select all

ls -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 » Tue May 17, 2016 5:52 am

Code: Select all

loy@loy-Vostro-220-Series ~ $ ls -ls /data_sda5
total 120
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 bin
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:19 boot
 4 drwxr-xr-x   4 root root  4096 Jan  9 08:19 dev
12 drwxr-xr-x 146 root root 12288 Jan  9 08:19 etc
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 home
 0 lrwxrwxrwx   1 root root    33 Jan  9 08:19 initrd.img -> boot/initrd.img-3.19.0-32-generic
 4 drwxr-xr-x  26 root root  4096 Jan  9 08:19 lib
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:20 lib64
 0 lrwxrwxrwx   1 loy  loy     23 May 16 17:04 Link to NewDownloads -> /data_sda5/NewDownloads
 0 lrwxrwxrwx   1 loy  loy     22 May 16 17:04 Link to NewPictures -> /data_sda5/NewPictures
 0 lrwxrwxrwx   1 loy  loy     20 May 16 17:05 Link to NewVideos -> /data_sda5/NewVideos
16 drwx------   2 root root 16384 Jan  9 08:19 lost+found
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 media
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 mnt
 4 drwxr-xr-x   2 root root  4096 May 16 16:36 NewDownloads
 4 drwxr-xr-x   2 root root  4096 May 16 15:20 NewPictures
 4 drwxr-xr-x   2 loy  loy   4096 May 16 15:48 NewVideos
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:20 opt
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 proc
 4 drwx------   3 root root  4096 Jan  9 08:20 root
 4 drwxr-xr-x  12 root root  4096 Jan  9 08:20 run
12 drwxr-xr-x   2 root root 12288 Jan  9 08:20 sbin
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 srv
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 sys
 4 drwxrwxrwt   2 root root  4096 Jan  9 08:19 tmp
 4 drwxr-xr-x  10 root root  4096 Jan  9 08:20 usr
 4 drwxr-xr-x  11 root root  4096 Jan  9 08:24 var
 0 lrwxrwxrwx   1 root root    30 Jan  9 08:19 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
loy@loy-Vostro-220-Series ~ $ 

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

Re: Low Disk Space

Post by Cattleman » Tue May 17, 2016 6:51 am

Code: Select all

loy@loy-Vostro-220-Series ~ $ sudo chown loy:loy /data_sda5/NewDownloads
[sudo] password for loy: 
loy@loy-Vostro-220-Series ~ $ ls -ls /data_sda5
total 120
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 bin
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:19 boot
 4 drwxr-xr-x   4 root root  4096 Jan  9 08:19 dev
12 drwxr-xr-x 146 root root 12288 Jan  9 08:19 etc
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 home
 0 lrwxrwxrwx   1 root root    33 Jan  9 08:19 initrd.img -> boot/initrd.img-3.19.0-32-generic
 4 drwxr-xr-x  26 root root  4096 Jan  9 08:19 lib
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:20 lib64
 0 lrwxrwxrwx   1 loy  loy     23 May 16 17:04 Link to NewDownloads -> /data_sda5/NewDownloads
 0 lrwxrwxrwx   1 loy  loy     22 May 16 17:04 Link to NewPictures -> /data_sda5/NewPictures
 0 lrwxrwxrwx   1 loy  loy     20 May 16 17:05 Link to NewVideos -> /data_sda5/NewVideos
16 drwx------   2 root root 16384 Jan  9 08:19 lost+found
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 media
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 mnt
 4 drwxr-xr-x   2 loy  loy   4096 May 16 16:36 NewDownloads
 4 drwxr-xr-x   2 root root  4096 May 16 15:20 NewPictures
 4 drwxr-xr-x   2 loy  loy   4096 May 16 15:48 NewVideos
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:20 opt
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 proc
 4 drwx------   3 root root  4096 Jan  9 08:20 root
 4 drwxr-xr-x  12 root root  4096 Jan  9 08:20 run
12 drwxr-xr-x   2 root root 12288 Jan  9 08:20 sbin
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 srv
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 sys
 4 drwxrwxrwt   2 root root  4096 Jan  9 08:19 tmp
 4 drwxr-xr-x  10 root root  4096 Jan  9 08:20 usr
 4 drwxr-xr-x  11 root root  4096 Jan  9 08:24 var
 0 lrwxrwxrwx   1 root root    30 Jan  9 08:19 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
loy@loy-Vostro-220-Series ~ $ sudo chown loy:loy /data_sda5/NewVideos
loy@loy-Vostro-220-Series ~ $ ls -ls /data_sda5
total 120
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 bin
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:19 boot
 4 drwxr-xr-x   4 root root  4096 Jan  9 08:19 dev
12 drwxr-xr-x 146 root root 12288 Jan  9 08:19 etc
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 home
 0 lrwxrwxrwx   1 root root    33 Jan  9 08:19 initrd.img -> boot/initrd.img-3.19.0-32-generic
 4 drwxr-xr-x  26 root root  4096 Jan  9 08:19 lib
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:20 lib64
 0 lrwxrwxrwx   1 loy  loy     23 May 16 17:04 Link to NewDownloads -> /data_sda5/NewDownloads
 0 lrwxrwxrwx   1 loy  loy     22 May 16 17:04 Link to NewPictures -> /data_sda5/NewPictures
 0 lrwxrwxrwx   1 loy  loy     20 May 16 17:05 Link to NewVideos -> /data_sda5/NewVideos
16 drwx------   2 root root 16384 Jan  9 08:19 lost+found
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 media
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 mnt
 4 drwxr-xr-x   2 loy  loy   4096 May 16 16:36 NewDownloads
 4 drwxr-xr-x   2 root root  4096 May 16 15:20 NewPictures
 4 drwxr-xr-x   2 loy  loy   4096 May 16 15:48 NewVideos
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:20 opt
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 proc
 4 drwx------   3 root root  4096 Jan  9 08:20 root
 4 drwxr-xr-x  12 root root  4096 Jan  9 08:20 run
12 drwxr-xr-x   2 root root 12288 Jan  9 08:20 sbin
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 srv
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 sys
 4 drwxrwxrwt   2 root root  4096 Jan  9 08:19 tmp
 4 drwxr-xr-x  10 root root  4096 Jan  9 08:20 usr
 4 drwxr-xr-x  11 root root  4096 Jan  9 08:24 var
 0 lrwxrwxrwx   1 root root    30 Jan  9 08:19 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
loy@loy-Vostro-220-Series ~ $ sudo chown loy:loy /data_sda5/NewPictures
loy@loy-Vostro-220-Series ~ $ ls -ls /data_sda5
total 120
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 bin
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:19 boot
 4 drwxr-xr-x   4 root root  4096 Jan  9 08:19 dev
12 drwxr-xr-x 146 root root 12288 Jan  9 08:19 etc
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 home
 0 lrwxrwxrwx   1 root root    33 Jan  9 08:19 initrd.img -> boot/initrd.img-3.19.0-32-generic
 4 drwxr-xr-x  26 root root  4096 Jan  9 08:19 lib
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:20 lib64
 0 lrwxrwxrwx   1 loy  loy     23 May 16 17:04 Link to NewDownloads -> /data_sda5/NewDownloads
 0 lrwxrwxrwx   1 loy  loy     22 May 16 17:04 Link to NewPictures -> /data_sda5/NewPictures
 0 lrwxrwxrwx   1 loy  loy     20 May 16 17:05 Link to NewVideos -> /data_sda5/NewVideos
16 drwx------   2 root root 16384 Jan  9 08:19 lost+found
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 media
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 mnt
 4 drwxr-xr-x   2 loy  loy   4096 May 16 16:36 NewDownloads
 4 drwxr-xr-x   2 loy  loy   4096 May 16 15:20 NewPictures
 4 drwxr-xr-x   2 loy  loy   4096 May 16 15:48 NewVideos
 4 drwxr-xr-x   3 root root  4096 Jan  9 08:20 opt
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 proc
 4 drwx------   3 root root  4096 Jan  9 08:20 root
 4 drwxr-xr-x  12 root root  4096 Jan  9 08:20 run
12 drwxr-xr-x   2 root root 12288 Jan  9 08:20 sbin
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 srv
 4 drwxr-xr-x   2 root root  4096 Jan  9 08:19 sys
 4 drwxrwxrwt   2 root root  4096 Jan  9 08:19 tmp
 4 drwxr-xr-x  10 root root  4096 Jan  9 08:20 usr
 4 drwxr-xr-x  11 root root  4096 Jan  9 08:24 var
 0 lrwxrwxrwx   1 root root    30 Jan  9 08:19 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 » Tue May 17, 2016 7:17 am

You can review the links I listed previously about how to use a data partition.
Create a /data partition with symlinks - xenopeek
HOWTO: Create & Use a Separate DATA Partition - gold_finger
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 » Tue May 17, 2016 7:25 am

austin.texas wrote: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
Cattleman wrote:I opened terminal window and entered sudo mkdir /data_sda5/NewPictures
The reason your folders are owned by root is because you entered " sudo mkdir /data_sda5/NewPictures" instead of simply "mkdir /data_sda5/NewPictures"
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 » Tue May 17, 2016 8:13 am

Much JOY!

I claimed ownership on the files in question and everything works good.

Thank you very much for your help.

I have 2 similar computers. I Installed 1TB HD on each one. I then Installed Linux Mint on each one.
I let the install disk choose partitions automatically. The 1st one came out fine with one less partition.
This one decided to make an extra partition. I don't understand why.
The 1st one has a MATE desktop, the 2nd one has a Cinnamon Rosa Desktop.

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 » Tue May 17, 2016 8:34 am

I am glad you got it working.

We know that your / partition is sda7, and it is apparent that you have an old non-functional installation of Mint on sda5.
All of those old folders like /bin, /boot, /dev, /etc can be deleted.
I know it is sorta scary to delete Mint OS folders.
What I would do is boot into your installed Mint, and install Gparted.

Code: Select all

sudo apt-get install gparted
Then open Gparted. Right-click on sda5 > Unmount
Right-click on sda5 again > Format to: ext4
Click the APPLY button
Close Gparted and open a terminal. Re-mount sda5 with the command:

Code: Select all

sudo mount -a
Doing it that way will get rid of the unnecessary leftovers on sda5 quickly and easily, with the added benefit that you are booted into your installed Mint on sda7 - so it is impossible to delete the wrong thing, and damage your installed Mint (sda7 is mounted, and therefore cannot be formatted).
You will then have to re-create those new folders you want to use on sda5. But you already know how to do that, and you will have a clean slate to work with.
If you want to you can take a look in the /data_sda5/home/loy folder to see if there is anything in there you want to save, before formatting the partition.
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 » Thu May 19, 2016 12:13 pm

I unmounted sda5 and reformatted sda5 to ext4.
Then, I was unable to remount sda5 with sudo mount -a

Code: Select all

loy@loy-Vostro-220-Series ~ $ sudo mount -a
[sudo] password for loy: 
mount: special device UUID=d73dfe0e-8184-43bf-a754-3a96e86da8f0 does not exist
loy@loy-Vostro-220-Series ~ $ 

I had to edit /etc/fstab and remove

# mount sda5
UUID=d73dfe0e-8184-43bf-a754-3a96e86da8f0 /data_sda5 ext4 defaults,noatime 0 2


Then, I was able to remount sda5 with sudo mount -a and now I was able to recreate new folders in sda5.
Do I need to edit /etc/fstab and replace # mount sda5
UUID=d73dfe0e-8184-43bf-a754-3a96e86da8f0 /data_sda5 ext4 defaults,noatime 0 2 or not?


What would I need to do to get back to 6 partitions instead of 7? In the long run would there be any advantage in doing so? My unconventional 7th partition is the cause of my problems.

Or, is it even worth the effort?

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 » Thu May 19, 2016 3:27 pm

I think formatting it to get rid of the clutter was a good thing. Now you have a clean slate.
You know the line:
UUID=number /data_sda5 ext4 defaults,noatime 0 2
in fstab, will mount the data partition.

If there is any doubt about the number, run the command

Code: Select all

inxi -pou
to determine the correct number.

I have never used logical partitions, but I don't think there is an easy way to re-number them from 7 to 6.
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 » Thu May 19, 2016 6:33 pm

Well, I believe I will stop while I'm a winner.
Thank you largely.

Post Reply

Return to “Other topics”