LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-01-2014, 10:57 AM   #1
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Rep: Reputation: 18
can't save to "storage" partition, no permission


I have a 320 GiB HDD with 4 partitions with 1 distro installed on each partition. I also have one large partition for storage.

I can save anything to the large partition because of no permission.

How do I get pemission to thie drive?

Note: I don't get why it is doing this because I set up a smaller 60 GiB HDD the same way and there were not permission issues.
 
Old 03-01-2014, 01:00 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,317

Rep: Reputation: 124Reputation: 124
You need to give more information.
What filesystem is it on "storage", where is it mounted
What are the permissions on the storage mount-dir, including lowerlevel.
What groups is your user assigned to. (Any language-freaks outh there - should it be "is" or "are"?)

You have 3 distros so you need to go through this on all.
 
Old 03-02-2014, 09:59 PM   #3
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
Quote:
What filesystem is it on "storage", where is it mounted
I think the answe to this is ext4 since it has been formatted to ext4

Quote:
What are the permissions on the storage mount-dir, including lowerlevel.
don't know

Quote:
What groups is your user assigned to. (Any language-freaks outh there - should it be "is" or "are"?)
don't know, don't know what this means.

Funny thing, I only repeated the steps I followed on a 60 GiB drive. I had zero problem saving stuff to the storage partition on that drive. With the success I enjoyed on the 60 GiB drive, I decided to repeat the saems steps, and wind up with a larger storage partition. BUT in this case, I have no permissions.

I am wondering, does it matter if I create that partition while boted in one of the distros or if I am boted in the installation medioum on the USB drive?
 
Old 03-02-2014, 10:55 PM   #4
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,089

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
Do you have the partition mounted? If so, where?

Quote:
I am wondering, does it matter if I create that partition while boted in one of the distros or if I am boted in the installation medioum on the USB drive?
The partition will be there in any case but whether it is accessible depends upon how you did it. You would need to create a mount point and mount the partition on each of your distributions.
 
Old 03-03-2014, 07:47 AM   #5
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
Quote:
depends upon how you did it.
All I seem to remember is that, while in gparted, I right clicked on the unallocated space, selected "new" and slid the sizing grips to create a 200 GIG partition, slected ext4 and then "create" then clicked on the green check mark to excute the operation.

I don't remember being given any choices during that process that would prevent or grant permission. If memory serves, I am pretty sure that I did the same exact thing when I did this with a 60 gig drive and had no permission issues for saving stuff to the "storage" partition when booted in either of the distros.

The 320 GIG drive was used and has major mechanical issues and I am planning to buy a nice new one, but I will want to make sure that when I set up the new one, that I enjoy the same permissions that I have/do with this 60 GIG drive.

So, to your point
Quote:
You would need to create a mount point and mount the partition on each of your distributions.
For this fture drive, how should I proceed in oder not to run into this again? (and wy id it wok so well or the 50 gig with no problems?)

Thanks

Last edited by phazon; 03-03-2014 at 07:50 AM. Reason: spelling
 
Old 03-03-2014, 11:05 AM   #6
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,089

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
Quote:
I don't remember being given any choices during that process that would prevent or grant permission.
Using GParted is done as root user so there would be the default permissions.

You indicate you did this previously on another drive. Did you create this data partition during or after the install? Did you have four separate operating systems on the previous drive?

So in addition to answering the previous questions which you did not respond to, how did you create the partition? Did you use a LiveCD on a flash drive or CD/DVD? Did you did it from one of the installed Linux systems?

The first thing you would need to do is find out what the partition is. Since you have four Linux installs, it would probably be a logical partition so let's use sda6 as an example. You can find this by logging in as root and running the command: fdisk -l(Lower Case Letter L in the command). That will show your partitions and you should be able to identify it by size.

Once you know what it is, create a mount point which is basically a directory. For sda6 you would do as root: mkdir /mnt/sda6
Then mount it: mount -t ext4 /dev/sda6 /mnt/sda6

You need to do this for each distribution you have installed. If you want them mounted on boot, you will need entries in each systems /etc/fstab file.
 
Old 03-04-2014, 06:31 PM   #7
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
On the 60 gig, I may have created the additional partitions from the installed distro.

On the 320 gig, I definitely used the live media. Does that make a difference?

Also, I don't know how to, or if I am or ever logged in as root.

So let me ask this. When I set up the installed version, while in the live media, there was a point during each installation process whn it asked me for a user name and password. Was that a root password or was that just a user? If it was a root password, then am I not logged in as root whenever I log into the computer on boot up?

If not, then how do I log in as root?

Also, as far as

Code:
 mkdir /mnt/sda6
 mount -t ext4 /dev/sda6 /mnt/sda6
I follow that I can enter these sequentially from the terminal, but as far needing entries in fstab, would that be as simple as adding a lines that say

Code:
 mkdir /mnt/sda6
 mount -t ext4 /dev/sda6 /mnt/sda6
to the end of the body of text which is already there?

Thanks much for your responses.

Last edited by phazon; 03-04-2014 at 06:32 PM.
 
Old 03-04-2014, 07:25 PM   #8
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,089

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
Quote:
On the 320 gig, I definitely used the live media. Does that make a difference?
Is this in reference to the 'large' data partition? If you created the data partition from the live medium, it will still be available from your 4 different distributions as long as it is formatted, you have a filesystem on it.

Quote:
When I set up the installed version, while in the live media, there was a point during each installation process whn it asked me for a user name and password.
I expect that was a user password. I've never installed a Linux distribution which uses root that did not specifically inform me that I needed to create a password for the root user. Some distributions do not use root but rather use sudo and the primary user password. That would be how you would get root privileges and if you are using Ubuntu or one of its derivatives, this would apply. You haven't given any information on which distributions you are using so there is no way for anyone here to give an accurate answer.

Quote:
but as far needing entries in fstab, would that be as simple as adding a lines that say

mkdir /mnt/sda6
mount -t ext4 /dev/sda6 /mnt/sda6
No. A sample entry for an fstab entry for a Linux data partition on sda9.

Quote:
/dev/sda9 /mnt/data ext4 auto,user,rw 1 2
You can use the Search function here at LQ to get other sample entries and there are thousands of tutorials on fstab online where you can get more info. An explanation of fstab entries is at the link below:

http://www.linuxquestions.org/linux/..._and_explained

Last edited by yancek; 03-05-2014 at 04:43 PM.
 
Old 03-05-2014, 02:07 PM   #9
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
Right, The distros are Ubuntu, Mint(a derivative of Ubuntu), SolydX (a derivative of Mint-Debian), and all use "sudu" followed by the ned to input a pasword.

thanks for the info
 
Old 03-05-2014, 07:42 PM   #10
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
Something occurred to me. I just wanted to make sure we are on the same page. I have no trouble "mounting" the storage drive. I double click on it, and it opens up, and if there were any files in it, I am guessing that I could open them. In fact, if I had opened it prior to running gparted, I would have to choose "unmount" to do anything with it, like delete it, or resize it etc.

So, it looked like most if not all of the advice above is for "mounting" it, when that is not the problem. It just won't let me save anything to it. Is this then, still the same description of tactics to get it where I want it to be?
 
Old 03-06-2014, 06:49 PM   #11
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,089

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
Quote:
So, it looked like most if not all of the advice above is for "mounting" it, when that is not the problem.
In the second post above, member 'pingu' asked you for the permissions and you never responded. The distributions you mention usually mount in the /media directory so you could find the owner:group and permissions by simply doing: ls -l /media/
 
Old 03-08-2014, 01:25 PM   #12
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
So after getting some advice on another forum, then trying severl scenarios, this is what works.

The storage partition is roughly 200 gig and is at location sda12, so

Edit est/fstab by adding the following line
Code:
/dev/sda12 /media/ralph/storage ext4 defaults 0 0

to make sure sda12 is mounted
Code:
sudo mount -a
to grant permissions to sda12, at the terminal enter
Code:
sudo chmod 777 /media/ralph/storage
This "sticks" after shutdown and reboot. I don't have to do this evenry session. I have permissions to the storage drive every time I boot up.

Still don't have an answer as to why I did not have to do this with a 60 gig drive I was using.
 
Old 08-14-2014, 05:11 PM   #13
phazon
Member
 
Registered: Apr 2006
Location: Wilmington, DE
Distribution: SolydXK, Knoppix
Posts: 137

Original Poster
Rep: Reputation: 18
Oh My! I just tried my own advice with a new, larger hard drive. As I am adding distros to partitions, I have to edit fstab in each distro to grant permission to the storage drive.

I just found out the hard way the the "/" MUST MUST MUST be at the end of the word "storage" in that last line of code in my previous post.

so...run this in terminal to grant permission

Code:
sudo chmod 777 /media/(yourname)/storage/
notice the minor diference in this and the way I wrote it in the previous post. Very important....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba on Fedora 10.10. Originator of docs "owns" it. Other users to share "save as" worded Linux - Newbie 1 03-10-2011 12:23 PM
Perl: how to save an e-mail attachment on disk keeping the "&" character (no "%26"!!) d1s4st3r Programming 5 09-29-2010 10:30 PM
accessing centos5.2 partition from ubuntu : "bash: cd: ckgan: Permission denied" centguy Linux - Software 5 02-24-2009 01:18 AM
"Permission Denied" while accessing ntfs partition in user mode funkymunky Linux - General 3 01-31-2009 09:03 PM
"You do not have permission to write to partition table?" as root? Black.UCoD Slackware 2 07-05-2007 11:54 AM


All times are GMT -5. The time now is 07:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration