LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2008, 11:14 PM   #1
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Problems with USB External Hard Drive on Slackware 12.1


All,

I'm having strange problems with an external hard drive I own. I have two partitions (sda1 31GB FAT32 and sda3 XFS; drive is 500GB). When I plug it in, Xfce sees it and shows their icons on the desktop. Normally, right-clicking to mount and/or directly opening works fine. However, tonight I tried using vobcopy while in /media/disk (the XFS partition) as root, and root could not write to /media/disk/Movies/. However, I know it's not vobcopy because, as a normal users, vobcopy from the user's Desktop works fine. The DVD mount and unmounts fine.

So neither the user nor root can write to the XFS partition. That's odd since it's owned by the user, and root should have no restrictions. I checked mount and it was mounted rw (although hal was set up as a mount option in the output of "mount").

I saw there was some sort of helper=hal or whatever in the mount options of the partition. When I remounted the disk in place (basically to eliminate hal from the equation: mount /dev/sda3 /media/disk -t xfs -o remount,rw) the user could once again copy files. This is odd because the entire XFS partition is owned by robert:users and chmod 700: it should've worked previously.

And even then, sometimes it doesn't work at all: the device won't let me use it that way.

Since I'm a HAL and UDEV newbie, what's the most elegant way to fix this problem? I read /usr/doc/hal*/*/* but to no avail. Thanks!

It seems it could be related to vobcopy since even when I specify the output directory, it converts spaces in the directory names to underscores....

Last edited by TwinReverb; 10-29-2008 at 11:53 PM.
 
Old 11-03-2008, 05:59 PM   #2
gmbastos
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
Greetings, TwinReverb.

I must be honest: I do not see the point why you ought to set permissions to 700.

I should at least try to set permissions to 770 by the time the device is mounted (as options), as the owner can write to the XFS partition, allowing any user belonging to the group "users" to mount, ls, read and write.

Setting the "users" option on fstab will allow any user to mount and umount it at will. In a business network that would be a terribly bad idea, though.

If there is some other user and you would like not to grant him/her access to the device, just create a new group, assign the device to it (again as options) and give it permission to do it all at mount time (always as options).

Regards.
 
Old 11-05-2008, 11:06 AM   #3
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by gmbastos View Post
Greetings, TwinReverb.

I must be honest: I do not see the point why you ought to set permissions to 700.

I should at least try to set permissions to 770 by the time the device is mounted (as options), as the owner can write to the XFS partition, allowing any user belonging to the group "users" to mount, ls, read and write.

Setting the "users" option on fstab will allow any user to mount and umount it at will. In a business network that would be a terribly bad idea, though.

If there is some other user and you would like not to grant him/her access to the device, just create a new group, assign the device to it (again as options) and give it permission to do it all at mount time (always as options).

Regards.
Well chmod 700 because i want it only readable by that user (and obviously root). That shouldn't prevent root from being able to write to it, as root is as if you are the OS itself.

The problem I still get is when hal wants to use the drive. It gives me errors when hal is loaded as the helper. I usually end up having to (once per session) remount without that option, then magically everything works.

EDIT: fwiw going "oldschool" with /etc/fstab and no udev or hal works fine, but the problem is with the fstab lines commented out and using udev and hal (i.e. stock slackware) they don't honor unix permissions. I think this is one of those feature requests for hal and/or udev that they can be told "if it's a USB drive bigger than 16GB, it's an external hard drive", etc.

Much less you can use any FS you want on a USB stick (well, on most), so they should be autodetecting, not assuming mount options for vfat. Some people might be using a chroot environment on their external USB hard drives, for example.

Last edited by TwinReverb; 11-05-2008 at 11:10 AM.
 
Old 12-01-2008, 05:06 AM   #4
Rexrino
LQ Newbie
 
Registered: Nov 2008
Distribution: slackware 12.0
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by TwinReverb View Post
All,

I'm having strange problems with an external hard drive I own. I have two partitions (sda1 31GB FAT32 and sda3 XFS; drive is 500GB). When I plug it in, Xfce sees it and shows their icons on the desktop. Normally, right-clicking to mount and/or directly opening works fine. However, tonight I tried using vobcopy while in /media/disk (the XFS partition) as root, and root could not write to /media/disk/Movies/. However, I know it's not vobcopy because, as a normal users, vobcopy from the user's Desktop works fine. The DVD mount and unmounts fine.

So neither the user nor root can write to the XFS partition. That's odd since it's owned by the user, and root should have no restrictions. I checked mount and it was mounted rw (although hal was set up as a mount option in the output of "mount").

I saw there was some sort of helper=hal or whatever in the mount options of the partition. When I remounted the disk in place (basically to eliminate hal from the equation: mount /dev/sda3 /media/disk -t xfs -o remount,rw) the user could once again copy files. This is odd because the entire XFS partition is owned by robert:users and chmod 700: it should've worked previously.

And even then, sometimes it doesn't work at all: the device won't let me use it that way.

Since I'm a HAL and UDEV newbie, what's the most elegant way to fix this problem? I read /usr/doc/hal*/*/* but to no avail. Thanks!

It seems it could be related to vobcopy since even when I specify the output directory, it converts spaces in the directory names to underscores....
I had to get it to mount by putting:

/dev/sda1 /mnt/hd auto noauto,users,rw 0 0

in the fstab.

After that I just [mount /dev/sda1] and it mounted.

Using different distros, suse, ubuntu, etc I had different results but using the mount with the proper drive in fstab always worked.

in ubuntu it came up as /dev/sda4, for whatever reason, so I put /dev/sda4 in the fstabe and had no problem mounting the usb drive.

By the way, I purchased a ide to usb cable and use it all the time with laptop drives and desktop drives. Haven't gotten it to work with a Cdrom drive yet.
 
Old 12-01-2008, 05:08 AM   #5
Rexrino
LQ Newbie
 
Registered: Nov 2008
Distribution: slackware 12.0
Posts: 4

Rep: Reputation: 0
I'm looking for help with compiling audacity. I'm using slack 12.1 and I keep getting the error epact not enabled when I do ./configure.

I've installed libepact but that doesn't seem to help.

Any help would be appreciated.

Rexrino
 
Old 12-01-2008, 05:17 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Rexrino View Post
I'm looking for help with compiling audacity. I'm using slack 12.1 and I keep getting the error epact not enabled when I do ./configure.

I've installed libepact but that doesn't seem to help.

Any help would be appreciated.

Rexrino
What does this question have to do with the topic of this thread which is "Problems with USB External Hard Drive on Slackware 12.1"?

Please open your own new thread for this question.

Eric
 
  


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
Problems getting external USB hard drive to work pwaring Debian 4 11-24-2008 08:15 AM
Problems mounting usb external hard drive... Linux~Powered Slackware 3 06-05-2008 10:55 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Problems with getting external USB hard drive working pwaring Linux - Hardware 10 12-08-2005 07:53 AM
USB port problems....... (external hard drive) g07Hh4XX0r Linux - Hardware 1 05-16-2004 03:49 PM

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

All times are GMT -5. The time now is 10:32 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