Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Somethings not quite right.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Brody2
n00b
n00b


Joined: 18 Jan 2006
Posts: 4

PostPosted: Wed Jan 18, 2006 3:32 am    Post subject: Somethings not quite right. Reply with quote

Hi:

I've started the install process of Gentoo.

I've partitioned off my harddrive into 2. Windows XP, and Gentoo.

I've tried fdisk-ing the partitions per the instructions, and a "fdisk /dev/hda2" looks as follows:

Device boot Start End Blocks Id System
/dev/hda2p1 * 1 63 31720+ 83 Linux
/dev/hda2p2 64 1056 500472 82 Linux swap/Solaris
/dev/hda2p3 1057 13451 6247080 83 Linux

My problem is when I try to apply a filesystem to a partition, i.e.:

mke2fs /dev/hda2p1

I get back the message
"Count not stat /dev/hda2p1 --- No such file or directory

The device apparently does not exist: did you specify it correctly?"


I'm confused?

Any help would be appreciated.

thanks,

Brody2
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2222
Location: Kentucky

PostPosted: Wed Jan 18, 2006 4:26 am    Post subject: Reply with quote

You must run fdisk on the drive -- in your case fdisk /dev/hda

You are running fdisk on partition 2 of that drive. I am supprosed you did not just get an error message when you tried to start fdisk that way.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Wed Jan 18, 2006 4:29 am    Post subject: Reply with quote

That looks like you are trying to partition a partition. That is not going to do what you think it is going to do.

You need to fdisk /dev/hda (not /dev/hda2) and put the first partition as a windows partition and then partition the rest of the disk into the number of partitions you want to use for gentoo. This assumes you will be using the xp boot manager to boot linux.

If you want to control things with grub, put the first partition (50 or so meg) as a boot partition and the second as xp and the rest as gentoo. Most likely you will need to use extended partition to get what you want.
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Wed Jan 18, 2006 4:33 am    Post subject: Reply with quote

Moriah wrote:
I am supprosed you did not just get an error message when you tried to start fdisk that way.


fdisk is surprisingly flexible in what you lets you do. Unlike the bios. :)
Back to top
View user's profile Send private message
Brody2
n00b
n00b


Joined: 18 Jan 2006
Posts: 4

PostPosted: Wed Jan 18, 2006 12:42 pm    Post subject: Reply with quote

My disk is already partitioned. I used partiionCommander, so can I skip the fdisk and filesystem steps?

Thanks,

Brody
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Wed Jan 18, 2006 1:09 pm    Post subject: Reply with quote

The Linux harddisk naming works this way:
/dev/hda first IDE controller, master
/dev/hdb first IDE controller, slave
/dev/hdc second IDE controller, master
...

/dev/hda1 first primary partition on /dev/hda
/dev/hda2 second primary partition on /dev/hda
...
/dev/hda5 first logical (inside an extended) partition on /dev/hda
...

So /dev/hda2p1 is not a valid name in linux
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Wed Jan 18, 2006 1:54 pm    Post subject: Re: Somethings not quite right. Reply with quote

Brody2 wrote:

I've tried fdisk-ing the partitions per the instructions, and a "fdisk /dev/hda2" looks as follows:

Device boot Start End Blocks Id System
/dev/hda2p1 * 1 63 31720+ 83 Linux
/dev/hda2p2 64 1056 500472 82 Linux swap/Solaris
/dev/hda2p3 1057 13451 6247080 83 Linux


If this statement is accurate, you have to start over with the partitioning.
Back to top
View user's profile Send private message
Brody2
n00b
n00b


Joined: 18 Jan 2006
Posts: 4

PostPosted: Wed Jan 18, 2006 3:15 pm    Post subject: Reply with quote

Quote:
If this statement is accurate, you have to start over with the partitioning.



So, the partitioning done by PartitionCommander is useless? I used this package because I want to dual boot.

If not, then what steps can I skip?
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Wed Jan 18, 2006 3:23 pm    Post subject: Reply with quote

I don't know much about partition commander. It may be how you used it and not the tool itself

If I were trying to setup a system like this, I would partition in the following fashion:

(The follow assumes you have deleted all partition first, so insert the appropriate commands to clean out old partitions)

fdisk /dev/hda
n
p
1
<RETURN> # actually hit the return, don't type '<RETURN>'
+50M
n
p
2
<RETURN>
+XXG # The XX here is the number of Gigs you want to use for windows
n
p
3
<RETURN>
+XXM # The XX here is the number of megabytes you want to use for swap
n
e
<RETURN>
<RETURN>
n
<RETURN>
+XXG # XX is the number of gigs to use for / on linux

Repeat the last 3 commands to create additional partitions for /users or whatever else you want (you can also just take all the space for /). Write the partition table when you are done.
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Thu Jan 19, 2006 11:52 am    Post subject: Reply with quote

Brody2 wrote:
So, the partitioning done by PartitionCommander is useless?

If you partitioned your disk incorrctly, then it's useless. If you need to shrink a Windows partition to make space for Linux, it's best to leave the space unparitioned and create the Linux partitions during the Linux install process. The Linux boot loaders (Grub or Lilo) can handle dual-booting without any additional software.
Back to top
View user's profile Send private message
Brody2
n00b
n00b


Joined: 18 Jan 2006
Posts: 4

PostPosted: Thu Jan 19, 2006 12:38 pm    Post subject: Reply with quote

Ok, I'll try that. I'll shrink the Windows partition, but I'll leave the rest as FREE space.

Thanks,

Brody
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum