Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
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.
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?
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
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70
Rep:
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.