LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-16-2006, 11:46 AM   #1
minimole
LQ Newbie
 
Registered: Oct 2006
Location: East Sussex
Distribution: debian
Posts: 12

Rep: Reputation: 0
mkfs and cfdisk


I have a bit of an odd question. during my migration to linux which i have basicily stumbled through, i had to change my hard drives over from ntfs to ext3. i wanted ext3 because should i ever have to use windows i can ( with a handy little driver which i have forgotten the name of lol). to do this i mearly typed mkfs.ext3 /dev/hdb . this is working fine but the problem is that the drive reports itself as no filesystem and just free space yet i have 180gb of stuff on there which i can acess read and write no problems. i have since become aware that i should used cfdisk to write the partition. i am not overly concerned about loosing data as i will back up before i do but really i would like to know the proper proceder to partition and format a drive the way i have done it on the other hard drive is to firstly do

cfdisk

and then

mkfs.ext3 /dev/hdc1

is this correct? and what do you think i should do regarding the other drive?

Thanks in advance
 
Old 10-16-2006, 12:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can't make a filesystem on a raw block device like a drive, you need to put it inside a partition. or at least that's what the convetions say. once you've backed up the data, my way would be to do this...

as root run "fdisk /dev/hdb"
delete the partition table, if it even exists.
create a new partition, primary number 1, and make it full size
set the type to linux ext2 / ext3 (code 83 i think)
write the changes and exist
run "mke2fs -j /dev/hdb1" to create the ext3 partition correctly.
use.
 
Old 10-16-2006, 03:58 PM   #3
minimole
LQ Newbie
 
Registered: Oct 2006
Location: East Sussex
Distribution: debian
Posts: 12

Original Poster
Rep: Reputation: 0
thanks for that.

I was aware that you need partitions but when it was just working i had (stupidly) assumed that it had already partitioned it lol. o well learn from your mistakes i guess .

thanks again
 
  


Reply



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
mkfs blackzone Linux - Newbie 1 01-06-2005 11:52 PM
error using mkfs planis Linux - General 1 07-05-2004 04:26 PM
mkfs problem kaltag Linux - General 1 01-26-2004 09:27 PM
mkfs bmike1 Linux - Software 1 08-06-2003 01:30 AM
mkfs help SticklerThe1st Linux - Software 3 01-01-2003 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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