Can't access drive partioned and formatted with gparted

Try this :

Code:
sudo umount /dev/sdb1
sudo gedit /etc/fstab

Then paste the following line onto the end of fstab :

Code:
/dev/sdb1 /media/disk rw,nosuid,nodev,uhelper=hal,users

Save and exit the editor. Then :

Code:
sudo mount /dev/sdb1


If that fails, then I give up. :p
 
It's all fine until I try to mount the drive again...

When I try to mount it through the file browser it says...


Strange!

My bad. I assumed that the mount point would remain. You can make a permanent one...

Code:
sudo mkdir /media/disk
sudo mount /dev/sdb1
 
That /etc/fstab entry should be more like the below, so I'd try changing it to that and trying the mount again
Code:
/dev/sdb1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal,users 0 0
(missing the file system type, fsck prioirity and I forget what the other option is)
 
Ok I've put this in my fstab

Code:
/dev/sdb1 /media/disk ext3 rw,users

It mounts but getting permission denied when I try to write. :mad:
 
That /etc/fstab entry should be more like the below, so I'd try changing it to that and trying the mount again
Code:
/dev/sdb1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal,users 0 0
(missing the file system type, fsck prioirity and I forget what the other option is)

Doing this has enabled the drive to be mounted again but the original problem still exists. I can't create folders or copy files to the drive unless I do it through terminal using "sudo".
 
That /etc/fstab entry should be more like the below, so I'd try changing it to that and trying the mount again
Code:
/dev/sdb1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal,users 0 0
(missing the file system type, fsck prioirity and I forget what the other option is)

I've tried your entry. Permission denied. Something needs chowning, somewhere.
 
I'll unmount and try formatting with Ubuntu's disk management tools.

Sometimes one feels like running back to Window's open arms. :p


Ironically, I had this problem before on Arch Linux and I solved it. My memory is not what it used to be.
 
I never thought the prospect of mounting a HDD would have me so excited.

I need to get out more :p
 
I just updated the original fstab suggestion, I normally just go for
Code:
<device> <mount point> <filesytem type> defaults 0 0

What does 'ls -la /media/disk' produce?
 
I did a :

Code:
ls -lh /media
and saw :

Code:
drwxr-xr-x 23 root   root 4.0K 2008-12-02 21:39 disk

The key is
Code:
sudo chown ubuntu:ubuntu /media/disk

That command gives ownership of the mount point to ubuntu user and group. It was root user and group before. Hence only root could write to it.

I feel so silly.:o
 
ls -lh /media/disk produces...
total 8.0K
lrwxrwxrwx 1 root root 6 2008-08-26 19:56 cdrom -> cdrom0
drwxr-xr-x 2 root root 4.0K 2008-08-26 19:56 cdrom0
drwxr-xr-x 4 blainhead root 4.0K 2008-12-02 22:04 disk

I did the chown suggested above and i am now able to cut and past folders and files already on the drive but I cannot move any files to it or I cannot create any files or folders on it.:confused:
 
Yeah it appears as mounted after a reboot and I can navigate to and browse the drive through the file browser but it won't let me move any files to the drive or delete any form it. The only folder on the drive at the minute is the standard "lost + found".

That doesn't prove it's mounted.

In a terminal cd to where you mount it, then do these commands.

Code:
#mount
#ls -lrath
#df
#cat /etc/fstab

Post the output, it should be more than enough to see what's going on.







Edit:
waaaaay too late. Ignore the above.

Only root has write access still, going by that ls.

you need to do:
Code:
#sudo chmod 666 /media/disk

Assuming /media/disk is the mount point.
 
Last edited:
Back
Top Bottom