Adding a swap partition without formating anything on a disk

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

Adding a swap partition without formating anything on a disk

Postby orlox on Mon Mar 14, 2011 1:11 pm

Hi. I have a mint installation done on a computer in which at the moment of the install, a swap partition could not be assigned or created. I was wondering if it is possible to create one without having to format any of the partitions present on the system.
orlox
Level 1
Level 1
 
Posts: 3
Joined: Sat Mar 12, 2011 1:04 am

Linux Mint is funded by ads and donations.
 

Re: Adding a swap partition without formating anything on a

Postby lauren on Mon Mar 14, 2011 1:45 pm

Hi oriox!
In Windows you have a file, in Linux a partition, so you have to create a partition for swap.
1. What about your RAM? Please post the output of
Code: Select all
free

2. We must see your partitions, please first post the output of - as root
Code: Select all
parted -l print
lowercase "L"
Code: Select all
fdisk -l

and see if - as root - again
Code: Select all
gparted

shows your partitions (you could attach a screenshot).
lauren
Level 5
Level 5
 
Posts: 589
Joined: Thu Nov 26, 2009 10:50 am

Re: Adding a swap partition without formating anything on a

Postby orlox on Mon Mar 14, 2011 3:03 pm

Right now im not at my home so I cant give you the output of those commands directly, but I remember most of that info.
The ram in the computer is 1gb, but appears listed as ~870MB (I think this is related to the difference between bit and byte), so I think a swap partition could come in hand eventually.

The HDD has two partitions, sda1 which has windows installed, and sdb5 which has mint 10. Each of them has a size of order ~80GB, but the windows partition doesn't have a lot of free space, so the ideal thing to do would be to take a bit of space from the mint partition to create swap space.
orlox
Level 1
Level 1
 
Posts: 3
Joined: Sat Mar 12, 2011 1:04 am

Re: Adding a swap partition without formating anything on a

Postby lauren on Mon Mar 14, 2011 3:40 pm

Hi!
Sorry, I'm offline for a few days, but in any case you should post the outputs.
BTW: It's not bit/ byte, maybe it's MiB / MB (factor 1.024; I don't know the exact English expression, maybe: 2 to raise to the power of 10 = 1024).

Seeley has written some HOWTOs, in one of them he is writing about swap: viewtopic.php?f=141&t=63013/url
and his help is useful: viewtopic.php?f=42&t=63673&p=366328#p366328/url
lauren
Level 5
Level 5
 
Posts: 589
Joined: Thu Nov 26, 2009 10:50 am

Re: Adding a swap partition without formating anything on a

Postby proxima_centauri on Mon Mar 14, 2011 4:47 pm

Orlox,

I would recommend the following method, for creating a SWAP file on the local disk - instead of making it's own partition -> http://distrowatch.com/weekly.php?issue=20110117#qa
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Adding a swap partition without formating anything on a

Postby orlox on Mon Mar 14, 2011 9:49 pm

proxima_centauri wrote:Orlox,

I would recommend the following method, for creating a SWAP file on the local disk - instead of making it's own partition -> http://distrowatch.com/weekly.php?issue=20110117#qa


Right on! added my swap file with no problems.

Thanks :D
orlox
Level 1
Level 1
 
Posts: 3
Joined: Sat Mar 12, 2011 1:04 am


Return to Other topics

Who is online

Users browsing this forum: No registered users and 4 guests