LinuxQuestions.org
Visit Jeremy's Blog.
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 06-24-2005, 10:06 PM   #1
Blackthorns.Legacy
LQ Newbie
 
Registered: Jun 2005
Location: St. Charles, Ontario, Canada
Distribution: Slackware 10.1
Posts: 13

Rep: Reputation: 0
Formating a new partition


I'm a new slackware user, (new to linux in general actualy) I plan on learning linux by installing it, playing around with all the settings until I break it, and installing fresh to start again.

I was read somebody's post about setting up DHCP and I ended up starting my own DHCP server and causing a broadcast storm on my home network lol...

So now I couldn't figure out how to disable my DHCP server... so i'm playing around in root with lots of settings and some how I can't log into any X window system anymore... this doesn't really bother me that I need to reinstall linux (I've already done it a few times)

The problem is that this time I have files that I downloaded (Firefox, Samba, Java, ext.)

I launched CFDISK and made a new linux partition "/dev/hda6/" that I can keep my files on, but I can't figure out how to format the new partition and mount it, to store my files on it while I reinstall linux on "/dev/hda5/"...

Can anybody tell me the commands I use at the console to do this?
 
Old 06-24-2005, 10:20 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Re: Formating a new partition

if you want reiserfs:

# mkreiserfs /dev/hda6

if you want ext2:

# mke2fs /dev/hda6

for ext3:

# mke2fs -j /dev/hda6


for more info:
man mkreiserfs
man mke2fs
 
Old 06-24-2005, 10:27 PM   #3
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
ill start by answering your question. first you need to decide on the file system you want to use on this partition. reisersfs is better with smaller files, while ext. 2 is better with bigger files, ext. 3 is a journalized version of ext. 2 i usually use reisers eitherway, just cause i have had better luck with it. so you would, as root type:

mkreiserfs /dev/hda6

#or

mke2fs -j /dev/hda6 #(for ext. 3)

#or

mke2fs /dev/hda6




now proceeding on,, why dont you try to fix wha tyou mess up. that is how i learned linux. actaully i did it the way you are doing it, til i got more comfortable with it. i used to think they only way to fix it was to reinstall, but that is windows thinking. linux can easily be fixed. so if you ever want to tackle a problem, hit the forums with a description of the problem, and what you did to cause it.
 
Old 06-24-2005, 10:28 PM   #4
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
ha ha ha, synaptical beat me to it. ha ha.
 
Old 06-24-2005, 10:46 PM   #5
Blackthorns.Legacy
LQ Newbie
 
Registered: Jun 2005
Location: St. Charles, Ontario, Canada
Distribution: Slackware 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
edong23 : Well, I did try to undo the setting changes i made but i made so many that i dont know what I did to make X stop working, I didn't realy think i was changing things that would effect it, so i don't know where to start looking to fix it.

Ok, using both of your advice i got ext2 on /dev/hda6 , but i can't firure out how to read/write to it, do i need to mount it somehow?

Last edited by Blackthorns.Legacy; 06-24-2005 at 10:48 PM.
 
Old 06-24-2005, 10:53 PM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Quote:
Originally posted by Blackthorns.Legacy
edong23 : Well, I did try to undo the setting changes i made but i made so many that i dont know what I did to make X stop working, I didn't realy think i was changing things that would effect it, so i don't know where to start looking to fix it.

Ok, using both of your advice i got ext2 on /dev/hda6 , but i can't firure out how to read/write to it, do i need to mount it somehow?
yes, eg:

# cd /mnt
# mkdir hda6
# mount /dev/hda6 /mnt/hda6
 
Old 06-24-2005, 11:00 PM   #7
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
Quote:
do i need to mount it somehow?
yep, first you need to create a directory to mount it to:
Code:
mkdir /mnt/hda6
then you mount it with:
Code:
mount /dev/hda6 /mnt/hda6
note that you will probably need to be root to do one or both of the above commands.
to become root temporarily you can do
Code:
su
and then ctrl-D to become a normal user again.

for more information on mounting:
Code:
man mount
 
Old 06-24-2005, 11:06 PM   #8
Blackthorns.Legacy
LQ Newbie
 
Registered: Jun 2005
Location: St. Charles, Ontario, Canada
Distribution: Slackware 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
OH! ok, i'm starting to understand linux better
Thanks alot everybody
 
Old 06-24-2005, 11:28 PM   #9
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
cool... also you can add this to your /etc/fstab so that you can mount it with just something like

mount /mnt/hda6

or soemthing like that./ man it
 
  


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
formating linux partition inspectah Linux - Newbie 4 07-02-2005 10:07 AM
formating partition to reiserfs tintilin Linux - Software 1 11-22-2004 12:14 PM
partition formating, mounting im_ka Slackware 2 02-26-2004 09:40 AM
Formating a partition after install? njbrain Linux - Hardware 1 01-20-2004 04:59 PM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 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
Open Source Consulting | Domain Registration