HDD partition mounted as removable?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bobity
Level 1
Level 1
Posts: 19
Joined: Tue Feb 14, 2012 11:21 pm

HDD partition mounted as removable?

Post by bobity »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11453
Joined: Tue Feb 03, 2009 10:27 am

Re: HDD partition mounted as removable?

Post by altair4 »

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.
Locked

Return to “Storage”