How to mount ext3 extended partitions in Ubuntu

Source: Internet
Author: User
# 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.

Sudo mkdir/mnt/ext

# OK, and then start editing the fstab file.

Sudo gedit/etc/fstab
#/Etc/fstab: static file system information.
#
#
Proc/proc defaults 0 0
#/Dev/sda1
UUID = 1e72243f-f5d6-4ee4-856a-08165d718803/ext3 defaults, errors = remount-ro 0 1
#/Dev/sda5
UUID = 3c643717-331b-433b-a48a-febe474f95cf none swap sw 0 0
/Dev/cd0/media/cdrom0 udf, iso9660 user, noauto 0 0 0
/Dev/sda6/mnt/ext ext3 defaults 0 0

# 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

# OK, everything is ready.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.