Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › 7 swaps, all needed?
New Posts  All Forums:Forum Nav:

7 swaps, all needed?

post #1 of 9
Thread Starter 
So I reinstalled Ubuntu many many times yesterday because I always seemed to mess it up somehow (nvidia--looking at you). So yeah, first time linuxer here.

Now I notice that I do not have that much space left and see that I have 7 swaps. I guess its all because I reinstalled 7 times? Is all nedded and if not, how do I know which one I should not delete?

Thanks.
The Kandalf
(16 items)
 
  
CPUMotherboardGraphicsGraphics
I7 5820K MSI X99S Gaming 7 ASUS R9 280X TOP Crossfire X ASUS R9 280X TOP Crossfire X 
RAMHard DriveOptical DriveOS
Crucial DDR4 2133MHz 8GB (2x4GB) Samsung SpinPoint F1 1TB HP DVD630 Ubuntu 
MonitorKeyboardPowerCase
2x Philips Brilliance 220CW Microsoft Wireless Desktop Elite Keyboard Fractal Design Newton R3, 800W 80+ Platinum Corsair 900D 
MouseMouse PadAudioAudio
Mionix Naos 8200 Razer Pro Solutions Arcam rDAC B&W CM1 
  hide details  
Reply
The Kandalf
(16 items)
 
  
CPUMotherboardGraphicsGraphics
I7 5820K MSI X99S Gaming 7 ASUS R9 280X TOP Crossfire X ASUS R9 280X TOP Crossfire X 
RAMHard DriveOptical DriveOS
Crucial DDR4 2133MHz 8GB (2x4GB) Samsung SpinPoint F1 1TB HP DVD630 Ubuntu 
MonitorKeyboardPowerCase
2x Philips Brilliance 220CW Microsoft Wireless Desktop Elite Keyboard Fractal Design Newton R3, 800W 80+ Platinum Corsair 900D 
MouseMouse PadAudioAudio
Mionix Naos 8200 Razer Pro Solutions Arcam rDAC B&W CM1 
  hide details  
Reply
post #2 of 9
Ubuntu is good to 'get your feet wet' with linux. If you really want to learn linux, you need a distro like slackware or arch.

Re-install, but this time manually create your own partitions. That is my advice.
workstation
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K EVGA Z68 SLI GeForce 670 GTX G.Skill 32GB 1600Mhz 
Hard DriveCoolingOSMonitor
OCZ Agility 3 60GB Zalman arch x86_x64 U3011 + U3014 
PowerCaseMouseAudio
PCPowerCooling 860w Chenbro server G500 Asus D2X, Def Tech 5.3 
  hide details  
Reply
workstation
(14 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K EVGA Z68 SLI GeForce 670 GTX G.Skill 32GB 1600Mhz 
Hard DriveCoolingOSMonitor
OCZ Agility 3 60GB Zalman arch x86_x64 U3011 + U3014 
PowerCaseMouseAudio
PCPowerCooling 860w Chenbro server G500 Asus D2X, Def Tech 5.3 
  hide details  
Reply
post #3 of 9
You don't actually "need" any swap partitions. I would delete all but the last one, resize the ext4 partition (your system partition?) to use up the free space, and then remove any references to the old swap partitions from your fstab file (also make sure that there is an entry for the remaining one).
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
post #4 of 9
Thread Starter 
Quote:
Originally Posted by markatto View Post
You don't actually "need" any swap partitions. I would delete all but the last one, resize the ext4 partition (your system partition?) to use up the free space, and then remove any references to the old swap partitions from your fstab file (also make sure that there is an entry for the remaining one).
How to I do the bold part?
The Kandalf
(16 items)
 
  
CPUMotherboardGraphicsGraphics
I7 5820K MSI X99S Gaming 7 ASUS R9 280X TOP Crossfire X ASUS R9 280X TOP Crossfire X 
RAMHard DriveOptical DriveOS
Crucial DDR4 2133MHz 8GB (2x4GB) Samsung SpinPoint F1 1TB HP DVD630 Ubuntu 
MonitorKeyboardPowerCase
2x Philips Brilliance 220CW Microsoft Wireless Desktop Elite Keyboard Fractal Design Newton R3, 800W 80+ Platinum Corsair 900D 
MouseMouse PadAudioAudio
Mionix Naos 8200 Razer Pro Solutions Arcam rDAC B&W CM1 
  hide details  
Reply
The Kandalf
(16 items)
 
  
CPUMotherboardGraphicsGraphics
I7 5820K MSI X99S Gaming 7 ASUS R9 280X TOP Crossfire X ASUS R9 280X TOP Crossfire X 
RAMHard DriveOptical DriveOS
Crucial DDR4 2133MHz 8GB (2x4GB) Samsung SpinPoint F1 1TB HP DVD630 Ubuntu 
MonitorKeyboardPowerCase
2x Philips Brilliance 220CW Microsoft Wireless Desktop Elite Keyboard Fractal Design Newton R3, 800W 80+ Platinum Corsair 900D 
MouseMouse PadAudioAudio
Mionix Naos 8200 Razer Pro Solutions Arcam rDAC B&W CM1 
  hide details  
Reply
post #5 of 9
Quote:
Originally Posted by i_ame_killer_2 View Post
How to I do the bold part?
Your fstab file is located at /etc/fstab. It specifies which filesystems are mounted where.

a line for a swap partition will look something like this:
/dev/sdxx swap swap defaults 0 0

where the first column is the name of the partition that is being used as swap. I don't know how ubuntu does things, they might specify the device by uuid or label instead. There is also a man page for fstab (man 5 fstab)
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
post #6 of 9
He said he was a Linux noob.

As a moderate Linux user with just enough knowledge to make myself dangerous, wouldn't using GPARTD be easier??

Make a bootable flashdrive;

http://www.pendrivelinux.com/univers...easy-as-1-2-3/

Follow those instructions, then boot from the flashdrive (may have to go into BIOS and select the flashdrive as first boot option), select RUN FROM FLASHDRIVE on the menu when it comes up. Once into the live desktop, go to system settings and find GPARTD and it will show you all your partitions. Delete all but one of the swap partitions and extend the new space into your main partition.

Some people say you don't need any if you have enough RAM, some people still say at least 2GB, or the same as your RAM amount. I don't know, but I DO know that I have plenty of drive space on all my systems, so 2-6GB is not missed if I set it for swap. But I do note that I rarely if ever see it used in the system monitor, so......up to you.
post #7 of 9
Quote:
Originally Posted by markatto View Post
Your fstab file is located at /etc/fstab. It specifies which filesystems are mounted where.

a line for a swap partition will look something like this:
/dev/sdxx swap swap defaults 0 0

where the first column is the name of the partition that is being used as swap. I don't know how ubuntu does things, they might specify the device by uuid or label instead. There is also a man page for fstab (man 5 fstab)
However, I will recommend that you don't screw it up. If somehow you make a mistake in editing this file, it might fail to boot because it can't properly read your fstab. Have a boot CD/USB handy (like the one you installed with) just in case you fail. I have done this before in Arch.
Ye Old Desktop
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 965 @ 4.24 GHz ASUS M4A77D PNY GTX 470 7 GB DDR2 RAM 
Hard DriveHard DriveOptical DriveOS
500 GB Hitachi 250 GB Maxtor (PATA) x16 DVD/CD RW Windows 7 Professional x68 
MonitorKeyboardPowerCase
Hannspree HF255HPB Logitech G15 (2nd Gen) Corsair TX 650 V2 Antec 300 
MouseAudio
Logitech G9 Creative Audigy 2 ZS 
  hide details  
Reply
Ye Old Desktop
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 965 @ 4.24 GHz ASUS M4A77D PNY GTX 470 7 GB DDR2 RAM 
Hard DriveHard DriveOptical DriveOS
500 GB Hitachi 250 GB Maxtor (PATA) x16 DVD/CD RW Windows 7 Professional x68 
MonitorKeyboardPowerCase
Hannspree HF255HPB Logitech G15 (2nd Gen) Corsair TX 650 V2 Antec 300 
MouseAudio
Logitech G9 Creative Audigy 2 ZS 
  hide details  
Reply
post #8 of 9
Quote:
Originally Posted by Thumper View Post
As a moderate Linux user with just enough knowledge to make myself dangerous, wouldn't using GPARTD be easier??
Can gparted create fstab entries? I haven't used it in a long time.
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
my baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @ 4.0 EVGA 780i 2x GTS 512 SLi 770/linked/1050 2x 2gb G.Skill PQ DDR2-1000 
Hard DriveOSMonitorKeyboard
2x 250Gb 7200.10 (raid 0) Arch Linux 64 Samsung T240 Saitek eclipse 
PowerCaseMouse
OCZ GameXStream 700 watt Cooler Master 690 Razer Deathadder 
  hide details  
Reply
post #9 of 9
Quote:
Originally Posted by markatto View Post
Can gparted create fstab entries? I haven't used it in a long time.
Hhmmm, good point.....I am not sure. I focused on the deleting of the extra swaps.

Of course, if there is nothing important on the final install, doing another fresh install using the "use entire drive" option will erase and format everything and set up a single swap and be done without having to modify the fstab.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › 7 swaps, all needed?