LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-01-2008, 03:21 AM   #1
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
cannot copy linux files to windows NTFS HD


Code:
root@host:/home/me# cp lilo.txt /mnt/winback/Xcess/
cp: cannot create regular file `/mnt/winback/Xcess/lilo.txt': Permission denied
root@host:/home/me# fdisk -l /dev/hda

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2550    20482843+   7  HPFS/NTFS
/dev/hda2            2551        4997    19655527+   f  W95 Ext'd (LBA)
/dev/hda5            2551        4997    19655496    7  HPFS/NTFS

although NTFS is specified in my fstab for windows. .. (and it was mounted on boot ) still i cant be able to copy files. . .
 
Old 12-01-2008, 04:12 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
Can you paste the contents of your /etc/fstab? I got a portable harddisk recently, and I got write access to it only after I specifically mentioned 'ntfs-3g' as the fs type (instead of 'auto')
 
Old 12-01-2008, 04:17 AM   #3
snugglefuss
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Disclaimer: This information applies to Ubuntu Dapper and you need to use Slackwares package manager and
administration tools to install the needed libraries and utilities. This information is however still a
good overall guide on how to get read and write access for a NTFS partition/HD. If you don't come right
with this tell me where you get stuck and I'll see if I can help you.

From http://ubuntuguide.org/wiki/Dapper

How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access

Warning: Ntfs writing support is still experimental. You should not enable it on production machines and/or volumes you don't have backups of. Proceed at your own risk!

* Read #General Notes

sudo apt-get install libfuse2 fuse-utils

* Download the latest ntfsprogs package (these are from the Dapper repositories, so they are safe to install.)

libntfs8 ntfsprogs libfuse2 fuse-utils

* Install the downloaded packages

sudo dpkg -i libfuse2_*.deb fuse-utils_*.deb ntfsprogs_*.deb libntfs8_*.deb

* Add fuse to the list of modules to load

echo fuse | sudo tee -a /etc/modules

* Create a user group to access the ntfs disks

sudo addgroup ntfs

* The output should look something like this, remember the GID (the number printed after the group name) as it may differ and we will need it later:

Adding group `ntfs' (1002)...
Done.

* Read #How to list partition tables

* Create the local mount folder and edit the fstab file to mount the disks to this folder.

e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windows

sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab.bak
gksudo gedit /etc/fstab

* Append the following line at the end of file, using the GID number previously. The umask following this GID allows write access just to owner (root) and group (ntfs), and read access to everyone.

/dev/hda1 /media/windows ntfs-fuse auto,gid=1002,umask=0002 0 0

* Save the edited file.

* Add users to the ntfs group, where "username" is the name of the user you would like to have write access

sudo adduser username ntfs

* Fix Dapper bug #29865 of the linux-ntfs package:

sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse

* If you reboot now, the disk will be writable to the selected users when they logon. If you want the changes to take effect immediately without rebooting, execute the following command, ignoring the errors about "/" and others not being unmounted. You'll have to logout from all your user sessions for the new group to be acknowledged (usually a logout from your graphical session and login back again will do it).

sudo modprobe fuse && sudo umount -a && sudo mount -a
 
Old 12-01-2008, 04:27 AM   #4
todders
Member
 
Registered: Nov 2006
Location: watford
Distribution: Slackware 13 64Bit Multi-Lib KDE4.2.4
Posts: 83

Rep: Reputation: 18
Here is my fstab entry for my windows partition,i have no permission issues writing to the disk.

/dev/sda1 /mnt/windows ntfs-3g umask=000 1 0

let us know how you get on.
 
Old 12-01-2008, 02:49 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
http://slackwiki.org/Windows_Partitions
 
Old 12-01-2008, 08:56 PM   #6
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
thanks for the replies.. i have tried changing my windows fs to ntfs-3g (in fstab) in my slack12.0 and it was mounted and have copied files (i remember installing ntfs3g x months ago..) successfully. ..

i will try my luck to install ntfs3g in VL5.1

here's mine :

Quote:
/dev/hda1 /mnt/windows ntfs-3g defaults 1 0
/dev/hda5 /mnt/winback ntfs-3g defaults 1 0


Last edited by ic_torres; 12-01-2008 at 09:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy files from windows to linux partition nataly Linux - Newbie 6 10-09-2007 11:08 AM
better say, enter windows and copy some files, and the partition is NTFS juangabriel1786 Linux - General 3 01-20-2006 11:49 AM
Copy files from NTFS to NTFS ThaHackBoy Linux - Hardware 2 05-21-2005 06:36 PM
copy files from linux to windows turbo_acura Linux - General 4 11-23-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration