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:
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:
The two partitions are now available and will be automatically mounted the next time Ubuntu is restarted.
分享到:
相关推荐
2、Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600KB (in order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, ...
如何在POWER6或以上系统中通过IBM i逻辑分区来虚拟化支持其他的IBM i逻辑分区。
How_To_Resize_RAID_Partitions.pdf
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 ...
如何为一个kafka集群选择topics:partitions的数量?1
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 ...
Focusing on a very active area of mathematical research in the last decade, Combinatorics of Set Partitions presents methods used in the combinatorics of pattern avoidance and pattern enumeration in ...
问题: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 ...
Manage Partitions with GParted How-to
partitions Table partitions Table partitions Table
Linux File Systems for Windows by Paragon Software is a unique tool which gives you full access to Linux volumes within Windows. Just plug your hard disk with ExtFS/Btrfs/XFS partitions into your PC...
On convex partitions of polygonal regions
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
Permutation Partitions 题目链接-C. Permutation Partitions 题目大意 给定一个 1−n 上的全排列,将这个全排列分成不相交的 k 段,定义该划分的value为各段最大值的和,求该全排列所有可能划分中 value的最大...
partitions(n)返回第n个分区号,最大为Matlab最大的整数功能。 示例:partitions(0) 返回 1,partitions(200) 返回 3972999029388。 使用的算法归因于Euler,并在Mathologer的视频中描述了该算法(此代码的灵感...
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...
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 ...
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 ...