LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-28-2005, 07:37 PM   #1
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Exclamation Partitioning Hard Drive - Help


Okay, i currently have only Ubuntu on my system, and i have decided to take a step up and try and install Slackware. Although i am encountering a few problems with trying to partition my hard drive.

Problem 1
Quote:
I boot up Slackware, login as root, and i then type the following at the prompt:

Quote:
fdisk /dev/hda
After doing so, i then get this reply which i thought is rather odd, and not supposed to happen:

Quote:
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, until you decide to write them. After that, of course, the previous content wont be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite).
What does this mean?
Problem 2
Quote:
At the fdisk prompt, i now type in the following:

Quote:
Command (m for help): p
I then get the following reply:

Quote:
Disk /dev/hda: 4700 MB, 4700372992 bytes
255 heads, 63 sectors/track, 571 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes.
Device Boot Start End Blocks Id System
There is no partition number or anything, why is this so?
Problem 3
Quote:
Okay i thought, hm... maybe fdisk will not work, so lets try cfdisk and see if i can get anywhere with that. So i type:

Quote:
cfdisk
I then get the following reply:

Quote:
No partition table or unknown signature on partition table
Do you wish to start with a zero table [y/N] ?
Why is this, and what will it do? Is it safe?
I know this is asking a lot, but if anyone could shed some light on any of these problems that i am encountering, i would appreciate it VERY much.

Cheers,
Chad.
 
Old 06-29-2005, 12:16 AM   #2
swatward
Member
 
Registered: Jan 2005
Distribution: slackware
Posts: 83

Rep: Reputation: 15
have you tried cfdisk?
 
Old 06-29-2005, 05:45 AM   #3
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah dude, read problem 3.
 
Old 06-29-2005, 07:12 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Type: fdisk -l
That will show you where you've ubuntu so you won't overwrite it.
You could also get QtParted for Ubuntu and make the partitions using that program, it's very similar to PartitionMagic.

Problem 1 or 2, the data on your harddisk may be corrupted. Are you sure that the hdd in question is on hda?
Problem 3, it's mostly the same as other problems, you seem to have no partitions on that hdd.

Last edited by gbonvehi; 06-29-2005 at 07:15 AM.
 
Old 06-29-2005, 07:09 PM   #5
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Okay, how can i find out if my hard disk drive is hda or what ever?
 
Old 06-29-2005, 08:12 PM   #6
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
Hi!,

The primary master usually is hda & then if there are any partitions on it, it should be hda1, hda2 and so on...then the primary slave would be hdb & again w/ partitions it is hdb1, hdb2....if u could access your root partition, you could check your partitions through fstab..that would display partitions or devices rather mounted on your system...
try..
cat /etc/fstab

to display it..

check this for reference: http://slackbook.org/html/filesystem...g.html#AEN3319


GoodLuck!
Ryan
 
Old 06-30-2005, 05:32 PM   #7
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Because for some reason, the Ubuntu partition is invisible, i think i will format my HD first and then install Slackware. The only operating system on my box is Ubuntu, so how can i format my HD. If someone could tell me how, that would be much appreciated.

Cheers.
 
Old 06-30-2005, 07:28 PM   #8
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry for double posting...

Okay i decided to install Fedora instead, and see if it would show the partitions in Fdisk then. After the installation i shoved on the Slackware boot CD, went typed in "fdisk /dev/hda" but there was no partitions there again.

One thing i noticed while installing Fedora was that it installed Fedora to "/dev/sda." So i went to Slackware and typed in "fdisk /dev/sda" but it replied with "unable to open /dev/sda." Does this mean /dev/sda is my hdd? Or is it /dev/hda? If its /dev/sda, then why cant i open it?

I then thought to myself, "hm... lets just try partition /dev/hda anyway." So i did, but i messed up with creating my first partition, i set the first cylinder to 0 which was correct, but i then set the last cylinder to default on accident which was wrong. So i then deleted that partition and did it again, but only to find out i couldnt set the first cylinder to 0 anymore, i could only set it to 1. I restarted my computer to see if that could fix the problem, but it didnt, i can only set the first cylinder to 1. What have i done? And how can i fix this?

Once again, there is a lot of problems and questions, but if anyone can help, i'd appreciate it lots.

Cheers,
Chad.
 
Old 06-30-2005, 09:24 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,109

Rep: Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328Reputation: 3328
As above - what does
Code:
fdisk -l
give you (that's l as in l{ist}).
 
Old 06-30-2005, 09:49 PM   #10
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
It doesnt do anything...
 
Old 06-30-2005, 10:27 PM   #11
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
Hi!

Ok, so your having trouble locating your hard drive, with less knowledge of linux startup, to solve ur "invisible" hard disk thing, try getting a win98 startup disk, boot it, In this I assume that
* Your hard disk is the only one to boot with a slave cd-rom.
* You could detect your hard disk in your BIOS, it should be Primary Master
* It displays the correct volume/size of your hard disk.

After booting win98 startup. Run fdisk, if it displays some paragraph thingy at first, then just press Y, then go on with fdisk. there are four options. AFAIR, It should have some Create, Display, Delete, hmm Mark Boot disk I guess he9x. Ok, choose Display then it should display the partitions of your hdd, if its correct it should say that it is a NON-DOS partition, dont worry just go back to main menu then go to Delete, then just delete all the partitions. choose delete non-dos partition, after deleting all, restart your pc then boot using your Slackware CD, and if everything goes well, it should have a prompt for parameters for kernel, just press enter, den just proceed..until you have the prompt, then type at the prompt fdisk /dev/hda
or fdisk /dev/hda -l it should give u the list of partitions, but u already delete it so just some specs of ur hard drive is displayed. then go-on with the setup. I hope this helps.

Ryan
 
Old 07-01-2005, 08:21 AM   #12
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 148

Rep: Reputation: 29
Your HDD is not scsi or SATA is it? if it is you have to load a different kirnel image when booting from the slackware cdrom (scsi or sata).
Remember that if such is the case your disk will most likely be /dev/sd... not /dev/hd...
 
Old 07-01-2005, 08:33 AM   #13
simplyskate
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Okay i'll try booting into Windows 98 in a bit.

I did actually go ahead and create partitions on hda last night, then i went to setup but it just said, "No Linux type partitions were detected on this machine." So i guess hda is not my drive then, to be honest i got a feeling it is my cdrom drive, is this possible?

Yes my hard drive is SATA, and fedora did say it was /dev/sda, but when i tried fdisk /dev/sda all i got was my usb pen, then when i took my usb pen out it said, unable to open /dev/sda, so i dont know what to do...
 
Old 07-04-2005, 07:23 AM   #14
koloth
Member
 
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 148

Rep: Reputation: 29
You did try booting without the usb pen didn't you? if you haven't try it. Also are you loading the sata kernel at boot? you can choose that when the cdrom asks which kernel to boot!
 
  


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
Partitioning a new hard drive soujrnr Linux - Software 2 12-09-2005 04:08 PM
Partitioning a hard drive phoenix_wolf Linux - Newbie 5 12-04-2004 01:50 AM
Hard drive partitioning FuGeE Linux - Laptop and Netbook 4 09-19-2004 07:48 PM
Partitioning Second Hard Drive snutz411 Linux - Newbie 1 03-23-2004 11:20 PM
partitioning my hard drive stearic Linux - Newbie 1 01-07-2001 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

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