LinuxQuestions.org
Help answer threads with 0 replies.
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, 09: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, 09: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, 02: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, 02:32 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,452

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
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, 04:37 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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, 05:43 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
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


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 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 01:39 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 09:29 AM
forgot swap tiki Slackware 4 10-20-2004 09:49 PM
resize swap partiton ? qwijibow Linux - Software 3 11-26-2003 01:21 PM
Create swap partition? mikeshn Linux - General 6 11-28-2002 03:42 AM


All times are GMT -5. The time now is 04:27 AM.

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