Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Ok. on one computer (mandria 2008.0) i plug in the drive (entire drive, 1 partition, NTFS), in kde/gnome, drive pops up, mounted as ntfs-3g. on every other mandriva 2008.0 install in my house, i have to manually mount it (mount -t ntfs-3g /dev/sda1 /media/hd). i have a bunch of noobies at home, so its driving them and me nuts. i don't know/remember what i did to this one computer to make it special, other than using it all the time.
kernel messages when plugging it into any other install:
kernel: FAT: bogus number of reserved sectors
kernel: VFS: can't find a valid FAT filesystem on dev sda1
it would appear that i don't have ntfs support on the machine, but when i do
I don't use Mandriva, but I suggest you compare the /etc/fstab on the "working" system with the other systems. Perhaps you have an entry in there that needs to be copied.
my point is that it is a removable drive, so looking at /etc/fstab is a dead end. what should work at least is the kernel ntfs driver loading. i checked /proc/filesystems and its there, as well as fuseblk and ntfs-3g. it works manually, but not automatically.
and i would have to copy the script to every linux computer in the house. if this was a business of 500+ machines, this would not scale very well. however, the machine that does it automatically has a ntfs-3g entry, but for the windows partition (dual boots). the other machine in the house that dual boots, and has the ntfs-3g entries in /etc/fstab, has the same problem.
i suspect that the automatic mounting code for kde/gnome/maybe hal/udev? assumes all removable drives are fat, and this one is not. i have no idea how to check that assumption.
here is the fstab for the working machine:
Which desktops do your computers use? HAL/udev/PolicyKit/dbus and the desktop environment work together. HAL detects the drive when it is plugged in. Udev creates the node. Polkit determines whether the desktop user is allowed to mount removable drives. The desktop environment communicates via dbus.
The problem could be in how the desktop environment is configured. Or it could be that a needed service like dbusd isn't running. If you boot with the noacpi option, for example, udevd and dbusd will not run.
Monitoring the kernel messages with "sudo tail -f /var/log/messages" while inserting the usb cable may provide clues as well. My system, SuSE, won't automount a drive if it is listed in /etc/fstab; while Ubuntu, edits the /etc/fstab file and adds an entry.
Jul 13 22:22:04 localhost kernel: usb 5-1: USB disconnect, address 7
i am using mandriva 2008.0
the unsucessful computers do the FAT bogus number thing mentioned earlier.
i also noticed that the successful computer does not bother /etc/fstab, while the unsuccessful computers do.
my machines don't have dbusd running, nor policykit. they do have gnome-volume-manager (both machines have the same version). i tried looking for configuration files for both hal and gnome-volume-manager. there is no hald.conf, nor gnome-volume-manager.conf. is there a way to trace the commands haldaemon uses to mount the drives?
ok. i am making this too hard.
bottom line: my house is the only place where when you plug in a ntfs removable volume, you get FAT errors. apparently, everywhere else on the net, they get the ntfs read-only kernel driver. how do i fix that?
Look at this part of post #8. The ntfs-3g[11430] option is what interests me here. What is the process with the PID of 11430? (Repeating the monitoring experiment, the process number may be different.)
Look at /proc/11430/cmdline. It may indicate which program or daemon is looking at the ntfs volume.
Also check if you have a libvolume_id package. It examines filesystems and determines there type. I don't know for certain if the system uses it as well, but it could be the difference between the systems you looking at.
Look at /proc/filesystems. Do the items ntfs and those with fuse in their names match between the systems.
Look at `ls /sbin/mount.*'. Do you see mount.ntfs-3g, mount.fuse and may be something with "hal" in it's name?
compare the output of 'ps -e' on your systems. Does the one working have daemon running that isn't in the others?
---
Sorry I'm not being more helpful. This is a fuzzy and fast evolving area.
I don't have an external NTFS drive to plug in and compare, and my system probably does it differently than yours.
I just noticed that, on my Fedora system, the NTFS plugin for the gvfs is a separate module (ntfsprogs-gnomevfs). Perhaps you need that installed on the other systems, but have it installed on yours.
Look at the contents of the dkms-fuse and fuse-kernel packages. I suspect that they both contain the fuse kernel modules, but have been packaged differently.
FYI, if you use "cat /proc/<PID>/cmdline | tr '\0' ' ' ", the result will have NULL chars replaced with spaces, making it more readable.
Look at "rpm -qf /sbin/mount.ntfs-3g". It will identify the package supplying this file. What other files are in it. Anything dealing with HAL?
My system doesn't have the "uhelper=hal" part. Maybe look and see if you have the "ntfsprogs-gnomevfs" package, and check it's contents. Try "locate uhelper". Look in your "man mount" page. Mine has nothing about a uhelper option, but mentions the /sbin/mount.* programs.
I think there is a hal helper script somewhere that is used to identify the type of partition, and then mount it. On my system, in a previous version, there would be a matching rule in /etc/udev/udev.rules/* that matched "sd*" and had RUN+= at the end. You could search for such a rule. "grep 'sd\*' /etc/udev/udev.rules/* . With my current version, this was moved out of udev (probably due to PolicyKit and ConsoleKit being used for granting user permissions) and udev simply creates the /dev/disk/by-id/<device_node> link, and no longer creates a node with the users group changed. Now the node has an ACL granting the user permission. I mention this so it won't be a surprise if looking at the udev rules is a dead-end.
Also look at the "file" command. It may also be used to identify the type of filesystem on the partition.
Try "sudo file -s /dev/sda1" on the systems and see if the ntfs filesystem is detected on all of them.
Look for shell scripts, perl scripts and python scripts in /usr/lib/, /lib/ and /var/lib/. HAL often uses python for helper scripts. One of them may be identifying the filesystem and calling mount.ntfs-3g.
on the fail_machine, i have removed totally ntfs-3g and fuse. same problem. I tried the same drive, same fat bogus sector errors. manually it still works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.