Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Formating Drive for Gentoo Install [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Tue Mar 22, 2005 5:42 pm    Post subject: Formating Drive for Gentoo Install [solved] Reply with quote

I have an old PC that I wanted to install Gentoo on and learn how to use it. It has a 4 gig hard drive that used to have an installation of Win95. I have the Universal LiveCD. After I boot up, I can't figure out how to format the drive so that I can erase Win95 and whatever else was on there. I've read through parts of the handbook on preparing the drive and I've also tried searching for the forums for the answer with no luck. Can someone please help me out?

Last edited by Danger Mouse on Wed Mar 23, 2005 3:34 am; edited 1 time in total
Back to top
View user's profile Send private message
D2T
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2005
Posts: 96
Location: Behind You

PostPosted: Tue Mar 22, 2005 5:50 pm    Post subject: Reply with quote

Quote:
I've read through parts of the handbook on preparing the drive and I've also tried searching for the forums for the answer with no luck.


Exactly at what points are you having no luck? Trouble using fdisk? More information is needed as to where your installation attempts are derailing. Any error messages? At what particular step in "4. Preparing the Disks" do things not go the way the guide say they're supposed to?
Back to top
View user's profile Send private message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Tue Mar 22, 2005 5:58 pm    Post subject: Reply with quote

Well, I'm going through the steps and I setup the first partion like the hand book says with 32 megs, then the swap file with 512 megs. When I set up the last partion it only has 10 megs left. I'm assuming that's because Win95 is on the drive with whatever else was loaded on there taking up all the space. What I'm trying to figure out is what do I need to type in there to format the whole drive so nothing is on there.
Back to top
View user's profile Send private message
D2T
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2005
Posts: 96
Location: Behind You

PostPosted: Tue Mar 22, 2005 6:12 pm    Post subject: Reply with quote

Code:
fdisk /dev/*your drive*


then

Code:
p <enter>


Take note of what partition number is the windows partition

Then use

Code:
d <enter>


to delete. You may also want to

Code:
w <enter>
q <enter>


to save the partition table and quit fdisk. Not sure if it's necessary, but can't hurt. Then reload fdisk and try to remake your linux partition.

Note: if you still have problems try to copy/paste your 'p' output from fdisk, if possible.
Back to top
View user's profile Send private message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Tue Mar 22, 2005 6:26 pm    Post subject: Reply with quote

Thanks, I'll try this later when I get home.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Mar 22, 2005 7:08 pm    Post subject: Reply with quote

once you've entered the fdisk program and you have the fdisk prompt that says "Command (m for help)", it would be a good idea to type "m" so that you could see what the available commands are. write them down for reference.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Tue Mar 22, 2005 8:39 pm    Post subject: Reply with quote

Bob P wrote:
once you've entered the fdisk program and you have the fdisk prompt that says "Command (m for help)", it would be a good idea to type "m" so that you could see what the available commands are.


That much I did do.
Back to top
View user's profile Send private message
masonm
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 78
Location: Plant City, FL

PostPosted: Wed Mar 23, 2005 3:02 am    Post subject: Reply with quote

Or use cfdisk which is somewhat easier to use for a newbie.
_________________
MasonM


Linux: because a PC is a terrible thing to waste.

Registered Linux User # 382617
Back to top
View user's profile Send private message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Wed Mar 23, 2005 3:07 am    Post subject: Reply with quote

Ok, here is what I did. I did fdisk -l and it showed that I had a /dev/hdc. Then I did fdisk /dev/hdc and then did d for delete partition and w for write. That got rid of the Win95.

What I'm not sure of is that in the hand book it says to use fdisk /dev/hda. When I did that it tells me the following:
Quote:

You will not be able to write the partition table.
Note: sector size is 2048 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
unitl you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will corrected by w(rite)


I'm guessing that I should be using /dev/hdc for everything where the handbook says to use /dev/hda. Is this correct?
Back to top
View user's profile Send private message
p-hi
n00b
n00b


Joined: 06 Dec 2004
Posts: 61
Location: Canada

PostPosted: Wed Mar 23, 2005 3:19 am    Post subject: Reply with quote

Yes, the /dev/hd? depends on how the hard drives are set-up.
Your hard drive is probably connected to the 2nd IDE slot.
Back to top
View user's profile Send private message
Danger Mouse
n00b
n00b


Joined: 22 Mar 2005
Posts: 6

PostPosted: Wed Mar 23, 2005 3:34 am    Post subject: Reply with quote

p-hi wrote:
Yes, the /dev/hd? depends on how the hard drives are set-up.
Your hard drive is probably connected to the 2nd IDE slot.


You're right. I opened up the box and noticed the cdrom was in primary and hd was in secondary. Swapped it around and I was in business. I didn't even think too look inside the machine before I fired it up. But then again I didn't really know what all the /dev/hd? meant....hehe.

Thanks for helping my noobness :)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Nov 02, 2005 8:11 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See here
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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