Linux freezing randomly Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionLinux randomly freezing?Linux Mint 16 randomly freezing and freezes always after suspend wakeupDebian 8.2 computer freezing+crashing randomlyRandomly Linux freezing on Acer ExtensaAntergos linux keeps freezingLinux Mint randomly freezesWindows overrode a LVM pv metadataVirtualbox VMDK to bootable usb stick not workingLinux Mint 19 keeps freezingUbuntu 18.04 is freezing randomly
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Cold is to Refrigerator as warm is to?
Estimated State payment too big --> money back; + 2018 Tax Reform
Can a zero nonce be safely used with AES-GCM if the key is random and never used again?
How does modal jazz use chord progressions?
Single author papers against my advisor's will?
How to rotate it perfectly?
Why does tar appear to skip file contents when output file is /dev/null?
Statistical model of ligand substitution
Can the prologue be the backstory of your main character?
How are presidential pardons supposed to be used?
Do we know why communications with Beresheet and NASA were lost during the attempted landing of the Moon lander?
Writing Thesis: Copying from published papers
Two different pronunciation of "понял"
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Using "nakedly" instead of "with nothing on"
How to market an anarchic city as a tourism spot to people living in civilized areas?
What computer would be fastest for Mathematica Home Edition?
What did Darwin mean by 'squib' here?
How do I automatically answer y in bash script?
Blender game recording at the wrong time
Should you tell Jews they are breaking a commandment?
Is there a service that would inform me whenever a new direct route is scheduled from a given airport?
When is phishing education going too far?
Linux freezing randomly
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionLinux randomly freezing?Linux Mint 16 randomly freezing and freezes always after suspend wakeupDebian 8.2 computer freezing+crashing randomlyRandomly Linux freezing on Acer ExtensaAntergos linux keeps freezingLinux Mint randomly freezesWindows overrode a LVM pv metadataVirtualbox VMDK to bootable usb stick not workingLinux Mint 19 keeps freezingUbuntu 18.04 is freezing randomly
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My Computer has been freezing a lot lately, and with no apparent reason.
It freezes even if my usage is 3% CPU and 9% RAM.
I was using Windows 8 until I installed Ubuntu 14.04.
It was really slow, and after some researching, I adopted the idea that Ubuntu 14.04 wasn't really that stable, so I decided I'd download a less resource-heavy distro, so I installed Arch Linux (which is what I'm using to type this now) with GNOME. I'm not having any of the problems I used to have in Ubuntu, except for this mostly annoying freeze that happens to be absolutely random ..
My Fan is working correctly, so it's not temperature, and my drivers are up-to-date (they're the same ones I used on Windows, which I had no problem at all with).
Note that: The Whole OS just freezes, and when I was once able to Alt+F2 (to get to the run-a-command dialog) and managed to type in a command (I was struggling with the keyboard to type) and hit Enter, I got the message: No enough memory .. ? Which is pretty unexpected because I'm using a minimal system (arch linux) with only one application running ..
Edit: Here's my /etc/fstab file
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=2268132b-7cfa-4c55-b773-467c4f691e83 / ext4 rw,relatime,data=ordered 0 1
/dev/disk/by-uuid/2236F90308C55145 /mnt/2236F90308C55145 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
/dev/disk/by-uuid/4FF142A03DACFA48 /mnt/4FF142A03DACFA48 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
lsblk outputs ..
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 69.9G 0 part /mnt/2236F90308C55145
├─sda2 8:2 0 59.2G 0 part /mnt/4FF142A03DACFA48
├─sda3 8:3 0 90.3G 0 part /
└─sda4 8:4 0 78.7G 0 part
sr0 11:0 1 1024M 0 rom
arch-linux windows freeze out-of-memory resources
|
show 7 more comments
My Computer has been freezing a lot lately, and with no apparent reason.
It freezes even if my usage is 3% CPU and 9% RAM.
I was using Windows 8 until I installed Ubuntu 14.04.
It was really slow, and after some researching, I adopted the idea that Ubuntu 14.04 wasn't really that stable, so I decided I'd download a less resource-heavy distro, so I installed Arch Linux (which is what I'm using to type this now) with GNOME. I'm not having any of the problems I used to have in Ubuntu, except for this mostly annoying freeze that happens to be absolutely random ..
My Fan is working correctly, so it's not temperature, and my drivers are up-to-date (they're the same ones I used on Windows, which I had no problem at all with).
Note that: The Whole OS just freezes, and when I was once able to Alt+F2 (to get to the run-a-command dialog) and managed to type in a command (I was struggling with the keyboard to type) and hit Enter, I got the message: No enough memory .. ? Which is pretty unexpected because I'm using a minimal system (arch linux) with only one application running ..
Edit: Here's my /etc/fstab file
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=2268132b-7cfa-4c55-b773-467c4f691e83 / ext4 rw,relatime,data=ordered 0 1
/dev/disk/by-uuid/2236F90308C55145 /mnt/2236F90308C55145 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
/dev/disk/by-uuid/4FF142A03DACFA48 /mnt/4FF142A03DACFA48 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
lsblk outputs ..
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 69.9G 0 part /mnt/2236F90308C55145
├─sda2 8:2 0 59.2G 0 part /mnt/4FF142A03DACFA48
├─sda3 8:3 0 90.3G 0 part /
└─sda4 8:4 0 78.7G 0 part
sr0 11:0 1 1024M 0 rom
arch-linux windows freeze out-of-memory resources
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
1
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
1
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
1
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and usedswapon -ato use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.
– Amr Ayman
Sep 6 '14 at 17:19
|
show 7 more comments
My Computer has been freezing a lot lately, and with no apparent reason.
It freezes even if my usage is 3% CPU and 9% RAM.
I was using Windows 8 until I installed Ubuntu 14.04.
It was really slow, and after some researching, I adopted the idea that Ubuntu 14.04 wasn't really that stable, so I decided I'd download a less resource-heavy distro, so I installed Arch Linux (which is what I'm using to type this now) with GNOME. I'm not having any of the problems I used to have in Ubuntu, except for this mostly annoying freeze that happens to be absolutely random ..
My Fan is working correctly, so it's not temperature, and my drivers are up-to-date (they're the same ones I used on Windows, which I had no problem at all with).
Note that: The Whole OS just freezes, and when I was once able to Alt+F2 (to get to the run-a-command dialog) and managed to type in a command (I was struggling with the keyboard to type) and hit Enter, I got the message: No enough memory .. ? Which is pretty unexpected because I'm using a minimal system (arch linux) with only one application running ..
Edit: Here's my /etc/fstab file
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=2268132b-7cfa-4c55-b773-467c4f691e83 / ext4 rw,relatime,data=ordered 0 1
/dev/disk/by-uuid/2236F90308C55145 /mnt/2236F90308C55145 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
/dev/disk/by-uuid/4FF142A03DACFA48 /mnt/4FF142A03DACFA48 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
lsblk outputs ..
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 69.9G 0 part /mnt/2236F90308C55145
├─sda2 8:2 0 59.2G 0 part /mnt/4FF142A03DACFA48
├─sda3 8:3 0 90.3G 0 part /
└─sda4 8:4 0 78.7G 0 part
sr0 11:0 1 1024M 0 rom
arch-linux windows freeze out-of-memory resources
My Computer has been freezing a lot lately, and with no apparent reason.
It freezes even if my usage is 3% CPU and 9% RAM.
I was using Windows 8 until I installed Ubuntu 14.04.
It was really slow, and after some researching, I adopted the idea that Ubuntu 14.04 wasn't really that stable, so I decided I'd download a less resource-heavy distro, so I installed Arch Linux (which is what I'm using to type this now) with GNOME. I'm not having any of the problems I used to have in Ubuntu, except for this mostly annoying freeze that happens to be absolutely random ..
My Fan is working correctly, so it's not temperature, and my drivers are up-to-date (they're the same ones I used on Windows, which I had no problem at all with).
Note that: The Whole OS just freezes, and when I was once able to Alt+F2 (to get to the run-a-command dialog) and managed to type in a command (I was struggling with the keyboard to type) and hit Enter, I got the message: No enough memory .. ? Which is pretty unexpected because I'm using a minimal system (arch linux) with only one application running ..
Edit: Here's my /etc/fstab file
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=2268132b-7cfa-4c55-b773-467c4f691e83 / ext4 rw,relatime,data=ordered 0 1
/dev/disk/by-uuid/2236F90308C55145 /mnt/2236F90308C55145 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
/dev/disk/by-uuid/4FF142A03DACFA48 /mnt/4FF142A03DACFA48 auto nosuid,nodev,nofail,x-gvfs-show,user 0 0
lsblk outputs ..
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 69.9G 0 part /mnt/2236F90308C55145
├─sda2 8:2 0 59.2G 0 part /mnt/4FF142A03DACFA48
├─sda3 8:3 0 90.3G 0 part /
└─sda4 8:4 0 78.7G 0 part
sr0 11:0 1 1024M 0 rom
arch-linux windows freeze out-of-memory resources
arch-linux windows freeze out-of-memory resources
edited 16 hours ago
Rui F Ribeiro
42.1k1483142
42.1k1483142
asked Sep 5 '14 at 18:16
Amr AymanAmr Ayman
260414
260414
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
1
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
1
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
1
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and usedswapon -ato use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.
– Amr Ayman
Sep 6 '14 at 17:19
|
show 7 more comments
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
1
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
1
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
1
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and usedswapon -ato use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.
– Amr Ayman
Sep 6 '14 at 17:19
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
1
1
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
1
1
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
1
1
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and used
swapon -a to use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.– Amr Ayman
Sep 6 '14 at 17:19
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and used
swapon -a to use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.– Amr Ayman
Sep 6 '14 at 17:19
|
show 7 more comments
2 Answers
2
active
oldest
votes
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and swapon /dev/sdaX. If you need a reference see the Arch Wiki Beginner's Guide.
I'll suggest a partition like the following one.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 20G 0 part /
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 rest 0 part /home
This is just suggested, you can do everything in a single partition and not worry about much (but this is the basic format that most people use). If you are keeping your root partition separate then remember to keep it around 20-25G. This is a security thing, because users should be installing programs into their own folders. You won't run out of space, I promise. Pacman and yaourt will take care of this for you.
add a comment |
Here are some points which may help you a bit to diagnose the problem:
- Run
freecommand to see memory usage - Run
topand then hitMto sort by memory usage orPto sort by CPU usage to see which program uses your resources - Be sure that at
/etc/fstabis a line to mount swap - you see swap usage afterfree - look at
/var/log/messagesor in case you are usingsystemdrunjournalctland search for any warnings/errors.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f154016%2flinux-freezing-randomly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and swapon /dev/sdaX. If you need a reference see the Arch Wiki Beginner's Guide.
I'll suggest a partition like the following one.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 20G 0 part /
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 rest 0 part /home
This is just suggested, you can do everything in a single partition and not worry about much (but this is the basic format that most people use). If you are keeping your root partition separate then remember to keep it around 20-25G. This is a security thing, because users should be installing programs into their own folders. You won't run out of space, I promise. Pacman and yaourt will take care of this for you.
add a comment |
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and swapon /dev/sdaX. If you need a reference see the Arch Wiki Beginner's Guide.
I'll suggest a partition like the following one.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 20G 0 part /
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 rest 0 part /home
This is just suggested, you can do everything in a single partition and not worry about much (but this is the basic format that most people use). If you are keeping your root partition separate then remember to keep it around 20-25G. This is a security thing, because users should be installing programs into their own folders. You won't run out of space, I promise. Pacman and yaourt will take care of this for you.
add a comment |
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and swapon /dev/sdaX. If you need a reference see the Arch Wiki Beginner's Guide.
I'll suggest a partition like the following one.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 20G 0 part /
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 rest 0 part /home
This is just suggested, you can do everything in a single partition and not worry about much (but this is the basic format that most people use). If you are keeping your root partition separate then remember to keep it around 20-25G. This is a security thing, because users should be installing programs into their own folders. You won't run out of space, I promise. Pacman and yaourt will take care of this for you.
Your problem is that you don't have any swap space. Operating systems require a swap space so that they are able to free up ram space and store it on the hard drive.
What you are going to need to do is reformat your hard drive. Red Hat has a suggest swap size chart here. Load up the arch live cd and repartition and swapon /dev/sdaX. If you need a reference see the Arch Wiki Beginner's Guide.
I'll suggest a partition like the following one.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 20G 0 part /
├─sda3 8:3 0 4G 0 part [SWAP]
└─sda4 8:4 0 rest 0 part /home
This is just suggested, you can do everything in a single partition and not worry about much (but this is the basic format that most people use). If you are keeping your root partition separate then remember to keep it around 20-25G. This is a security thing, because users should be installing programs into their own folders. You won't run out of space, I promise. Pacman and yaourt will take care of this for you.
answered Sep 6 '14 at 17:58
Steven WaltonSteven Walton
398112
398112
add a comment |
add a comment |
Here are some points which may help you a bit to diagnose the problem:
- Run
freecommand to see memory usage - Run
topand then hitMto sort by memory usage orPto sort by CPU usage to see which program uses your resources - Be sure that at
/etc/fstabis a line to mount swap - you see swap usage afterfree - look at
/var/log/messagesor in case you are usingsystemdrunjournalctland search for any warnings/errors.
add a comment |
Here are some points which may help you a bit to diagnose the problem:
- Run
freecommand to see memory usage - Run
topand then hitMto sort by memory usage orPto sort by CPU usage to see which program uses your resources - Be sure that at
/etc/fstabis a line to mount swap - you see swap usage afterfree - look at
/var/log/messagesor in case you are usingsystemdrunjournalctland search for any warnings/errors.
add a comment |
Here are some points which may help you a bit to diagnose the problem:
- Run
freecommand to see memory usage - Run
topand then hitMto sort by memory usage orPto sort by CPU usage to see which program uses your resources - Be sure that at
/etc/fstabis a line to mount swap - you see swap usage afterfree - look at
/var/log/messagesor in case you are usingsystemdrunjournalctland search for any warnings/errors.
Here are some points which may help you a bit to diagnose the problem:
- Run
freecommand to see memory usage - Run
topand then hitMto sort by memory usage orPto sort by CPU usage to see which program uses your resources - Be sure that at
/etc/fstabis a line to mount swap - you see swap usage afterfree - look at
/var/log/messagesor in case you are usingsystemdrunjournalctland search for any warnings/errors.
answered Sep 5 '14 at 18:44
jimmijjimmij
32.6k876110
32.6k876110
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f154016%2flinux-freezing-randomly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
-arch-linux, freeze, out-of-memory, resources, windows
bbs.archlinux.org or #archlinux on Freenode is probably a better place to debug an issue like this
– Nathan Wallace
Sep 5 '14 at 18:21
Can you run 'lsblk' and include it in the post? I'll also tell you that while arch in a great distro (my preferred) it is not a beginner distro. Mint is a better starter distro.
– Steven Walton
Sep 5 '14 at 20:46
1
Just wanted to check, because you do need bash knowledge with arch. Anyway, your partitioning concerns me. First off, I don't see a swap at all, unless you have a 78.7G swap. You'll have memory problems without swap. Your root partition should really not be bigger than 25G, especially when staying minimal. I'd also find a better naming scheme for your home folders (weird set up too). If this solves it I'll write an answer so we can mark it as solved. If not, I'll continue to help, but we'll need more info.
– Steven Walton
Sep 5 '14 at 21:30
1
Should have 4G swap. And then you should be fine.
– Steven Walton
Sep 5 '14 at 23:27
1
@StevenWalton: This actually solved it ! Unfortunately, I had 4 primary partitions there already so I moved one's contents into another's, deleted the first and resized the other to fit all the contents while sparing 4.3G for swap space, then I added its UUID to /etc/fstab and used
swapon -ato use it and (up until now) everything seems to be working correctly ! Post your answer so that I can accept it.– Amr Ayman
Sep 6 '14 at 17:19