LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-18-2005, 05:19 PM   #1
Martin Strand
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Rep: Reputation: 0
mkswap harakiri! lol


Ok, I'm no expert, but this can't be good:

Code:
# more /etc/fstab 
/dev/ubd/0 / ext3 defaults 0 1
proc /proc proc defaults 0 0
# mkswap /dev/ubd/0
Setting up swapspace version 1, size = 21474832 kB
Being a newbie, I had no idea what I was doing. I now realize that I completely killed my system, since that was the only disk!
It's still up and running since most of it was in memory. Is there any way to fix this or is my system dead for all eternity?
 
Old 04-18-2005, 05:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
To the best of my knowledge mkswap does a very thorough
format by default, one with bad-sector check... maybe some
commercial tool can recover from it, but I don't think you'll
be lucky with anything that came with your distro.


Cheers,
Tink
 
Old 04-18-2005, 05:38 PM   #3
Martin Strand
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
ouch! lol
Glad I've got a full backup then, but it'll take me forever to upload 10GB to that server!
Thanks, Tink. I'll be more careful from now on.

Now that I have to ask for a reinstallation from my host, any recommendations for a distribution to run a minimalistic web server on a 500MHz/96MB/20GB server? I had debian until half an hour ago, is there any significant difference between the distros or are they pretty much the same?


Damn this sucks, I've got 1500 hits a day on that site, lol.
 
Old 04-18-2005, 06:50 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Glad you're not taking it TOO badly :}


In terms of "which distro"
Depends on what you're after, really ...

If easy maintenance and quick, well-tested upgrade
strategies is what you're after, stick with deb ... other
than that all distros will do the same things, some with
more secure and less chubby defaults than others.

debian is a good choice, personally I'd always go
with slackware ;} but wouldn't recommend it if you're
not a control-freak and need to know what's going on
on the machine in detail. With the hardware spex you
mentioned, and if you're not too eager to do a lot of
stripping down manually I'd stay clear of the so-called
user friendly bug contenders like RH, FC, MDK or SuSE,
their defaults suck :} in terms of performance and security
settings .. ["friendly" is not an option on a server ;}]


Cheers,
Tink

Last edited by Tinkster; 04-18-2005 at 06:51 PM.
 
Old 04-19-2005, 05:03 AM   #5
Martin Strand
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Na, in order to keep calm, one's gotta laugh at stuff like this. No need to get excited, it won't change anything.
I prefer to compile stuff on my own, but libraries and small apps may still come in packages. Perhaps slack would be better than deb then. Slack's got packages, right? "apt-get install " is just so damn simple.
And ok, I will stay away from the "get everything running in three clicks" distros
 
Old 04-19-2005, 02:59 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Slack's got packages, right? "apt-get install " is just so damn simple.
It comes with what I consider a pretty down-to-earth
collection of necessary things, and a few cherries
on top. There's a reason Slack is still delivered on
two CDs, if you don't need KDE and Gnome CD1 will
do ... apache, PHP and MySQL are part of the distro,
if that's what was on your server. Have a look at
http://www.slackware.com/getslack and browse through
the pre-fabbed packages Pat provides. If it's not
there than you have two choices a) compile from source
or b) try to find it on http://www.linuxpackages.net ...
My personal preference is source ;}
One note on Slacks package management: it doesn't
do ANY dependency checking (I consider that a benefit,
others will whine).



Cheers,
Tink
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/mkswap: Permission Denied Ikebo Fedora 3 08-17-2005 12:11 AM
LOL I got it BUT Global_Throttle Mandriva 1 08-04-2005 04:51 AM
lol Lithmov General 12 07-21-2004 11:56 AM
lol Gill Bates General 3 12-18-2003 09:39 AM
what does lol mean? nakkaya General 10 03-15-2003 03:44 AM


All times are GMT -5. The time now is 04:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration