您的位置:首页 > 运维架构 > Linux

2014.1.2 学习记录(fdisk、ntfs)

2014-01-02 00:00 295 查看
摘要: 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux fdisk redhat ntfs