• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Suse 9.1 Swap Partition Issue

htmlmasterdave

Golden Member
I did basically a totally default install of Suse 9.1 and everytime it boots it cannot mount the swap partition. This happened on another machine I tried it on. Has anyone had this problem too or been able to fix it?

Thanks, Dave.
 
Do you have a swap partition at all? Where is it mounted?

Post the output of dmesg (from the command line) as well as your /etc/fstab file.
 
OK, we need some information in order to help you.
First post your "/etc/fstab" file
also post your partitions and types of partitions you can use "fdisk" or "cfdisk" don't use windows partition utility because it won't recognize your linux partition types.

Good luck,
Jose
 
Originally posted by: pitupepito2000
Originally posted by: n0cmonkey
Try swapctl /dev/hdb1 or whatever your swap partition is. Linux is so confusing.

What do you mean by "Linux is so confusing."

I don't know if swapctl even exists on SuSE. And I have no clue if the hdb1 partition is even the one I meant. 😛
 
Try either:
swapctl /dev/hda2
or
swapon
or
swapon /dev/hda2

I can't find online manpages for SuSE. Their website is crap. 🙁
 
Originally posted by: n0cmonkey
Originally posted by: pitupepito2000
Originally posted by: n0cmonkey
Try swapctl /dev/hdb1 or whatever your swap partition is. Linux is so confusing.

What do you mean by "Linux is so confusing."

I don't know if swapctl even exists on SuSE. And I have no clue if the hdb1 partition is even the one I meant. 😛

well, he will probably have to use a rescue CD/floppy which probably has the program 🙂
 
Originally posted by: pitupepito2000
Originally posted by: n0cmonkey
Originally posted by: pitupepito2000
Originally posted by: n0cmonkey
Try swapctl /dev/hdb1 or whatever your swap partition is. Linux is so confusing.

What do you mean by "Linux is so confusing."

I don't know if swapctl even exists on SuSE. And I have no clue if the hdb1 partition is even the one I meant. 😛

well, he will probably have to use a rescue CD/floppy which probably has the program 🙂

Nah, I've setup machines without swap before. Even used files for swap. It was icky, but worked.
 
Originally posted by: htmlmasterdave
None of those commands seem to work, I get errors about the syntax, the man page for swapon is at http://coldfear.homelinux.com/manswapon.txt if that helps....

i think it's best to use less to view it and not a web browers... the formatting seems destroyed

Yeah, see, I don't have less or more, or most on this machine. And I'm not allowed to move it to a *nix machine. 😉

So this is based off of a RedHat manpage (which looks the same, except lacking little boxes):

swapon -a should try to mount it as swap. I think -v makes the output verbose, but IT'S ONLY MENTIONED ONCE IN THE MAN PAGE! ugh. Try swapon -a and report back. 😉
 
It works i'm pretty sure 😀 Thanks so much... is there some way I can fix this though so when it boots it works for good? Is it something in the rc files? I'm not sure exactly what loads when linux boots.
 
Originally posted by: htmlmasterdave
It works i'm pretty sure 😀 Thanks so much... is there some way I can fix this though so when it boots it works for good? Is it something in the rc files? I'm not sure exactly what loads when linux boots.

If the mkswap worked, it should be fine from now on. init should run something like swapon -a shortly after going into multi-user mode. I'm guessing something dealing with mkswap b0rked during the install. You can always try rebooting afterwards to see if it works. If not, we can help you fix it up a bit. 🙂

EDIT: BTW, check out /etc/init.d and /etc/inittab. /etc/init.d should have all of the scripts that can be loaded on startup. /etc/inittab will tell you what run level SuSE starts at. Search for the word default. It will probably be 5, but some distros set it up differently.

0 is halt and 6 is reboot. From here on it gets dicey and could be different depending on distro 😉
1 is single user mode
3 is multi-user mode
5 is graphical mode

You probably start in run level 5, so the startup scripts will be in /etc/rc5.d. Everything that starts will begin with the capital letter S followed by a number and a name. These are typically just links to the scripts in /etc/init.d.

I'm not sure, but I think Linux runs through init 1 then goes to your run level. So everything in /etc/rc1.d should run too. Swap would be after run level 1 though, so it is probably in /etc/rc5.d. But of course this redhat box says differently...
 
Yep I just rebooted and all seems fine. I guess it must be a line they forget or a bug in the installer. Maybe the FTP install is better? I'm thinking of trying that because the personal iso is pretty limited in packages. Thanks for your help man 🙂
 
Originally posted by: htmlmasterdave
Yep I just rebooted and all seems fine. I guess it must be a line they forget or a bug in the installer. Maybe the FTP install is better? I'm thinking of trying that because the personal iso is pretty limited in packages. Thanks for your help man 🙂

See my edit above. 😉

There should be packages available for SuSE around somewhere. You can probably download the ones the FTP install is offering and install them manually. Or I think YaST helps install packages, but I'm not positive. 😛

And thank google.com/linux, it did the real work. I just translated. 😛
 
Back
Top