Linux: Modify the partition name created during installation

Source: Internet
Author: User

1. Modify the partition target

Change "/oracle" partition to "/dba" partition

1.1 The disk is partitioned during Linux Installation

For example:

Serial number

Disk device name

Partition name

Remarks

1

/Dev/sda3

/Boot

Pilot Partition

2

Tmpfs

/

Root Partition

3

/Dev/sda1

/Dev/shm

SWAP Partition

4

/Dev/sda2

/Oracle

Prepare to install oracle partitions

 

1.2Set"/Oracle"Change partition to"/Dba"Partition

After modification, the partition structure must meet the following conditions:

Serial number

Disk device name

Partition name

Remarks

1

/Dev/sda3

/Boot

Pilot Partition

2

Tmpfs

/

Root Partition

3

/Dev/sda1

/Dev/shm

SWAP Partition

4

/Dev/sda2

/Dba

Prepare to install oracle partitions

 

2. umount/oracle mount point

# Umount/oracle

3. Create/dba directory under the root directory

# Mkdir-p/dba

4. Modify the mount point information in the fstab file so that the new mount point is automatically mounted upon restart.

# Vi/etc/fstab

#

#/Etc/fstab

# Created by anaconda on Mon Jan 20 05:59:16 2014

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info

#

UUID = a4011859-9a90-4a1b-96d8-90403810ff20/ext4 ults 1 1

UUID = d27a474f-b2bb-461e-834e-a1b29dc9988b/boot ext4 ults 1 2

UUID = 8a2feb00003626-43d4-a463-16f07f00003ff/OracleExt4 defaults 1 2

UUID = 5cd77e82-5bf0-4ac4-b789-0b17118d6dfe swap defaults 0 0

Tmpfs/dev/shm tmpfs defaults 0 0

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Sysfs/sys sysfs defaults 0 0

Proc/proc defaults 0 0

 

Find the content marked in red above and change "/oracle" to "/dba". The changes are as follows:

#

#/Etc/fstab

# Created by anaconda on Mon Jan 20 05:59:16 2014

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info

#

UUID = a4011859-9a90-4a1b-96d8-90403810ff20/ext4 ults 1 1

UUID = d27a474f-b2bb-461e-834e-a1b29dc9988b/boot ext4 ults 1 2

UUID = 8a2feb00003626-43d4-a463-16f07f00003ff/DbaExt4 defaults 1 2

UUID = 5cd77e82-5bf0-4ac4-b789-0b17118d6dfe swap defaults 0 0

Tmpfs/dev/shm tmpfs defaults 0 0

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Sysfs/sys sysfs defaults 0 0

Proc/proc defaults 0 0

 

5Make the partition mount point take effect

5.1 temporary effect

# Mount/dev/sda2/dba

5.2 restart automatic mounting

Because the fstab file was modified in step 1, the new mount point "/dba" will be automatically mounted when the Linux system is restarted"

6. Data Retention

After the original "/oracle" directory is modified to the "/dba" directory, the data in the original "/oracle" directory will not be lost.

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.