LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 09-20-2006, 03:39 PM   #1
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Rep: Reputation: 30
Doesn't detect partions


I used fdisk to create my partions, but setup doesn't detect them. My system specs.

Computer = HP pavilion dv5000
Harddrive = 120 gig
Ram = 2 gig

Alright, I try to make a swap partion.
First.
Code:
fdisk /dev/hda
Then
Code:
p
I see no partions
Code:
n
It asks external or primary partion
Code:
p
The partion number
Code:
1
it says, "First cylinder (1-81, default 1):"
Code:
1
Then says, "Last cylinder +size or +sizeM or +sizeK (1-81, default 81):"
Code:
+2000M
then says out of range, but wasn't I supposed to make the swap twice as much as ram?
Code:
+81M
then I change the type to 82
Code:
t
Code:
82
Now I make another partion, (the slackware book told me too.)
Code:
n
Now the type
Code:
p
Partion number,
Code:
2
Then says,(to the best of my memory, probaly wrong) "first cylinder (12-81, default 81):"
Code:
81
then, (to best of memory) "last cylinder or +size or +sizeM or +sizeK (12-81, default 81):"
Code:
81
Then last
Code:
w
then shows root screen.
Code:
setup
Displays a message about not being able to find partions.

I have been trying for about 30 minutes, the same thing over and over.
 
Old 09-20-2006, 07:20 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
First do a ' /sbin/fdisk -l ' and post output.
Just want to see what fdisk is seeing.

Now as far as swap size goes in the days when ram cost big money it was recommended to double swap size based on ram. Today ram is cheap and much faster on last few year old computers. So swap can be whatever you think you may need. If you see you are using up the ram then getting into swap then it would be best to add more ram than increasing swap size just for performance enhancement. 200 meg is not over doing by any means. I use 256meg but seldom get into it with a 1 gig of ram. Once in a great while depending on what I am doing. With 2 gig you have I doubt you will get to swap space by much. But again depends on what you do. Over all with a Gui like KDE or Gnome and single user running then you are about into 150meg of ram. Depends on services runing as well. Start run multiple users with multiple guis then it disappears quickly.

Brian1
 
Old 09-20-2006, 08:08 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,819

Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
Do you know the make / model number of the hard drive?
81 total cylinders seems a little on the low side for a 120GB hard drive.
 
Old 09-21-2006, 05:58 AM   #4
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by michaelk
First do a ' /sbin/fdisk -l ' and post output.
Just want to see what fdisk is seeing.
I typed that, in root@slackware, but it just entered another line. I got another root prompt:
Code:
root@slackware~# /sbin/fdisk -l
root@slackware~#
Quote:
Originally Posted by michaelk
Do you know the make / model number of the hard drive?
81 total cylinders seems a little on the low side for a 120GB hard drive.
120 GB 4200 RPM Hard Drive
That's all I got from hp's website.
 
Old 09-21-2006, 12:49 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,750

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
Is that a SATA drive?
 
Old 09-21-2006, 02:45 PM   #6
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Yes, I am pretty sure it is a SATA harddrive.
 
Old 09-21-2006, 04:19 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Like the guys said, 81 cylinders is suspicious. Either you have a BIOS/drive incompatibility where it can't see the real size of the drive or you have partitions created already on that drive, or you have a kernel that can't read your drive (likely- if what you say is true about SATA). A 120G drive with standard (255 heads, 63 sectors/track) geometry has around 14,500 cyls.

I second the idea of not using more than 256M swap with a reasonable processor and 2G of RAM I will be surprised if you ever swap. But you probably also need the SATA kernel and to compile it again with highmem support or it won't see all your RAM.

Last edited by Randux; 09-21-2006 at 04:22 PM.
 
Old 09-21-2006, 04:27 PM   #8
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
I guess just do ' fdisk -l ' as root. Does seem odd it does not post info on drives and partitions it sees.

I figured it was IDE based on /dev/hda when you run fdisk. Sata would be /dev/sda.

Brian1
 
Old 09-21-2006, 04:39 PM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
No, SCSI is /dev/sda. SATA are IDE variants.
 
Old 09-21-2006, 05:48 PM   #10
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Randux
Like the guys said, 81 cylinders is suspicious. Either you have a BIOS/drive incompatibility where it can't see the real size of the drive or you have partitions created already on that drive, or you have a kernel that can't read your drive (likely- if what you say is true about SATA). A 120G drive with standard (255 heads, 63 sectors/track) geometry has around 14,500 cyls.

I second the idea of not using more than 256M swap with a reasonable processor and 2G of RAM I will be surprised if you ever swap. But you probably also need the SATA kernel and to compile it again with highmem support or it won't see all your RAM.
And I do have ubuntu still on this computer, how could I remove that?
So, I do need swap?
Quote:
Originally Posted by brain1
I guess just do ' fdisk -l ' as root. Does seem odd it does not post info on drives and partitions it sees.

I figured it was IDE based on /dev/hda when you run fdisk. Sata would be /dev/sda.

Brian1
Still nothing shows.
 
Old 09-21-2006, 05:53 PM   #11
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Still seems odd on the fdisk -l command. I can run the command as a user and get nothing like you. Then I su - in and did the command again and got the info showing partition info. Just very odd on your system.

Anyways the info I would like to see is the same when you do the ' p ' option in the fdisk command. It should list all partitions. What does it show.

Brian1
 
Old 09-21-2006, 06:01 PM   #12
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Quick thought: None of these partitions are already mounted are they? Can't modify anything that is already mounted.

Brian1
 
Old 09-21-2006, 06:14 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,819

Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
USB, Firewire and SATA all use SCSI subsystem modules and are assigned a sda device ID. I believe the early 2.4 kernel SATA modules did assign hdx device IDs. HP's website does not mention the hard drive interface but reviews on the laptop wrote that is SATA. Are you using the sata.i boot disk? If that fails you might see if the BIOS has a PATA compatable setting.
 
Old 09-21-2006, 06:16 PM   #14
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Brian1
Still seems odd on the fdisk -l command. I can run the command as a user and get nothing like you. Then I su - in and did the command again and got the info showing partition info. Just very odd on your system.

Anyways the info I would like to see is the same when you do the ' p ' option in the fdisk command. It should list all partitions. What does it show.

Brian1
It didn't show anything when I tried it. Well it did show something, but no partions showed.

edit: Well, I hope they aren't mounted...
 
Old 09-21-2006, 06:45 PM   #15
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
You have one strange fdisk command as far as I can tell. Even if no partitions exist it should show something like this with the ' p ' command from fdisk /dev/hda.
Code:
Disk /dev/hda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Hi michealk
I was pretty sure Sata is seen as sd devices. But I have read some are seen as hd devices but it all depends on the module it uses from what I did some quick searches on. One actually said there were two modules it could use for the controller. One would see it as hda the other as sda. Isn't Linux fun.

Brian1
 
  


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
partions how to? {DoG}Corpse Linux - Newbie 10 09-24-2006 08:58 PM
Partions torger Ubuntu 6 03-21-2006 10:57 AM
partions sanjay2004 Linux - Software 2 05-16-2005 08:27 AM
partions boyd98 Debian 3 02-14-2005 07:24 PM
more than 4 partions?? chrismiceli Linux - General 3 03-02-2004 07:20 PM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration