LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-16-2006, 09:07 PM   #1
duns0014
Member
 
Registered: Dec 2006
Posts: 35

Rep: Reputation: 15
New partition is mistakenly assumed to be swap space.


I had some swap that I wanted to turn into a real partition, to store stuff. I used fdisk to change the type to linux (83 I believe). But even after reboot, my system still thought it was swap. Trying to mount it gave the error that it appeared to be swap, although fdisk called it linux. So I deleted the partition and then made a new one in the same place, with type linux. Same problem. Any ideas?
 
Old 12-16-2006, 09:31 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,587

Rep: Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112
You need to build a filesystem on the partition - think of it like the format command in 'doze. Try "man mkfs" for some background.
 
Old 12-16-2006, 10:08 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
The partition is still listed as swap in /etc/fstab?
 
Old 12-16-2006, 11:33 PM   #4
duns0014
Member
 
Registered: Dec 2006
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00
You need to build a filesystem on the partition - think of it like the format command in 'doze. Try "man mkfs" for some background.
That worked, thanks. Buy why do you have to do this after you create it with fdisk? I don't remember doing this before.
 
Old 12-16-2006, 11:50 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,587

Rep: Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112Reputation: 3112
Changing the "type" does nothing to the underlie-ing filesystem (and/or data).
After "playing" with partitions, you should always re-make the filesystem. Restoring a previously saved backup image would be the only situation not to that I can (quickly) think of.
 
  


Reply


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
Redistribute Swap file space to main partition stuartornum SUSE / openSUSE 11 10-30-2006 03:49 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 10:03 AM
Swap Partition Space fiending Linux - Distributions 2 11-04-2003 10:07 PM
How to increase SWAP partition space ? sureshsaragadam Linux - Newbie 23 10-01-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:33 PM.

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