`
raojl
  • 浏览: 206997 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

mount disk command

 
阅读更多

[root]# fdisk /dev/hdb
Command (m for help): m     (Enter the letter "m" to get list of commands)
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)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-2654, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-2654, default 2654):
Using default value 2654

Command (m for help): p

Disk /dev/hdb: 240 heads, 63 sectors, 2654 cylinders
Units = cylinders of 15120 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1      2654  20064208+   5  Extended

Command (m for help): w    (Write and save partition table)

[root]# mkfs -t ext3 /dev/hdb1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2508352 inodes, 5016052 blocks
250802 blocks (5.00%) reserved for the super user
First data block=0
154 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root]# mkdir /opt2
[root]# mount -t ext3 /dev/hdb1 /opt2

----------------------------------
date +%Y%m%d -s "20110822"
date +%T -s "09:32:30"
yum -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
tar -xvzf otp_src_R14B03.tar.gz -C /software/erlang/
cd /software/erlang
chmod -R 777 otp_src_R14B03
cd otp_src_R14B03
./configure \
--prefix=/usr/local/erlang \
--enable-hipe \
--enable-threads \
--enable-smp-support \
--enable-kernel-poll
make
make install

sudo yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel

 

分享到:
评论

相关推荐

    iOS 9.3资源包Could not find Developer Disk Image

    2. 缺失的开发者工具:Xcode的组件可能不完整,尤其是Command Line Tools或者模拟器的镜像。打开Xcode的偏好设置,检查并安装任何缺失的组件。 3. 模拟器配置问题:检查Xcode的设备管理器(Window > Devices and ...

    (重要)AIX command 使用总结.txt

    ssaxlate -l hdisk3 //逻辑磁盘hdisk3包含4个物理磁盘pdisk4,pdisk6,pdisk5,pdisk7 pdisk4 pdisk6 pdisk5 pdisk7 ssaxlate -l pdisk0 //物理磁盘pdisk0从属于逻辑磁盘hdisk2 hdisk2 ## 查看SSA磁盘阵列中pdisk与...

    Linux_command

    3. **挂载Windows NTFS文件系统**:`mount -t ntfs -o iocharset=cp936 /dev/hda7 /mnt/had7`挂载NTFS分区,指定字符集为“cp936”。 `umount`命令用于卸载已挂载的磁盘或分区,例如:`umount /mnt/cdrom`。 #### ...

    Linux-partition-command-fdisk.zip_fdisk_linux fdisk_partition

    创建挂载点,如`mkdir /mnt/newpart`,然后使用`mount`命令挂载分区,`sudo mount /dev/sda1 /mnt/newpart`。 ### 三、注意事项 - 执行任何操作前,务必备份重要数据,因为错误操作可能导致数据丢失。 - 分区操作...

    linux command

    `/boot`存储系统启动所需文件,如内核(`vmlinuz`)和初始化RAM Disk(`initrd`);`/dev`包含了所有系统设备的特殊文件;`/etc`包含系统配置文件,如网络设置(`/etc/networking`)、主机名(`/etc/HOSTNAME`)、DNS配置(`/...

    Qemu-1.0.1 for windows

    -virtfs local,path=path,mount_tag=tag,security_model=[mapped|passthrough|none] [,writeout=immediate][,readonly] -virtfs_synth Create synthetic file system image -name string1[,process=string2] set ...

    提取硬盘序列号

    serial = psutil.disk_usage(disk.mountpoint).device print(f"硬盘序列号: {serial}") ``` 在Java中,可以使用`Win32_DiskDrive` WMI类: ```java import com.sun.jna.platform.win32.WmiUtils; import ...

    驱动程序设计基础专题-filedisk源码分析

    #define IOCTL_FILE_DISK_QUERY_FILE CTL_CODE(FILE_DEVICE_FILE_DISK, 0x802, METHOD_BUFFERED, FILE_READ_ACCESS) typedef struct _OPEN_FILE_INFORMATION { LARGE_INTEGER FileSize;//文件大小 BOOLEAN ...

    Linux System Administrator Guide Version0.9

    - **hdparm Command**: Provides information and controls the parameters of disk drives. - **Kernel Modules**: Discusses commands like `lsmod`, `insmod`, `depmod`, `rmmod`, and `modprobe` for managing ...

    CentOS7挂载硬盘攻略

    mount /dev/vdb1 /mnt/new_disk ``` 验证挂载是否成功: ``` df -TH ``` #### 五、设置自动挂载 为了确保系统启动时能够自动挂载分区,我们需要将分区信息添加到 `/etc/fstab` 文件中。由于云环境中的设备名可能...

    云存储实验题目2.docx

    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 253:0 0 20G 0 disk / └─vda1 253:1 0 20G 0 part / vdb 253:16 0 50G 0 disk [root@ localhost ~]# fdisk /dev/sdb Device contains neither a valid DOS ...

    获取cpu序列号硬盘卷标(正规码)

    在Windows系统中,我们可以使用`wmic`(Windows Management Instrumentation Command-line)命令来获取。例如,输入以下命令: ```shell wmic cpu get ProcessorId ``` 执行此命令后,系统将显示当前电脑CPU的...

    Ubuntu系统下挂载新硬盘

    - **命令**: `sudo mount /dev/sdb1 /mnt/disk1` - 这条命令会将`/dev/sdb1`分区挂载到`/mnt/disk1`目录下。 - 注意:`/mnt/disk1`目录需要提前创建,并且在挂载之前应该是空目录。 #### 配置自动挂载 为了让新...

    如何使用Powershell获取diskpart的位置路径?

    - `New-VHD` 和 `Mount-DiskImage` 可以创建虚拟硬盘和挂载ISO镜像。 - `Resize-Partition` 可以调整磁盘分区大小。 - `Format-Volume` 用于格式化磁盘分区。 在提供的压缩包文件“How-to-get-location-path-of-...

    linux 0.11 kernel开发包 适于进行Linux OS研究

    # # Install the bochs emulate system first! # Included is bochs version 2.1.1 packet.(Bochs-2.1.1.exe) #-----------------------------... diskettes, mount/umount command, compress, df, awk... ~ ~ ~ :wq #

    VxVM—常用命令手册.pdf

    使用 `mount –F hsfs –o ro /dev/dsk/c0t6d0s2 /mnt` 和 `pkgadd –d path_name product_packages` 命令可以添加 VxVM 和 VxFS 包。 六、安装 VxFS 后,修改 /etc/system 文件 在 `/etc/system` 文件中添加一行 ...

    构建U盘linux系统

    Disk /dev/sdc: 4018 MB, 4018143232 bytes 124 heads, 62 sectors/track, 1020 cylinders Units = cylinders of 7688 * 512 = 3936256 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 1020 ...

Global site tag (gtag.js) - Google Analytics