Article Title: how to mount Ext3 extended partitions in the UbuntuLinux system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
First, check the hard disk resources that the system can find:
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. The device name is/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
In ubuntu, all hardware resources are processed as files. Therefore, 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 last line is the content to be appended, that is, first the file system name, then the download point, then the format type, and then several parameters. These parameters are illustrated by a cat.
This step is critical. If you do not do so, partitions can be 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.