Ubuntu hard drive problem

Giftig

Active Member
Joined
Dec 30, 2007
Messages
94
Good Day

When ever i boot up Ubuntu it does not recognize my D: drive immediately, to remedy this I have to open office and then it shows the D drive and only then can i use it.

Why is this?

Thank you
 

Valis

Expert Member
Joined
Oct 2, 2007
Messages
1,244
The drive isn't mounted on boot. When you open Office or any folder it will mount the D: drive. You can install a mount manager to automatically mount the drive at boot.
 

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
Linux does not work on drive letters, if you know that much then you know where to start looking for the problem.

Ubuntu should create the necessarily entries by default, so I'm not gonna troubleshoot that.

Here is a detailed description on mounting partitions in Linux, if you could give us more information we could have more easily assisted you.
https://help.ubuntu.com/community/AutomaticallyMountPartitions

As you can see, a lot to work through. I have not done my Linux good deed for the day, so here is the abridged version.

In a terminal:
Code:
ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2011-06-29 12:07 0a2ceec0-4478-4208-bf3b-d2373edce2aa -> ../../sda3
lrwxrwxrwx 1 root root 10 2011-06-29 12:07 b8bb0f4e-a197-49ab-bec7-9f0fdcbe2b2b -> ../../sda2
lrwxrwxrwx 1 root root 10 2011-06-29 12:07 c6ac2257-948b-496c-be35-2353112487dd -> ../../sda1
lrwxrwxrwx 1 root root 10 2011-06-29 12:07 c988bead-8d9b-4e81-a168-0985be8430fe -> ../../sda4
Should look something like above. Locate the disk in question.

Once you have the UUID, those long list of numbes and characters, of the partition, copy it, then you can open the following file and edit it to mount the partition as needed.

Code:
sudo nano -w /etc/fstab
Should look like this:
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda3 during installation
UUID=0a2ceec0-4478-4208-bf3b-d2373edce2aa /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=c6ac2257-948b-496c-be35-2353112487dd /boot           ext2    defaults        0       2
# /home was on /dev/sda4 during installation
UUID=c988bead-8d9b-4e81-a168-0985be8430fe /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=b8bb0f4e-a197-49ab-bec7-9f0fdcbe2b2b none            swap    sw              0       0

Right at the bottom add the following line:
Code:
UUID=[paste uuid of disk in here]   /your/mountpoint    filesystem type(ext4, vfat, ntfs-3g, etc)  defaults   0   2


Ctrl+o to save, ctrl+x to exit, now either mount -a or reboot to see if it worked.

If there is a problem, make sure the UUID is correct and that the mount point exists.

Hope that helps.
 
Last edited:

ozoned

Well-Known Member
Joined
Mar 30, 2010
Messages
269
I assume you are dual booting ubuntu, and the "D" drive you are trying to access is actually a windows formatted drive?

In which case you need to install a mount manager in ubuntu as suggested above.
If your windows drive is formatted as NTFS, then install ntfs-config, and run it with "gksudo ntfs-config"
select the drive to mount automatically and give it a mount point, like "/media/ddrive'
 
Top