Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below: RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below: RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
possibly improve the performance of my PC without any material upgrade?
........... [ al lavoro ] ...........http://www.bb2002.it :) <<<<<
On 6/5/19 5:02 AM, Artis Sideley wrote:
Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below:
RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
You do not have to do that any longer. You just create it when you install the system and you are in business.
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
Well I just put two 8 GB SODIMMs in this older Dell Latitude E6540 and it did not help the slowdown due to newest kernel changes very much.
Have you searched on the Internet (using DuckDuckGo preferably)
with your model number and maximum ram? Have you downloaded the user manual/service manual?
The E6540 got to me with two 4 GB SODIMMs, but I run a lot of stuff
on an average day and 8 GB always felt crowded.
One of the other people replying to your post suggested
an Solid State Hard drive. On my E6520 the delay was much reduced
when I was using the Dual-Boot 120 GB hard drive.
bliss
Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below: RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below: RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long
disk reads, while front running no other software than Chromium. I am
not running any significant server process, using my PC as a home
terminal.
I have just realised that the HD is partionned with a swap area size
4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with
non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the
performance of my PC without any material upgrade? (It would be
impossible to add up RAM since all slots are occupied and no larger
capacity RAM modules is available)
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Command df does not show any line mentionning /dev/sda7.
Command top regularly shows Chromium as the biggest memory user.
I searched ebay RAM module for my Vostro 1510 and found only one offer selling 4Gb Dimm module at the astronomic price of US$100. Other offers only propose 1 or 2 Gb modules.
The S.M.A.R.T test run on my HD shows no worrying parameter.
Is it possible and easy to clone my current HD to a new SSD (of the same size ? )to have my PC readied promptly ?
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Command df does not show any line mentionning /dev/sda7.
Command top regularly shows Chromium as the biggest memory user.
I searched ebay RAM module for my Vostro 1510 and found only one offer selling 4Gb Dimm module at the astronomic price of US$100. Other offers only propose 1 or 2 Gb modules.
The S.M.A.R.T test run on my HD shows no worrying parameter.
Is it possible and easy to clone my current HD to a new SSD (of the same size ? )to have my PC readied promptly ?
On Wednesday, 5 June 2019 14:02:22 UTC+2, Artis Sideley wrote:
Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below:
RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
On 05/06/2019 18:17, Artis Sideley wrote:
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
You have swap
Command df does not show any line mentionning /dev/sda7.
Swap is not 'mounted'
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
On 05/06/2019 19:24, William Unruh wrote:
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
I am not sure you CAN mount a swap partition.
I am not sure you CAN mount a swap partition.
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/06/2019 19:24, William Unruh wrote:
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
I am not sure you CAN mount a swap partition.
But if he thought sda7 was the swap and it really was not, then it could
be mounted,
On 06/06/2019 18:06, William Unruh wrote:
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/06/2019 19:24, William Unruh wrote:
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
I am not sure you CAN mount a swap partition.
But if he thought sda7 was the swap and it really was not, then it could
be mounted,
No, it could not.
It does not have a mountable file system, IIRC
I am not sure you CAN mount a swap partition.
├─sdb1 8:17 0 7.8G 0 part [SWAP]
Note the MOUNTPOINT for my swap partition.
Anyway, I regard the "busy" error from swapon as an indication that that partition is already mounted, whether as a regularly mounted partition
or as a swap partition. However I have no idea what the program swapon
means by busy. I have not gone into the source code to find out (nor I suspect have any of the contributors to this thread).
On Thu, 6 Jun 2019 18:03:48 +0100, The Natural Philosopher wrote:
I am not sure you CAN mount a swap partition.
Well for swap partition to be used, it has to be mounted.
On my installs, I use media label as mount points. Take a look at
this snippet.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
├─sda4 8:4 0 40.5G 0 part /
├─sda5 8:5 0 21.5G 0 part /local
├─sda6 8:6 0 22.4G 0 part /accounts
├─sda7 8:7 0 59.4G 0 part /misc
├─sda8 8:8 0 73.2G 0 part /spare
├─sda9 8:9 0 362.2G 0 part /vmguest
├
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 7.8G 0 part [SWAP]
├
Note the MOUNTPOINT for my swap partition.
The trick is to know the command and 'mount' is not going to work.
$ swapon -s
Filename Type Size Used Priority
/dev/sdb1 partition 8191996 0 -2
indicates swap is mounted at sdb1.
Only way to managing swap mountin is use swapon or swapoff.
The definition of a mountpoint is a directory used to mount a file system. http://www.linfo.org/mount_point.html
It's just semantics, but when it comes to understanding how linux works
the semantics do matter.
On Thu, 06 Jun 2019 16:32:31 -0400, David W. Hodgins wrote:
The definition of a mountpoint is a directory used to mount a file system. >> http://www.linfo.org/mount_point.html
I thought it a bit ironic to indicate /etc/fstab has the list of
mount points, for example
$ cat /etc/fstab
LABEL=cauldron / ext4 relatime,acl 1 1
LABEL=accounts /accounts ext4 relatime,acl 1 2
PARTLABEL=swap swap swap defaults 0 0
with the second column indicating the mount point.
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 06/06/2019 18:06, William Unruh wrote:
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/06/2019 19:24, William Unruh wrote:
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane. >>>>>> Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
I am not sure you CAN mount a swap partition.
But if he thought sda7 was the swap and it really was not, then it could >>> be mounted,
No, it could not.
It does not have a mountable file system, IIRC
Of course it could have. If it is not a swap partition and has say an
ext4 filesystem on it, it could have been mounted. Ie, He could be
mistaken that /dev/sda7 is a swap partition.
All we had to go on was that swapon said it was "busy". That is pretty minimal information. He asked for how he could debug this. I suggested
tht he look to make sure that that was a swap partition as one of the
first things to do.
It is becoming an argument over semantics. I think they are saying it is
not mounted because you cannot mount a swap partition with the command
mount. You are saying it is mounted because the kernel can access it and
it can be mounted with swapon. I would agree with youi. Teh swap is
listed in /etc/fstab, which would usually indicate that those things are supposed to be mounted, but you cannot
argue with definition.
On Wed, 05 Jun 2019 13:47:09 -0400, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/06/2019 18:17, Artis Sideley wrote:
The error message is copied pasted from the contextual pop up pane.
Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
You have swap
Command df does not show any line mentionning /dev/sda7.
Swap is not 'mounted'
Use "/sbin/swapon -s" to display the current swap available and used.
There are other commands such as iotop, but they are only available if
you have that package installed, whereas swapon is part of the util-linux package which is normally part of the base system.
Regards, Dave Hodgins
--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.
On 05/06/2019 14.37, Artis Sideley wrote:
On Wednesday, 5 June 2019 14:02:22 UTC+2, Artis Sideley wrote:
Dear all,
I am running Ubuntu 16.04 LTS 64 bits on a DEll laptop with the specs below:
RAM: 4GB
Proc: Intel DUo core 1.8Ghz
Disk: 160 Gb Plain HD
Since One year now on, I have been experienced slow downs with long disk reads, while front running no other software than Chromium. I am not running any significant server process, using my PC as a home terminal.
I have just realised that the HD is partionned with a swap area size 4.1Gb that I cannot activate:
Error activating swap: Command-line `swapon "/dev/sda7"' exited with non-zero exit status 255: swapon: /dev/sda7: swapon failed: Device or resource busy
(udisks-error-quark, 0)
But I remember having activated long ago when I installed the OS.
How to diagnosise what is going on and possibly improve the performance of my PC without any material upgrade? (It would be impossible to add up RAM since all slots are occupied and no larger capacity RAM modules is available)
You can use the "header" of what top displays. Just paste it here and
we'll explain. Or, you can run "free -h" and paste it here so we
explain. It will tell us if the system uses the swap partition and how much.
Also, you can use "sudo /usr/sbin/iotop -o" to see if something is using
the disk a lot.
You can try
lsblk --output NAME,KNAME,RA,RM,RO,SIZE,TYPE,FSTYPE,LABEL,PARTLABEL,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT"
(a single line)
which will tell you what is on your hard disk. Beware of line wraps.
Once you reply, if the swap is not really activated we can help you with that.
If swap was really activated at system install, one factor that would
disable it would be a disk error.
As others have commented, replacing your hard disk with an SSD unit is
the single change that improves most a computer. If your machine uses
swap the improvement is even more surprising.
--
Cheers, Carlos.
Thanks Dave, here is the output of swapon:
Filename Type Size Used Priority
/dev/dm-0 partition 3998204 721680 -1
It seems fine in term of size.
Ok, thanks Carlos, I got the confirmation that /dev/sd7 is used as
swap and mounted. But I cannot use command iotop since it is not
installed on my set up.
On Wednesday, 5 June 2019 23:57:47 UTC+2, David W. Hodgins wrote:
On Wed, 05 Jun 2019 13:47:09 -0400, The Natural Philosopher <tnp@invalid.invalid> wrote:
Thanks Dave, here is the output of swapon:
Filename Type Size Used Priority
/dev/dm-0 partition 3998204 721680 -1
It seems fine in term of size.
No. we had a command that showed that it was a swap partrition. i.e.
could not be mounted..e.g.
sudo fdisk -l /dev/sda
On 07/06/2019 09.36, Artis Sideley wrote:
On Wednesday, 5 June 2019 23:57:47 UTC+2, David W. Hodgins wrote:
On Wed, 05 Jun 2019 13:47:09 -0400, The Natural Philosopher <tnp@invalid.invalid> wrote:
Thanks Dave, here is the output of swapon:
Filename Type Size Used Priority
/dev/dm-0 partition 3998204 721680 -1
It seems fine in term of size.
That is not sda7. It is a RAID. You did not say you were using a raid.
That explains the "busy" message.
On Fri, 07 Jun 2019 03:00:08 -0400, The Natural Philosopher <tnp@invalid.invalid> wrote:
No. we had a command that showed that it was a swap partrition. i.e.
could not be mounted..e.g.
sudo fdisk -l /dev/sda
The fdisk command is just showing that there is a partition with the
the type specified in the partition table as swap. It doesn't prove that
the partition has had the mkswap command run on it, so it could contain
a mountable filesystem despite the partition table entry having been
changed.
The only way to prove it does contain a swap is to either inspect it
with a hex editor, or by trying to enable it using the swapon command.
The same for proving whether or not it contains a mountable filesystem.
Linux doesn't care what the partition table says. If you try to mount
it, linux will mount it if the filesystem type actually in the partition matches what's specified in the mount command or in the fstab entry. If
it doesn't match, the mount will fail.
Regards, Dave Hodgins
On 06/06/2019 19:16, William Unruh wrote:
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 06/06/2019 18:06, William Unruh wrote:
On 2019-06-06, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/06/2019 19:24, William Unruh wrote:
On 2019-06-05, Artis Sideley <sideley@yahoo.com> wrote:
Thanks to all of you.
The error message is copied pasted from the contextual pop up pane. >>>>>>> Command fdisk displays /dev/sda7 as "Linux swap / Solaris", but unlike with application Disks, the indicated size is 3.8Gb.
Good, so sda7 IS a swap partition.
Command df does not show any line mentionning /dev/sda7.
Good. That means that something has not mounted /dev/sda7
I am not sure you CAN mount a swap partition.
But if he thought sda7 was the swap and it really was not, then it could >>>> be mounted,
No, it could not.
It does not have a mountable file system, IIRC
Of course it could have. If it is not a swap partition and has say an
ext4 filesystem on it, it could have been mounted. Ie, He could be
mistaken that /dev/sda7 is a swap partition.
But he already showed that it said 'I am a swap partition'
So it couldn't have been mounted
Why is this so hard?
All we had to go on was that swapon said it was "busy". That is prettyNo. we had a command that showed that it was a swap partrition. i.e.
minimal information. He asked for how he could debug this. I suggested
tht he look to make sure that that was a swap partition as one of the
first things to do.
could not be mounted..e.g.
sudo fdisk -l /dev/sda
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 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
Disk identifier: 0x0008587a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 152162303 76080128 83 Linux
/dev/sda2 152164350 156301311 2068481 5 Extended
/dev/sda3 156303360 234441647 39069144 83 Linux
/dev/sda5 152164352 156301311 2068480 82 Linux swap / Solaris
On Fri, 07 Jun 2019 04:45:55 -0400, Carlos E.R.
<robin_listas@es.invalid> wrote:
On 07/06/2019 09.36, Artis Sideley wrote:
On Wednesday, 5 June 2019 23:57:47 UTC+2, David W. Hodgins wrote:
On Wed, 05 Jun 2019 13:47:09 -0400, The Natural Philosopher
<tnp@invalid.invalid> wrote:
Thanks Dave, here is the output of swapon:
Filename Type Size Used Priority
/dev/dm-0 partition 3998204
721680 -1
It seems fine in term of size.
That is not sda7. It is a RAID. You did not say you were using a raid.
That explains the "busy" message.
The dm device indicates it's a device mapper device.
While that could be
raid, it could also be an lvm logical volume, or a loop mounted device
such as would be used for an encrypted swap.
On 07/06/2019 09:39, David W. Hodgins wrote:
On Fri, 07 Jun 2019 03:00:08 -0400, The Natural Philosopher
<tnp@invalid.invalid> wrote:
No. we had a command that showed that it was a swap partrition. i.e.
could not be mounted..e.g.
sudo fdisk -l /dev/sda
The fdisk command is just showing that there is a partition with the
the type specified in the partition table as swap. It doesn't prove that
the partition has had the mkswap command run on it, so it could contain
a mountable filesystem despite the partition table entry having been
changed.
Hasve you tried mounting a partition treated in this way?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:31:24 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,333,881 |