Vbox fdisk does not display the added hard disk Solution

Source: Internet
Author: User

 

 

The disk we added cannot be viewed using the fdisk command:

 

[Root @ Rac1 ~] # Fdisk-l

 

Disk/dev/SDA: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 Cylinders

Units = cylinders of 16065*512 = 8225280 bytes

Sector size (logical/physical): 512 bytes/512 bytes

I/O size (minimum/optimal): 512 bytes/512 bytes

Disk identifier: 0x00085ca1

 

Device boot start end blocks ID system

/Dev/sda1 × 1 26 204800 83 Linux

Partition 1 does not end on cylinderboundary.

/Dev/sda2 26 281 2048000 82 Linux swap/Solaris

Partition 2 does not end on cylinder boundary.

/Dev/sda3 281 3917 29203456 83 Linux

[Root @ Rac1 ~] #

 

-- But view/proc/partitions, which can be displayed as follows:

[Root @ Rac1 ~] # Cat/proc/Partitions

Major minor # Blocks name

 

8, 0, 31457280, SDA

8 1 204800 sda1

8 2 2048000 sda2

8, 3, 29203456, sda3

8 16 8388608 SDB

8 32 8388608 SDC

8388608 SDD

8 64 8388608 SDE

8 80 1048576 SDF

8 96 1048576 SDG

8 112 1048576 SDH

[Root @ Rac1 ~] #

 

Run start_udev manually and run the fdisk command to view the disk.

 

It is estimated that there is a problem during udev startup.

 

View the udev service status:

[Root @ Rac1 ~] # Service udev-post status

[Root @ Rac1 ~] # Chkconfig udev-post -- list

Udev-post 0: off 1: On 2: On 3: On 4: On 5: on 6: Off

[Root @ Rac1 ~] # Service udev-post Start

Retrigger failed udev events [OK]

 

 

Note:

I am using Oracle Linux, so the udev service is: udev-post. If it is RedHat, the corresponding service is: udev

 

 

If you do not study this issue in depth, add start_udev to the startup Item to ensure normal use.

 

[Root @ rac2 ~] # Vim/etc/rc. d/rc. Local

 

#! /Bin/sh

#

# This script will be executed * after * allthe other init scripts.

# You can put your own initialization stuffin here if you don't

# Want to do the full sys V style initstuff.

 

Touch/var/lock/subsys/local

 

/Sbin/start_udev

 

 

Notes.

 

 

 

 

 

 

 

 

 

 

 

 

Bytes --------------------------------------------------------------------------------------------

All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!

QQ: 251097186

Skype: tianlesoftware

Email: tianlesoftware@gmail.com

Blog: http://blog.csdn.net/tianlesoftware

WEAVER: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

LinkedIn: http://cn.linkedin.com/in/tianlesoftware

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.