LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-28-2006, 11:09 PM   #1
tkt
Member
 
Registered: Apr 2005
Posts: 37

Rep: Reputation: 15
how to utilise a new harddisk


Hi,

I have just inserted another harddisk, but am wondering how should I use that as a new partition in my FC2. What are the steps that should be performed to detect the new partition and use that in my FC2?

Thanks.
 
Old 04-29-2006, 12:38 AM   #2
tells
Member
 
Registered: Jun 2003
Location: Peoria, IL
Distribution: Ubuntu (home) / RHEL (work)
Posts: 65

Rep: Reputation: 15
Create a new partition table with fdisk.
Format the partitions with mkfs.
Mount partitions with mount.
 
Old 04-29-2006, 12:40 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Read some man pages like; man fdisk or cfdisk to partition it, format it with the proper commands which depends on the file system you plan to use, create a mount point, mount it, put some data on it.

Of course you can post what file system you want to use and I'll try to find the command for you.

That get you started?

 
Old 05-01-2006, 09:13 AM   #4
tkt
Member
 
Registered: Apr 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thanks. I have created a ext3 partition using third party software. However, I couldn't mount that. I used "mount -t ext3 /dev/hda4 /mounting point" to mount, but it says wrong fs type. I used fdisk -l to check the partition, and it just indicated as Extended for the ext3 filesystem created. Anyway to use that partition?

Thanks.
 
Old 05-01-2006, 09:00 PM   #5
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 31
you changed it from /mounting point to /mnt/hda4 i would hope.
 
Old 05-01-2006, 09:09 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by tamoneya
you changed it from /mounting point to /mnt/hda4 i would hope.
Why? You can call a mount point anything as long as it doesn't clash with any existing directories. I'm not comfortable with spaces in directory names, but it shouldn't really matter.
 
Old 05-01-2006, 09:12 PM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by tkt
I used fdisk -l to check the partition, and it just indicated as Extended for the ext3 filesystem created. Anyway to use that partition?
Not in its current state. 'Extended' partitions are a sort of 'container' for logical partitions. You have two options:

1. Delete the extended partition and create new primary partition, or

2. Create a logical partition inside your extended partition.

Then you'll be able to properly format & use it.
 
Old 05-01-2006, 09:15 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
You can not mount an extended partition. In a nutshell an extended partition is a container for logical partitions which have an ID >=5. What 3rd party software did you use to create the partition? A linux filesystem will have a partition ID of 83 or maybe 8e for LVM (not including swap).
Post the output of fdisk -l.
 
Old 05-01-2006, 10:16 PM   #9
tkt
Member
 
Registered: Apr 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the reply. The mount command that I used was actually mount -t ext3 /dev/hda4 /mnt/hda4 (but not mounting point). I missed out the bracket to indicate that it's just a mounting point and can be anything.

From fdisk -l, it shows
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2342 18812083+ 7 HPFS/NTFS
/dev/hda2 2343 2355 104422+ 83 Linux
/dev/hda3 2356 5860 28153911+ 83 Linux
/dev/hda4 5861 7296 11534670 5 Extended
/dev/hda5 5861 5990 1044193+ 82 Linux swap
/dev/hda6 5991 7296 10490413+ 83 Linux

I think /dev/hda4 is the newly created partition using Acronis Diskdirector.

What command should I use to create a logical partition in hda4?
 
Old 05-01-2006, 10:33 PM   #10
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Since you are new at this, you did do a

Code:
mkdir /mnt/hda4/
for it to mount to right? Just thought I would ask and make sure.

Later

 
Old 05-01-2006, 11:01 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,445
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by tkt
What command should I use to create a logical partition in hda4?
You already have one. Actually, there are two - hda5 and hda6.

You should format hda6 and then mount it.

hda5 is Linux swap.
 
Old 05-01-2006, 11:46 PM   #12
num_one
LQ Newbie
 
Registered: Apr 2006
Posts: 19

Rep: Reputation: 0
mke2fs /dev/hda6
e2fsck /dev/hda6 -f
dumpe2fs -h /dev/hda6
(OR)
tune2fs /dev/hda6 <<options>> to tune your new file system, for ex. you can give it a Label
mkdir /mnt/hda_6
mount /dev/hda6 /mnt/hda_6
cd /mnt/hda_6
pwd
touch AnyFileName
ls --fu
 
Old 05-02-2006, 01:34 AM   #13
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
Quote:
Originally Posted by tkt
I have just inserted another harddisk, but am wondering how should I use that as a new partition in my FC2. What are the steps that should be performed to detect the new partition and use that in my FC2?Thanks.
From reading through the subsequent posts you seem to be using just one hard disk /dev/hda so I am a little confused, have you just copied your other partitions onto the new hard disk or is it something else?
 
Old 05-02-2006, 01:52 AM   #14
phoenix49
Member
 
Registered: Jun 2005
Location: Azerbaijan/Baku
Distribution: Fedora Core 6 "Zod"
Posts: 179

Rep: Reputation: 30
Your new partition should be /dev/hdb. Use Gparted, it has nice interface, and from there u can setup mount points.
 
Old 05-02-2006, 03:36 AM   #15
tkt
Member
 
Registered: Apr 2005
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks. It's another partition from Windows which I free up for linux. Managed to format using mkfs.ext3 and editted /etc/fstab to create automatic mounting. It's working already.
 
  


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
2 harddisk, now what? greythorne Mandriva 4 01-10-2005 08:28 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
Allowing Slackware to utilise ICS PureLoneWolf Linux - Networking 1 09-08-2003 12:04 AM
How best to utilise my new 120GB Hard Disk? furrie Linux - Hardware 1 08-12-2002 05:56 PM
Harddisk. chuck77 Linux - General 3 12-13-2001 05:02 AM

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

All times are GMT -5. The time now is 02:33 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