Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > swap partition won't mount

swap partition won't mount
Thread Tools
Junior Member
Join Date: Nov 2000
Location: Manhattan
Status: Offline
Reply With Quote
Feb 2, 2002, 09:30 AM
 
Just did a default YDL2.1 install on a PBG4, followed instructions exactly.

Problem is, during boot, the swap partition (256MB) fails to initialize.
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>Activating swap partitions
swapon: /dev/hda11 : Invalid argument
[FAILED]</font>[/code]

Everything boots and runs ok, just without a swap file.

Any ideas why this is happening?
     
Senior User
Join Date: Jan 2001
Location: california
Status: Offline
Reply With Quote
Feb 2, 2002, 10:07 AM
 
do you really have 11+ partitions on your primary master drive?
"hda11" means it's looking at the 11th partition. if this is wrong and you *have* assigned a swap partition, then type from the command line (i'm pretty sure you'll need to be root):
"mkswap /dev/hda#" where "#" is the number of the swap partition. this will format the entire partition given as swap and then assign it to be mounted after next reboot. you can also use "swapon /dev/hda#" to turn it on right then, if you want, presumably. type "man mkswap" to check the manual pages for more info, if you'd like.
also, if you don't have a swap partition, you should be able to allocate a swap file with the name and location of your choice on your normal drive by using "mkswap /pathname/filename 131072"
this will create a 128 MB (131072 KB) swap file and set it up for use.
good luck! make sure to check "man mkswap" to be sure this is right, though, because i'm not certain YDL will work exactly the same as mandrake or debian, which i have experience with.
     
Junior Member
Join Date: Nov 2000
Location: Manhattan
Status: Offline
Reply With Quote
Feb 3, 2002, 05:14 AM
 
Thanks!, worked perfectly, the YDL installer must have not properly formatted the swap partition.

Re: your question about why so many partitions, they first 7-8 or so are all tiny ones created by the Apple Disk Utility when I formatted my drive. There are all ~30K and HDT indentifies them as "Active SCSI Driver" "Apple FWDriver" etc. I'm sure they are not all necessary, but Disk Utility put them there and I am not going to mess with deleting them to reclaim 100K of space.

-m
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:42 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2