LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-19-2018, 05:20 AM   #1
frogeraie
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Rep: Reputation: Disabled
"low disk space" whereas there is space on other volumes


I get a warning stating there is "low disk space". But if I look to "On this computer" I see 3 disks: one "computer", a second reserved system and a third 91 GB volume (27.5 GB/90.6 GB available /dev/sda2). What can I do to increase the usable space? The output od fdisk -l is:
Code:
$ sudo fdisk -l
[sudo] password for francois: 
Disk /dev/loop0: 3,7 MiB, 3887104 bytes, 7592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 89,5 MiB, 93835264 bytes, 183272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 12,4 MiB, 13037568 bytes, 25464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 14,5 MiB, 15196160 bytes, 29680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 34,2 MiB, 35827712 bytes, 69976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 42,1 MiB, 44183552 bytes, 86296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 14,5 MiB, 15196160 bytes, 29680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 3,7 MiB, 3878912 bytes, 7576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa5d35b39

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048    206847    204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 177102713 176895866 84,4G  7 HPFS/NTFS/exFAT
/dev/sda3       177102846 234440703  57337858 27,3G  5 Extended
/dev/sda5       177102848 234440703  57337856 27,3G 83 Linux




Disk /dev/loop8: 2,3 MiB, 2433024 bytes, 4752 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 88,2 MiB, 92483584 bytes, 180632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 140,7 MiB, 147496960 bytes, 288080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop13: 140,9 MiB, 147722240 bytes, 288520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop14: 14,5 MiB, 15208448 bytes, 29704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop15: 2,2 MiB, 2351104 bytes, 4592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop16: 2,3 MiB, 2355200 bytes, 4600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop17: 195,2 MiB, 204644352 bytes, 399696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop18: 3,7 MiB, 3887104 bytes, 7592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop19: 34,6 MiB, 36216832 bytes, 70736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop20: 89,5 MiB, 93818880 bytes, 183240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop21: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Thanks for your advice!
 
Old 12-20-2018, 05:54 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,401

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Since you are posting on a Linux forum, I'm guessing you get this error when you are logged into whatever Linux you are using, correct? Which Linux might that be? When you open a terminal and run: df -h you should see output telling you how much space is used on various mounted partitions and how much space is available. Run that and post the output. You also have two windows partitions and I'm not sure what the reference to sda2 means, that is a windows filesystem on the partition. What exactly is it that you want to do, expand which partition? shrink which partition.
 
Old 12-20-2018, 06:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,625

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
For something more usable run these.
Code:
lsblk -f -e 7
df -hT
 
Old 12-20-2018, 10:03 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / Linux Mint / Debian / Void Linux
Posts: 8,126

Rep: Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676
Like suggested
Code:
df -hT
will show you what is having what, so you can locate where it is talking about. If you want to increase your space you have to move your partitons, then murge the free space into the other one.

Last edited by BW-userx; 12-20-2018 at 10:04 PM.
 
Old 12-21-2018, 04:37 AM   #5
frogeraie
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am running on Ubuntu 18.04.
The infos requested:
Code:
francois@bernache:~$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  1,9G     0  1,9G   0% /dev
tmpfs          tmpfs     391M  1,7M  390M   1% /run
/dev/sda5      ext4       27G   26G  148M 100% /
tmpfs          tmpfs     2,0G   67M  1,9G   4% /dev/shm
tmpfs          tmpfs     5,0M  4,0K  5,0M   1% /run/lock
tmpfs          tmpfs     2,0G     0  2,0G   0% /sys/fs/cgroup
/dev/loop0     squashfs  3,8M  3,8M     0 100% /snap/gnome-system-monitor/54
/dev/loop1     squashfs   90M   90M     0 100% /snap/core/6130
/dev/loop2     squashfs   13M   13M     0 100% /snap/bower/2
/dev/loop3     squashfs   15M   15M     0 100% /snap/gnome-logs/37
/dev/loop4     squashfs   35M   35M     0 100% /snap/gtk-common-themes/808
/dev/loop5     squashfs   43M   43M     0 100% /snap/gtk-common-themes/701
/dev/loop6     squashfs   15M   15M     0 100% /snap/gnome-logs/40
/dev/loop7     squashfs  3,8M  3,8M     0 100% /snap/gnome-system-monitor/57
/dev/loop8     squashfs  2,4M  2,4M     0 100% /snap/gnome-calculator/199
/dev/loop9     squashfs   13M   13M     0 100% /snap/gnome-characters/103
/dev/loop10    squashfs   89M   89M     0 100% /snap/core/5897
/dev/loop11    squashfs   13M   13M     0 100% /snap/gnome-characters/139
/dev/loop12    squashfs  141M  141M     0 100% /snap/gnome-3-26-1604/74
/dev/loop13    squashfs  141M  141M     0 100% /snap/gnome-3-26-1604/70
/dev/loop14    squashfs   15M   15M     0 100% /snap/gnome-logs/45
/dev/loop15    squashfs  2,3M  2,3M     0 100% /snap/gnome-calculator/222
/dev/loop16    squashfs  2,3M  2,3M     0 100% /snap/gnome-calculator/260
/dev/loop17    squashfs  196M  196M     0 100% /snap/vlc/555
/dev/loop18    squashfs  3,8M  3,8M     0 100% /snap/gnome-system-monitor/51
/dev/loop19    squashfs   35M   35M     0 100% /snap/gtk-common-themes/818
/dev/loop20    squashfs   90M   90M     0 100% /snap/core/6034
/dev/loop21    squashfs   13M   13M     0 100% /snap/gnome-characters/117
tmpfs          tmpfs     391M  112K  391M   1% /run/user/1000
/dev/sda2      fuseblk    85G   59G   26G  70% /media/francois/60E6EC51E6EC28CC
/dev/sda1      fuseblk   100M   26M   75M  26% /media/francois/Réservé au système
other informations:
Code:
francois@bernache:~$ lsblk -f -e 7
NAME   FSTYPE LABEL              UUID                                 MOUNTPOINT
sda                                                                   
├─sda1 ntfs   Réservé au système 6EF4EB87F4EB503F                     /media/fra
├─sda2 ntfs                      60E6EC51E6EC28CC                     /media/fra
├─sda3                                                                
└─sda5 ext4                      1448a9c8-356c-47c3-8c2d-947e91bfae08 /
sr0
Thank you for your help!
 
Old 12-21-2018, 02:29 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,401

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
You appear to have a Legacy install with your Linux system on a Logical partition and your windows partitions as primary. A 25GB root filesystem partition should be more than enough for a home user so you must be installing a lot of new software or using the partition to store data which might go elsewhere. It's technically possible to revise/shrink your partition (sda2) and then use part of that for you logical partition but that can be hazardous as you would need to move boot files. Simplest solution, get another hard drive. If you want to try moving/resizing, post the output of the command:

Code:
sudo fdisk -l
Lower Case Letter L in the command. This will output more details such as sectors for partitions.

Last edited by yancek; 12-21-2018 at 02:30 PM.
 
Old 12-21-2018, 03:08 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,207

Rep: Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543
From post #1...

Code:
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa5d35b39

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048    206847    204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 177102713 176895866 84,4G  7 HPFS/NTFS/exFAT
/dev/sda3       177102846 234440703  57337858 27,3G  5 Extended
/dev/sda5       177102848 234440703  57337856 27,3G 83 Linux
 
Old 12-21-2018, 04:44 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,625

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
So the "volumes" mentioned in the title are partitions - and the "free" space is as mentioned simply unused space in the Windows NTFS file system. It is not unallocated space you can easily assign to your Linux partition.
It is possible to shrink the /dev/sda2 and add it to /dev/sda5 (your Linux partition) but is a little fiddly. Not technically difficult, but must be done in stages.
here is an article on using gparted - not exactly your situation but close. In your case you need to (in this order, and clicking "Apply" each time) - Sorta like a sliding block game:
- shrink /dev/sda2
- drag the left boundary of /dev/sda3 to occupy that space
- slide /dev/sda5 all the way to the left
- drag the right boundary of /dev/sda5 all the way to the right to occupy the free space.

All done. Note that the bootloader issue mentioned above shouldn't be a problem - grub uses filesystem services to locate the boot code and can handle being moved like this.
 
Old 12-27-2018, 02:49 AM   #9
frogeraie
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
resizing

Yes, Yancek I would like to resize my partitions.
The output of
Code:
sudo fdisk -l
was given in my first post.
I'd appreciate some guidance, thanks!
 
Old 12-27-2018, 06:17 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,401

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Quote:
Yes, Yancek I would like to resize my partitions.
A brief outline in the post above by syg00 then go to the link posted there with detailed explanation of the process. You might use the windows Disk Management tool to shrink the larger partition, then reboot windows to check before following the other steps.
 
Old 12-28-2018, 02:02 AM   #11
frogeraie
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
gparted limitations?

I cannot resize sda2 to 58.73 G and get 25.62 G unallocated space, when I click "apply" I get the following error: gparted_details.txt
Attached Files
File Type: txt gparted_details.txt (2.2 KB, 6 views)
 
Old 12-29-2018, 06:46 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,401

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Quote:
Shrink /dev/sda2 from 84.35 GiB to 58.73 GiB 00:00:29 ( ERROR )
The message above from GParted indicates you are trying to shrink the windows partition (sda2) down to a size of 58.73GB. Problem with that is your df output from post #5 above shows that partition is 85GB is size with 59GB used. All systems need a certain amount of free space and you are trying to shrink it to a size below which the data existing. You need to select a smaller size. I would also suggest you use windows Disk Management although GParted should work.
 
Old 12-30-2018, 03:36 AM   #13
frogeraie
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
remove Windows

I would like to remove completely the Windows partition sda2 and use the freed space to increase the Linux partition sda5, how can I do that? Cheers!
 
Old 12-30-2018, 05:49 AM   #14
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 400

Rep: Reputation: 170Reputation: 170
Quote:
Originally Posted by frogeraie View Post
I would like to remove completely the Windows partition sda2 and use the freed space to increase the Linux partition sda5, how can I do that? Cheers!
Not easy as sda2 is physically in FRONT of sda5.
The normal procedure would be: backup sda5 onto other (external?) storage.
Now remove sda5, sda3 and sda2 (but remember where sda2 STARTED and sda3 ENDED).
Create a new sda2 with starting value of the old sda2 and end value of sda3;
this partition now will have all of the space of the old sda2 and sda3 combined (sda5 was INSIDE sda3).
Reboot the system to let the kernel see the new partition layout.
Create the file system of your choice in /dev/sda2 (for ext2/3/4 use mke2fs)
Finally mount the new partition and restore your backup'ed data into that fs.

PS: when you're doing that, you may want to create a swap partition too, then the end of sda2 must be smaller then sda3 was, so space is left for a swap partition. It should be of type "Linux swap" and either sda3 or sda4 can be used for it.

Last edited by ehartman; 12-30-2018 at 05:53 AM.
 
Old 01-02-2019, 02:48 AM   #15
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,198

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Originally Posted by frogeraie View Post
I would like to remove completely the Windows partition sda2 and use the freed space to increase the Linux partition sda5, how can I do that? Cheers!
You might be better off to take this opportunity to segregate user data from the root filesystem, by deleting sda1 and sda2, and creating a new sda1 using all the freed space to use as /home/. To help us help you determine whether that makes good sense, show us output from:
Code:
du -sh /home/
This would be a much simpler and massively less dangerous process than moving/merging/resizing your current root partition.
 
  


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
dig command not working whereas ping and nslookup works fine nitinprabhu Linux - Networking 6 12-08-2016 09:03 PM
In linux kernel, why doesn't tcp_transmit_skb delete the skbuff in the write queue whereas udp_send_skb does gauravsuman007 Linux - Networking 2 08-02-2016 03:03 PM
Timestamp of Directory is Updated Whereas Files are Still Having Old Timestamps devUnix Linux - General 3 05-19-2016 12:10 PM
[SOLVED] Are Logical Volumes in LVM Separte from each other, like a Partition? JockVSJock Linux - Newbie 2 02-24-2015 02:28 PM
DVDRom doesn't automount whereas CDRom or DVD-Video does (Suse 10.2 KDE) ugrash Linux - Software 2 04-24-2007 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration