[SOLVED] Harddrive Access As Root Only. Help!

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jaqian

[SOLVED] Harddrive Access As Root Only. Help!

Post by jaqian »

I have a dual boot system winXp & Mint7. I needed more space so I reduced the windows drive and took 30gig, formated as ext2. All grand except it seems I need to be in root to copy files to it.

Any idea how I can change this?

Cheers,
Rob
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Harddrive Access As Root Only. Help!

Post by Husse »

Show us your /etc/fstab
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

Husse wrote:Show us your /etc/fstab
Here you go...

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda5 during installation UUID=6c29b7f2-cfcc-4af4-9c03-9d18cbaac384 /               ext3    relatime,errors=remount-ro 0       1
# swap was on /dev/sda6 during installation UUID=b2bc0f25-2178-4566-9a4b-1901055afc43 none            swap    sw              0       0 /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
Husse

Re: Harddrive Access As Root Only. Help!

Post by Husse »

What kind of disk is it? Internal - external?
How do you copy?
I thought it was a partition on an internal disk but I can't see any trace of it in fstab
The only partition mentioned is sda5
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

Its a partition on the windows C: drive. I know theres nothing on the fstab. It should show the existing Linux partition (think its ext3), the swap file and the new ext2 partition.
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

On the Ubuntu forum someone told me to try:

Code: Select all

sudo chown -R myusername:myusername /media/sda3
I tried this using /dev/sda3 instead of /media as thats what partition editer says it is mounted at but it didn't work. Any suggestions where I go from here?
Husse

Re: Harddrive Access As Root Only. Help!

Post by Husse »

Do you have more than one hard drive?
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

Husse wrote:Do you have more than one hard drive?
No its only one drive. They say a picture is worth a thousand words so this screenshot might explain it better...
Image
Husse

Re: Harddrive Access As Root Only. Help!

Post by Husse »

The partition ins not mentioned in fstab, but it can be mounted anyway
The first time you double click on it you will be asked for your password (sudo sort of) and you can tell the system that you don't want to use a password in the future
It is now not mounted by the "normal mount command"
Another way to do it to use fstab to mount the partition
As you are going to use it for your data you can mount it in home
Like this
Create a folder in /home/your_name/ called Data (or whatever you want)
Edit fstab

Code: Select all

/dev/sda3		/home/your_name/Data 	ext2	default	0	2
Edit must be done as root

Code: Select all

gksu gedit /etc/fstab
It will now appear as a normal folder in home
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

Thanks but it didn't work. I might just delete this partition and expand the existing Linux partition to take up its space.
Husse

Re: Harddrive Access As Root Only. Help!

Post by Husse »

The solution in my previous answer puts the partition in home and home is owned by you
There are no permissions for a partition as such, it will get the permissions of the folder it is mounted in - plus what the mount command says
Instead of default (hmm - maybe it should be defaults) use owner
jaqian

Re: Harddrive Access As Root Only. Help!

Post by jaqian »

I re-installed mint as I had a few annoying problems so this is all sorted now.
Locked

Return to “Hardware Support”