Programs couldn't access to NTFS volume after reboot

Questions about applications and software
Forum rules
Before you post please read this

Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 11:49 am

I dont know how to start the topic but i have one problem. When I listen music with Amarok everything is fine (Mint 13, KDE)but after rebooting computer, files disappear. I must add files again, the same happening with Bit torrent client, Skype transfer (because i send files from that directory or receive to it) and so on. How i can mount my partition (which is NTFS file system) to avoid the problem ? I have no idea. :roll:
Last edited by danym on Sun Dec 30, 2012 12:50 pm, edited 1 time in total.
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Linux Mint is funded by ads and donations.
 

Re: Programs couldn't access to NTFS volume after reboot

Postby spaceman on Sun Dec 30, 2012 12:12 pm

You need to add an entry to /etc/fstab
Code: Select all
sudo pluma /etc/fstab
change pluma in this commandline to a text editor of you choice if you're not using MATE.

You need to add something *like* the line below to the file:
Code: Select all
UUID=2065af80-2d6c-47a2-9313-b5a074b75134   /media/NTFSVolumeName     ntfs    defaults   0   2

You need to use this commandline entry to find the UUID of your NTFS partition/disk:
Code: Select all
ls -l /dev/disk/by-uuid

Once you added the appropriate line to your fstab and saved the file, you need to create the mount point.
Code: Select all
sudo mkdir /media/NTFSVolumeName/

You can make NTFSVolumeName anything that suits you, maybe Win7, but it has to match the mount point you referred to in fstab.

Either reboot to test or simply mount the drive using
Code: Select all
sudo mount -a

Either way the drive should now be persistent. Hope that helps.
Last edited by spaceman on Sun Dec 30, 2012 12:47 pm, edited 3 times in total.
Linux Mint 14 'Nadia' x64 ~ Asus Sabretooth 990FX ~ AMD Phenon Quad Core 965 Black Edition~ nVidia GTX 460 768MB ~ 16 GB DDR3 RAM
User avatar
spaceman
Level 1
Level 1
 
Posts: 42
Joined: Sun Jan 08, 2012 5:31 pm

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 12:39 pm

spaceman wrote:You need to add something *like* the line below to the file:
Code: Select all
UUID=2065af80-2d6c-47a2-9313-b5a074b75134   /media/NTFSVolumeName     ext4    defaults   0   2

I think you meant to say ntfs not ext4, right?
UUID=2065af80-2d6c-47a2-9313-b5a074b75134 /media/NTFSVolumeName ntfs defaults 0 2


The description of the problem almost sounds like a hibernated laptop though. Is this a dual boot with Windows machine? A hibernated Windows machine saves it's state so if you add files and then bring yourself out of hibernation Windows resets itself to the last live state. Maybe I'm reading too much into this :)
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby spaceman on Sun Dec 30, 2012 12:41 pm

Thank you sir - two heads better than one! Amended.
Linux Mint 14 'Nadia' x64 ~ Asus Sabretooth 990FX ~ AMD Phenon Quad Core 965 Black Edition~ nVidia GTX 460 768MB ~ 16 GB DDR3 RAM
User avatar
spaceman
Level 1
Level 1
 
Posts: 42
Joined: Sun Jan 08, 2012 5:31 pm

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 12:49 pm

Its my desktop computer, i have Linux mint since November and it is my main/major operating system. Im using 2Tb hard drive. 140gb for Linux mint 6gb - Swap, 75GB WIndows 7 for Adobe Premiere. And 2 partitions NTFS. Sometimes I restart my computer and then the problem come, not necessary to Log into WIndows. Just restart (my computer works 24/7). Let me show you http://img69.imageshack.us/img69/9357/snapshot7sl.png Image .
Now I'm trying to understand all this written above. :) Thank you people for helping me!
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 2:11 pm

What would be helpful is if you post the output of the following commands:
Code: Select all
cat /etc/fstab

Code: Select all
sudo blkid -c /dev/null

Code: Select all
mount
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 2:16 pm

ОК :)
Code: Select all
dany-N61PB-M2S dany # cat /etc/fstab
# /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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda6 during installation
UUID=fa3a39ee-696a-41f1-ad4a-9ba4aed65d44 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=5a73b809-269f-5530-541e-926b9406ee9f none            swap    sw              0       0

dany-N61PB-M2S dany # sudo blkid -c /dev/null
/dev/sda2: UUID="C2F3F160BCBE4655" TYPE="ntfs"
/dev/sda3: LABEL="Second drive" UUID="BEF47531F474ED51" TYPE="ntfs"
/dev/sda4: LABEL="DATA STORAGE" UUID="3048A90E48A8D3BE" TYPE="ntfs"
/dev/sda5: UUID="5a73b809-269f-5530-541e-926b9406ee9f" TYPE="swap"
/dev/sda6: UUID="fa3a39ee-696a-41f1-ad4a-9ba4aed65d44" TYPE="ext4"

dany-N61PB-M2S dany # mount
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sda4 on /media/DATA STORAGE type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 2:29 pm

/dev/sda4: LABEL="DATA STORAGE" UUID="3048A90E48A8D3BE" TYPE="ntfs"
/dev/sda4 on /media/DATA STORAGE type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

You don't have an entry for it in fstab but based on the mount command there doesn't seem to be anything wrong with your setup that explains your problem.

Not sure if having this partition automount will actually fix anything but if you want to try it:

[1] Unmount the current partition:
Code: Select all
sudo umount "/media/DATA STORAGE"

[2] Create a new mount point:
Code: Select all
sudo mkdir /media/DataStorage

[3] Add the following line to the end of fstab:
Code: Select all
UUID=3048A90E48A8D3BE /media/DataStorage ntfs defaults,nls=utf8,uid=1000,umask=000,windows_names 0 0

[4] Then run the following command which will test for errors and if there are none mount the partition:
Code: Select all
sudo mount -a
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 2:41 pm

Thank you!
I did it.
Code: Select all
dany-N61PB-M2S dany # sudo mount -a
[mntent]: warning: no final newline at the end of /etc/fstab
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 2:50 pm

[mntent]: warning: no final newline at the end of /etc/fstab

Never seen that error message before. I don't even know what it means.

Please post the output of this command again:
Code: Select all
cat /etc/fstab
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 2:58 pm

the output
Code: Select all
dany-N61PB-M2S dany # cat /etc/fstab
# /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>                                                       
proc            /proc           proc    nodev,noexec,nosuid 0       0                                                       
# / was on /dev/sda6 during installation                                                                                     
UUID=fa3a39ee-696a-41f1-ad4a-9ba4aed65d44 /               ext4    errors=remount-ro 0       1                               
# swap was on /dev/sda5 during installation                                                                                 
UUID=5a73b809-269f-5530-541e-926b9406ee9f none            swap    sw              0       0                                 
UUID=3048A90E48A8D3BE /media/DataStorage ntfs defaults,nls=utf8,uid=1000,umask=000,windows_names 0 0
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 3:07 pm

I would edit fstab again and put a # sign in front of that last line so that it looks like this:
# swap was on /dev/sda5 during installation
UUID=5a73b809-269f-5530-541e-926b9406ee9f none swap sw 0 0
#UUID=3048A90E48A8D3BE /media/DataStorage ntfs defaults,nls=utf8,uid=1000,umask=000,windows_names 0 0

It looks OK to me. I need to do some research to figure out what this means:
[mntent]: warning: no final newline at the end of /etc/fstab
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby kwisher on Sun Dec 30, 2012 3:19 pm

altair4 wrote:I would edit fstab again and put a # sign in front of that last line so that it looks like this:
# swap was on /dev/sda5 during installation
UUID=5a73b809-269f-5530-541e-926b9406ee9f none swap sw 0 0
#UUID=3048A90E48A8D3BE /media/DataStorage ntfs defaults,nls=utf8,uid=1000,umask=000,windows_names 0 0

It looks OK to me. I need to do some research to figure out what this means:
[mntent]: warning: no final newline at the end of /etc/fstab

I believe that error means there is no carriage return at the end of the last line. It can be solved by placing your cursor after the last character on the last line and pressing delete numerous times and then press enter to go to the next line. Then save the file.
The instructions suggested Microsoft Vista or better, so I installed Linux.
User avatar
kwisher
Level 5
Level 5
 
Posts: 560
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 3:30 pm

Believe it or not I had the same thought. The only problem is I tried to reproduce this on my own fstab by just leaving the cursor at the end of the last line and saving the file but I couldn't get it to fail. It's worth a shot though.

Maybe it's dependent on the text editor used. I forget what the text editor is in KDE.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 3:42 pm

Thank you very much to all for your time and effort!
After adding # the problem with the missing line still persist.
The text editor is Kate. :)
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby kwisher on Sun Dec 30, 2012 3:53 pm

danym wrote:Thank you very much to all for your time and effort!
After adding # the problem with the missing line still persist.
The text editor is Kate. :)

You might try nano from a terminal and follow my previous example.
Code: Select all
sudo nano /etc/fstab
The instructions suggested Microsoft Vista or better, so I installed Linux.
User avatar
kwisher
Level 5
Level 5
 
Posts: 560
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 4:06 pm

I believe that error means there is no carriage return at the end of the last line. It can be solved by placing your cursor after the last character on the last line and pressing delete numerous times and then press enter to go to the next line. Then save the file.

How to save the file ? like fstab file in /etc ?
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Re: Programs couldn't access to NTFS volume after reboot

Postby altair4 on Sun Dec 30, 2012 4:26 pm

If you are talking about Kate you should be able to just exit the application after doing what kwisher suggested.

If you are talking about nano you can use the Ctrl and O keys together; or the Ctrl and X keys together.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4741
Joined: Tue Feb 03, 2009 10:27 am

Re: Programs couldn't access to NTFS volume after reboot

Postby danym on Sun Dec 30, 2012 4:39 pm

I tried, but i haven't succeeded to fix it.
Now, I've just restarted and everything is the same. Player do not "want" to play till I manually open the "DATA STORAGE" after that it begin to play. But it couldn't happen in that way with Bittorent or Skype. They won't to download. Im not sure for seed.
Its strange to me :)
danym
Level 1
Level 1
 
Posts: 26
Joined: Sat Nov 03, 2012 10:51 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: gibbs1984, Orbmiser and 16 guests