3

I'm using ubuntu 14.04 LTS. When I start my pc and click on any bookmark from the file manager it shows this error:

Unable to find the requested file. Please check the spelling and try again.
Unhandled error message: Error when getting information for file '/media/angel/DOC/edu': No such file or directory

But when I open DOC drive and again clink on the same bookmark it works properly. Can anybody tell me why is this happening and how to solve this issue?

Edit: Output of lsblk is following: (ubuntu is installed in sda5)

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk 
├─sda1   8:1    0  91.3G  0 part 
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0  24.1G  0 part /
└─sda6   8:6    0   3.8G  0 part [SWAP]
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0  93.2G  0 part 
├─sdb2   8:18   0     1K  0 part 
├─sdb5   8:21   0  93.2G  0 part 
├─sdb6   8:22   0  89.3G  0 part 
├─sdb7   8:23   0  93.2G  0 part 
├─sdb8   8:24   0  93.2G  0 part 
└─sdb9   8:25   0   3.8G  0 part 
sr0     11:0    1  1024M  0 rom  

After opening the disk drive the output of lsblk is bellow:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk 
├─sda1   8:1    0  91.3G  0 part 
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0  24.1G  0 part /
└─sda6   8:6    0   3.8G  0 part [SWAP]
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0  93.2G  0 part 
├─sdb2   8:18   0     1K  0 part 
├─sdb5   8:21   0  93.2G  0 part 
├─sdb6   8:22   0  89.3G  0 part /media/angel/DOC
├─sdb7   8:23   0  93.2G  0 part 
├─sdb8   8:24   0  93.2G  0 part 
└─sdb9   8:25   0   3.8G  0 part 
sr0     11:0    1  1024M  0 rom

The output of sudo blkid gives the following information about sdb6:

/dev/sdb6: LABEL="DOC" UUID="04280A22280A12FA" TYPE="ntfs"
0

2 Answers 2

7

From the output of lsblk, before and after the link starts working, it appears that your partition is not mounted automatically.

Since it is an NTFS partition (looking at the output of sudo blkid), you can make your partition automount by adding the following line to your fstab file:

/dev/sdb6 /media/angel/DOC ntfs auto
  • If it does not exist already, create the directory to mount into:

    sudo mkdir /media/angel/DOC
    
  • Open the fstab file:

    gksu gedit /etc/fstab
    

    (you might have to install gksu first)

    and add the line:

    /dev/sdb6 /media/angel/DOC ntfs auto
    

    at the end of the file, save the changes.

  • Test your new entry by the command:

    sudo mount -a
    
10
  • 1
    @Eka You will probably not have the directory /media/angel/, so you cannot create the directory /Doc inside it :). You'd probably have enough to use /media/<mountpoint_name> (without the subdirectory /angel/Doc, I assume angel is his name). For every partition, indeed you need to have a separate line in the /etc/fstab file. Apr 10, 2015 at 12:15
  • 1
    @Eka not needed in this case, but if you need to create a new directory inside another directory that not yet exists (create directories recursively), you need to use the -poption. e.g. to create directorie(s) /media/monkey/eats/banana inside an empty folder /media: sudo mkdir -p /media/monkey/eats/banana. Apr 10, 2015 at 12:22
  • 1
    @Eka You might have to recreate the bookmarks. Probably its path has changed. Apr 13, 2015 at 12:54
  • 1
    Hey thanks..you are correct it was due to the change in path. I once again made a new bookmark of the folder and after restart its working perfectly. Once more thanks for your help
    – Eka
    Apr 13, 2015 at 13:06
  • 1
    @Eka let's say I have a bookmark to a folder on a mounted volume /media/mountfolder/path/to/folder. The mountpoint is /media/mountfolder/. Now when you add it to your /etc/fstab file, this mountpoint will be different although the foldername is the same. The full path to the folder will nevertheless be different. What you probably need to do is remove the bookmarks in question and recreate them. Apr 13, 2015 at 13:07
0

I had to struggle with the same problem. It was due to an missing entry in the fstab file.

Lets say the bookmark is in folder /dev/sda1/bookmark. Then the bookmark only worked when I first opened the folder /dev/sda1 with the Explorer Window.

After a restart the command lsblk -f showed that /dev/sda1 was not mounted, without mountpoint.

Accessing /dev/sda1 in the Explorer Window and retype the command lsblk -f it appeared with its mountpoint on /media/user/sda1.

After some time I percepted that an entry in the fstab file was missing.

sudo gedit /etc/fstab

I put the following line into fstab file:

/dev/sda1   /media/user/sda1  ntfs  rw,user,auto    0   2

I used the mountpoint which was defined by the system after accessing /dev/sda1 manually.

Finally it worked after a restart.

I hope it will help for other cases as well.

1
  • /dev/sda1 is a device, not a directory, so part of this answer is unclear.
    – wjandrea
    Jan 21, 2019 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .