LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2003, 07:25 AM   #1
ianunderwood
Member
 
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68

Rep: Reputation: 15
formatting hda


Hi. I have two hds, hda and hdd. *hdd* contains linux. hda used to contain windows but I've since deleted it (or as much of it as it would let me delete). Now I want to re-format this drive but first I have a number of questions. If I want to use this as a linux data drive, presumably it should be formatted as ext3; how do I do this? More importantly, if I format the drive, will it also remove the flags (if that's the right term) and hence stop the computer from booting properly? If so, how do I replace them? When I run $ parted /dev/hda print, I get

Disk geometry for /dev/hda: 0.000-4103.920 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 4097.460 primary fat32 boot, lba
Information: Don't forget to update /etc/fstab, if necessary.

Don't know if that is useful information but thought I'd include it, just in case.

Ian
 
Old 05-10-2003, 07:38 AM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
you can use fdisk to format the drive. after that you can make a linux filesystem and then mount the drive as you like.

/etc/fstab is used to mount the partitions at boot time. so when you change the partitions you need to update it so that linux doesnt try to mount the partitions with the wrong info
 
Old 05-10-2003, 08:29 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,522

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Use cfdisk of fdisk to change hda's filesystem type from FAT32 to linux ext2. Then to format to ext2:
mke2fs /dev/hda
To convert to ext3
tune2fs -j /dev/hda
 
Old 05-10-2003, 09:10 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I would zero out the drive first as mkfs sometimes can leave Windows stuff that can do some strange things.

dd if=/dev/zero of=/dev/hda

Check your typing before pressing enter!!!!!!!!!

Now, you have a clean drive full of zeros and you can partition/format as you wish.
 
Old 05-10-2003, 09:57 AM   #5
ianunderwood
Member
 
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68

Original Poster
Rep: Reputation: 15
Cheers eveyone for the suggestions. I would zero out the drive but I've already rammed it virtually full of data. Perhaps that amounts to the same thing??

Best, Ian
 
  


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
hda name mrmo000 SUSE / openSUSE 3 10-11-2005 07:11 AM
Reinstall lilo to hda, using hda lilo.conf tomjermy Linux - General 1 03-16-2005 05:27 PM
remounting hda? KenHorse Linux - Software 2 12-31-2004 09:35 AM
difference between hda and hda@ saurav_gohain Linux - General 1 07-08-2003 02:06 AM
Hda? reverand_13 Linux - Software 2 01-30-2002 12:43 PM


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