LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using fdisk utility (https://www.linuxquestions.org/questions/slackware-14/using-fdisk-utility-580737/)

hulk321 08-29-2007 12:05 PM

Using fdisk utility
 
Hi,
i have hard drive with four partitions on it. two are NTFS and two are FAT32. windows xp is installed on first NTFS drive.
when i boot from cd to install slackware 10.1 i do the following;

login as root
fdisk /dev/hda
when print for partition tables it shows no drive
then
n for creating a drive
p to creat primary
i chose the default option 1
then go for n and chose e for extended
i chose 1 it says it has already been occupied. if i try 2 it says there is no space available for this action
i delet d1 then go for extended at 1. then go for logical drive at 5 then at 6.
when i type w to write the table it say permission is denied.

what do i do now.

please guide.

perry 08-29-2007 12:30 PM

Quote:

Originally Posted by hulk321 (Post 2874764)
Hi,
i have hard drive with four partitions on it. two are NTFS and two are FAT32. windows xp is installed on first NTFS drive.
when i boot from cd to install slackware 10.1 i do the following;

login as root
fdisk /dev/hda
when print for partition tables it shows no drive
then
n for creating a drive
p to creat primary
i chose the default option 1
then go for n and chose e for extended
i chose 1 it says it has already been occupied. if i try 2 it says there is no space available for this action
i delet d1 then go for extended at 1. then go for logical drive at 5 then at 6.
when i type w to write the table it say permission is denied.

what do i do now.

please guide.

Have you tried CFDISK ?

Are you doing this to install Linux, if so follow this link.

If your just configuring your drive then check out this graphical partitioner package.

- Perry

Road_map 08-29-2007 12:51 PM

Quote:

Originally Posted by hulk321 (Post 2874764)
login as root
fdisk /dev/hda
when print for partition tables it shows no drive

Can you be more specific?
Quote:

Originally Posted by hulk321
then
n for creating a drive
p to creat primary
i chose the default option 1
then go for n and chose e for extended
i chose 1 it says it has already been occupied. if i try 2 it says there is no space available for this action
i delet d1 then go for extended at 1. then go for logical drive at 5 then at 6.
when i type w to write the table it say permission is denied.

n - create a new partition -> you can't, you have already 4 primary partitions

Code:

# fdisk /dev/hdb

Command (m for help): p

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdb1  *          1        1500    12048718+  7  HPFS/NTFS
/dev/hdb2            1501        4500    24097500    7  HPFS/NTFS
/dev/hdb3            4501        8000    28113750  83  Linux
/dev/hdb4            8001        9729    13888192+  83  Linux

Command (m for help): d
Partition number (1-4): 1

Command (m for help): n
Command action
  e  extended
  p  primary partition (1-4)
e
Selected partition 1
First cylinder (1-9729, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1500, default 1500): 1500

Command (m for help): n
First cylinder (1-1500, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1500, default 1500): 700

Command (m for help): n
First cylinder (701-1500, default 701): 701
Last cylinder or +size or +sizeM or +sizeK (701-1500, default 1500): 1500

Command (m for help): p

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdb1              1        1500    12048718+  5  Extended
/dev/hdb2            1501        4500    24097500    7  HPFS/NTFS
/dev/hdb3            4501        8000    28113750  83  Linux
/dev/hdb4            8001        9729    13888192+  83  Linux
/dev/hdb5              1        700    5622687  83  Linux
/dev/hdb6            701        1500    6425968+  83  Linux

Command (m for help): w

Did you follow the same steps?


All times are GMT -5. The time now is 11:50 PM.