View previous topic :: View next topic |
Author |
Message |
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Sun Jan 11, 2025 1:13 am Post subject: Swap partition doesn't load- segfaults |
|
|
So yeah, I think that the title sums it up nicely. The swap partition fails to load at boot, I can't get it to load in gparted or with swapon. Any ideas as to what is going on?
Also, I can't get apt-get to work properly.
Code: | root@dj-compy:/home/dana# apt-get upgrade
Reading package lists... Error!
E: Malformed 1st word in the Status line
E: Error occurred while processing dictionaries-common (UsePackage2)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
|
This happens with any use of apt-get (not just with upgrade) [resolved]
I figured I might as well just put both problems in this thread instead of having 2 different active ones.
Last edited by g33kb0ard3r on Tue Jan 13, 2025 2:54 am; edited 1 time in total |
|
Back to top |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Sun Jan 11, 2025 2:01 am Post subject: |
|
|
What's the error message say about the segfaults?
That could be a drive or memory problem.
_________________ Mandriva 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Sun Jan 11, 2025 2:09 am Post subject: |
|
|
Code: | root@dj-compy:/home/dana# swapon /dev/sda6
Segmentation fault
|
Nothing more than that.
I did put in more memory (went from 2 128 mb sticks to 1 1gb stick.). Before I put in the new memory I did make the swap roughly 2 gb. Could this be the problem? |
|
Back to top |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Sun Jan 11, 2025 11:08 am Post subject: |
|
|
g33kb0ard3r wrote: | Code: | root@dj-compy:/home/dana# swapon /dev/sda6
Segmentation fault
|
Nothing more than that.
I did put in more memory (went from 2 128 mb sticks to 1 1gb stick.). Before I put in the new memory I did make the swap roughly 2 gb. Could this be the problem? |
Yes it could. Put back the old ram and try re-creating the problem. See if your swap will load now.
_________________ Mandriva 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
Posted: Sun Jan 11, 2025 3:37 pm Post subject: |
|
|
as root:
I really don't think adding the RAM has anything to do with it.
_________________ Laptop: Mandriva 2025 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2025 Free - kernel 2.6.33.2-1mib
|
|
Back to top |
|
mushroom Ultimate Member

Joined: 29 Jun 2025 Posts: 2129 Location: Queen Charlotte B. C. Canada
|
Posted: Sun Jan 11, 2025 3:55 pm Post subject: |
|
|
Germ wrote: | I really don't think adding the RAM has anything to do with it. |
It just may
I have an older MB that I replaced 4 x 128MB chips with a 512MB chip, it runs but only recognizes it as a 256MB chip and it crashes or locks up randomly.
_________________ SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1
Live CDs Mepis 8.0, Puppy 4.3.1, netbook- Zenwalk 6.2
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
Posted: Sun Jan 11, 2025 7:06 pm Post subject: |
|
|
well, yea...if you put something in there that the machine can't deal with.
That still won't keep the swap from being mounted.
_________________ Laptop: Mandriva 2025 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2025 Free - kernel 2.6.33.2-1mib
|
|
Back to top |
|
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Sun Jan 11, 2025 7:35 pm Post subject: |
|
|
Germ- I tried swapoff mkswap swapon and all I got was
Code: | root@dj-compy:/home/dana# swapoff /dev/sda6
swapoff: /dev/sda6: Invalid argument
root@dj-compy:/home/dana# mkswap /dev/sda6
Setting up swapspace version 1, size = 2113859 kB
no label, UUID=7bc72a74-7083-4995-84f8-438a86b485ce
root@dj-compy:/home/dana# swapon /dev/sda6
Segmentation fault
root@dj-compy:/home/dana#
|
I think I'm going to try putting in the old ram and see if that helps... |
|
Back to top |
|
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Sun Jan 11, 2025 7:52 pm Post subject: |
|
|
Well, I put in the old sticks of memory and as soon as I started it up all I got was the fan went up to 100% and the internal speaker started beeping, nothing on the display etc. So... I think I might have fried the old memory either taking it out or putting it back in :-\. Not good...
Obviously, putting in the new memory got it working again . Still no swap, though.
Last edited by g33kb0ard3r on Mon Jan 12, 2025 1:32 am; edited 1 time in total |
|
Back to top |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Mon Jan 12, 2025 12:22 am Post subject: |
|
|
put in a livecd, open up a term and give us the output of fdisk -l
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
mushroom Ultimate Member

Joined: 29 Jun 2025 Posts: 2129 Location: Queen Charlotte B. C. Canada
|
Posted: Mon Jan 12, 2025 1:21 am Post subject: |
|
|
g33kb0ard3r wrote: | Well, I put in the old sticks of memory and as soon as I started it up all I got was the fan went up to 100% and the internal speaker started beeping, nothing on the display etc. |
That normally means no memory..
or not seated properly 
_________________ SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1
Live CDs Mepis 8.0, Puppy 4.3.1, netbook- Zenwalk 6.2
|
|
Back to top |
|
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Mon Jan 12, 2025 1:25 am Post subject: |
|
|
Quote: | Quote: | Well, I put in the old sticks of memory and as soon as I started it up all I got was the fan went up to 100% and the internal speaker started beeping, nothing on the display etc. |
That normally means no memory..
or not seated properly
|
Ah. Gotcha. I might try that again then.
jester, there is no output of fdisk -l |
|
Back to top |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Mon Jan 12, 2025 1:37 am Post subject: |
|
|
g33kb0ard3r wrote: | jester, there is no output of fdisk -l |
that would mean you have no harddisks which would return that error on swap
here's what it looks like for me (remember it's a lower-case L for the switch)
Code: | blackswan jester # fdisk -l
Disk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000df672
Device Boot Start End Blocks Id System
/dev/sda1 * 1 8287 66560000 83 Linux
/dev/sda2 8287 8299 96390 83 Linux
/dev/sda3 8299 8423 996030 82 Linux swap / Solaris
/dev/sda4 8423 18241 78867388+ 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00055d28
Device Boot Start End Blocks Id System
/dev/sdb1 1 15198 122077903+ 83 Linux
/dev/sdb2 15199 27357 97667167+ 5 Extended
/dev/sdb3 * 27358 40411 104856255 a5 FreeBSD
/dev/sdb4 40412 60801 163782675 83 Linux
/dev/sdb5 15199 27357 97667136 83 Linux
Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006ea3f
Device Boot Start End Blocks Id System
/dev/sdc1 * 2 30401 244188000 f W95 Ext'd (LBA)
/dev/sdc5 2 30401 244187968+ b W95 FAT32
Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00014e34
Device Boot Start End Blocks Id System
/dev/sdd1 * 2 30401 244188000 f W95 Ext'd (LBA)
/dev/sdd5 2 30401 244187968+ b W95 FAT32 |
you're trying to mount swap on /dev/sda6 which is making me very curious as to your partition layout
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
g33kb0ard3r Jr. Member
Joined: 12 Jul 2025 Posts: 94 Location: Cedar Falls, IA
|
Posted: Mon Jan 12, 2025 1:45 am Post subject: |
|
|
jester-
You didn't tell me it needed to be run as root! J/K.
But yeah...
Code: | root@dj-compy:/home/dana# fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 5203 41752935 7 HPFS/NTFS
/dev/sda3 9256 9725 3775275 db CP/M / CTOS / ...
/dev/sda4 5204 9255 32547690 5 Extended
/dev/sda5 5204 8998 30483306 83 Linux
/dev/sda6 8999 9255 2064321 82 Linux swap / Solaris
Partition table entries are not in disk order
|
|
|
Back to top |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Mon Jan 12, 2025 2:08 am Post subject: |
|
|
g33kb0ard3r wrote: | You didn't tell me it needed to be run as root! J/K. |
fair comment, my apologies
thanks for putting up the partition table - these laptop hidden partitions keep spawning, now they need 2 of them, soon you'll need a second hdd just for your OS :rolleyes:
is this a ubuntu install?
how new is it?
did swap work before?
did apt work before?
which livecd are you using?
I've checked the fdisk message about partitions not being in order and it seems like it shouldn't be a big issue; I'm just wondering whether it's worth recreating that swap from within the livecd environment.
Looking at your original post with the second issue with apt, I'm wondering whether this install is actually viable - it seems you may at best have permission problems on /var/* or at worst, a b0rked install
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
|