`
jimlaren
  • 浏览: 42673 次
文章分类
社区版块
存档分类
最新评论

How Do I Access My Windows Partitions?

阅读更多

If you are running Ubuntu on a computer with a Windows disk, you may want to read and write to the disk. Ubuntu can safely read the Windows NT NTFS partitions and can read and write to Windows 95/98/2000 FAT32 partitions.

First, load a terminal, and use the fdisk command to know what partitions you currently have:

foo@bar:~$ sudo fdisk -l

The output should be similar to this:

Disk /dev/hda: 81.9 GB
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1306 10490413+ 7 HPFS/NTFS
/dev/hda2 1307 1311 40162+ 83 Linux
/dev/hda3 1312 1344 265072+ 82 Linux swap
/dev/hda4 1345 9964 69240150 f W95 Ext'd (LBA)
/dev/hda5 1345 1606 2104483+ b W95 FAT32
/dev/hda6 1607 2852 10008463+ 83 Linux
...

In this output, the /dev/hda1 partition (the first partition on the first disk) is a 10GB Windows NTFS partition (probably called C:) and /dev/hda5 is a 2GB FAT32 partition (probably called D:).

When you access a disk, you need to mount it first. To mount it, you need to indicate a directory where the files from the disk are accessedthis is called a mount point. Create mount points in /media for the Windows partitions. It is good to use /media/C for C: and /media/D for D:, etc. to make things easy to remember.

foo@bar:~$ sudo mkdir /media/C /media/D

To make the disks accessible when you boot the computer, you need to add a few lines to /etc/fstab. This file indicates which disks are available. Add the following two lines:

/dev/hda1     /media/C     ntfs     nls=utf8,umask=0222    0     0
/dev/hda5 /media/D vfat defaults,umask=0000 0 0

The fourth column lets you specify options for mounting the partition, and nls=utf8,umask=0222 means that any user can read the NTFS partition.

To mount the two partitions without restarting, run the following command:

foo@bar:~$ sudo mount -a

The two partitions are now available and will be automatically mounted the next time Ubuntu is restarted.

评论

相关推荐

    IBM i hosting IBM i partitions implementation guide

    ### IBM i Hosting IBM i Partitions Implementation Guide #### 概述 本文档主要介绍如何在IBM Power6或更高版本硬件上,利用IBM i逻辑分区技术(LPAR)来创建虚拟化的IBM i分区。此方法无需额外购买硬件,仅需约...

    Windows读写Ext2/Ext3/Ext4文件系统4

    Secondly, the program provides for read-only access and does not allow you to make records in file system partitions. This guarantees that the interference in an alterative file system will not ...

    RS Linux Recovery 1.8 Multilingual.rar

    Need to access Linux Ext2, Ext3 and Ext4 file system partitions in Windows? Do you want to perform data recovery from an ext4 partition from an external hard drive? RS Linux Recovery specially ...

    如何为一个kafka集群选择topics:partitions的数量?1

    【如何为一个Kafka集群选择topics/partitions的数量】 在Apache Kafka集群中,选择合适的话题(topics)和分区(partitions)的数量是一项关键决策,它直接影响到系统的性能、可扩展性和数据处理能力。以下将详细...

    kernel 2.6.35移植到s3c2440

    问题:List of all partitions: 1f00 256 mtdblock0 (driver?) 1f01 64 mtdblock1 (driver?) 1f02 2048 mtdblock2 (driver?) 1f03 63152 mtdblock3 (driver?) 1f04 65536 mtdblock4 (driver?) No filesystem ...

    ManagePartitionswithGPartedHowto.pdf 英文原版

    Manage Partitions with GParted How-to

    Toufik Mansour - Combinatorics of Set Partitions

    ### Toufik Mansour - Combinatorics of Set Partitions #### 概述 《组合数学中的集合划分》是一本由Toufik Mansour编写的书籍,专注于近十年来非常活跃的一个数学研究领域——集合划分的组合学。本书不仅为离散...

    How_To_Resize_RAID_Partitions.pdf

    ### 如何调整RAID分区(压缩与扩展):软件RAID详解 在IT领域,RAID(Redundant Array of Independent Disks,独立磁盘冗余阵列)是一种通过组合多个物理磁盘驱动器来提高数据可靠性和性能的技术。...

    CAP Twelve Years Later:How the "Rules" Have Changed.pdf

    The CAP theorem asserts that any net- worked shared-data system can have only two of three desirable properties. How- ever, by explicitly handling partitions, designers can optimize consistency and ...

    poj 3782 Equal Sum Partitions.md

    poj 3782 Equal Sum Partitions.md

    On convex partitions of polygonal regions

    本文基于一篇发表于1999年的论文《On convex partitions of polygonal regions》的内容,探讨了如何将具有多边形孔洞的多边形区域分割为最少数量的凸块的问题。 #### 研究问题概述 该研究主要关注的是如何将一个...

    Codeforces Global Round 7 C. Permutation Partitions

    Permutation Partitions 题目链接-C. Permutation Partitions 题目大意 给定一个 1−n 上的全排列,将这个全排列分成不相交的 k 段,定义该划分的value为各段最大值的和,求该全排列所有可能划分中 value的最大...

    partitions:partitions(n)返回第n个分区号,最大为Matlab最大的整数功能。-matlab开发

    partitions(n)返回第n个分区号,最大为Matlab最大的整数功能。 示例:partitions(0) 返回 1,partitions(200) 返回 3972999029388。 使用的算法归因于Euler,并在Mathologer的视频中描述了该算法(此代码的灵感...

    微软内部资料-SQL性能优化2

     Describe how SQL Server leverages the Microsoft Windows® operating system facilities including memory, I/O, and threading.  Define common SQL Server memory, I/O, and processor terms.  Generate...

    platform-tools-r28.0.2-windows-adb-fastboot

    Adds support for dynamic partitions. Updated Windows requirements The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. If you see...

    explore2fs-1.00pre6

    Use write access at your own risk! Although it seems to work for me, it is possible that a bug could cause your filesystem or even disk to become unusable! Now, with that out of the way, make sure ...

    rabbitmq-server-windows-3.9.13

    3. **网络分区(Network Partitions)**:RabbitMQ能够优雅地处理网络分区,通过使用一种名为“quorum queue”的机制来保持数据一致性。 4. **Sharding**:通过将大型队列分割成更小的部分,分布到不同的节点上,...

    The Indispensable PC Hardware Book - rar - part1. (1/7)

    Windows and What it Can Do to Hardware Devices. II. THE PC'S MICROPROCESSORS. 2. Introduction to Microprocessor Technology. The Field-effect Transistor. Basics of Machine-related Information ...

    gparted-live-0.30.0-1-i686.part2.rar

    GParted is a free partition manager that enables you to resize, copy, and move partitions without data loss. The best way to access all of the features of the GParted application is by using the ...

Global site tag (gtag.js) - Google Analytics