USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Swap partition doesn't load- segfaults
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER
View previous topic :: View next topic  
Author Message
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Sun Jan 11, 2024 1:13 am    Post subject: Swap partition doesn't load- segfaults Reply with quote

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.



_________________
Slackware 12.2
formerly Ubuntu 8.04


Last edited by g33kb0ard3r on Tue Jan 13, 2024 2:54 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Sun Jan 11, 2024 2:01 am    Post subject: Reply with quote

What's the error message say about the segfaults?

That could be a drive or memory problem.



_________________
Mandriva 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Sun Jan 11, 2024 2:09 am    Post subject: Reply with quote

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?



_________________
Slackware 12.2
formerly Ubuntu 8.04
Back to top
View user's profile Send private message Send e-mail
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Sun Jan 11, 2024 11:08 am    Post subject: Reply with quote

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 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 12452
Location: Planet Earth

PostPosted: Sun Jan 11, 2024 3:37 pm    Post subject: Reply with quote

as root:

Code:
swapoff /dev/sda6

Code:
mkswap /dev/sda6

Code:
swapon /dev/sda6


I really don't think adding the RAM has anything to do with it.



_________________
Laptop: Mandriva 2024 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2024 Free - kernel 2.6.33.2-1mib
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mushroom
Ultimate Member


Joined: 29 Jun 2024
Posts: 2129
Location: Queen Charlotte B. C. Canada

PostPosted: Sun Jan 11, 2024 3:55 pm    Post subject: Reply with quote

Germ wrote:
I really don't think adding the RAM has anything to do with it.

It just may Confused

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
View user's profile Send private message Visit poster's website
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 12452
Location: Planet Earth

PostPosted: Sun Jan 11, 2024 7:06 pm    Post subject: Reply with quote

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 2024 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2024 Free - kernel 2.6.33.2-1mib
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Sun Jan 11, 2024 7:35 pm    Post subject: Reply with quote

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...



_________________
Slackware 12.2
formerly Ubuntu 8.04
Back to top
View user's profile Send private message Send e-mail
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Sun Jan 11, 2024 7:52 pm    Post subject: Reply with 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. 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 Smile. Still no swap, though.



_________________
Slackware 12.2
formerly Ubuntu 8.04


Last edited by g33kb0ard3r on Mon Jan 12, 2024 1:32 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon Jan 12, 2024 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mushroom
Ultimate Member


Joined: 29 Jun 2024
Posts: 2129
Location: Queen Charlotte B. C. Canada

PostPosted: Mon Jan 12, 2024 1:21 am    Post subject: Reply with quote

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 Exclamation



_________________
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
View user's profile Send private message Visit poster's website
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Mon Jan 12, 2024 1:25 am    Post subject: Reply with quote

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 Exclamation


Ah. Gotcha. I might try that again then.

jester, there is no output of fdisk -l



_________________
Slackware 12.2
formerly Ubuntu 8.04
Back to top
View user's profile Send private message Send e-mail
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon Jan 12, 2024 1:37 am    Post subject: Reply with quote

g33kb0ard3r wrote:
jester, there is no output of fdisk -l

that would mean you have no harddisks which would return that error on swap Wink

gentoo quick-install guide wrote:
Preparing the Disks

Use fdisk or cfdisk to create your partition layout. You need at least a swap partition (type 82) and one Linux partition (type 83). The following scenario creates a /boot, a swap and a main partition as used in our handbook. Replace sda with your disk. Most systems ignore the bootable flag, but a few need it. Set this flag on your boot partition with fdisk's a command.

Code Listing 2.8: Create the partitions

livecd ~ # fdisk /dev/sda

(The rest of this guide uses the following partitioning scheme)
livecd ~ # fdisk -l /dev/sda

Disk /dev/sda: 599.9 GB, 599978409984 bytes
255 heads, 63 sectors/track, 72943 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ 83 Linux
/dev/sda2 13 110 787185 82 Linux swap / Solaris
/dev/sda3 111 72943 585031072+ 83 Linux

Use mke2fs, mke2fs -j, mkreiserfs, mkfs.xfs and mkfs.jfs to create file systems on your Linux partitions. Initialize your swap partition using mkswap and swapon.

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
g33kb0ard3r
Jr. Member


Joined: 12 Jul 2024
Posts: 94
Location: Cedar Falls, IA

PostPosted: Mon Jan 12, 2024 1:45 am    Post subject: Reply with quote

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



_________________
Slackware 12.2
formerly Ubuntu 8.04
Back to top
View user's profile Send private message Send e-mail
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon Jan 12, 2024 2:08 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » OTHER All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse