URN Logo
UNIX Resources » Linux » Linux Forum » Miscellaneous » Page.20 » Can I Format A Certain Partition...
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Can I Format A Certain Partition...
Subject: Can I Format A Certain Partition...
Author: jetfire    Posted: 2005-01-31 18:01:35    Length: 281 byte(s)
[Original] [Print] [Top]
The computer I was given has 2 Linux OS's installed, each on its own partition with a seperate swap partition. What I want to do is wipe one out, but leave the partition in place so I can build a new system there. Is that possible, and/or would I even need to do such a thing?
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: luvr    Posted: 2005-01-31 18:40:05    Length: 640 byte(s)
[Original] [Print] [Top]
Yes, that's perfectly possible - and a pretty common operation at that.
If your disk is properly partitioned (so you won't want to resize any partitions), then just run the appropriate formatting tool to create a new, empty file system on it - e.g., to create a new ext2 file system, under Linux do:
CODE
mke2fs /dev/hd<x><y>
(where, obviously, <x> represents the disk and <y> stands for the partition number.
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: jetfire    Posted: 2005-02-03 14:49:19    Length: 402 byte(s)
[Original] [Print] [Top]
Thanks for the suggestion. However, I tried it out, and can into problems:

<prompt>: mke2fs /dev/hda3
bash: mke2fs: command not found

I copied and pasted mke2fs into a "man" command, and the manual page came up just fine, so the problem isn't a simple type-o. But when I try to execute the command,  it's always not found. What am I doing wrong?
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: astrosapiens    Posted: 2005-02-03 15:32:07    Length: 304 byte(s)
[Original] [Print] [Top]
Try

CODE
whereis mke2fs


This will show it if it is somewhere in the system. Maybe it is not in the PATH.

a
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: jetfire    Posted: 2005-02-03 15:48:08    Length: 144 byte(s)
[Original] [Print] [Top]
Okay, I tried that, and got the following...

<prompt>: whereis mke2fs
mke2fs /sbin/mke2fs /usr/share/man/man8/mke2fs.8.gz
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: astrosapiens    Posted: 2005-02-03 21:27:51    Length: 245 byte(s)
[Original] [Print] [Top]
Try typing the whole path of the command next time.

CODE
/sbin/mke2fs
[Original] [Print] [Top]
Subject: Can I Format A Certain Partition...
Author: tuxologue    Posted: 2005-02-13 17:03:35    Length: 446 byte(s)
[Original] [Print] [Top]
QUOTE (jetfire @ Feb 3 2005, 02:49 PM)
<prompt>: mke2fs /dev/hda3
bash: mke2fs: command not found
 

 Be sure to be logged in as root since this is the only user able to create and / or modify partitions.
----
All work and no play makes Jack a dull boy.
[Original] [Print] [Top]
« Previous thread
Kde Keyboard Tool
Miscellaneous
Page. 20
Next thread »
Using Tar - Strange Results
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:00:39, cost 0.045982122421265 ms.