LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2004, 02:45 AM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Formatting in linux


I need to format generic /boot / and swap partitions to hda on an underpowered system currently running SmallLinux under a ramdisk. I'm doing this to prepare the computer for a completely-from-scratch linux system. What command do I use to format? I can install stuff temporarily if needed.
 
Old 06-15-2004, 03:00 AM   #2
indeterminate
Member
 
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
Well, use "fdisk" to setup linux partitions on the hard drive, and then "mke2fs" to format a partition with the ext2 file system. You can also add the -j option to mke2fs if you want it to be ext3. Definitely read the man pages for these commands or something first, though... they can make a mess.
 
Old 06-15-2004, 03:02 AM   #3
indeterminate
Member
 
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
Oh, right, and "mkswap" will format a partition for use as a swap partition, and "swapon" will activate it.
 
Old 06-15-2004, 03:04 AM   #4
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
-edit-

Hmmm ... that does not exist on my miniscule ramdisk. Any alternatives? Perhaps something I can just pop on my lapper? I can't compile anything - no gcc ...

Last edited by orange400; 06-15-2004 at 03:25 AM.
 
Old 06-15-2004, 03:38 AM   #5
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Aha! I was able to use mkswap and swapon, so suspiciously thinking, there couldn't be swap utilities without ext2 utils. So I did a find / -name mkswap and traced it to /bin. Then I looked through there and found mkfs.ext2. So I did a mkfs.ext2 /dev/hda1 and the same for hda2 - now I have an ext2 journaled file system! I got the swap working and activated too.

Onward! I'm off to install lilo and create my own homemade linux system! Thanks a lot for your help!
 
Old 06-15-2004, 03:50 AM   #6
indeterminate
Member
 
Registered: Oct 2003
Location: Virginia, US
Distribution: Debian, Ubuntu, Knoppix.
Posts: 76

Rep: Reputation: 17
heh, np. glad i could help.
good luck with that old laptop.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting ipod in linux? minm Linux - General 3 07-08-2005 10:08 AM
Linux but no formatting gibb89 Linux - General 6 05-21-2005 07:04 PM
Formatting my com for Linux rssguy Linux - Newbie 3 04-23-2005 04:58 AM
FORMattinG LinuX dzt Linux - Software 6 10-18-2003 01:18 AM
formatting linux fishdawg Linux - Newbie 6 08-23-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration