LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 01:39 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
You could add a swap file.
 
Old 04-03-2007, 03: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, 03:33 PM   #4
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
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, 03:33 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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, 04: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, 04:06 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Good job!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:18 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
Open Source Consulting | Domain Registration