Author Topic: Corrupt files when transferred [SOLVED]  (Read 3544 times)

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Corrupt files when transferred [SOLVED]
« on: June 14, 2016, 08:55:34 pm »
I record shows on a Windows XP machine.   An auto processor removes the commercials and moves the program to my Peppermint Linux box running Serviio.   Recently, all the transfers are corrupted, and if I can get them to play, they are 10-15 minutes short.  I think it might be a permissions issue.  Any thoughts?
« Last Edit: June 21, 2016, 09:26:41 pm by AndyInMokum »

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2316
  • Karma: 614
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Corrupt files when transferred
« Reply #1 on: June 15, 2016, 01:02:55 pm »
Hi Texas Son,

Perhaps it is the Peppermint OS version you have listed in your profile: 17.1 ... ??? Since when is there such a version of Peppermint:-\ Or are you using some other distro that has a version 17.1?

Regards,

-- Slim
Respect science, respect nature, respect each other.

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

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Corrupt files when transferred
« Reply #2 on: June 15, 2016, 05:13:53 pm »
What's the file size VS the size of the same files on the XP machine?  If they're smaller, they didn't transfer correctly, which would explain all of those issues.

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #3 on: June 15, 2016, 08:13:40 pm »
Thanks for the quick replies, and sorry for the version error (I was tired...and used to be on Mint).  I'm on version 6.  The size of the files, post-processing, is not much smaller, maybe 4 GB vs 5 GB.  VLC gives these errors when trying to play: <File reading failed:  VLC could not open the file "/media/Scott/Videos/Person of Interest-160530.ts" (Permission denied).  Your input can't be opened:  VLC is unable to open the MRL 'file:///media/Scott/Videos/Person%20of%20Interest-160530.ts'. Check the log for details.>  Some other devices will play the files, but a big section at the end of the video is gone.  When I render the video to the XP machine, it is perfect.  I've been using this setup for a long time and the problem just began in the past couple weeks.  Thanks again for your help!

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Corrupt files when transferred
« Reply #4 on: June 15, 2016, 08:50:00 pm »
Hm, the "Permission denied" message sounds like a file permission issue for sure.  You may want to check who the file belongs to.  Right-click on it, hit "Properties" and check the "Permissions" tab.  In order to view it, your user account/group has to have at least read only access.

As for the other message, it could be a codec issue.  Have you installed any of the codec meta packages from the repositories?  99% of the time, doing so will make playback issues go away, unless your video is using something really exotic.  One simple way to get all of the codecs you should need is to install a restricted extras meta package, such as the Xubuntu one.  To do so, run this in the terminal:

Code: [Select]
sudo apt-get install xubuntu-restricted-extras
Installing that will pull in a lot of codecs and some other stuff.  Usually, that works to resolve playback issues such as the one you're having.
« Last Edit: June 15, 2016, 08:51:32 pm by scifidude79 »

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #5 on: June 15, 2016, 09:13:15 pm »
Hm, the "Permission denied" message sounds like a file permission issue for sure.  You may want to check who the file belongs to.  Right-click on it, hit "Properties" and check the "Permissions" tab.  In order to view it, your user account/group has to have at least read only access.

You got it!  Owner is 'nobody.'  Group is 'nogroup.'  So, apparently at some point, permissions changed.  I have lots of older files/videos that have been there for years, and I have permission over those (some say 'root-root' and others say 'scott-Scott.'  How can I change the permissions for current files and make it recursive for newly (future) added ones?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Corrupt files when transferred
« Reply #6 on: June 16, 2016, 03:03:00 am »
Code: [Select]
sudo chown yourname:yourgroup <filename>would 'normally' be the way to change ownership of a file, but would require you to do it for each file.

BUT

Looking at the path to your files, are they on an external HDD or NAS ? (and is this external drive used on other machines ?)

it may be easier to either

a) change the ownership in a 'bulk' manner (everything in the directory)

b) to change the mount options giving you permission for everything in that mountpoint

c) add your user to the 'nogroup' group
« Last Edit: June 16, 2016, 03:07:10 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #7 on: June 16, 2016, 09:34:03 am »
Looking at the path to your files, are they on an external HDD or NAS ? (and is this external drive used on other machines ?)

It is actually a 450 GB partition I use for data only.  I noticed when I installed Peppermint that the mount point was different that it had been with other distros.  How should it be mounted?  Thanks again for your help.
« Last Edit: June 16, 2016, 09:38:54 am by Texas Son »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Corrupt files when transferred
« Reply #8 on: June 16, 2016, 10:24:51 am »
can you post the output from:
Code: [Select]
mountand
Code: [Select]
sudo fdisk -land
Code: [Select]
sudo blkidand
Code: [Select]
groupsand the contents of
Code: [Select]
gedit /etc/fstab
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #9 on: June 16, 2016, 10:58:14 am »
Here you go:

Code: [Select]
scott@Server ~ $ mount
/dev/sda1 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/cgroup type tmpfs (rw)
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)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda3 on /media/Scott/Videos type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=scott)
Code: [Select]
scott@Server ~ $ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e7056

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    97656344    48827148+  83  Linux
/dev/sda2        97658878    99657727      999425    5  Extended
/dev/sda3        99657728   976771071   438556672   83  Linux
/dev/sda5        97658880    99657727      999424   82  Linux swap / Solaris
Code: [Select]
scott@Server ~ $ sudo blkid
/dev/sda1: UUID="2fa67fee-10f4-4f2e-8451-e4f3909c7e16" TYPE="ext4"
/dev/sda3: LABEL="Data" UUID="4dc608d0-3725-449e-b151-3d13982d6ff0" TYPE="ext4"
/dev/sda5: UUID="3e54c5c3-c58c-467e-bc47-c7adc93eb29a" TYPE="swap"

Code: [Select]
scott@Server ~ $ groups
scott adm cdrom sudo dip plugdev lpadmin sambashare
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/sda1 during installation
UUID=2fa67fee-10f4-4f2e-8451-e4f3909c7e16 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=3e54c5c3-c58c-467e-bc47-c7adc93eb29a none            swap    sw              0       0
/dev/sda3 /media/Scott/Videos ext4 defaults 0 0
« Last Edit: June 17, 2016, 03:25:32 pm by AndyInMokum »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Corrupt files when transferred
« Reply #10 on: June 16, 2016, 11:34:21 am »
Okay, if you agree we're going to mount sda3 at /mnt/Videos then take ownership (scott) of everything in it .. if it then doesn't automatically add itself to the left hand column of the file manager, you can simply add a bookmark.

Does that sound okay to you ?

If so, run these commands in sequence
Code: [Select]
sudo mkdir -p /mnt/Videonow let's backup your fstab file
Code: [Select]
sudo cp -v /etc/fstab /etc/fstab.baknow open fstab for editing
Code: [Select]
sudo gedit /etc/fstaband add these 2 NEW lines at the bottom
Code: [Select]
## mount sda3 to /mnt/Video - added by scott
UUID=4dc608d0-3725-449e-b151-3d13982d6ff0    /mnt/Video    ext4    defaults    0    0
SAVE the file and exit gedit.

Back in the terminal run:
Code: [Select]
sudo mount -aif you get an error from that command, post it here .. if not, carry on below.

Now to recursively take ownership of the /mnt/Video directory run:
Code: [Select]
sudo chown -R scott:scott /mnt/Videoand it probably won't hurt to make everything in that directory read/write/execute by everyone with
Code: [Select]
sudo chmod -R 777 /mnt/VideoNow see if you're able to play the videos in /mnt/Video

and check it's mounted at boot.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #11 on: June 16, 2016, 02:55:28 pm »
Sounds good.  I'll give it a try.

Offline Texas Son

  • Newly Subscribed
  • *
  • Posts: 24
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Corrupt files when transferred
« Reply #12 on: June 17, 2016, 03:19:15 pm »
That seems to have fixed everything except Serviio.  I would guess I need to add it into the 'scott' group?

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Corrupt files when transferred
« Reply #13 on: June 17, 2016, 03:26:57 pm »
Hi Texas Son, could you please remember to encapsulate terminal outputs with the Insert, Code # function.  For extra long outputs, please use the Spoiler, Sp function.  It preserves the original format of the output.  This makes it easier for future visitors to relate to their own issues.  These functions are found in the forum editor, above the,  :-[ Embarrassed and  the :'( Cry emoticon respectively.  I've done this for you this time - many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Corrupt files when transferred
« Reply #14 on: June 17, 2016, 04:32:06 pm »
I know sod all about serviio .. in fact I'd never heard of it until now, I'd always previously used minidlna for media streaming (but haven't in a while now since buying a NAS, so I'm not really up to date with media streaming tech).

What exactly isn't it doing ?

Quote
I would guess I need to add it into the 'scott' group?

Quite possibly .. can't hurt to try right ? ;)
« Last Edit: June 17, 2016, 04:35:29 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec