Re: [gentoo-user] Giving a user his own partition
On Wed, 16 Feb 2005 17:59:24 -0800, Mark Knecht wrote: My problem right now is that I'd like to mount /dev/sda8/herb under /home/herb but I don't know how to mount the directory there. I also don't know how to mount the top of the drive under /home/herb and give him write access. The root of a partiton belongs to the user that mounted, whjich is root if it was mounted from fstab. Check out the uid and gid options in man mount to mount it as a different user. You need something like /dev/hdX /home/herb ext3 uid=xxx,gid=yyy,other,options 0 0 There's a lost+found directory he'd see that I'd prefer he didn't, etc. Delete it, it's not needed. -- Neil Bothwick Bury a lawyer 12 feet under, because deep down they're nice. pgp8rv18x5oT9.pgp Description: PGP signature
Re: [gentoo-user] Giving a user his own partition
Neil Bothwick wrote: On Wed, 16 Feb 2005 17:59:24 -0800, Mark Knecht wrote: My problem right now is that I'd like to mount /dev/sda8/herb under /home/herb but I don't know how to mount the directory there. I also don't know how to mount the top of the drive under /home/herb and give him write access. The root of a partiton belongs to the user that mounted, whjich is root if it was mounted from fstab. Check out the uid and gid options in man mount to mount it as a different user. You need something like /dev/hdX /home/herb ext3 uid=xxx,gid=yyy,other,options 0 0 I thought that the uid= and gid= options were specific to vfat partitions (at least that's what man mount says). Is this not the case? If so, it would make my life much easier than the way I've been handling ext3 and reiser3 mounts to make them user-owned There's a lost+found directory he'd see that I'd prefer he didn't, etc. Delete it, it's not needed. As long as it's empty, of course. If there's stuff in it, you might want to make sure there's nothing that needs saving/moving before deleting the directory. Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Giving a user his own partition
On Thu, 17 Feb 2005 11:06:51 +0100, Holly Bostick wrote: The root of a partiton belongs to the user that mounted, whjich is root if it was mounted from fstab. Check out the uid and gid options in man mount to mount it as a different user. You need something like /dev/hdX /home/herb ext3 uid=xxx,gid=yyy,other,options 0 0 I thought that the uid= and gid= options were specific to vfat partitions (at least that's what man mount says). You're right, but I hit this problem once and fixed it. Maybe it was as simple as setting ownership of the mount point before attempting to mount the partition. -- Neil Bothwick Keyboard error, Hit F1 to continue pgpN5U5EE0U1w.pgp Description: PGP signature
Re: [gentoo-user] Giving a user his own partition
Neil Bothwick wrote: On Thu, 17 Feb 2005 11:06:51 +0100, Holly Bostick wrote: The root of a partiton belongs to the user that mounted, whjich is root if it was mounted from fstab. Check out the uid and gid options in man mount to mount it as a different user. You need something like /dev/hdX /home/herb ext3 uid=xxx,gid=yyy,other,options 0 0 I thought that the uid= and gid= options were specific to vfat partitions (at least that's what man mount says). You're right, but I hit this problem once and fixed it. Maybe it was as simple as setting ownership of the mount point before attempting to mount the partition. Yes, that's how I do it for ext3 (and also ext3 has a groupid option that was useful). For Reiser, I seem to have to set the mount point permissions, then one time have root go in after the partition is mounted, and recursively change the permissions for all the files, and then it never gives me any more problems (subsequent mounts are correct in terms of ownership). I do wish it was as simple as uid= for other partition types, though. Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Giving a user his own partition
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil Bothwick wrote: | On Thu, 17 Feb 2005 11:06:51 +0100, Holly Bostick wrote: | | |The root of a partiton belongs to the user that mounted, whjich is |root if it was mounted from fstab. Check out the uid and gid options |in man mount to mount it as a different user. You need something like | |/dev/hdX /home/herb ext3 uid=xxx,gid=yyy,other,options 0 0 | |I thought that the uid= and gid= options were specific to vfat |partitions (at least that's what man mount says). | | | You're right, but I hit this problem once and fixed it. Maybe it was as | simple as setting ownership of the mount point before attempting to mount | the partition. | | Once the filesystem is mounted, you can set the ownership and permissions to whatever you want (as root). Then just and the entry to the /etc/fstab and each time it is mounted it will have those permissions. Mike - -- Mike Noble Email: [EMAIL PROTECTED] Key ID: 0xFFDFC13B Key fingerprint: 8204 1297 B9AD 0CED 2FCE 1FB0 9491 5824 FFDF C13B Keyserver: http://pgpkeys.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCFNP4lJFYJP/fwTsRAuL7AJ9fUUmLpZiBhMuVlDiyxXqIpr8tPgCfUUrq W+5ms079r8wdaBj18MWj0hU= =i/Md -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
[gentoo-user] Giving a user his own partition
Hi, I'm having trouble on a Gentoo machine that's run fine for the last 15 months but is now having trouble with Evolution. I suspect that it's possibly caused by my lack of knowledge about mounting partitions and possibly coupled with recent updates. I hope you can set me straight. The machine is owned by essentially a single user, my dad, and then I have an account so that I can log on and administer the machine. When I originally set the machine up I did not put /home on a separate partition from / and late we ran out of space. The drive had more space so I created a new partition just for my dad's account, copied his data there and then tried mounting that partition under /home/herb but what I found was that he couldn't write to the drive. I didn't understand the permissions issues well enough so what I did was a bit strange. I made a directory on the partition called 'herb' and gave him ownership of that. I mounted that partition under /mnt/extrahome and under /home I created a link /home/herb-/mnt/extrahome/herb gandalf root # ls -al /mnt/extrahome/ total 28 drwxrwxrwx 4 root root 4096 Jun 3 2004 . drwxr-xr-x 8 root root 4096 Jun 3 2004 .. drwx-- 67 herb users 4096 Feb 16 17:23 herb drwx-- 2 root root 16384 Jun 3 2004 lost+found gandalf root # gandalf home # ls -la total 12 drwxr-xr-x 3 root root 4096 Feb 16 17:53 . drwxr-xr-x 18 root root 4096 Nov 22 20:43 .. -rw-r--r-- 1 root root 0 Nov 15 18:09 .keep lrwxr-xr-x 1 root root19 Feb 16 17:53 herb - /mnt/extrahome/herb drwx-- 44 mark users 4096 Feb 16 17:28 mark gandalf home # and as 'herb': [EMAIL PROTECTED] herb $ pwd /home/herb [EMAIL PROTECTED] herb $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 4892408 3890844753044 84% / /dev/sda6 9612604 3691232 5433076 41% /mnt/portage none257792 0257792 0% /dev/shm /dev/sda8 9612604 1247096 7877212 14% /mnt/extrahome [EMAIL PROTECTED] herb $ This has worked fun until this week but now Evolution is complaining. There are some strange messages like: [EMAIL PROTECTED] herb $ evolution (evolution:7909): camel-WARNING **: Invalid root: '/home/herb/.evolution/mail/local/Inbox.ibex.index' (evolution:7909): camel-WARNING **: version: TEXT.000 (TEXT.000) (evolution:7909): camel-WARNING **: block size: 1024 (1024) OK (evolution:7909): camel-WARNING **: free: 0 (0 add size 1024) OK (evolution:7909): camel-WARNING **: last: 6144 (6144 and size: 1024) BAD (evolution:7909): camel-WARNING **: flags: unSYNC When I run Evolution on this machine in my account (mark) Evolution runs fine but I run on the normal root partition under /home without the link that he has. Is this what's causing the problem? My problem right now is that I'd like to mount /dev/sda8/herb under /home/herb but I don't know how to mount the directory there. I also don't know how to mount the top of the drive under /home/herb and give him write access. There's a lost+found directory he'd see that I'd prefer he didn't, etc. What do I do to fix this up and give him the disk space he needs and make the system work? What do those camel messages above mean? Thanks in advance, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Giving a user his own partition
have you googled or searched the forums for the camel error. I suspect it has nothing to do at all with your strange hard drive setup. see for example here: http://forums.gentoo.org/viewtopic-t-250670.html as far as your hard disk setup is concerned, you say there is only herb and you as users. I guess your storage requirements are probably minimal. Why not mount the whole of /home on the second partition? The way you are doing it should work, but goes through several unnecessary hoops - actually mounting the partition as /home/herb should work just fine too. I suspect though that this would involve telling mount (via fstab) what ownerships and permissions the mount point should have. However i certainly believe that the disk mounting thing is a red herring as far as evo is concerned. On Wed, 16 Feb 2005 17:59:24 -0800 Mark Knecht wrote: Hi, -- gentoo-user@gentoo.org mailing list -- Nick Rout Barrister Solicitor Christchurch http://www.rout.co.nz [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list