PDA

View Full Version : how to make a new partition in fedora 9?



alexander224
28th July 2008, 08:07 PM
Is there a program I need to d/l or is there a tool that fedora 9 already has? I want to make a new partition.

SlowJet
28th July 2008, 08:24 PM
see
# man fdisk
# man mkfs.ext3

Display your information.
# df -l
# fdisk -l
# lvs
# cat /etc/fstab
# mount

SJ

alexander224
28th July 2008, 08:40 PM
thats not gonna delete everything is it?

kudzu
28th July 2008, 08:43 PM
The way i usually follow to create a partition is :


fdisk /dev/sda

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)


Then you can press n to add a parttion add it -it can easily be done after that- and when finished press w so it it will be "written" and last but not least type "partprobe" so you don't have to reboot for the new partition to be "shown".

P.S. : to view partitions info you can also execute "cat /proc/parttions"

alexander224
28th July 2008, 08:59 PM
The way i usually follow to create a partition is :


fdisk /dev/sda

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)


Then you can press n to add a parttion add it -it can easily be done after that- and when finished press w so it it will be "written" and last but not least type "partprobe" so you don't have to reboot for the new partition to be "shown".

P.S. : to view partitions info you can also execute "cat /proc/parttions"
Thanks, I'll post back in a few to report if it worked.

alexander224
28th July 2008, 09:01 PM
now it says no free sectors available?

stevea
28th July 2008, 10:06 PM
All the sectors (really it defaults to cylinder allocation) are already part of a partition.

You never posted the result of "fdisk -l" we we cannot tell how it's allocated.
You *MAY* be able to use 'gparted' to resize and move your partitions.
You *may* need to use the LVM tools.

Slowjet already asked you to post your details, but you didn't.
You haven't posted enough info to tell us what is next.

post the output of
su -
df --si
fdisk -l
lvs

alexander224
28th July 2008, 10:11 PM
[root@localhost ~]# df --si
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 11G 2.9G 7.5G 28% /
/dev/sda5 11G 1.4G 8.5G 14% /home
tmpfs 1.1G 533k 1.1G 1% /dev/shm
[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30f08850

Device Boot Start End Blocks Id System
/dev/sda1 * 1 35547 285526088+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 38097 38913 6562080 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 35548 36821 10233405 83 Linux
/dev/sda4 36822 38096 10241437+ 5 Extended
/dev/sda5 36822 38096 10241406 83 Linux

Partition table entries are not in disk order
[root@localhost ~]# lvs
No volume groups found

alexander224
28th July 2008, 11:38 PM
And what is important in the info I posted?

alexander224
29th July 2008, 03:02 AM
hmmmm?????

GallComp
29th July 2008, 04:49 AM
Alexander, you where warned by the staff not to continue bumping threads. For that reason you will receive a two week ban. With this I hope you will learn not to ignore the warnings and to follow the guidelines of this site.

Closing thread.