LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2011, 11:17 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Format and Build File System on a Partition


I'm feeling really, really stupid -- I cannot remember (and I can't seem to find) how to format a drive partition (or, for that matter, a second drive that I want to add later)! Yikes!

I have left-over free space on a hard drive, unformatted. Now I want to use that space and I can't recall what utility to use to format the blasted thing so I can run mkfs -t ext4 (and, maybe, mklost+found while I'm at it. I've already used cfdisk to add that space as sda10, written the partition table, done all that, have the entry in /etc/fstab (commented-out, of course).

Would some kind soul please give me a kick in the right direction?
 
Old 03-19-2011, 11:28 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
So, "mkfs -t ext4 /dev/sda10" doesn't work?
 
1 members found this post helpful.
Old 03-19-2011, 12:56 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by Richard Cranium View Post
So, "mkfs -t ext4 /dev/sda10" doesn't work?
Well -- duh! -- it did. And golly-gee, lost+found was sitting there, too.

Cripes, I hate when I miss stuff -- been a lot of years since I last fiddled with a drive (the setup program does a nice job of fiddling, so...). Used to have to format the things, partition 'em, build file systems, yadda, yadda. So drag me kicking and screaming into the 21st century, eh?

Thank you.
 
Old 03-19-2011, 01:27 PM   #4
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
If you want to use a graphical tool - 'gparted', from SlackBuilds.
 
  


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
System Call (not bash command) to format Linux partition raj010 Linux - Newbie 4 06-17-2011 08:26 PM
Format and entire device with file system exvor Linux - General 1 08-08-2010 10:40 PM
what is the best file system for formating to format HD ? h@wk Linux - Hardware 11 04-30-2008 03:57 PM
How to format freespace to fat32 file system pyschomike15 Linux - General 4 07-20-2003 11:56 PM
Format ext3 file system? mikeshn Linux - General 5 11-03-2002 12:37 PM

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

All times are GMT -5. The time now is 10:54 PM.

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