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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-01-2005, 08:11 AM   #1
J_stuart
LQ Newbie
 
Registered: Jun 2004
Location: Argentina
Distribution: Slackware 9.1
Posts: 27

Rep: Reputation: 15
Forgot to create swap partiton


Hi people my thread is about my lack of brain memory not computers memory, i was in the mission of migrating a friend from windowsxp to linux(after he got infected with a virus i convinced him). So i went to his house repartition his 160gb drive to 32mb /boot 20gb / and 100gb /home as you can see i completly forgot the swap partition. Installed ubuntu, everything went great except for a problem in the sound which i will not discuss in this forum. i got home i connected thrugh ssh and installed mplayer amsn etc. every thing seemed to go great, but i when i woke up this morning i remembered "no i didn't created the swap partition".
Now this is the situation, i am not able to access the machine fisicaly due to time table problems. i must conect through secure shell and kind of cut /home partition create a 512mb swap partition and dont errase any thing in the home directory. How do you think i can do this without messing up ? thank you.
 
Old 09-01-2005, 08:18 AM   #2
Golradir
LQ Newbie
 
Registered: Mar 2004
Posts: 27

Rep: Reputation: 15
GNU Parted

You could try using GNU Parted. Make sure your filesystem is supported.
 
Old 09-01-2005, 01:31 PM   #3
J_stuart
LQ Newbie
 
Registered: Jun 2004
Location: Argentina
Distribution: Slackware 9.1
Posts: 27

Original Poster
Rep: Reputation: 15
gnu part

Hi thak you for your fast reply, anyway i was wondering if i could back up /home on a tmp folder on /mnt unmount home delete home partition and create the swap partition+home partition then swapon partition and remount new /home and copy the backed up files, is that posible through secure shell and how can it affect my friends system, apart from reducing his /home disk space.
thank you.
 
Old 09-01-2005, 01:32 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
You might also decide to just see how the system runs without a swap partition. No, it won't be able to swap anywhere, but it might not need to.

Another possibility would be to purchase a second disk-drive .. not a bad idea anyway .. and install that. This gives you oodles more space to play around with, and you can easily put your swap-space there. (Actually, having swap space on a separate drive from the main system-residence volume is not a bad idea anyhow.)

At this point, I think that's what I would do.

None of this is something to do "non-physically." Bring pizza. And beer.
 
Old 09-01-2005, 03:37 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: gnu part

Quote:
Originally posted by J_stuart
Hi thak you for your fast reply, anyway i was wondering if i could back up /home on a tmp folder on /mnt unmount home delete home partition and create the swap partition+home partition then swapon partition and remount new /home and copy the backed up files, is that posible through secure shell and how can it affect my friends system, apart from reducing his /home disk space.
thank you.
That's a quite feasible solution. And besides the storage space
ssh takes a fair bit of processing in file-transfers. If his CPU is a
very grunty one he probably won't notice, though.

The easiest way for you would be a plain
scp -r /home/<user> <account>@<friends-box>:/path/to/lots/of/disk

Less CPU intense for his box:
tar czf - /home/<user> | ssh <account>@<friends-box> "dd of=/path/to/lots/of/disk/tarfile"
For the latter to make sense your mate should disable
compression for his sshd.




Cheers,
Tink
 
Old 09-01-2005, 04:43 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
don't forget you can make a swapfile.
dd if=/dev/zero of=swapfile bs=1M count=512
mkswap swapfile
swapon swapfile

then add the entry to fstab or one of your startup scripts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to create a swap partition dotancohen Linux - General 4 07-30-2005 12:39 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
forgot swap tiki Slackware 4 10-20-2004 08:49 PM
resize swap partiton ? qwijibow Linux - Software 3 11-26-2003 12:21 PM
Create swap partition? mikeshn Linux - General 6 11-28-2002 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11: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