LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2006, 08:38 AM   #1
benben_shen
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Distribution: Ubuntu / Debian
Posts: 26

Rep: Reputation: 15
How To Format An existing partition on the local harddisk


Hi Guys:

I have got a question here: I have use Ubuntu Live CD to boot up my PC, and I have mount the local harddisk partition F: to \mnt\drive2.

Is there anyway I can format it to FAT?

Thanks ha
 
Old 03-16-2006, 09:26 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you are running from live CD and you format one of your hard drive partitions, you will lose the data there.
How is it formatted now? eg Windows ntfs, FAT32, linux EXT....?

Have you tried mounting it?
 
Old 03-16-2006, 10:06 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
Hi!

You could use mke2fs to create filesystems, look at the manpage.
example (j=journalling):
#mke2fs -j /dev/hda3

BUT it will format your existing (real) partition. itīs not a kind of "virtual" partition, in consideration of the fact you booted a liveCD
 
Old 03-16-2006, 11:31 AM   #4
benben_shen
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Distribution: Ubuntu / Debian
Posts: 26

Original Poster
Rep: Reputation: 15
Well, I understand I will lose all the data, actually it is a linux partition, and I wanted to change it to FAT32. And currently I have no operation system on my harddisk, and to make things worse, I can't install a system onto the harddisk due to some reason. So I come to the point that I should use a Live CD to format that partition.

So may I know what should I do :P
 
Old 03-16-2006, 11:48 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Several things need to be aware

(1) In formatting a partition you should not mount it. The formatting should be done with a block device. Normal syntax to format partition hda1 in Fat32 is
Code:
mkdosfs -F32 /dev/hda1
(2) If you intend to install a Linux you need at least one partition created in native Linux Type 83. Also a swap partition Type 82 is also needed to complete a Linux installation. Thereafter you just instruct a Linux installer to install itself in the partition specified by you. Most Linux will not accept Fat32 partition for installation.

(3) There is no technical reason why a hard disk cannot accept an installation of an operating system unless you have a Sata disk and the chosen system does not support it unless a driver is available or the kernel has been compiled to accept the Sata disk.
 
  


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
How to change the char-set when mounting local harddisk benben_shen Linux - Software 0 03-12-2006 09:39 AM
How to format new harddisk need help Nawas111 Linux - Hardware 2 11-17-2004 06:24 PM
Format and mount problem - External USB harddisk darn dao Linux - Hardware 1 11-03-2004 03:40 AM
repartitioning harddisk with existing RH installation bluegrass Linux - Hardware 0 08-08-2003 07:16 PM
format harddisk problem andihp Linux - General 1 07-09-2003 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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