FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 03-26-2011, 02:37 AM
Suvayu Ali
 
Default External HDD auto-mounted as root

Hi everyone,

I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
it in, it auto-mounted as the regular user. But after I formatted it to
use ext4 (with gparted), it keeps getting auto-mounted as root both on
F13 and F14. Any ideas what I could do about this?

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 02:49 AM
Hiisi
 
Default External HDD auto-mounted as root

On 26 March 2011 06:37, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> Hi everyone,
>
> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
> it in, it auto-mounted as the regular user. But after I formatted it to
> use ext4 (with gparted), it keeps getting auto-mounted as root both on
> F13 and F14. Any ideas what I could do about this?
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
> --

What about writing udev rule?
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 03:07 AM
JD
 
Default External HDD auto-mounted as root

On 03/25/2011 08:37 PM, Suvayu Ali wrote:
> Hi everyone,
>
> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
> it in, it auto-mounted as the regular user. But after I formatted it to
> use ext4 (with gparted), it keeps getting auto-mounted as root both on
> F13 and F14. Any ideas what I could do about this?
>
Udev is the daemon that associated a drive name in /dev
with a physical drive. You have a choice of either using
uuids or make udev rules for each drive.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 03:46 AM
Ed Greshko
 
Default External HDD auto-mounted as root

On 03/26/2011 11:37 AM, Suvayu Ali wrote:
> Hi everyone,
>
> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
> it in, it auto-mounted as the regular user. But after I formatted it to
> use ext4 (with gparted), it keeps getting auto-mounted as root both on
> F13 and F14. Any ideas what I could do about this?
>

I've not done this in a while...and certainly not with having the drive
auto-mounted (habit, no other reason).

But, since my system is a single user system I've always just cd to
/media or /mnt and then just chown myuid:mygroup mntpoint after doing
the mkfs and after mounting it the first time.

Since my external drives were all ext3 they just come up as being owned
my me from that point on.

--
A CONS is an object which cares. -- Bernie Greenberg. 葛斯克 愛德華 / 台
北市八德路四段

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 03:47 AM
suvayu ali
 
Default External HDD auto-mounted as root

Hi Hiisi and JB,

On Fri, Mar 25, 2011 at 9:07 PM, JD <jd1008@gmail.com> wrote:
> On 03/25/2011 08:37 PM, Suvayu Ali wrote:
>> Hi everyone,
>>
>> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
>> it in, it auto-mounted as the regular user. But after I formatted it to
>> use ext4 (with gparted), it keeps getting auto-mounted as root both on
>> F13 and F14. Any ideas what I could do about this?
>>
> Udev is the daemon that associated a drive name in /dev
> with a physical drive. You have a choice of either using
> uuids or make udev rules for each drive.
>

I presume by uuids you mean put it in my fstab? And wouldn't udev rules
be machine specific too? Doesn't either of these defeat the purpose of
portable external drives? I would have to do this one all my current
systems, and all future systems I wish to use these drives with?

I was hoping there would be a more generic solution. I am surprised
since my USB flash drives are auto-mounted as regular user just fine.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 03:59 AM
Robert Nichols
 
Default External HDD auto-mounted as root

On 03/25/2011 10:37 PM, Suvayu Ali wrote:
> Hi everyone,
>
> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
> it in, it auto-mounted as the regular user. But after I formatted it to
> use ext4 (with gparted), it keeps getting auto-mounted as root both on
> F13 and F14. Any ideas what I could do about this?

Are you talking about the ownership of the root directory on the mounted
file system? That's stored in the directory's inode, just as with any
other directory. With the file system mounted, use 'chown' (as root) to
change that ownership to anything you want. Note that it's only the
numeric UID and GID that are stored. If you're moving that drive among
systems with different UID/GID->name mappings, you'll see different user
names as the owner.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 04:04 AM
JD
 
Default External HDD auto-mounted as root

On 03/25/2011 09:47 PM, suvayu ali wrote:
> Hi Hiisi and JB,
>
> On Fri, Mar 25, 2011 at 9:07 PM, JD<jd1008@gmail.com> wrote:
>> On 03/25/2011 08:37 PM, Suvayu Ali wrote:
>>> Hi everyone,
>>>
>>> I just bought a 1TB WD Passport. It came formatted as NTFS, on plugging
>>> it in, it auto-mounted as the regular user. But after I formatted it to
>>> use ext4 (with gparted), it keeps getting auto-mounted as root both on
>>> F13 and F14. Any ideas what I could do about this?
>>>
>> Udev is the daemon that associated a drive name in /dev
>> with a physical drive. You have a choice of either using
>> uuids or make udev rules for each drive.
>>
> I presume by uuids you mean put it in my fstab? And wouldn't udev rules
> be machine specific too? Doesn't either of these defeat the purpose of
> portable external drives? I would have to do this one all my current
> systems, and all future systems I wish to use these drives with?
>
> I was hoping there would be a more generic solution. I am surprised
> since my USB flash drives are auto-mounted as regular user just fine.
>
uuid's are supposed to be universal - but I am not sure what that means.
>From the man page:
OSSP uuid - Universally Unique Identifier Command-Line Tool

That said, I do not know of any way that will let you
connect your drive to any (Linux?) system and expect it to be automounted
onto some specific mount point (assuming the mount point exists).
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 04:10 AM
suvayu ali
 
Default External HDD auto-mounted as root

Hi Ed,

On Fri, Mar 25, 2011 at 9:46 PM, Ed Greshko <Ed.Greshko@greshko.com> wrote:
> But, since my system is a single user system I've always just cd to
> /media or /mnt and then just chown myuid:mygroup mntpoint after doing
> the mkfs and after mounting it the first time.
>
> Since my external drives were all ext3 they just come up as being owned
> my me from that point on.

Thanks a lot! This should have occurred to me. :-p Works like a charm.
Maybe it would be a worthwhile feature request for gparted to ask do
this when formatting an external drive.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 04:12 AM
suvayu ali
 
Default External HDD auto-mounted as root

On Fri, Mar 25, 2011 at 9:59 PM, Robert Nichols
<rnicholsNOSPAM@comcast.net> wrote:
> Are you talking about the ownership of the root directory on the mounted
> file system? *That's stored in the directory's inode, just as with any
> other directory. *With the file system mounted, use 'chown' (as root) to
> change that ownership to anything you want. *Note that it's only the
> numeric UID and GID that are stored. *If you're moving that drive among
> systems with different UID/GID->name mappings, you'll see different user
> names as the owner.

I was talking about the top level directory on the partitions of the
external drive. I couldn't write to it as the regular user. Following
Ed's trick to chown the first time retains it for subsequent mounts on
different systems.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 03-26-2011, 04:16 AM
suvayu ali
 
Default External HDD auto-mounted as root

Hi JD,

On Fri, Mar 25, 2011 at 10:04 PM, JD <jd1008@gmail.com> wrote:
> uuid's are supposed to be universal - but I am not sure what that means.
> >From *the man page:
> OSSP uuid - Universally Unique Identifier Command-Line Tool
>

Yes I was aware of that. That is why I asked if you meant for me to
use it in the fstab.

> That said, I do not know of any way that will let you
> connect your drive to any (Linux?) system and expect it to be automounted
> onto some specific mount point (assuming the mount point exists).

I was not talking about mount points. As far as I understand the mount
points are automatically generated from the device labels and mounted
under /media/<label>/ for removable media. My issue was the top level
directory on my removable drive was not writeable as the regular user.
Follow Ed's tip of chowning the first time does the trick. On
subsequent mounts on different systems the permissions are retained.

Thanks every one who replied. My issue has been solved.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 04:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org