Jump to content
Sign in to follow this  
YaAqoB

Partition acting weird [Solved]

Recommended Posts

Hi all.

I have a partition called /mnt/LinuxStuff

I can create new directories and write to that directory but it won't allow me to create or write to any of the directories inside /mnt/LinuxStuff

Anyone one have any clues as to why I can't add files to the directories I can create.

The line in fstab is as follows

 

/dev/hdd2 /mnt/LinuxStuff ext3 defaults 1 2

Edited by YaAqoB

Share this post


Link to post
Share on other sites

Indeed, this sounds like a problem with permissions. If the user you're logged on with is not part of the user group of the user that created the dirs/files, you won't be able to write to them.

 

If this is the case, you could simply add yourself to the right user group and you'll be able to access the files/dirs.

 

If you created the files/dirs with root, it would be a bad idea to add yourself to the root group as that is rather insecure. It would be better, then, to just change the owner of the dirs to your preferred login's name using chown.

Share this post


Link to post
Share on other sites
Just to double-check, are you sure that the partition is mounted? Not just a folder where you think the partition is mounted?

 

Hmmm, good point, didn't even think of that ...

Share this post


Link to post
Share on other sites

Sorry for the slow reply.

The drive is mounted.

How do I use chown to give ownership of /mnt/LinuxStuff & /mnt/Movies and their sub directories to myself?

Share this post


Link to post
Share on other sites

I'm having the same issues with /mnt/Movies

Here is my entire fstab file just incase there is something in there causing grief.

 

/dev/hda6 / reiserfs notail 1 1

none /dev/pts devpts mode=0620 0 0

/dev/hdd2 /mnt/LinuxStuff ext3 defaults 1 2

/dev/hdd1 /mnt/Movies vfat umask=0,iocharset=iso8859-15,codepage=850 0 0

/dev/hdb5 /mnt/OtherStuff ntfs umask=0,nls=iso8859-15,ro 0 0

/dev/hdb1 /mnt/WindowsApps ntfs umask=0022 0 0

/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0

/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-15,ro 0 0

none /proc proc defaults 0 0

/dev/hda5 swap swap defaults 0 0

/dev/sdd1 /mnt/hd auto umask=0,user,iocharset=iso8859-15,sync,kudzu,codepage=850,noauto,exec,users 0 0

Share this post


Link to post
Share on other sites

THank you very much for that.

It gave me a whole buch of errors about not having user acces to do it but still worked anyway. Not sure why it went like that to start with but its working so I'm happy.

Thanks again :thanks:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...