QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1113|回复: 7

[求助]LINUX下如何查看对应的WINDOWS分区

[复制链接]
发表于 2006-10-22 11:41:33 | 显示全部楼层 |阅读模式
我想在redhat9linux上挂载windows xp的C盘   用了下面的命令
#mkdir /mnt/winc
#mount -t vfat /dev/hda1 /mnt/winc
提示我hda1 unknown device
我估计C盘不是这个名字 用了cfdisk 和 fdisk -l 
两个命令想查看对应的windows分区  但都不好使command not found
请问我该怎么办好啊?   
发表于 2006-10-22 12:02:07 | 显示全部楼层
试试
/sbin/fdisk -l
回复

使用道具 举报

发表于 2006-10-22 16:51:13 | 显示全部楼层
[root@dns root]# fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

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)

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1824  14651248+   c  Win95 FAT32 (LBA)
/dev/hda2          1825      9729  63496912+   f  Win95 Ext'd (LBA)
/dev/hda5          1825      2717   7172991    7  HPFS/NTFS
/dev/hda6          2718      3648   7478226   83  Linux
/dev/hda7          3649      6080  19535008+   b  Win95 FAT32
/dev/hda8          6081      9729  29310561    b  Win95 FAT32

Command (m for help):
==========================================
刚好我刚才也用fdisk  这样做就看得很清楚了  我的系统也是redhat 9.0的
回复

使用道具 举报

发表于 2006-10-23 10:03:44 | 显示全部楼层

Re: [求助]LINUX下如何查看对应的WINDOWS分区

[quote:142a7bbc18="xiaomeihot"]我想在redhat9linux上挂载windows xp的C盘   用了下面的命令
#mkdir /mnt/winc
#mount -t vfat /dev/hda1 /mnt/winc
提示我hda1 unknown device
我估计C盘不是这个名字 [/quote]

C盘的设备号
如果你用的是PATA接口的硬盘,就是/dev/hda1
如果你用的是SATA接口的硬盘,就是/dev/sda1

系统提示不明设备,
你得看看你的WINDOWS分区是不是用NTFS系统格式.


[quote:142a7bbc18="xiaomeihot"]用了cfdisk 和 fdisk -l 
两个命令想查看对应的windows分区  但都不好使command not found
请问我该怎么办好啊?   [/quote]

这两个命令,
只用root才能使用!
普通用户是没有权限的.
回复

使用道具 举报

发表于 2006-10-23 11:24:22 | 显示全部楼层
补充一点,
如果你的XP里面的分区是NTFS格式的,
那么RH9默认情况下是不能正确认出来的.

除非你重新编译内核,
将文件系统中的NTFS选项编译进系统.
回复

使用道具 举报

 楼主| 发表于 2006-10-23 11:52:21 | 显示全部楼层
多谢大家的帮忙
回复

使用道具 举报

发表于 2006-10-23 12:03:56 | 显示全部楼层
问题解决了吗?
建议root进去在看一下
回复

使用道具 举报

 楼主| 发表于 2006-10-23 18:01:06 | 显示全部楼层
哈哈   终于搞定了    我进redhat9.0里的硬件浏览器看了一下  
原来C盘竟然是hdc1     唉  竟然只差了一个字母   害我忙了好长时间
再次感谢大家的无私帮助   
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-22 12:50 , Processed in 0.077724 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表