LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   usb mounting error: "TODO: have to rethink extra options" (https://www.linuxquestions.org/questions/linux-hardware-18/usb-mounting-error-todo-have-to-rethink-extra-options-657614/)

kaiwan 07-23-2008 02:17 AM

usb mounting error: "TODO: have to rethink extra options"
 
Hi!
I have takeMS usb memory stick, 8gb, ntfs formated.
When I plug it in, my openSuse 11 (kde3) gives me this error message:
"TODO: have to rethink extra options" and refuses to mount it. I tried to format the stick but didnt help. The stick works fine under XP, and worked fine with Ubuntu 8.04. Must be ntfs cause I often exchange files with win computers. My other ntfs usb sticks work fine on suse, only thie one fails.

aus9 07-23-2008 07:46 PM

yes its the format....see if suse has the ntfs-3g package installed please?

syg00 07-23-2008 08:01 PM

Sounds like a dodgy udev rule. Should be a comment methinks.

sm4rk0 07-23-2008 09:32 PM

I've just solved the same problem by following this thread.
Please come back here and add "SOLVED:" to the thread title if it works for you.

kaiwan 07-24-2008 01:49 AM

Quote:

Originally Posted by aus9 (Post 3224312)
yes its the format....see if suse has the ntfs-3g package installed please?

yes it is installed...

kaiwan 07-24-2008 01:55 AM

Quote:

Originally Posted by sm4rk0 (Post 3224376)
I've just solved the same problem by following this thread.
Please come back here and add "SOLVED:" to the thread title if it works for you.

as I can see they are doing HAL paching on Arch. I am not sure how will it work on suse, and as I am newbie it is not a good idea to patch anything myself...

aus9 07-24-2008 03:22 AM

ok if you have ntfs-3g try amending with root powers your /etc/fstab after making a new mount folder

Code:

mkdir /mnt/8g
then it fstab new line pls...depending on whether you already have sda sdb...etc

/dev/sda1 /mnt/8g ntfs-3g users,rw 0 0

change sda1 to some other thing depending on what you have got....if problems post your current fstab file and make a backup pls

kaiwan 07-24-2008 03:55 AM

Quote:

Originally Posted by aus9 (Post 3224629)
ok if you have ntfs-3g try amending with root powers your /etc/fstab after making a new mount folder

Code:

mkdir /mnt/8g
then it fstab new line pls...depending on whether you already have sda sdb...etc

/dev/sda1 /mnt/8g ntfs-3g users,rw 0 0

change sda1 to some other thing depending on what you have got....if problems post your current fstab file and make a backup pls


This worked:
Code:

mount -t ntfs-3g /dev/sdb1 /home/miroslav/sdb1 -o force
This is my fstab:
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>

proc        /proc        proc        defaults        0        0
sysfs        /sys        sysfs        noauto        0        0
usbfs        /proc/bus/usb        usbfs        noauto        0        0
devpts        /dev/pts        devpts        mode=0620,gid=5        0        0
/dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEB531RE021UKB-part3        /        ext3        acl,user_xattr        1        1
/dev/sda7        /media/Data        ntfs-3g        defaults,locale=en_US.UTF-8        0        0
/dev/sda5        /media/Multimedia        ntfs-3g        defaults,locale=en_US.UTF-8        0        0
/dev/sda6        /media/Personal        ntfs-3g        defaults,locale=en_US.UTF-8        0        0
/dev/sda1        /media/XP_disk        ntfs-3g        defaults,locale=en_US.UTF-8        0        0
/dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEB531RE021UKB-part4        swap        swap        defaults        0        0
debugfs        /sys/kernel/debug        debugfs        noauto        0        0


/dev/sda4            /data2              ext3      defaults              1 1
/dev/sda4            /data3              ext3      defaults              1 1

There is something strange in it on these lines:
Code:

/dev/sda4            /data2              ext3      defaults              1 1
/dev/sda4            /data3              ext3      defaults              1 1

[/CODE]

Can I remove it ?

Than I could add this for usb:
Code:

mount -t ntfs-3g /dev/sdb1 /home/miroslav/sdb1 -o force

aus9 07-24-2008 08:29 AM

I am not familar with the force parameter but what you have is a manual mount command and the syntax changes a little if to a fstab entry so try

/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0

and see if that works pls

2) can you remove it? well is there a partition called /dev/sda4? and do you have those data folders?

Can you remember if you created both or what?.

Maybe your opensuse has got confused but only you know if there should be 2 folders or one.

if 2 folders correct the fstab entry....if 1 folder delete the incorrect fstab entry

kaiwan 07-24-2008 08:41 AM

Quote:

Originally Posted by aus9 (Post 3224921)
I am not familar with the force parameter but what you have is a manual mount command and the syntax changes a little if to a fstab entry so try

/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0

and see if that works pls

2) can you remove it? well is there a partition called /dev/sda4? and do you have those data folders?

Can you remember if you created both or what?.

Maybe your opensuse has got confused but only you know if there should be 2 folders or one.

if 2 folders correct the fstab entry....if 1 folder delete the incorrect fstab entry

I have fixed my parition table. Suse was confused.

I followd your advice and got error message:
Code:

/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0
Code:

Error opening '/dev/sdb1': Permission denied
Failed to mount '/dev/sdb1': Permission denied
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged


aus9 07-24-2008 05:13 PM

from the last error link>>>>ALL quoted work not mine.
Why don't the 'user' and 'users' options work in /etc/fstab?
The 'mount' command doesn't invoke the ntfs-3g binary with the needed privilege after it has checked and approved the user is entitled to mount a given device on a specified mount point, hereby the user can't open the device he got the approval in /etc/fstab. This is a problem in the 'mount' utility.

Solution: Use at least NTFS-3G 1.2506 with setuid-root set and make sure the user has access rights to the volume and mount point.

Please note that using setuid-root can result unforeseen privilege escalation and its usage is discouraged. Only the absolutely trusted users must be granted such access. Below is an example how this can be done for users in the ntfsuser group to be able to mount any NTFS volume if they have also the needed volume access rights.

Code:

chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)

The setuid-root ntfs-3g driver applies the principle of least privilege during its lifetime as a safety measure.

aus9 07-24-2008 05:14 PM

if setuid causes you any concern....then only let root mount your device pls


All times are GMT -5. The time now is 11:03 AM.