SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-11-10 22:30:26

BruceJohnJennerLawso
#! Member
Registered: 2014-02-23
Posts: 50

Swap Space Oddity [solved]

Sooo a bit of a long story here:

Back when I first set up my #! install about a year ago, for reasons that I only understood at the time, I decided to set up my partitions with windows first (~160 Gb), Kubuntu next (~19 Gb), #! after that (~13 Gb), then 80 frigging Gigs of unusable space  roll

I recently did some messing about in GParted to fix this, absorbing the 80 Gb back into my #! partition to finally give me lots of space. In the process however, I had to swapoff my swap space, delete it, and move it back to the end of the space that was unused,  format it, reset it to swapon, etc. The new swap space works fine when manually configured like this, but dissapears every time I shut down, and wont allow me to hibernate at all (presumably since hibernation stores the contents of ram into swap space?)

IIRC, the Crunchbang setup required the user to select the swap space partition during installation, is there any way to manually reset this now?

Please let me know if a screenshot from GParted would help

Last edited by BruceJohnJennerLawso (2014-11-11 16:20:59)


The computer is mightier than the pen, the sword, and usually the programmer.

My Projects on Github

Offline

Be excellent to each other!

#2 2014-11-10 22:49:21

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,106

Re: Swap Space Oddity [solved]

Is it listed in /etc/fstab? Like so (from my system, change the device path):

/dev/mapper/vgroot-swap none swap sw,pri=100 0 0

あの日の魂は何処へ行ったのだろう

Offline

#3 2014-11-10 22:54:59

BruceJohnJennerLawso
#! Member
Registered: 2014-02-23
Posts: 50

Re: Swap Space Oddity [solved]

twoion wrote:

Is it listed in /etc/fstab? Like so (from my system, change the device path):

/dev/mapper/vgroot-swap none swap sw,pri=100 0 0

what do the last three numbers represent?


The computer is mightier than the pen, the sword, and usually the programmer.

My Projects on Github

Offline

#4 2014-11-10 22:55:59

TicTac
#! CrunchBanger
From: Wherever You Go, There You Are
Registered: 2014-10-23
Posts: 244

Re: Swap Space Oddity [solved]

Hi BruceJohnJennerLawso,

Have you tried to partition from a live medium on CD, DVD or preferably usb? When doing any partition work on my systems, I've always done so from within a "live" system and keep an old copy of puppy around for just that purpose.


"Let me explain something to you. Um, I am not "Mr. Lebowski". You're Mr. Lebowski. I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing."   

The Dude.

Offline

#5 2014-11-10 23:20:36

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,106

Re: Swap Space Oddity [solved]

BruceJohnJennerLawso wrote:
twoion wrote:

Is it listed in /etc/fstab? Like so (from my system, change the device path):

/dev/mapper/vgroot-swap none swap sw,pri=100 0 0

what do the last three numbers represent?

fstab(5) wrote:
The fifth field (fs_freq).
    This field is used for these filesystems by the dump(8) command to determine which filesystems need to be dumped.  If the fifth field is  not  present,  a  value  of  zero  is
    returned and dump will assume that the filesystem does not need to be dumped.

The sixth field (fs_passno).
    This  field is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.  The root filesystem should be specified with a fs_passno
    of 1, and other filesystems should have a fs_passno of 2.  Filesystems within a drive will be checked sequentially, but filesystems on different drives will be checked at  the
    same  time  to  utilize parallelism available in the hardware.  If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem
    does not need to be checked.

The

pri=

parameter is passed to swapon(8):

-p, --priority priority
   Specify the priority of the swap device.  priority is a value between 0 and 32767. Higher numbers indicate higher priority. See swapon(2) for a full description of swap prior‐
   ities. Add pri=value to the option field of /etc/fstab for use with swapon -a.

Last edited by twoion (2014-11-10 23:23:16)


あの日の魂は何処へ行ったのだろう

Offline

#6 2014-11-10 23:29:12

BruceJohnJennerLawso
#! Member
Registered: 2014-02-23
Posts: 50

Re: Swap Space Oddity [solved]

TicTac wrote:

Hi BruceJohnJennerLawso,

Have you tried to partition from a live medium on CD, DVD or preferably usb? When doing any partition work on my systems, I've always done so from within a "live" system and keep an old copy of puppy around for just that purpose.

Yes, I opened Gparted from a live usb session of Pinguy OS.


@twoion, etc/fstab looks like

fstab wrote:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=00ed5bcb-5f45-478b-b9ed-ddda7b3bd476 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=e15c2a7d-ae73-4537-8799-3a68eb956edc none            swap    sw              0       0
#/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0
UUID=62FADFE3FADFB211 /media/Windows7_OS  ntfs-3g  defaults,windows_names,locale=en_US.utf8  0 0


The computer is mightier than the pen, the sword, and usually the programmer.

My Projects on Github

Offline

#7 2014-11-10 23:36:36

Head_on_a_Stick
#! Cat
From: A world of pure imagination
Registered: 2014-01-21
Posts: 2,782

Re: Swap Space Oddity [solved]

@OP: change the UUID of the swap partition in the fstab file to match that of the new one you have created.

Offline

#8 2014-11-11 00:05:24

BruceJohnJennerLawso
#! Member
Registered: 2014-02-23
Posts: 50

Re: Swap Space Oddity [solved]

Head_on_a_Stick wrote:

@OP: change the UUID of the swap partition in the fstab file to match that of the new one you have created.

k, thanks, will see if that works.  big_smile


The computer is mightier than the pen, the sword, and usually the programmer.

My Projects on Github

Offline

#9 2014-11-11 16:22:00

BruceJohnJennerLawso
#! Member
Registered: 2014-02-23
Posts: 50

Re: Swap Space Oddity [solved]

Yep, all fixed now, although I had to uninstall and reinstall the hibernate package to get that feature working again


The computer is mightier than the pen, the sword, and usually the programmer.

My Projects on Github

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo