HDD partition mounted as removable?

Forum rules
Before you post please read this
Level 1
Level 1
Posts: 1
Joined: Tue Feb 14, 2012 11:21 pm

HDD partition mounted as removable?

Postby bobity » Tue Feb 14, 2012 11:37 pm

Hi all,
Have set up 1TB HDD with a /windows ext4 partition for VirtualBox to use when running a guest WinXP machine.
However this partition seems always to mount as a removable drive, so it can't be 'seen' until I touch it, before starting VBox.
What I want is the partition mounted as a normal drive from boot time.
How to do this?
Thanks, B

Level 18
Level 18
Posts: 8390
Joined: Tue Feb 03, 2009 10:27 am

Re: HDD partition mounted as removable?

Postby altair4 » Wed Feb 15, 2012 7:34 am

You need to have it automount at boot:

[1] Find out how your system sees all your partitions:

Code: Select all

sudo blkid -c /dev/null

You will get back something that looks like this ( as an example ):
/dev/sda2: LABEL="Data" UUID="f7927995-b098-42be-ada0-987857f5177a" TYPE="ext4"

[2] Create a permanent mount point for your partition to live in:

Code: Select all

sudo mkdir /media/Windows

[3] Edit fstab as root:

Code: Select all

gksu gedit /etc/fstab

[4] Add the following line to the end of the file with the correct UUID and mount point ( example ):

Code: Select all

UUID=f7927995-b098-42be-ada0-987857f5177a /media/Windows ext4 defaults,noatime 0 2

[5] If you currently have the the partition mounted unmount it.

[6] Run the following command:

Code: Select all

sudo mount -a

That command will do 2 things:

* It will check the syntax and report errors if you or I have made a typo somewhere.
* It will mount the partition so that you don't have to do a reboot to see if it works.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Return to “Mounting Partitions”

Who is online

Users browsing this forum: OunceofCommonSense and 1 guest