LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-29-2009, 06:55 PM   #1
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 41

Rep: Reputation: 17
how to format hard drive in ext4?


I'm formatting a hard drive for ubuntu 9.04 install, and I need to know which hex code to use to specify ext4. I did "l", but I can't make heads or tails out of the list.

As always, any help is greatly appreciated!

db
 
Old 08-29-2009, 07:05 PM   #2
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 41

Original Poster
Rep: Reputation: 17
Okay, I figured it out. Sometimes I amaze myself with my lack of ability to read....

LMAO!!!

db
 
Old 08-29-2009, 07:28 PM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
You may wish to mark your thread as solved from the Thread Tools menu so this doesn't unnecessarily draw people.
 
Old 08-29-2009, 09:38 PM   #4
iceflatline
LQ Newbie
 
Registered: Aug 2009
Distribution: many
Posts: 16

Rep: Reputation: 2
Quote:
Originally Posted by dynamiteboy View Post
Okay, I figured it out. Sometimes I amaze myself with my lack of ability to read....

LMAO!!!

db
You might also want to relay what your solution was so others can benefit from your knowledge.
 
Old 08-30-2009, 03:22 AM   #5
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 41

Original Poster
Rep: Reputation: 17
The solution wsa to read the directions and use my head for something other than a doorstop. Hence my previous comment. I don't know about y'all, but I make a sport of ragging on myself, so just imagine a healthy dose of sarcasm when I refer to me.

Anyhow, using command 'l' from within fdisk gives the table containing number codes for various file systems. It showed the native linux file system (83, I think, or maybe 84), so I used it. Then I was given the option of choosing specifically which version, and chose ext4.

My biggest problem is I am so used to Windows, where thinking will get you in trouble. So I'm having to learn a new mindset to make Ubuntu work. It's kinda nice, really...

On a brighter note, I was able to format my hard drive, and install Ubuntu, Apache, MySQL, PHP, NFS, and a couple of other goodies. The upshot of which is I can now build websites in Dreamweaver (about the only Windows app I can't quite give up yet) on my Vista machine, and it will save them to my public_html directory on my Ubuntu machine. I am lovin' it! So I can test/debug without having to FTP to a remote server anymore, and I don't have to muck around with moving files either. It's all maintained in a stable structure, all I gotta do is build webpages. YEEHAAA!!

db
 
Old 08-30-2009, 04:11 AM   #6
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
do a fdisk < your device name >

type n and your partition number when the partition is created press w to write it and press p again to verify it.

Once thats done to a partprobe < your device name > to update the kernel regarding the changes,then you can format it with mkfs.ext4 /dev/sda2 or what ever it is.
 
Old 01-28-2010, 11:16 AM   #7
jagsir
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by kdelover View Post
do a fdisk < your device name >

type n and your partition number when the partition is created press w to write it and press p again to verify it.

Once thats done to a partprobe < your device name > to update the kernel regarding the changes,then you can format it with mkfs.ext4 /dev/sda2 or what ever it is.
Remember mkfs,ext4 is very unforgiving, won't detect that specified partition is not ext4. will ruin your partition as soon as you hit the Enter key after the syntactically correct Command.

I just ruined my /ntfs partition, which is now unrecoverable as far as I know.



--
"Linux in a cute little penguin, will sit back and laugh at your stupidity, and give you a encouraging pat on back for your fights"
 
  


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
how to auto mount ext4 external hard drive (ubuntu jaunty) pexctt Linux - Hardware 1 01-15-2009 11:58 PM
Format hard drive uzerfrendly Linux - Hardware 9 02-24-2005 10:07 PM
format hard drive trackrat Linux - General 3 02-25-2004 10:40 PM
how to format Hard drive?? QuTaR Linux - Newbie 3 09-22-2003 11:23 PM


All times are GMT -5. The time now is 09:03 PM.

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