Monday, February 8, 2010

Re: [LINUX_Newbies] Re: accessing a JFS partition

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don Hawkinson wrote:

>>> I am trying to get r/w access to an IBM JFD partition
>>> without accessing the partition as root. I am using
>>> a Mandriva disto and I have the following line in my
>>> fstab file.
>>>
>>> /dev/sda13 /mp3 jfs defaults 1 2
>>>
>>> What do I need to change or add?
>>>
>>
>>Without root permissions, you cannot modify any root-owned file, like
>>/etc/fstab.
>
> I know how to modify the fstab file, just not what
> to modify.
>
>>
>>What's a 'JFD' partition?
>
> A typo, I ment JFS partition.
>

Here is your fstab line:

/dev/sda13 /mp3 jfs defaults 1 2

...and here are four partitions that I added to /etc/fstab last week:

/dev/hde1 /home/wittig/hde1 vfat noauto,rw,user 0 0
/dev/hde2 /home/wittig/hde2 vfat noauto,rw,user 0 0
/dev/hdh5 /home/wittig/hdh5 ext3 noauto,rw,user 0 0
/dev/hdh6 /home/wittig/hdh6 ext3 noauto,rw,user 0 0

All you have in the 'options' column is 'defaults'. I do not know what
the 'defaults' are.

I set mine to 'noauto' because I have a script to mount those
partitions, only when I need them mounted, when doing back-ups.

I have 'rw' set, so the partitions can be read from and written to.

I have 'user' set, so that the partitions can be mounted by me,
'wittig', without having to 'su' to 'root' to mount the partitions.

Also... after all these things were in place and working, I had to
'chown' directories (like /home/wittig/hde1 *after* the partitions (like
/dev/hde1) were actually mounted in the directories I had created as
mount points... from 'root' to 'wittig'

I owned the directory /home/wittig/hde1 that I had created as a mount
point, but once /dev/hde1 was mounted on that directory, even though I
had been able to mount it as user 'wittig', and not 'root', it still
came up as owned by 'root', along with all the files in those partitions.

- --
- -wittig
http://www.robertwittig.com/
http://robertwittig.net/
http://robertwittig.org/
.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org/

iQEVAwUBS3AfE/9qkhAVPSgqAQKVzQgAmUKSNrlUg3NYiM6ST323NSzeatDIEdU+
qE8dWadzLgivy8LiDFCECYHIglhRAeqNpm40XYTYm0YTcbbKUdSmWuF5MHMaWMJF
TF9L7mljLArD316yP6FToA5/7f8xB42h3795NtLD1M6UYSs0k9LnIR95GoHSOwlO
IGS5YIp3Qz5zoptP2KProynDjRQNd7/2WxUiq96fHBQgwb2vCep///Xm7FovPUnP
2PEaWpJzQHjf0KxZ6HYave9rJUbDND2rb7uK6721UzovZrfchkX2vMJtoNeSuCc9
PD3N1zns0MC8Twk7FlkrJJUAmzFx41FyXHJhRkKBuc80JvG9Lod2yQ==
=K4et
-----END PGP SIGNATURE-----

__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment