Choose style:

Author Topic: How to Permanently Link a Windows Folder? (SOLVED)  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
How to Permanently Link a Windows Folder? (SOLVED)
« on: May 01, 2019, 01:40:33 pm »
Hi, first of all, I have just installed Linux Peppermint (my first Linux distro ever) and I'm in love. I run like four different browsers at a time and it is smooooth.

One thing I have not figured out yet is that when I link a folder on a mounted Windows partition, it only works until a reboot. After the reboot, Linux automatically labels that link as pointing toward a nonexistent directory and locks it (although the directory is very much existent and alive).

Is there any way to go around this?

Thank you, thank you, thank you  8)
« Last Edit: May 02, 2019, 08:49:01 am by PeppermintGuardiola »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to Permanently Link a Windows Folder?
« Reply #1 on: May 01, 2019, 03:47:42 pm »
Hi PeppermintGuardiola, and welcome to the forum :)

The problem is probably that the windows partition isn't mounted when you click the link .. but when you check the partition by clicking on the partition in the left hand pane of the filemanager it THEN gets mounted.

Can you please post the output from running this command in the terminal
Code: [Select]
blkid
then run:
Code: [Select]
xed /etc/fstab
and post the contents of the text file that just opened.
« Last Edit: May 01, 2019, 03:51:46 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How to Permanently Link a Windows Folder?
« Reply #2 on: May 01, 2019, 05:09:02 pm »
Hi PeppermintGuardiola, and welcome to the forum :)

The problem is probably that the windows partition isn't mounted when you click the link .. but when you check the partition by clicking on the partition in the left hand pane of the filemanager it THEN gets mounted.

Can you please post the output from running this command in the terminal
Code: [Select]
blkid
then run:
Code: [Select]
xed /etc/fstab
and post the contents of the text file that just opened.

Thanks for the swift reply. I followed your advice, but there is no contents of the text file that just opened to be posted. It's completely blank.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to Permanently Link a Windows Folder?
« Reply #3 on: May 01, 2019, 05:15:05 pm »
You must have mistyped .. remember Linux commands ARE case sensitive, there is a space betweed "xed" and the first "/", and those are forward-slashes not back/slashes.

It's usually better to copy/paste the commands ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How to Permanently Link a Windows Folder?
« Reply #4 on: May 01, 2019, 05:29:26 pm »
OK, it did provide some output this time:

# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda5 during installation
UUID=bcf38574-f0b3-498f-a4f4-d0f8caa18ecc /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=ed12676f-9cc2-45ac-8ef7-09b4bbc891d5 none            swap    sw              0       0

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1724
  • Karma: 464
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 9 - 64bit
Re: How to Permanently Link a Windows Folder?
« Reply #5 on: May 02, 2019, 03:21:39 am »
Hi PeppermintGuardiola,

I think that PCNetSpec forgot part of the first requested command. It is corrected below. Open a terminal window and enter this command:

Code: [Select]
sudo blkid
It will ask for your password (a security measure), which you then enter (note: you will not see your password, but it is being entered) followed by pressing on the ENTER key. We also need you to post the output that you get from running that command.

Thanks in advance.

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to Permanently Link a Windows Folder?
« Reply #6 on: May 02, 2019, 06:38:52 am »
yeah I also need the oiutput from
Code: [Select]
blkid
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How to Permanently Link a Windows Folder?
« Reply #7 on: May 02, 2019, 07:23:51 am »
BLKID
Code: [Select]
/dev/sda1: LABEL="Whoknows" UUID="1AA46EE9A46EC73B" TYPE="ntfs" PARTUUID="033c8d1d-01"
/dev/sda2: LABEL="Acer" UUID="1E5A005C5A003357" TYPE="ntfs" PARTUUID="033c8d1d-02"
/dev/sda5: UUID="bcf38574-f0b3-498f-a4f4-d0f8caa18ecc" TYPE="ext4" PARTUUID="033c8d1d-05"
/dev/sda6: UUID="ed12676f-9cc2-45ac-8ef7-09b4bbc891d5" TYPE="swap" PARTUUID="033c8d1d-06"
/dev/sda7: UUID="436b779c-0f0b-426d-bf95-508c65c45440" TYPE="ext4" PARTUUID="033c8d1d-07"
/dev/sda8: UUID="364154df-d930-441a-b607-6c0b8290ccd1" TYPE="ext4" PARTUUID="033c8d1d-08"

FSTAB
Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda8 during installation
UUID=364154df-d930-441a-b607-6c0b8290ccd1 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0

---

Thanks for realizing I'm the newermost of the dumbermost.
« Last Edit: May 02, 2019, 07:26:05 am by PCNetSpec »

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1724
  • Karma: 464
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 9 - 64bit
Re: How to Permanently Link a Windows Folder?
« Reply #8 on: May 02, 2019, 07:52:46 am »
Hi PeppermintGuardiola,

Is there an explanation for why the current (last) and previous printouts of your fstab file are different? Did you get the fstab from two different machines or did you reinstall PeppermintOS between these two posts?  :-\

It will not be possible for anyone to help you until this has been answered.  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How to Permanently Link a Windows Folder?
« Reply #9 on: May 02, 2019, 07:59:19 am »
I forgot to mention installing Peppermint 9 and creating another partition in the meantime.

But that does not do much to explain unmounting/mounting/unmounting of the windows partition which keeps going on.   

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to Permanently Link a Windows Folder?
« Reply #10 on: May 02, 2019, 08:02:27 am »
Okay then, let's say you want the partition labelled "Acer" to be automounted at bootup.

You'd
a) first create a mountpoint
Code: [Select]
sudo mkdir -v /mnt/Acer
b) create a stanza to mount it in fstab
Code: [Select]
gksudo xed /etc/fstab
and add these 2 new lines at the bottom:-
Code: [Select]
## Automount Acer partition
UUID=1E5A005C5A003357        /mnt/Acer     ntfs-3g   defaults,nls=utf8,umask=000,dmask=027,fmask=137,uid=1000,gid=1000,windows_names 0 0
(be sure to copy/paste ALL of the above stanza .. it scrolls to the side)
SAVE that file.

c) make sure you get no errors from:
Code: [Select]
sudo mount -a

d) if you get no errors, reboot to test ..

The Windows partition should then be automounted @ /mnt/Acer .. you can then create your links from there, and they should work at bootup.
(or even better, navigate to /mnt/Acer, then in the file manager click Bookmarks > Add Bookmark and it'll now display in the left hand column in the file manager)



Be aware - You should disable "Fast Startup" in windows 8 --> 10 or you may get mount errors.



Source:
https://askubuntu.com/questions/113733/how-do-i-correctly-mount-a-ntfs-partition-in-etc-fstab
« Last Edit: May 02, 2019, 08:12:15 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PeppermintGuardiola

  • nOOb
  • *
  • Posts: 6
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: How to Permanently Link a Windows Folder?
« Reply #11 on: May 02, 2019, 08:45:09 am »
Horror of horrors!!!

Nah, I'm sorry, it works fine.

Thank you very much!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to Permanently Link a Windows Folder? (SOLVED)
« Reply #12 on: May 02, 2019, 10:42:55 am »
You're most welcome, thanks for marking the topic (SOLVED) :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec