Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-14-2004, 09:13 AM   #1
LQ Newbie
Registered: Apr 2004
Location: West Virginia
Posts: 7

Rep: Reputation: 0
create and remove swap space

I've just recently taken over a new linux box and ran into a problem today. The system load was up to 70 at times with user/system process load very low when doing an sar. Idle time was up into the 90's.
Anyway ... I found that the swap the system was running was sized at 300Megs on a machine that has 1 gig of memory.

After rebooting, the load leveled off and I was able to spend some time looking around.
I then went to create a new swap file using <mkswap /dev/sdb3 1000000>
Unfortunately, this took my /home directory to 100%.

I'd now like to "undo" what I've done. Is this possible?
When I try it now, I get an invalid arguement response.
I've tried swapoff /dev/sdb3.

Please tell me this is possible to undo. Uugh!



Last edited by cbarbot; 04-14-2004 at 09:15 AM.
Old 04-14-2004, 11:42 AM   #2
LQ Newbie
Registered: Apr 2004
Location: West Virginia
Posts: 7

Original Poster
Rep: Reputation: 0
If this command never really finished (volume is currently at 100%), did I actually wipe out the contents of my /home directory.?
Is there any way to get this back?
Right now, when I execute < ls -l >, I get the following:
EXT3_fs error (device sd(8,19)): exp3_readdir: bad entry in directory #2: inode out of bounds - offset=0, inode=2, rec_len=12, name_len=1
total 0

oh ... lastly, if I definitly cannot get anything back, what do I have to do to get a /home directory put back on /dev/sdb3 ?
Like I said, right now, I can't even do an ls -l .

Last edited by cbarbot; 04-14-2004 at 11:56 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Swap space? jtsai256 Linux - Newbie 3 05-05-2004 01:42 PM
Swap Space Flossie Mandriva 5 03-12-2004 07:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration