LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-22-2006, 08:22 PM   #1
Dan8080
LQ Newbie
 
Registered: Jun 2006
Distribution: CentOS 4.3
Posts: 25

Rep: Reputation: 15
Erase windows + mount the 2nd hard drive.


Hello,

I have a server, it has two 80GB SATA hard drives. I started off using the first one, hosted a windows server on it. Recently I decided to switch to Linux, and so I installed it on my 2nd hard drive. It's going great,I migrated my content a while ago now and I love Linux - would not want to return to windows server!

My question is - can I completely erase windows off that first HD, and make the 80gb of space available to me in my linux? Exactly would I have to do? Because basically windows is sitting there now doing nothing.

Thanks for your time, and sorry if these questions sound newbish.


Last edited by Dan8080; 06-22-2006 at 08:24 PM.
 
Old 06-22-2006, 08:30 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
you would format the first harddrive and then mount it to your file system.

Basically

Fdisk /dev/hda (I presume because you said it was your first hard drive)
mke2fs /dev/hda1 - make ext2
tune2fs -j /dev/hda1 - makes it ext3
edit /etc/fstab and add

/dev/hda1 /mp3s ext3 defaults 1 1

Save it,

Assuming you are mounting it to the /mp3 folder. if you want to put it in another folder, make the folder and map it.

Reboot and it should be mounted ... just type in df and it will show you what is mounted and where
 
Old 06-22-2006, 11:46 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If they're SATA drives, they'll be /dev/sdx rather than /dev/hdx.

Last edited by Nylex; 06-22-2006 at 11:48 PM.
 
  


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
Cannot mount 2nd hard drive? M$ISBS Linux - Hardware 5 04-25-2006 05:35 AM
Mount Windows Hard drive in Linux burtongeek Linux - Newbie 26 03-28-2005 08:28 AM
cant erase hard drive Xentrix Linux - General 3 07-14-2004 09:22 AM
Erase Hard Drive from Rescue? mithras Linux - Newbie 6 12-11-2003 11:29 PM
How to erase hard drive . . . zthomasz Linux - General 2 07-30-2003 10:25 PM

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

All times are GMT -5. The time now is 06:34 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
Open Source Consulting | Domain Registration