Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > How to format a hard disk?

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 11-09-2005   #1 (permalink)
Linux Newbie
 
exploder's Avatar
 
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 166
How to format a hard disk?

I have installed a 2GB hard disk on my old celeron 333 which is formatted under NTFS. I want to format it under ReiserFS or Ext3 file systems. I have tried formatting using "cfdisk" but when I select [Delete] option in CFDISK & selecting the type of file system I want by entereing "t" it appears like it has done its job but when i "quit" and check again thru cfdisk /dev/hdb still I can see the new 2GB harddrive is still in NTFS!!!!
__________________
Registered Linux User#394486
exploder is offline  



Old 11-09-2005   #2 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,623
There is a write option somewhere in there. You can make all of your changes to the disk but you need to write them when you are done. If you don't write it, it will appear as if you made a bunch of changes when in fact you didn't.

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline  
Old 11-10-2005   #3 (permalink)
Just Joined!
 
Join Date: Sep 2005
Posts: 8
tellyousomeday is offline  
Old 11-10-2005   #4 (permalink)
Linux Newbie
 
exploder's Avatar
 
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 166
Cool I have formatted it with Linux file system. But I can't write anything into it. It says its a read only drive!!
__________________
Registered Linux User#394486
exploder is offline  
Old 11-10-2005   #5 (permalink)
Linux User
 
nalg0rath's Avatar
 
Join Date: Sep 2004
Location: Stockholm
Posts: 303
Send a message via AIM to nalg0rath Send a message via MSN to nalg0rath
Mount the partition manually with the following command:
Code:
# mount -o rw /dev/hdb1 /mnt/hdb1
or you can edit your /etc/fstab to mount it read-write at boot, the entry should look something like this:
Code:
/dev/hdb1 /mnt/hdb1 rw 1 1
just make sure that the fourth section in the etry contains 'rw' and not 'ro'.

If you use KDE there might be an option to rmount the drive as read/write if you right click on it but I'm not sure about that.
nalg0rath is offline  
Old 11-10-2005   #6 (permalink)
Linux Newbie
 
exploder's Avatar
 
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 166
mmm! even after mounting through "rw" permissions still it says "read only file system"!
I have updated the /etc/fstab so that it mounts automatically when the pc boots.

I am wondering the "Linux" file system in hdb1 which I have created through "cfdisk" is it properly recognised in my pc?

If it doesn't work I will try "parted" as advised by "tellyousomeday".

Thank you fellas for your lightning fast replies
__________________
Registered Linux User#394486
exploder is offline  
Old 11-10-2005   #7 (permalink)
Linux User
 
nalg0rath's Avatar
 
Join Date: Sep 2004
Location: Stockholm
Posts: 303
Send a message via AIM to nalg0rath Send a message via MSN to nalg0rath
Odd, what filesystem did you end up using for the partition? Ext2, Ext3, Reiser?
You dont have to use parted if you're not resizing partitions, it is uneccessarry, Parted is just a GUI frontend for the filesystem tools that are very easy to use from command line - and there is no difference in the result.

To format the partition with ext3:
Code:
# mke2fs -j /dev/hdb1
ext2:
Code:
# mke2fs /dev/hdb1
reiser:
Code:
# mkreiserfs /dev/hdb1
EDIT: It can also be useful to look what the output is of:
Code:
# mount -v -o rw /dev/hdb1 /mnt/hdb1
to see if you can see what is wrong.
nalg0rath is offline  
Old 11-10-2005   #8 (permalink)
Linux Newbie
 
exploder's Avatar
 
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 166
Thank you nalg0rath its working now...
__________________
Registered Linux User#394486
exploder is offline  
Old 05-27-2007   #9 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 1
Thanks nalg0rath. Seems to be working for me also (ubuntu 6.10 32bit). Partitioned with cfdisk, formatted in ext3 using mke2fs, and mounted. I also had to chmod the file system after it was mounted to get write access to it.
flasher702 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:38 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1