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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-29-2009, 07:55 PM
|
#1
|
Member
Registered: Aug 2009
Posts: 42
Rep:
|
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
|
|
|
08-29-2009, 08:05 PM
|
#2
|
Member
Registered: Aug 2009
Posts: 42
Original Poster
Rep:
|
Okay, I figured it out. Sometimes I amaze myself with my lack of ability to read....
LMAO!!!
db
|
|
|
08-29-2009, 08:28 PM
|
#3
|
Member
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374
Rep:
|
You may wish to mark your thread as solved from the Thread Tools menu so this doesn't unnecessarily draw people.
|
|
|
08-29-2009, 10:38 PM
|
#4
|
LQ Newbie
Registered: Aug 2009
Distribution: many
Posts: 16
Rep:
|
Quote:
Originally Posted by dynamiteboy
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.
|
|
|
08-30-2009, 04:22 AM
|
#5
|
Member
Registered: Aug 2009
Posts: 42
Original Poster
Rep:
|
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
|
|
|
08-30-2009, 05:11 AM
|
#6
|
Member
Registered: Aug 2009
Posts: 311
Rep:
|
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.
|
|
|
01-28-2010, 12:16 PM
|
#7
|
LQ Newbie
Registered: Jan 2010
Posts: 3
Rep:
|
Quote:
Originally Posted by kdelover
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"
|
|
|
All times are GMT -5. The time now is 02:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|