LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-24-2004, 08:59 AM   #1
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Rep: Reputation: 15
Replacing Windows with Slackware.


I installed Slackware some time ago but kept Windows just to be on the safe side.
Now I want to get rid of Windows and run Slackware only.

I have three hard drives.
One with Windows, which is the one I want Slack on.
One with Slack, which I want empty.
And the third one is the one where I've put all important files I want to save.

Can I delete everything on the two first through the setup (when I restart with the Slack cd in) or do I have to do this some other way? 'Cause when I'm using Windows I can't access the hard drive with Slack. It doesn't even show up.
So, I'm not really sure how to get started so it'd be nice if someone could explain how to get those harddrives clean for my Slack installation.
 
Old 02-24-2004, 09:24 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If you want to do a new install. Just format the first 2 had drives and install the OS on the first one.

So when you fdisk it during the install just fdisk /dev/hda and /dev/hdb. Then when yu get to tht part in the install where you pick a mount point and partition type just format the first two drives. If the third had drive is a FAT, FAT32 or NTFS you will need to mount this after you do the install.

I hope this makes sense to you.
 
Old 02-25-2004, 01:16 PM   #3
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
Thanks.

When I start setup and choose "add swap" I get this message that I haven't created a swap partition with fdisk. I exit setup and do the following:

fdisk /dev/hda
mkswap -c /dev/hda2
swapon /dev/hda2

I went back into setup and it still tells me that I haven't made a swap partition with fdisk.


Also, I'm going to use a harddrive with 8.4 gigabytes as my main disk. That's where I'm planning on having everything. I also have one that's 10 gigabytes. How do you think I should use these two? Where should I have swap? Where should I have /home? Should I make any more (or less) partitions or will that just mean more work?
 
Old 02-25-2004, 01:35 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Before you leave fdisk you need to make the partition that you made as a linux swap patition. After you make the partition with the n command, you need to issue the t command to set the type. I can't rember if the type nmber is 82 or 83 (I think 82). Once you have done this issue the p command to print your partition table.

If this is a workstation set up, I would just make a / and swap partition. On the 8.4 gig drive. Then use the 10 gig as a backup drive or mount it as /home.

If this is a server i would suggest something like this as a baseline. Though it depends on what you are using it for and the ammount of traffic it will see.
/ = 500mb
swap = 512mb (depending on the ram)
/usr = 2gb
/var = 500mb
/tmp = 300mb to 500mb
/home = the rest of the drive
 
Old 02-25-2004, 02:21 PM   #5
bhooder
LQ Newbie
 
Registered: Feb 2004
Location: Pittsburgh, Pa
Distribution: Slackware 9.1
Posts: 10

Rep: Reputation: 0
The first thing you should do when you boot the slackware installation
and logon as root is to type

fdisk -l
This will list what drives and partitions were recognized by
slackware - (not all devices are automatically recognized -I found that
out when I installed slackware - so check on far right of listing to see)
And another thing is with fdisk you have to delete any partitions that
you have already created before you can define new ones so you may
need to delete current partitions first ( only the ones you need to redefine
of course)After deleting don't forget to use the w option to write the changes or your changes will not be recognized.
To delete partitions type:
fdisk /dev/hda
then type d
then type partiton number for deletion
then type w to write the changes to disk
Do this exact same thing for your other partions you want to delete

This description assumes that your first disk has no partitions on it
1.Type fdisk /dev/hda then enter
2.Type n then enter (for new)
3.Type p then enter (for primary partiton)
4:Type 1 then enter (for 1st partiton)
5:Now this next sizing step is up to you -
Screen will look like this:
Partition number (1-4): 1
First cylinder(1- somenumber, default 1) -- Just hit enter to accept default
Last cylinder or +size or +size --- Choose size for example +64M
Hit enter
Then type t and enter ---- for type of partition
Then type partition number and enter --- same as number of partition you just created - 1
Then type 82 --- This is code for swap partitiion in Linux
Type enter
Then type w --- This writes changes to disk
At prompt type fdisk -l to see if your swap partiton is there.
Of course you will probably want to create your regular Linux partition
to so setup sees that also
As long as the swap partiton is present then it should show up for
mounting in setup
I know this is long explanation but I try to be perfectly clear when I attempt to help someone
Please let me know if this helped
Email: Wiley1@joimail.com
HdrCyt1@aol.com
 
Old 02-25-2004, 04:47 PM   #6
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
Thanks alot to both of you.
I'm installing it right now and hopefully things will go smooth from now on
 
Old 02-25-2004, 05:53 PM   #7
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
I skipped installing lilo and now I can't seem to start Slackware, oh well.
I remembered that I had the same problem the last time I installed Slack (only that time I didn't install on MBR) so I tried some of the stuff people told me to do then.

mount -t ext3 /dev/hda /disk (I also tried /dev/hda1)

But then it tells me that "disk" does not exist (or something like that).
Typing lilo, liloconf, liloconfig doesn't do anything at all.

How do I install lilo now that I was foolish enough not to do it in the first place?
 
Old 02-25-2004, 06:17 PM   #8
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
I read somewhere that I should have disc 1 and type "linux rescue" at "boot:" but it says something about reiserfs (I use ext3) and then it just stops and makes the caps lock and scroll lock lights blink.
 
Old 02-25-2004, 07:21 PM   #9
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Boot to CD 2. At the prompt type:

bare.i root=/dev/hda1

This worked on one of my PCs.
 
Old 02-26-2004, 09:10 AM   #10
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
That worked, I can use Slack however I still can't seem to install lilo.
I tried typing "lilo" but nothing happens.
 
Old 02-26-2004, 11:31 AM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If you run pkgtool it will let you install lilo. Then you'll need to edit your /etc/lilo.conf file. Once it is installed and editied you need to run lilo. I have never installed lilo this way, so you might want to read up on it a little and make sure you don't have to do anything else.
 
Old 02-26-2004, 11:43 AM   #12
NomDeGuerre
Member
 
Registered: Oct 2003
Posts: 136

Original Poster
Rep: Reputation: 15
Seems a bit tricky. I think I'll just reinstall everything.
Got problems with connecting to internet (http://www.linuxquestions.org/questi...hreadid=150740) too so maybe it's just as good.

Last edited by NomDeGuerre; 02-26-2004 at 11:47 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Distro for Replacing Windows Server kitek Linux - Distributions 5 10-15-2005 04:49 PM
Need help replacing Windows XP on my comp firefork Linux - Newbie 7 12-03-2004 06:36 PM
Replacing KDE 3.1 with windows Name_Pending General 11 02-11-2004 11:12 PM
Replacing a windows nt server??? mrnikeswsh Linux - Networking 6 12-04-2003 06:01 PM
Replacing Windows AND Novell? westdf Linux - Software 5 05-14-2003 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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