Viewing The Partition Table - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 12. Managing Disk Storage
Command
print
quit
rescuestart-mbend-mb
resize minor-numstart-mbend-mb
rm minor-num
select device
set minor-numflagstate
Table 12.1. parted commands

12.1.1. Viewing the Partition Table

After starting parted, type the following command to view the partition table:
print
A table similar to the following appears:
Disk geometry for /dev/sda: 0.000-8678.789 megabytes
Disk label type: msdos
Minor
Start
1
0.031
101.975
2
101.975
5098.754
3
5098.755
6361.677
4
6361.677
8675.727
5
6361.708
7357.895
Disk geometry for /dev/hda: 0.000-9765.492 megabytes
Disk label type: msdos
Minor
Start
1
0.031
101.975
2
101.975
611.850
3
611.851
760.891
4
760.891
9758.232
5
760.922
9758.232
The first line displays the size of the disk, the second line displays the disk label type, and the
remaining output shows the partition table.
In the partition table, the Minor number is the partition number. For example, the partition with minor
number 1 corresponds to /dev/sda1. The Start and End values are in megabytes. The Type is one
of primary, extended, or logical. The Filesystem is the file system type, which can be one of ext2,
ext3, fat16, fat32, hfs, jfs, linux-swap, ntfs, reiserfs, hp-ufs, sun-ufs, or xfs. The Flags column lists the
flags set for the partition. Available flags are boot, root, swap, hidden, raid, lvm, or lba.
In this example, minor number 1 refers to the /boot/ file system, minor number 2 refers to the root
file system (/), minor number 3 refers to the swap, and minor number 5 refers to the /home/ file
system.
110
End
Type
Filesystem
primary
ext3
primary
ext3
primary
linux-swap
extended
logical
ext3
End
Type
Filesystem
primary
ext3
primary
linux-swap
primary
ext3
extended
logical
ext3
Description
Display the partition table
Quit parted
Rescue a lost partition from start-mb to end-
mb
Resize the partition from start-mb to end-mb
Remove the partition
Select a different device to configure
Set the flag on a partition; state is either on or
off
Flags
boot
Flags
boot
lba

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?

Table of Contents