Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.