SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I added the NTFS partitions to be visible in Linux. When I go to them, it says "Failed to read folder".
Can I fix this or do I have to reinstall?
Also, my mouse wheel dont work, any ideas?
Thanks!
[EDIT] I figured out the partition problem. Only root can mount them. Can I set it so that I dont have to be logged in as root to mount the partitions?
You will need to set the uid and umask permissions in the fstab. 'man mount' should get you the info you need. Just post back if you are still having trouble.
Another cool thing in *nix is the gpm mouse server. This will
allow you to drag over text with the left mouse button, which
highlights that text; then go somewhere else (even another app)
and click the scroll wheel (middle button) and paste that text.
So, you see, there might be several ways in *nix that your
mouse's wheel doesn't work...
Originally posted by masonm
/dev/hda1 /windows ntfs user,umask=0000 1 0
I'd like to mention this might not be safe ... it just depends.
That line above is going to mount your filesystem like this:
Code:
/dev/hda1 on /windows type ntfs (rw,noexec,nosuid,nodev,umask=0000)
With the Linux kernel, writing to NTFS filesystems is not yet stable.
If you are aware of the dangers, and prepared to write to the system,
then use that line.
If not, I would suggest you change it to something like this:
/dev/sda1 on /WinXP type ntfs (ro,noexec,nosuid,nodev,umask=1000)
It will be mounted ro (read-only), automatically mounted when you boot
your system, and any user (users) can unmount it, rather than just the
user who mounted it.
NB: Some Slackware provided kernels do not have NTFS write capablility
compiled by default, where others do:
Code:
mingdao@paul:~$ cat /backup2/Slackware-10.2/kernels/bare.i/config | grep -i ntfs
CONFIG_NTFS_FS=m
# CONFIG_NTFS_RW is not set
mingdao@paul:~$ cat /backup2/ftp/pub/Linux/Slackware/slackware-current/kernels/sata.i/config | grep -i ntfs
CONFIG_NTFS_FS=m
# CONFIG_NTFS_RW is not set
mingdao@paul:~$ cat /backup2/ftp/pub/Linux/Slackware/slackware-current/extra/source/linux-2.6.17.11/config-generic-2.6.17.11 | grep -i ntfs
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
I didn't go back further than the default Slackware-10.2 kernel; and
you can see that the default Slackware-11.0 RC3 kernel does not have
rw (read/write) compiled. But the Slackware-11.0 RC3 2.6.11.17 kernel
in extra/ does.
Still, this falls under 'good practices' for *nix systems to specify
the perms in /etc/fstab.
Good point Bruce. my bad. You really should mount it ro to avoid trashing your windows partition with a bad write. I have been tinkering with ntfs writing and forgot to edit that line when I posted it.
You do edit /etc/fstab the file already has a line that you
simply need to change. If you will post the output of your
/etc/fstab file, we'll tell you exactly how to change it.
Just open a terminal, maybe using konsole, and type
cat /etc/fstab
and then press Enter.
i have 5 ntfs mounts and i want them to be read/write for anyone on my linux(ubuntu) box, but from what i gather one is not supposed to make ntfs write. how come?
and to make it totally accesable will "/dev/hda1 /windows ntfs user,umask=0000 1 0" that work??
In that terminal you type "pico /etc/fstab" without the quotes,
and press Enter. Then you can backspace and delete and type
just like you're used to doing. When you finish changing these
lines, enter "Ctrl+X" to exit, then "Y" to save the buffer, then
"Enter" to save it as the filename which you opened.
Afterwards you need to unmount and then remount those partitions.
You will use the same terminal (konsole or whatever) and issue as
root "umount /fat-c && umount /fat-d" without the quotes. That
will unmount (umount) them both at one time. Then you need to
mount them. You can issue "mount -a" as root and it will mount
them. Afterwards you issue "mount" and that command will show
you what is mounted.
It should have something like this for your ntfs drives:
Code:
/dev/hda1 on /fat-c type ntfs (ro,noexec,nosuid,nodev,umask=1000)
/dev/hda1 on /fat-d type ntfs (ro,noexec,nosuid,nodev,umask=1000)
And now, for the lagniappe you were hoping to get.
Quote:
Originally posted by WayneS
I am looking forward to learning all of this stuff.
i have 5 ntfs mounts and i want them to be read/write for anyone on my linux(ubuntu) box, but from what i gather one is not supposed to make ntfs write. how come?
and to make it totally accesable will "/dev/hda1 /windows ntfs user,umask=0000 1 0" that work??
Thank you
SV452
As Bruce already correctly pointed out ntfs writing in Linux is still experimental and somewhat unstable. You run the risk of trashing your ntfs partitions by allowing write functions to them from Linux.
I have been tinkering around with ntfs write and have experienced some problems, so I can attest to the fact that it is not yet stable enough to allow as a normal practice. I've had to restore that partition three times already.
Write to ntfs at your own risk, as you have been warned.
You should create a vfat partition if you want to share data between your Linux and Windows. AFAIK, writing to NTFS partition is not fully supported in Linux, so do it at your risk. ^_^
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.