Viewing The Partition Table - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 6. Managing Disk Storage
Command
mkpartfs part-type fs-type start-mb
end-mb
move minor-num start-mb end-mb
name minor-num name
print
quit
rescue start-mb end-mb
resize minor-num start-mb end-mb
rm minor-num
select device
set minor-num flag state
toggle [NUMBER [FLAG]
unit UNIT
Table 6.1. parted commands

6.1.1. Viewing the Partition Table

After starting parted, use the command print to view the partition table. A table similar to the
following appears:
Model: ATA ST3160812AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number
Start
End
1
32.3kB
107MB
2
107MB
105GB
3
105GB
107GB
4
107GB
160GB
5
107GB
133GB
6
133GB
133GB
7
133GB
160GB
The first line contains the disk type, manufacturer, model number and interface, and the second line
displays the disk label type. The remaining output below the fourth line 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. Valid Type are
metadata, free, primary, extended, or logical. The Filesystem is the file system type, which can be
any of the following:
• ext2
• ext3
72
Size
Type
File system
107MB
primary
ext3
105GB
primary
ext3
2147MB
primary
linux-swap
52.9GB
extended
26.2GB
logical
ext3
107MB
logical
ext3
26.6GB
logical
Description
Make a partition and create the specified file
system
Move the partition
Name the partition for Mac and PC98 disklabels
only
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
Toggle the state of FLAG on partition NUMBER
Set the default unit to UNIT
Flags
boot
root
lvm

Advertisement

Table of Contents
loading

Table of Contents