Have to use root password to access HDD!

Hi all,

Installed 11.2 last week & find it an amazing ride so far :slight_smile:

Got an issue though (more an annoyance), it’s this:

Every time I turn the PC on, I have to use my root password to access my TB SATA HDD (not my install drive). All my music is there, meaning that if I want to use Amarok, I have to open my TB HDD first, using the root password:\

Any pointers to help solve this annoyance would be very gratefully received.

Many thanks:)

I imagine you could do this by editing the /etc/fstab file as root (kdesu kate /etc/fstab), then finding your hard drive in the list, and adding auto to the options.

More detailed info: http://wiki.linuxquestions.org/wiki/Fstab#Auto-mount_of_iso-image_in_.2Fetc.2Ffstab

Edit: You can replace kate with whatever text editor you prefer of course.

When you say ‘not my install drive’ do you mean then that it was allready there, and that it was originaly used by some MS Windows OS and that it consequently does not contain a Linux file system but a MS one like VFAT or so?

When yes, your problem is in x-fold on this forums complete with answers.

Please post the output of /etc/fstab here for further advice (do not alter there on advice from ppl that have not even seen what is in it).

Hi hcw,

I used to run sidux, but it was a little too ‘bleeding edge’ for me.
I have a 150GB SATA that I’ve got 11.2 installed on.
The TB SATA drive is where I store all my music, emails etc…
Funny thing is I had complete unrestricted access to this HDD in sidux:\

Here’s my fstab:

/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J1QP302263-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J1QP302263-part2 / ext4 acl,user_xattr 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Many thanks!

p.s. My TB HDD is on ‘/dev/sdb1’

Your sdb1 is not at all in your /etc/fstab!! I wouild expect then that it is not mounted at all at thus not accessable by anybody???

Do a

mount

to see what is realy mounted.

Hi hcw,

Ran the command & here’s the output:

mount
/dev/sda2 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /media/disk-1 type ext3 (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/rhawkins/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=rhawkins)

Thanks for your continued help & patience.

It is there! But it seems to be mounted by HAL. Do you connect/disconnnect this disk while the system is running? Sounds strange for a SATA disk.

When it is always in the system and it should be mounted always you should have a line in /etc/fstab:

/dev/sdb1    /where/you/want/it    ext3    acl,user_xattr 0 0

And please fill in for /where/you/want/it the place where you want it. The /media/disk-1 is only used because HAL does not know anything better. When it is your music I suppose somewhere in you home directory like /home/ashley194/music or whatever. Do not forget to create that directory first (when in your home directory, do this a the normal user, not as root).
When done you can do

umount /dev/sdb1
mount /dev/sdb1

or a reboot. Now check if your music is in the correct place and if you can access.
There may still be an access problem because if all those music files are created on another system. It would mean that the user on the other ystem is the owner and not you. You will see that when you do an* ls -l* of the files. They will not show your username, but another or even a number. In that case, as root goto the mount directory and do

chmod -R your-username:your-groupname

Then it will be all yours.

I still do not understand why there is no fstab entry. Was the disk not there during install? When yes, after adding the disk, did you not go to YaST > System > Partitioning to tell the system what to do with it?

Hi hcw,

I tried editing my fstab last night, without sucess:(
So I re-installed 11.2, creating a mount point for my TB HDD & all’s now fine:)

Thanks for all the advice!

Normaly it is not a good idea to reinstall when there is some problem because one often installs exactly the same and most things can be repaired afterwards (and it is such an MS Windows way of doing things). But in this case it is probably the easyest way to go, because you can not exactly reconstruct where you went wrong. I think the above discussion helped you in doing it correct this time. Congratulations!

And did I mention this link SDB:Basics of partitions, filesystems, mount points - openSUSE?
It may be worth reading.