Elementary elementary OS Freya (64-bit) Built on "Ubuntu 14.04 LTS" File manager
Files 0.2.4
- Elementary:
elementary OS Freya (64-bit)
Built on "Ubuntu 14.04 LTS" - File manager:
Files 0.2.4
I want to create more disk space
Running and running the command df-hdf-h
gives the following output:
Filesystem Size Used Avail Use% Mounted on udev 1.9G 4.0K 1.9G 1% /dev tmpfs 390M 1.2M 389M 1% /run /dev/sda1 19G 18G 637M 97% / none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 2.0G 78M 1.9G 4% /run/shm none 100M 44K 100M 1% /run/user /dev/sdb1 823G 31G 751G 4% /home
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 390M 1.2M 389M 1% /run
/dev/sda1 19G 18G 637M 97% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 78M 1.9G 4% /run/shm
none 100M 44K 100M 1% /run/user
/dev/sdb1 823G 31G 751G 4% /home
I can't install any programmesprograms as there is no space on /dev/sda1 -/dev/sda1
, so I cannot install a programmeprogram with a user interface toto view files.
So, the first disk is very small, and plan aPlan A is just to free up enough stuff on it to stop it moaning. Plan BPlan B would he to move some stuff over to the spacious disk, and link it in. But hopefully A will work!
I reckon there's a lot of unused kernel images in /boot/boot
, it seeks to get a known weakness with elementary that it doesn't tidy old ones up. I had a web page up that described how to remove them and then update the grub menu so it didn't offer them anymore. But the first command was giving a funny error. I'm following the suggestions on this page:
dpkg -l | fgrep linux-image-
dpkg -l | fgrep linux-image-
ItIt will list a lot of kernel images, most of which you aren't actively using. They're all similarly named, differentiated by a numerical suffix e.g. ".151".151
" To find out which one you are using when you boot up, run this:
uname -r
uname -r
The result was an old kernalkernel image: 3.13.0-44-generic3.13.0-44-generic
We are assuming that any other kernalkernel images newer than this can go:
So starting with 3.13.0-45-generic3.13.0-45-generic
$ sudo su
# apt-get purge linux-image-3.13.0-45-generic
# exit
$ sudo su # apt-get purge linux-image-3.13.0-45-generic
exit
Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet de pendencies: linux-headers-generic : Depends: linux-headers-3.13.0-151-generic but it is not going to be installed linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). root@Gary-PC:/home/gary#
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet de pendencies:
linux-headers-generic : Depends: linux-headers-3.13.0-151-generic but it is not going to be installed
linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@Gary-PC:/home/gary#
I ran apt-get -f installapt-get -f install
but not sure if I should now run apt-get autoremoveapt-get autoremove
- I guess there will be a net gain of disk space that will accommodate the 13.5MB need for the new installations?
root@Gary-PC:/home/gary# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0 libntdb1 liborbit-2-0 liborbit2 libqpdf13 linux-headers-3.13.0-105 linux-headers-3.13.0-105-generic linux-headers-3.13.0-116 linux-headers-3.13.0-116-generic linux-image-3.13.0-105-generic linux-image-3.13.0-116-generic linux-image-extra-3.13.0-105-generic linux-image-extra-3.13.0-116-generic python-ntdb Use 'apt-get autoremove' to remove them. The following extra packages will be installed: linux-headers-3.13.0-151-generic The following NEW packages will be installed: linux-headers-3.13.0-151-generic 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded. 2 not fully installed or removed. Need to get 0 B/706 kB of archives. After this operation, 13.5 MB of additional disk space will be used. Do you want to continue? [Y/n] apt-get -f install
root@Gary-PC:/home/gary# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
libntdb1 liborbit-2-0 liborbit2 libqpdf13 linux-headers-3.13.0-105
linux-headers-3.13.0-105-generic linux-headers-3.13.0-116
linux-headers-3.13.0-116-generic linux-image-3.13.0-105-generic
linux-image-3.13.0-116-generic linux-image-extra-3.13.0-105-generic
linux-image-extra-3.13.0-116-generic python-ntdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.13.0-151-generic
The following NEW packages will be installed:
linux-headers-3.13.0-151-generic
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/706 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] apt-get -f install
root@Gary-PC:/home/gary# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-headers-generic : Depends: linux-headers-3.13.0-151-generic but it is not installed
E: Unmet dependencies. Try using -f.
root@Gary-PC:/home/gary# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-headers-generic : Depends: linux-headers-3.13.0-151-generic but it is not installed
E: Unmet dependencies. Try using -f.
root@Gary-PC:/home/gary# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
libntdb1 liborbit-2-0 liborbit2 libqpdf13 linux-headers-3.13.0-105
linux-headers-3.13.0-105-generic linux-headers-3.13.0-116
linux-headers-3.13.0-116-generic linux-image-3.13.0-105-generic
linux-image-3.13.0-116-generic linux-image-extra-3.13.0-105-generic
linux-image-extra-3.13.0-116-generic python-ntdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.13.0-151-generic
The following NEW packages will be installed:
linux-headers-3.13.0-151-generic
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/706 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
root@Gary-PC:/home/gary# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
libntdb1 liborbit-2-0 liborbit2 libqpdf13 linux-headers-3.13.0-105
linux-headers-3.13.0-105-generic linux-headers-3.13.0-116
linux-headers-3.13.0-116-generic linux-image-3.13.0-105-generic
linux-image-3.13.0-116-generic linux-image-extra-3.13.0-105-generic
linux-image-extra-3.13.0-116-generic python-ntdb
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.13.0-151-generic
The following NEW packages will be installed:
linux-headers-3.13.0-151-generic
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/706 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.