linux fdisk ntfs,2014.1.2 学习记录(fdisk、ntfs)

一、redhat5.8安装ntfs-3g(因为在普通pc上安装,linux与xp双系统,现在因linux分区容量不足,于是需要加载xp下的NTFS    分区)

1、下载地址:http://www.tuxera.com/community/ntfs-3g-download/

2、解压缩  tar -zxvf filename

3、进入解压缩后的目录

4、执行安装:

./configure

make

make install

5、mount -t ntfs-3g /dev/sda5 /mnt/windows

6、开机自动加载:(未测试)

vi /etc/fstab

在最后添加:

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0

二、fdisk使用详解:

1、首先要先选择需要操作的硬盘:fdisk -l

2、选择要操作的硬盘:比如fdisk /dev/sda

3、输入m,就是弹出帮助信息:

Command (m for help): m

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)

4、列出当前操作硬盘的分区情况,用p

5、通过fdisk的d指令来删除一个分区

注意:

删除分区时要小心,请看好分区的序号,如果您删除了扩展分区,扩展分区之下的逻辑分区都会删除;所以操作时一定要小心;如果知道自己操作错了,请不要惊慌,用q不保存退出;切记切记!!!!在分区操作错了之时,千万不要输入w保存退出!!!

6、通过fdisk的n指令增加一个分区

7、通过fdisk的t指令指定分区类型:83为linux文件类型

8、对分区进行格式化,以及加载(未测试)

例如:mkfs.ext3 /dev/sdb6

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值