[QUOTE=robin_listas;2252154]On 2010-11-13 12:06, rb004a0345 wrote:
>
> Hi guys
> I’m having a bit of trouble getting my fstab right
> what I want is for sdb3 & sdb4 not to be mounted at boot,
That’s “noauto”.
> but when
> mounted I can move files back and forward between sda* and either sdb3
> or sdb4 , they are mounted as srv1 and srv2.
Being ext4 means that linux permissions apply regardless of who mounts them.
> I would like them to appear
> in the places menu ( gnome),
I don’t know about that.
> so that to access user, or root password is
> given.
With “user” any user can mount them, without asking for a password. If you
want a user password asked, don’t use “user”, and mount via command line
with “sudo” - but you have to reconfigure sudo entirely.
> It would be nice to be able to execute a file, on these two
> partitions but not essential.
Thats “exec”.
> What happens so far is that both srv1 and srv2 appear in nautilus, but
> I cant move files into them, as they are empty I can’t check the other
> way.
You have to mount them first - manually. Having an entry in fstab disables
desktop click mounting, I understand.
> As they apper in the file manager, they are not listed separately
> in the places menu.
>
> Here’s my attempt at fstab:-
code:
> /dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK234T2ALPJ9B-part3 /srv1
> /dev/sdb3 /srv1 ext4 noauto,rw,user,exec 2 1
> /dev/disk/by-id/ata-ExcelStor_Technology_J9250S_GEK234T2ALPJ9B-part4 /srv2
> /dev/sdb4 /srv2 ext4 noauto,rw,user,exec 2 1
Two entries for srv1 and srv2? That will cause problems.
> the fstab wiki does not list all the switches
But the manual does
Hi Robin, man fstab , is that what you are referring to ?
That IMO falls into the category of many of the man pages, written by someone who knows what they are doing , but fails badly in being concise and easy to understand.
Lets try and put my question another way.
Since, the HD was replaced after it wrecked itself while both drives have been in use,
I have not been able to, as a user, access the second drive., even as root recovering the backup files was difficult.
Having chmod everything in each directory before it would allow me to move a file, and then again once on the main HD.
Some files lost in the process as recursive switches would not work.
Without adding anything to the fstab , I can access the partition on the second HD which has another OS installed, but NOT the other two partitions which are now formatted ext4,
As soon as you click on the partition in “places” and give the root password it disappears, even in nautilus as root, I cant grab a file off the desktop and drop it into the partition.
hence the reason for attempting to make it usable with fstab.
When that partition was ext3 and I was running Fed13 and before MDV I could use it as another directory as a user, and with just 2x 250 GB drives it got heavily used for storage of sound and video files.
With my current fstab it should IIMO be usable as a user to move file back and forward between the two HDs , it is not…
Does that make my question clear…
if not the simplest solution may be to build another machine and network backup.
thanks
Richard