LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-21-2005, 10:56 PM   #1
uzerfrendly
LQ Newbie
 
Registered: Dec 2004
Location: Memphis
Distribution: Mandrakelinux
Posts: 12

Rep: Reputation: 0
Format hard drive


I need to know how to format my hard drive on Mandrake Linux. Appreciate the help.
 
Old 02-21-2005, 11:06 PM   #2
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
A general question deserves a general answer:

Code:
man mkfs
On a serious note something like mkfs -t ext3 /dev/hda2 should do the trick.
 
Old 02-21-2005, 11:20 PM   #3
uzerfrendly
LQ Newbie
 
Registered: Dec 2004
Location: Memphis
Distribution: Mandrakelinux
Posts: 12

Original Poster
Rep: Reputation: 0
Yeah I keep forgetting theres not a big red button like in windows to do anything. this is the message i got when i entered that command.

Code:
mke2fs 1.34 (25-Jul-2003)
/dev/hda2: Invalid argument passed to ext2 library while setting up superblock
*edit*
Would this work?
http://linux.tucows.com/preview/326423.html

Last edited by uzerfrendly; 02-21-2005 at 11:27 PM.
 
Old 02-22-2005, 10:05 AM   #4
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
You don't need any special tools---you already have everything you need. So, what you do is this:

1. df -h (this will list all mounted drives, take note of the drive you want, e.g., /dev/hdb2)
2. Now, just mkfs -t ext3 /dev/hdb2

That's it. I don't remember if you have to unmount the drive first, so if it doesn't work try:

umount /dev/hdb2

If you want ResierFS, then you have to have some reiser tools installed (at least I had to install some on my Debian box).

Edit: If you are trying to format the drive that Linux resides on, then you could do the above after booting up a live CD like Knoppix.

Last edited by Optimistic; 02-22-2005 at 10:07 AM.
 
Old 02-23-2005, 05:09 PM   #5
uzerfrendly
LQ Newbie
 
Registered: Dec 2004
Location: Memphis
Distribution: Mandrakelinux
Posts: 12

Original Poster
Rep: Reputation: 0
Ok I did that using the Move! cd that came with Mandrake and I did something but it doesn't seem formatted. It still opens up like it is going to start linux and then gives me this meesage at the end: "Kernel panic: No init found. Try passing init= option to kernel." I am trying to put windows back on, where do i go from here?
 
Old 02-23-2005, 06:12 PM   #6
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
If you want to put Windows back on just put in the Windows install CD and follow the instructions--you shouldn't have to format anything as Windows will do it for you.
 
Old 02-23-2005, 06:18 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by uzerfrendly
Ok I did that using the Move! cd that came with Mandrake and I did something but it doesn't seem formatted. It still opens up like it is going to start linux and then gives me this meesage at the end: "Kernel panic: No init found. Try passing init= option to kernel." I am trying to put windows back on, where do i go from here?
Looks to me like you've only formatted one partition...probably the root partition. I think you've left /boot intact which is why the kernel is found. Your bootloader (grub/lilo) would be unaffected as it isn't on a normal part of the harddisk, it's on the master boot record which isn't affected by a format.
 
Old 02-24-2005, 11:12 AM   #8
uzerfrendly
LQ Newbie
 
Registered: Dec 2004
Location: Memphis
Distribution: Mandrakelinux
Posts: 12

Original Poster
Rep: Reputation: 0
I tried putting in the windows disk but it didn't open it up automatically.

Komakino, how do I get rid of /boot? If I can't format the MBR then how do I alter it?
 
Old 02-24-2005, 11:36 AM   #9
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
If the CD did not boot, then either (1) the disk isn't bootable or (2) your Bios settings need to be changed. To change the Bios hit F2 or whatever it says to enter Setup when you first start the computer then look for a Boot sequence section make it something like Floppy, then CD, then Hard Disk. That way you will try to boot from floppy first, if there is no floppy, then you will try to boot from the CD rom, and as a last resort you will boot from the MBR on the hard disk.
 
Old 02-24-2005, 10:07 PM   #10
uzerfrendly
LQ Newbie
 
Registered: Dec 2004
Location: Memphis
Distribution: Mandrakelinux
Posts: 12

Original Poster
Rep: Reputation: 0
got it. appreciate it guys
 
  


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 06:30 AM
format hard drive mav69_1999 Linux - Newbie 5 07-08-2004 04:53 PM
Can't format hard drive aisphording Linux - Hardware 5 06-14-2004 04:02 PM
format hard drive trackrat Linux - General 3 02-25-2004 10:40 PM
how to format Hard drive?? QuTaR Linux - Newbie 3 09-22-2003 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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