# First, check the hard disk resources available in the Ubuntu system: sudofdisk-lDisk/dev/sda: 160.0 GB, 160041885696bytes255heads, 63 sectors/track, 19457 cylindersUnits = cylindersof16065 * 512 = 8225280 bytesDiskidentifier: 0xf0b1f # first check the hard disk resources available in Ubuntu:
Sudo fdisk-l
Disk/dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0xf0b1f0b1
Device Boot Start End Blocks Id System
/Dev/sda1*1 2339 18787986 83 Linux
/Dev/sda2 2340 19457 137500335 f W95 Ext 'd (LBA)
/Dev/sda5 2340 2432 746991 82 Linux swap/Solaris
/Dev/sda6 2433 19457 136753281 83 Linux
# From the above output, the system has found the new hard disk partition. Device Name:/dev/sda6
# Now, you are ready to edit fstab to enable ubuntu to mount this ext3 extended partition. Back up fstab first, just in case.
Sudo cp/etc/fstab. bak
# Because the ubuntu system treats all hardware resources as files, we need to create a folder to serve as the access entry after the hard disk partition is mounted in the future.
# The red part is the content to be appended, that is, the file system name, the download point, the format type, and then several parameters, these parameters are illustrated by a cat.
# This step is critical. If you do not do this, partitions are mounted but cannot be written.
Sudo chmod-R 777/mnt/ext
# Remount all partitions.
Sudo mount-
# Check whether the mounting is correct once.
Sudo df
File System 1 K-block used available % mount point
/Dev/sda1 18492940 3848448 13705096 22%/
Varrun 127936 240 127696 1%/var/run
Varlock 127936 0 127936 0%/var/lock
Udev 127936 64 127872 1%/dev
Devshm 127936 0 127936 0%/dev/shm
Lrm 127936 34696 93240 28%/lib/modules/2.6.22-14-generic/volatile
/Dev/sda6 134606216 192140 127576412 1%/mnt/ext
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.