LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 06-25-2004, 06:13 AM   #1
gigglesnorter
Member
 
Registered: Apr 2004
Location: Harare - Zimbabwe
Distribution: Redhat 7.3
Posts: 35

Rep: Reputation: 15
Angry How do I simply format my 2nd drive


Simple question, I am sure. I have added a second harddrive to my redhat 7.3 and partioned it with fdisk. How do I now format the partions?

Thanks in advance,
Chris
 
Old 06-25-2004, 06:21 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Assuming your second hard drive is located at /dev/hdb...

Pick a filesystem type: ext2, ext3 reiser, etc.

Then, for each partition, execute (as root):
mkfs -t filesystem_type /dev/hdbX

Replace X with the partition number, and filesystem_type with whatever type of filesystem you want to use
 
Old 06-25-2004, 06:33 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Does he need to partition first? If yes, cfdisk is pretty easy to use.

 
Old 06-26-2004, 06:31 AM   #4
gigglesnorter
Member
 
Registered: Apr 2004
Location: Harare - Zimbabwe
Distribution: Redhat 7.3
Posts: 35

Original Poster
Rep: Reputation: 15
Damm stupid (me). I needed to reboot after fdisk, and it even told me.
 
Old 06-26-2004, 07:14 AM   #5
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Rep: Reputation: 15
hmmm, i did recently cfdisk & mke2fs without rebooting as far as i know you DO NOT need to reboot in linux after *fdisk (:
 
Old 06-26-2004, 07:22 AM   #6
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
It depends. I have noticed that if no partitions are mounted, no reboot needed. If there is a partition mounted, it wants/needs a reboot.

I haven't tested this 'theory' but I have noticed it before.

Later

 
Old 07-02-2004, 08:57 PM   #7
[42]Sanf0rd
Member
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Open Suse 10.2
Posts: 50

Rep: Reputation: 15
so, how do you use fdisk in Fedora Core 2?

that command (like several other "Linux standard commands" such as ifconfig) aren't built in.

I added an 80G hard drive after FC2 was already installed, and I"m trying to get it set up so I can set a share on it so that the other computer in my friend's office can write to it from his Windows machine.

However, every answer I've seen on this forum says to "fdisk" it. which I'm sure would be easy if there were an "fdisk" command in FC2.

I've done the "double-tab" trick to see if maybe there's something similar, but I can find nothing.


Any thoughts? answers? etc?
 
Old 07-02-2004, 09:03 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The command is probably not in your PATH -- do "su -" instead of "su" when you become root, as that gives you root's environment, whose PATH has commands like ifconfig and fdisk. You can always check by typing "locate <command name>" to see if it's installed, and access it via its full path (or add it to your own PATH variable).
 
Old 07-04-2004, 03:57 PM   #9
[42]Sanf0rd
Member
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Open Suse 10.2
Posts: 50

Rep: Reputation: 15
excellent! there it is!

thanks man!
 
Old 07-05-2004, 04:31 PM   #10
[42]Sanf0rd
Member
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Open Suse 10.2
Posts: 50

Rep: Reputation: 15
ok, so i got fdisk to work, and wrote the partition table. However, I still can't locate the drive in the linux system.

i'm trying to get this drive up and running so i can share it out on a network with a winxp computer so that it can write files to it. i hate asking for a "step by step", but if anyone can give me any pointer, I've almost pulled all of my hair out.
 
Old 07-05-2004, 05:34 PM   #11
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Rep: Reputation: 15
i can give you a pointer nothing more, im sure the pro's here will give you a much better advice.

any way you need to use
Code:
mke2fs
then create a mount point and use
Code:
mount

Last edited by hq4ever; 07-06-2004 at 04:43 AM.
 
Old 07-05-2004, 09:04 PM   #12
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
The command depends on what you want to make the file system as. If you a windoze type file system, that is a different command. If you want a Linux type if file system then that is another command. Here is a list:

mke2fs (Ext2), mke2fs -j (Ext3), mkreiserfs (ReiserFS). That is for Linux.

mkdosfs for DOS file system. There may be more. I'm not a big windoze fan.

Later

 
  


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 07:30 AM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 05:01 PM
2nd cd drive paulinimus Linux - Hardware 1 08-21-2004 12:43 AM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 03:38 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 02:50 PM


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