LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2007, 07:29 AM   #1
dumdum
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Question Need to format hd outside of linux


Hi all I'm trying to install DSL onto my hd for a legacy pc(32mb ram 2.5gb hd, you get the picture)

I've tried to format the hd using cfdisk on the bootable cd but it returns a "disk not found" error,even after mounting everything i can.I'm a tech support agent for windows but a complete linux noob.

Is there a bootable app that will let me format the hd to ext3 similar to windows boot environment or installing kubuntu and similar?Or could someone explain how to use cfdisk?! (I've tried cfdisk /dev/hda, cfdisk /dev/sda, cfdisk /dev/hd1 and cfdisk /dev/hd3 (because i can mount hd3)
 
Old 01-21-2007, 07:38 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
cfdisk is fine, but you really don't want to be screwing with a mounted disk. Try (as root)
Code:
fdisk -l
(lower case ell) - it will tell you what the disks are known as.
Make sure you are hitting the disk (i.e. for example cfdisk /dev/hda), not a partition (i.e. for example cfdisk /dev/hda1).
 
Old 01-21-2007, 08:08 AM   #3
dumdum
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the quick reply

Unfortunately the fdisk -1 wasn't recognised as a command. I've checked the DSL site and they recommend using the livecd to format the hard drive but it's not a windows executable.

At the moment I'm booting to a livecd and trying to format from the cd. As far as i know it uses a ramdisk as opposed to my physical hd so maybe the hard drive isn't directly accessible?

I think the easiest solution would be a bootable GUI formatter like partitionmagic but I don't know of any that include ext2/ext3.

Any further help would be greatly appreciated.DSL doesn't recognise my NIC(broadcom suck) so it may take my replies some time as I'm booting back and forth
 
Old 01-21-2007, 08:23 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
If you want a bootable formatter, you should look at the qparted livecd.

However, it seems you typed "fdisk -<one>" when it should've been "fdisk -l". That's "l" as in "live".
 
Old 01-24-2007, 07:16 AM   #5
jameson
Member
 
Registered: Oct 2005
Location: in my room
Distribution: slackware
Posts: 51

Rep: Reputation: 15
cfdisk (and fdisk) do not format anything for you. they are like the dos app fdisk, they create and alter partition tables. Once they are created then they can be formatted using the appropriate mkfs command (i.e. for ext2 mke2fs).

If your harddrive is on an ide interface it will most likely be /dev/hda, so you could try fdisk /dev/hda then press m for help (or l to list partitions on /dev/hda). If its a sata interface it may be /dev/sda instead, (you'll have to figure out the actual device to use. try looking in your bios set up utility and see if it tells you which interface the drive is on)

Once the partitions have been created then you can format them. before doing anything though you should read the man pages for fdisk (or cfdisk) and mkfs by typing into the console man fdisk/cfdisk/"any other command you want info on".

Make sure your harddisk isn't mounted first though, you can check what is mounted by typing df -h into the console.

Last edited by jameson; 01-24-2007 at 07:19 AM.
 
Old 01-24-2007, 12:12 PM   #6
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
Download the knoppix livecd and use the included qparted (gui version). It's a gui partitioning tool which supports ext3, vfat and ntfs. Knoppix will automount your drives if possible. What hardware are you using? SATA, IDE, PATA, SCSI, etc. You may need to configure BIOS to turn off modern emulation settings like AHCI, the support for some of them is somewhat spotty.
 
  


Reply

Tags
cfdisk, disk, drive, ext3, format, found, hard, hd


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
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 04:23 PM
About amiga format to linux format? 45pferde Linux - General 0 08-12-2001 07:06 PM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration