LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 04-03-2007, 02:33 PM   #1
Mark Anderson
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Adding a swap partition after the fact?


Hi, I just managed to install Ubuntu on a machine with a dual boot with WinXP. When it got to the partitions part there was already a very small partition which I assumed was maybe the bios code or something, which left me 3 others which I designated one for WindowsNT, one for Ubuntu and one shared Fat32. There is plenty of room on each of them (roughly 23gb each). It wouldn't let me create a 5th partition for swap so I figured since I have 512 RAM I'd be ok.

I'm wondering if there is a way now to create an extended partition or something in one of my partitions and designate that to Swap. I'd love to have a 2 gb swap because it seems now programs are just disappearing on me when I get too many going.

I would very much appreciate any help as I am new to Ubuntu and Linux. (4 days total now)

Thanks,

Mark
 
Old 04-03-2007, 02:39 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
You could add a swap file.
 
Old 04-03-2007, 04:24 PM   #3
Mark Anderson
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thank You

That is exactly the type of solution I was looking for!!

One problem, where is the dd command?

I typed the first command in to terminal and got a response:

"dd: opening `/swapfile1': Permission denied"

I am logged in. Why is it saying I don't have permission?

Thanks,

Mark
 
Old 04-03-2007, 04:33 PM   #4
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
You'll need to use sudo to run those commands as root. Here is some more information on the use of sudo in Ubuntu.
 
Old 04-03-2007, 04:33 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Code:
"dd: opening `/swapfile1': Permission denied"

I am logged in. Why is it saying I don't have permission?
/swapfile1 is in the "/" directory, and a regular user won't have permission to create a file there. You will need to run "sudo dd ..." instead. Be very careful that you have the if=... and of=... correctly. "dd" doesn't care what you type, and it will happily make a mess of everything if you tell it to.
 
Old 04-03-2007, 05:05 PM   #6
Mark Anderson
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Original Poster
Rep: Reputation: 0
WoooooHooooo!!!

It worked!!

I also did the reboot part and rebooted and checked and my swap file is there!!!

Thanks!!!

You guys are rock stars!!!
 
Old 04-03-2007, 05:06 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Good job!
 
  


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
Adding Swap Partition Post-Install slickhare Linux - Newbie 2 11-28-2006 09:47 PM
Possible to create Swap part. after the fact? jabulani_jonny Linux - Newbie 2 05-02-2006 12:17 PM
Adding more SWAP after adding memory marc1978 Linux - General 6 03-19-2006 08:13 PM
Adding GRUB after the fact? Phil Healey Linux - Software 3 06-28-2003 02:13 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 01:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration