Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-27-2011, 03:24 PM   #1
Registered: Mar 2004
Location: .SE
Distribution: CentOS, Arch, Mint, Zorin, Slax
Posts: 351

Rep: Reputation: 21
Invalid swapfile

After this: was done, next problem came up.

The swap partition I created is not valid for my F14 upgrade it says.

fdisk says:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          39      313236   83  Linux
/dev/sda2              40        3956    31463302+  83  Linux
/dev/sda3            3957        4088     1060290   83  Linux
/dev/sda4            4089       24321   162521572+  83  Linux

Command (m for help):
parted says:

GNU Parted 1.9.0
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: ATA WDC WD2000JD-00H (scsi)
Disk /dev/sda: 200GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
 1      32.3kB  321MB   321MB   primary  ext3
 2      321MB   32.5GB  32.2GB  primary  ext3
 3      32.5GB  33.6GB  1086MB  primary  linux-swap(v1)
 4      33.6GB  200GB   166GB   primary  ext3

So which one is correct?
I tried mkswap/swapon but always getting "Device or resource busy" no matter if I boot from CD.

And this "little" error makes not able to upgrade to F14.

Any clues what more I can do?

Just tried the swapoff then the mkswap worked but fdisk shows the same info, but I'll try the F14 CD anyway and see...

UPDATE2: Nope still same error.
Error enabling swap device LABEL=SWAP-sda3: device has not been created

The etc/fstab on your update partition does not reference a
valid swap device.

Last edited by Basher52; 04-27-2011 at 03:41 PM.
Old 04-27-2011, 03:56 PM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,028

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Looks like both FATS differ. You have F14 cdrom/dvd?
If you can boot on F14, I would be tempted to try
df -h

that might tell you what's real. The swap should be type 82 - change that and it might fix a lot. Here's the line for fstab
/dev/sda2 swap swap defaults 0 0
Old 04-27-2011, 04:36 PM   #3
Registered: Mar 2004
Location: .SE
Distribution: CentOS, Arch, Mint, Zorin, Slax
Posts: 351

Original Poster
Rep: Reputation: 21

I knew I could change the type to 82 but no matter how many times I looked at the commands in fdisk I just didn't see the 't'
Changed it to 82 and now it sure looks better as a swap partition

Tried the upgrade again and it works

Think I need even stronger glasses


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using dapper swapfile unisol Ubuntu 1 12-27-2006 07:11 AM
How do I get my swapfile to work? Mr. New Linux - Newbie 2 01-01-2005 12:37 PM
how do i make a swapfile in debian? jogurt666 Debian 9 01-18-2004 10:11 AM
SuSe swapfile Pond247 Linux - Newbie 0 09-19-2003 03:17 PM
Swapfile Shantesh Linux - Software 2 09-11-2003 09:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration