Re: Adding a Hard Drive



Robert Newson <ReapNewsB@xxxxxxxxxxxxxxxxxxx> wrote:


> When a partition is mounted onto a directory, the original directory with
> its permissions, ownership, etc is hidden and the root directory of the
> partition is then put in its place with its own permissions, ownership, etc
> - which is what you then see with ls, etc.

Ok.

> The 'user' option allows any user to mount the partition, but only the user
> who mounted it can umount it; the 'users' option is similar in that it
> allows any user to mount the partition, but it also allows ANY user OTHER
> than the one who mounted the partition to umount it.

You have to be in the group "disk" to mount and unmount the device, assuming
the /dev/hdb and associated files are all owned by "disk".

> # chmod 01777 /home/art/mnt

I presumed that mounting in /home/art/mnt, you wanted the contents of the root
directory to belong to "art".

If you want it to belong to root, then mount in /mnt/hdb or somewhere, and
create a directory /mnt/hdb/art with appropriate ownership and symlink in
/home/art.

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Telephone: (0121) 247 1596
International: 0044 121 247 1596

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

.



Relevant Pages

  • Re: Wheres the grub boot menu?
    ... installation when your boot partition is separate from the root ... large disk that the BIOS can definately boot from. ... the mount point. ...
    (Debian-User)
  • Re: raw partitions and links
    ... The symlink itself will always show ownership of root (or whoever creates ... Why don't you create a directory and mount the partition via vfstab? ... When the system reboots it will mount those partitions. ...
    (comp.sys.sun.admin)
  • Re: Problems with booting from external USB drive
    ... mount: error 6 mounting ext3 ... Kernel panic - not syncing: ... it cannot mount the root file system partition. ... Linux needs a "root partition" the '/' partition as it is called, ...
    (comp.os.linux.setup)
  • Re: "Permissions Denied" error as root: SOLVED
    ... To recap, attempting to run a script, as root, with permissions 755 ... The problem was that the partition was mounted with 'users,defaults' ... Changing the line in fstab to 'defaults' and quick 'umount' and 'mount' ... will change the mount options without actually unmounting the device in ...
    (Fedora)
  • Re: How to mount a partition as root and make it world read-write?
    ... How to mount a partition as root and make it world read-write? ... > as /tmp for the first time. ...
    (Fedora)