[root@kirkzhang /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_kirkzhang-lv_root
8780808 6383968 1950788 77% /
tmpfs 1035720 260 1035460 1% /dev/shm
/dev/sda1 495844 41553 428691 9% /boot
/dev/sr0 771372 771372 0 100% /media/Ubuntu 12.10 i386
----------------------------------------------------------------------------------------------------------
Command (m for help): p
Disk /dev/mapper/vg_kirkzhang-lv_root: 9135 MB, 9135194112 bytes
255 heads, 63 sectors/track, 1110 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x01d8a0bb
Device Boot Start End Blocks Id System
/dev/mapper/vg_kirkzhang-lv_rootp1 1 513 4120641 83 Linux
这里的文件名怎么改成/dev/hdc/ 格式的
----------------------------------------------------------------------------------------------------
[root@kirkzhang /]# mkfs -t ext3 /dev/mapper/vg_kirkzhang-lv_rootp1
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/mapper/vg_kirkzhang-lv_rootp1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
这里的格式化磁盘怎么不成功
----------------------------------------------------------------------------------------------------------
[root@kirkzhang /]# mount -t /dev/mapper/vg_kirkzhang-lv_rootp1 /mnt/hdc6
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
[root@kirkzhang /]# mount -l
/dev/mapper/vg_kirkzhang-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sr0 on /media/Ubuntu 12.10 i386 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmode=0500) [Ubuntu 12.10 i386]
这个挂载的有问题么
_----------------------------------求人指点 感激不尽
ko224 于 2014-05-25 18:56:54发表:
新手不懂,帮你U下