[SOLVED] Harddrive Access As Root Only. Help!
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Harddrive Access As Root Only. Help!
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
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Harddrive Access As Root Only. Help!
Here you go...Husse wrote:Show us your /etc/fstab
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
Re: Harddrive Access As Root Only. Help!
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
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
Re: Harddrive Access As Root Only. Help!
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.
Re: Harddrive Access As Root Only. Help!
On the Ubuntu forum someone told me to try:
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?
Code: Select all
sudo chown -R myusername:myusername /media/sda3
Re: Harddrive Access As Root Only. Help!
No its only one drive. They say a picture is worth a thousand words so this screenshot might explain it better...Husse wrote:Do you have more than one hard drive?
Re: Harddrive Access As Root Only. Help!
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
Edit must be done as root
It will now appear as a normal folder in home
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
Code: Select all
gksu gedit /etc/fstab
Re: Harddrive Access As Root Only. Help!
Thanks but it didn't work. I might just delete this partition and expand the existing Linux partition to take up its space.
Re: Harddrive Access As Root Only. Help!
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
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
Re: Harddrive Access As Root Only. Help!
I re-installed mint as I had a few annoying problems so this is all sorted now.