标题: 解决在Solaris 10 X86 下挂载ext分区的问题,特此分享 [打印本页] 作者: saky 时间: 2006-12-17 02:27 标题: 解决在Solaris 10 X86 下挂载ext分区的问题,特此分享 Usage: Mounting EXT2FS
----------------------
To mount an EXT2FS partition you first need to identify logical device name of
the partition. Execute /usr/bin/prtpart without arguments to see the physical
device name of your harddisk. It will be of the form: /dev/rdsk/cNdNp0. This
will also display information about the entire partition table.
Note: For more info on prtpart execute prtpart -help
Now execute:
/usr/bin/prtpart /dev/rdsk/cNdNp0 -ldevs
to list out all the logical devices and the partition types. Your Linux
partitions will be listed as "Linux Native".
Now execute:
mount -F ext2fs <logical device name> <mountpoint>
to mount the EXT2FS partition.
主要命令: prtpart /dev/dsk/c0d0p0 -ldevs
输出 :
bash-3.00# prtpart /dev/rdsk/c0d0p0 -ldevs
Fdisk information for device /dev/rdsk/c0d0p0
** NOTE **
/dev/dsk/c0d0p0 - Physical device referring to entire physical disk
/dev/dsk/c0d0p1 - p4 - Physical devices referring to the 4 primary partitions
/dev/dsk/c0d0p5 ... - Virtual devices referring to logical partitions
Virtual device names can be used to access EXT2 and NTFS on logical partitions
/dev/dsk/c0d0p1 IFS: NTFS
/dev/dsk/c0d0p2 WIN95 Extended(LBA)
/dev/dsk/c0d0p5 WIN95 FAT32(Upto 2047GB)
/dev/dsk/c0d0p6 IFS: NTFS
/dev/dsk/c0d0p7 Linux native
/dev/dsk/c0d0p8 Linux swap