You are not logged in.

#1 2009-11-02 13:54:08

ShortError
Member
Registered: 2009-06-19
Posts: 28

Mount problems

OK i have 2 internal hard drives, on my 2nd hard drive i am wanting to have complete read/write access but the only place i can get the drive to mount is /media/<foo>

fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
UUID=07d05d7e-0f85-4485-a1f0-53f1a713dfe1 /media/hdd  ext4 defaults 0 1
UUID=43a2ad34-0c4a-4ed6-b2b2-89b9547ff3e4 /boot ext2 defaults 0 1
UUID=59d2ce8c-e69d-4ad3-9914-23732881c3a3 /home ext4 defaults 0 1
UUID=ba08641f-df56-4a51-b22c-3203465d7091 / ext4 defaults 0 1
UUID=f9c966b8-6d16-4dac-afbb-6f36b6aec67b swap swap defaults 0 0

With it only being mounted in /media/ i do not have full write access.
i need to have full read/write.

Offline

#2 2009-11-02 14:13:53

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Mount problems

The type of access does not depend on the mount point. Are you sure it's not just a permission problem?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#3 2009-11-02 14:29:52

ShortError
Member
Registered: 2009-06-19
Posts: 28

Re: Mount problems

im not sure, but also when i open thunar the hard drive is not listed in the left panel.

Offline

#4 2009-11-02 14:53:29

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Mount problems

Is it mounted at all, then? Check with mount -l.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#5 2009-11-02 15:00:33

ShortError
Member
Registered: 2009-06-19
Posts: 28

Re: Mount problems

$ mount -l
/dev/sda3 on / type ext4 (rw)
none on /dev type tmpfs (rw,relatime,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda4 on /home type ext4 (rw)
[b]/dev/sdb1 on /media/hdd type ext4 (rw) [hdd][/b]

yes it is mounted

Offline

#6 2009-11-02 15:52:31

SIGTERM
Member
Registered: 2009-09-19
Posts: 67
Website

Re: Mount problems

ShortError wrote:
$ mount -l
/dev/sda3 on / type ext4 (rw)
none on /dev type tmpfs (rw,relatime,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda4 on /home type ext4 (rw)
[b]/dev/sdb1 on /media/hdd type ext4 (rw) [hdd][/b]

yes it is mounted

Well, that's rather strange, because it is telling you, you have read-write permissions.
Can you post the output of

ls -l /media/hdd

Offline

#7 2009-11-02 20:21:54

ShortError
Member
Registered: 2009-06-19
Posts: 28

Re: Mount problems

SIGTERM wrote:

Well, that's rather strange, because it is telling you, you have read-write permissions.
Can you post the output of

ls -l /media/hdd
$ ls -l /media/hdd
total 16
drwx------ 2 root root 16384 2009-11-02 01:17 lost+found

Offline

#8 2009-11-02 20:33:35

SIGTERM
Member
Registered: 2009-09-19
Posts: 67
Website

Re: Mount problems

Well this shows only user root has read, write and execute permissions. That's not right.
To give the owner (root) and the group members (members of group root) permission to read/write/execute /media/hdd, do:

# chmod -R 770 /media/hdd

To give everyone permission to read/write/execute /media/hdd, do:

# chmod -R 777 /media/hdd

Also, for more chmod "codes": http://jeffhowden.com/code/javascript/chmod/

Edit: If you want to have read/write/execute permission without having to sudo (just your user), do:

# chown -R <youruser> /media/hdd
# chgrp -R users /media/hdd
# chmod -R 700 /media/hdd

I think.

Last edited by SIGTERM (2009-11-02 20:36:40)

Offline

#9 2009-11-02 20:49:07

ShortError
Member
Registered: 2009-06-19
Posts: 28

Re: Mount problems

Ok that gave me everything that i was looking for and i thank you, but why is it the drive was not auto mounted and i had to go thru all the trouble of adding it to fstab. Why did HAL not see it?

Offline

#10 2009-11-02 20:53:09

SIGTERM
Member
Registered: 2009-09-19
Posts: 67
Website

Re: Mount problems

I think HAL did see it, but your window manager/desktop manager just didn't auto-mount it. I don't know what WM/DM you are using, but Fluxbox for example, doesn't auto-mount drives by default. Gnome, on the other hand, does, by default.
By the way, the "chmod -R 770" is probably the best option.

Offline

#11 2009-11-02 21:30:21

ShortError
Member
Registered: 2009-06-19
Posts: 28

Re: Mount problems

Well i use XFCE.

Offline

#12 2009-11-03 13:08:10

SIGTERM
Member
Registered: 2009-09-19
Posts: 67
Website

Re: Mount problems

In XFCE, you have to enable auto-mount. Perhaps you hadn't do that yet?
https://help.ubuntu.com/community/LowEndSystemSupport
Anyway, it's working now, right?

Offline

#13 2009-11-03 17:09:53

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Mount problems

ShortError wrote:

Well i use XFCE.

Xfce4 volume management has been buggy for me for over a year; so much so that I recently switched to KDE.
If you are still having similar issues, do a forum/google search for xfce, hal, eject, mount, you may find some patches/workarounds to get hal to play nice again.

Offline

Board footer

Powered by FluxBB