Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You seem to have discovered "mkswap" which formats a device as swap space. "swapon /dev/sdb1" Will tell your system to use it as swap until you restart. You'll need to edit /etc/fstab to make it persistent. Just copy and edit the line you have for /dev/sda5.
You don't really need to change the partition type to swap, but you can if you want. "fdisk" can do it, but I think "cfdisk" is much easier.
addendum: "cat /proc/swaps" will tell you which partitions are actively being used for swapspace.
If you need to you can also create a swapfile. It's slightly less efficient, but would be preferable to adding new drives just to avoid repartitioning.
hmmm, the thumbnails are a new thing here since the last time I logged on. Sorry for looking ignorant. I am however curious as to why you want to add a second swap partition. Wouldn't be easier to just increase the amount of memory for the vm? Assuming that is that you have enough to do so without shorting the host.
I have not tried it but it would seem to me that you could assign your drive to a different vm (even one run straight from the iso) and use gparted to resize/repartition your drive.
You seem to have discovered "mkswap" which formats a device as swap space. "swapon /dev/sdb1" Will tell your system to use it as swap until you restart. You'll need to edit /etc/fstab to make it persistent. Just copy and edit the line you have for /dev/sda5.
You don't really need to change the partition type to swap, but you can if you want. "fdisk" can do it, but I think "cfdisk" is much easier.
Quote:
Originally Posted by gd2shoe
addendum: "cat /proc/swaps" will tell you which partitions are actively being used for swapspace.
If you need to you can also create a swapfile. It's slightly less efficient, but would be preferable to adding new drives just to avoid repartitioning.
thanks , it worked, and cat /proc/swaps is showing my swap
is there any good online manual/pdf which lists all linux commands and usage ?
thanks again
Quote:
Originally Posted by rbees
hmmm, the thumbnails are a new thing here since the last time I logged on. Sorry for looking ignorant. I am however curious as to why you want to add a second swap partition. Wouldn't be easier to just increase the amount of memory for the vm? Assuming that is that you have enough to do so without shorting the host.
I have not tried it but it would seem to me that you could assign your drive to a different vm (even one run straight from the iso) and use gparted to resize/repartition your drive.
yup adding memory to vm is easy but VM alrdy using 75% of system memory
yup adding memory to vm is easy but VM alrdy using 75% of system memory
vm mem usage at 90-95%+
sys memory 4gb ,
Why is your vm using that much memory? I don't know what you are using it for but that seems a little extreme. Are there some services in the vm, like a dhcp server that can be disabled?
Htop is a great little program that will sort processes by cpu,mem, alot of different ways. May help show you what is running that you can turn off. Also going to one of the lightweight desktops can help reduce your vm's footprint.
Why is your vm using that much memory? I don't know what you are using it for but that seems a little extreme. Are there some services in the vm, like a dhcp server that can be disabled?
Htop is a great little program that will sort processes by cpu,mem, alot of different ways. May help show you what is running that you can turn off. Also going to one of the lightweight desktops can help reduce your vm's footprint.
its kinda a Lan test game server(personal use only ) , Mem usage depends on how many game feature i allowed ,
currently have only command mode installed (no gfx)[i got this image as Vbox Export image ] . i cant install any programs there cause >.> cause unable to FIX net connection on Bridge mode , but that isnt a gr8 problem for me cause using it on my Lan only atm , but getting net fixed on it would b good if possible
i installed XP on Vbox in bridge mode (for testing bridge mode net )it was having no net problem only this Lan server(ubuntu(cmd mode only))(yes when testing i chged to Bridge mode for Ubuntu Lan servr ) but not working
OK, as for the network connection if you change the setting in virtual box for the network card on your vm to a 'nat' connection you should be able to install apps in the the vm. As I remember it there is only one of the virtual box nic's that will bridge correctly. I don't remember which one it is, but there was a lot of discussion about it some time ago. I have always found that a nat connection works well for the vm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.