LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2007, 10:30 AM   #1
Twister512
Member
 
Registered: Nov 2005
Location: Mansfield, PA
Distribution: Slackware
Posts: 97

Rep: Reputation: 15
slack 12, can't mount drives as rw


I have slack 12 installed on my system, I have some drives that are NTFS. When the system boots and mounts the drives, it says they are mounted as rw. I check the kernel and all filesystems I have on my system are compiled for rw. When I try to save a file or make a directory, it says filesystem is read only. I am confused.

--Paul--
 
Old 12-27-2007, 10:48 AM   #2
and_ru
Member
 
Registered: Dec 2007
Posts: 44

Rep: Reputation: 16
Hi!
You'll need two packages installed to make it RW:
1)FUSE
2)NTFS-3G

Read the notes and readmes on these pages!

Andrei

Last edited by and_ru; 12-27-2007 at 12:37 PM. Reason: mistype
 
Old 12-27-2007, 12:21 PM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Twister512 View Post
When I try to save a file or make a directory, it says filesystem is read only.
If you want seamless access to your NTFS partitions, you might try downloading the latest kernel source and building it yourself. I am running Ubuntu 7.10 in a dual boot with Windows XP and I share the same e-mail directories between Ubuntu and Windows.
 
Old 12-27-2007, 12:53 PM   #4
Camarade_Tux
LQ Newbie
 
Registered: Dec 2007
Location: Paris
Distribution: Slackware-current
Posts: 27

Rep: Reputation: 15
Just my 2€cents, the ntfs driver in linux kernel can write on an ntfs partition but this is very limited (especially the filesize must not increase). That's probably why it advertises read-write.
And there is no need special kernel requirement afaik. The only thing is fuse needs a kernel module which is not built by default now that it has been included with the linux kernel (only the kernel module part of course, FUSE_FS in "File Systems" when building a kernel).
 
Old 12-27-2007, 08:01 PM   #5
KnightHawk
Member
 
Registered: Aug 2005
Posts: 128

Rep: Reputation: 15
How does that NTFS-3g work out anyway? I've been using for a few weeks now for reading NTFS partitions, but I'm still kinda scared if I write to them I'm gonna hose them.
 
Old 12-28-2007, 04:44 AM   #6
Camarade_Tux
LQ Newbie
 
Registered: Dec 2007
Location: Paris
Distribution: Slackware-current
Posts: 27

Rep: Reputation: 15
It works well. It has been tested over a really, really long period of time.
I use it myself mostly for my data partition (the one that is 12 times bigger than others ;p ) but also the windows ones and have no problem.
Approximately one month ago though I had to back up my data partition and did it with ftp over gigabit ethernet. Transfer rates were ranging from 15 to 25MB/s and at some point which was caracterized by many small files, I was surprized that they were not higher and top told me ntfs-3g was using almost all the cpu cycles it could. Transfer rates were still high but not as high as they could.
However I had no corruption, only a slowdown.
 
Old 12-28-2007, 05:03 AM   #7
Camarade_Tux
LQ Newbie
 
Registered: Dec 2007
Location: Paris
Distribution: Slackware-current
Posts: 27

Rep: Reputation: 15
Btw, I thought I could quote my source (and correct a statement) as well : from the linux kernel source, help for CONFIG_NTFS_RW,
Quote:
CONFIG_NTFS_RW:

This enables the partial, but safe, write support in the NTFS driver.

The only supported operation is overwriting existing files, without
changing the file length. No file or directory creation, deletion or
renaming is possible. Note only non-resident files can be written to
so you may find that some very small files (<500 bytes or so) cannot
be written to.

While we cannot guarantee that it will not damage any data, we have
so far not received a single report where the driver would have
damaged someones data so we assume it is perfectly safe to use.

Note: While write support is safe in this version (a rewrite from
scratch of the NTFS support), it should be noted that the old NTFS
write support, included in Linux 2.5.10 and before (since 1997),
is not safe.
 
Old 12-28-2007, 02:40 PM   #8
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Camarade_Tux View Post
Btw, I thought I could quote my source (and correct a statement) as well : from the linux kernel source, help for CONFIG_NTFS_RW,
If I look at my config file in "/boot", I see that
Code:
CONFIG_NTFS_FS=m
# CONFIG_NTFS_RW is not set
CONFIG_FUSE_FS=m
and
Code:
[mymachine:~]:lsmod | grep fuse
fuse                   47124  3 
[sojourner2:~]:lsmod | grep ntfs
[sojourner2:~]:
So when I am mounting my NTFS partition, the fuse module must be handling everything.

Also, I can create files and directories on my NTFS partition, and I can increase the file sizes.

So, once again, I would recommend downloading the latest kernel sources, and building a shiny new kernel.
 
Old 12-29-2007, 03:40 AM   #9
Camarade_Tux
LQ Newbie
 
Registered: Dec 2007
Location: Paris
Distribution: Slackware-current
Posts: 27

Rep: Reputation: 15
I just meant to give the reason why the ntfs driver in the kernel did not let Twister write.

As for recompiling the kernel, there's no need to : that's really overkill and you'll still need to use the ntfs-3g command instead of mount.

(* short how-to for Twister512 *)
If you have ntfs support enabled in your kernel, then the following command would work but give a ro mount.
Quote:
root@A6T-nix:~# mount /dev/hdc5 /mnt/hdc5
mount: unknown filesystem type 'ntfs'
Here I'm sure it won't because of "# CONFIG_NTFS_FS is not set" in my kernel config.

Quote:
root@A6T-nix:~# ntfs-3g /dev/hdc5 /mnt/hdc5
root@A6T-nix:~#
Quote:
root@A6T-nix:~# mount
/dev/hdc6 on / type xfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdc5 on /mnt/hdc5 type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
If the fuse kernel module is not present (default in slackware iirc), get [url=http://fuse.sourceforge.net/]fuse from sf[/ur], expand and run ./configure. Maybe the kernel module won't be enabled by default. If so, use ./configure --enable-kernel-module (or similar) then of course make && make install.
Now, get ntfs-3g, configure, make and make install.
Finally mount with "ntfs-3g <device> <mountpoint>".


I just think a whole kernel compile is unnecessary lengthy just to get ntfs write support especially since you'll need to install the fuse userspace tools and libs anyway.
 
Old 12-29-2007, 09:32 AM   #10
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Camarade_Tux View Post
I just think a whole kernel compile is unnecessary lengthy just to get ntfs write support especially since you'll need to install the fuse userspace tools and libs anyway.
I see a lot of Slackware posters clinging to old kernels, so I frequently suggest upgrading via building from source, because that is the way I like to do it.

However, I finally poked around on the Slackware site and I see that you can upgrade your kernel as a package. That would accomplish the same goal, presumably. Or are the Slackware folks dead set against enabling NTFS write support?
 
Old 12-29-2007, 10:06 AM   #11
jfxg
LQ Newbie
 
Registered: Aug 2007
Distribution: PClinuxOS
Posts: 25

Rep: Reputation: 15
on page 6 in the following HowTo it tells you how to download and install FUSE and NTFS-3g from SLACKBUILDS:

http://www.howtoforge.com/the_perfec...op_slackware12

NTFS-3g has been used since at least 2.6.18 or 19, and is included in most distros that I've looked at. It works well and is easy to install with the scripts provided by SLACKBUILD.
hope this helps.

Last edited by jfxg; 12-29-2007 at 10:07 AM.
 
  


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
Can't mount cd drives Abomb Debian 3 01-17-2006 10:21 PM
Optical drives don't automount in Slack 10.1 thorney Linux - Newbie 1 08-06-2005 08:26 AM
slack 10.1 on SATA drives acidjuice Slackware 7 02-17-2005 11:26 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
Slack 10 Kernel 2.6.7 and CD-drives Gonzolo2k Slackware 3 07-16-2004 12:07 PM

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

All times are GMT -5. The time now is 02:41 PM.

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