[ccoss] Re: mounting errors
- From: Christopher Paulin <cpaulin@xxxxxxx>
- To: ccoss@xxxxxxxxxxxxx
- Date: Thu, 27 Nov 2003 22:40:07 -0500
Bill wrote:
>Just what are you trying to do anyway?
>
Quoted from below:
If I wanted to use that partition for extra storage...
>You should be able to mount this as usual, create what you need on it
>with appropriate poermissions, then perhaps link to it from wherever you
>like...
>
chris@p450:/mnt/windows_data/ccoss> cd /mnt/mandrake/home/
chris@p450:/mnt/mandrake/home> mkdir chris_temp
mkdir: cannot create directory `chris_temp': Permission denied
chris@p450:/mnt/mandrake/home> su
Password:
p450:/mnt/mandrake/home # mkdir chris_temp
p450:/mnt/mandrake/home # chown chris.users chris_temp/
p450:/mnt/mandrake/home # exit
exit
chris@p450:/mnt/mandrake/home> cd chris_temp/
chris@p450:/mnt/mandrake/home/chris_temp> ls -ld .
drwxr-xr-x 2 chris users 4096 2003-11-27 22:33 .
chris@p450:/mnt/mandrake/home/chris_temp>
>
>One common practice is to mount home on a partition, and each directory
>then is of course chowned to the various users...
>
Yes, right.
>
>Christopher Paulin wrote:
>
>
>
>>So, that explains why this works:
>>
>>--------------------------------------
>>/etc/fstab entry changed:
>>
>>/dev/hdb1 /mnt/mandrake ext2
>>users,defaults 1 2
>>
>>p450:/home/chris # mount /mnt/mandrake
>>p450:/home/chris # umount /mnt/mandrake
>>
>>chris@p450:~> mount /mnt/mandrake/
>>chris@p450:~> umount /mnt/mandrake/
>>
>>--------------------------------------
>>
>>uid and gid were not in the ext2 mount options when using "man mount":
>>
>>Mount options for ext2
>> The `ext2' file system is the standard Linux file system. Due to
>>a kernel bug, it may be mounted with random mount
>> options (fixed in Linux 2.0.4).
>>
>> bsddf / minixdf
>> Set the behaviour for the statfs system call. The minixdf
>>behaviour is to return in the f_blocks field the total
>> number of blocks of the file system, while the bsddf
>>behaviour (which is the default) is to subtract the overhead
>> blocks used by the ext2 file system and not available for
>>file storage. Thus
>>...............................continued...........................
>>
>>If I wanted to use that partition for extra storage using my chris home
>>directory, I would need to make the user and group numbers the same:
>>
>>/etc/password:
>>
>>chris:x:500:100:Christopher Paulin:/home/chris:/bin/bash
>>
>>/mnt/mandrake/etc/password:
>>
>>chris:x:501:501:Christopher Paulin:/home/chris:/bin/bash
>>
>>That's a side project.
>>
>>Christopher Paulin
>>
>>Bill wrote:
>>
>>
>>
>>
>>
>>>I just did a "man fstab" and it suggested "man mount" and from what I
>>>can tell on my system, the ext2 options do not include uid/gid options....
>>>
>>>Maybe someone can correct me. Initially I though users and uid/gid would
>>>conflict, but I cannot find evidence of that either...
>>>
>>>Where did you get the idea to use those options? I'd recommend that you
>>>figure out how to mount it as root, specifying all the options you need
>>>(at least ones not directly fstab-ralated of course;-) Then you can work
>>>on fitting them into fstab.
>>>
>>>
>>>Christopher Paulin wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>What's wrong with this file system table (/etc/fstab)?
>>>>
>>>>/etc/fstab entry:
>>>>
>>>>/dev/hdb1 /mnt/mandrake ext2
>>>>users,uid=500,gid=100,defaults 1 2
>>>>
>>>>user chris:
>>>>
>>>>chris@p450:~> mount /mnt/mandrake/
>>>>mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
>>>> or too many mounted file systems
>>>>chris@p450:~>
>>>>
>>>>root:
>>>>
>>>>p450:/home/chris # mount /mnt/mandrake
>>>>mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
>>>> or too many mounted file systems
>>>>p450:/home/chris #
>>>>
>>>>--------------------------------------
>>>>/etc/fstab entry changed:
>>>>
>>>>/dev/hdb1 /mnt/mandrake ext2
>>>>users,defaults 1 2
>>>>
>>>>p450:/home/chris # mount /mnt/mandrake
>>>>p450:/home/chris # umount /mnt/mandrake
>>>>
>>>>chris@p450:~> mount /mnt/mandrake/
>>>>chris@p450:~> umount /mnt/mandrake/
>>>>
>>>>--------------------------------------
>>>>/etc/fstab entry changed:
>>>>
>>>>/dev/hdb1 /mnt/mandrake ext2
>>>>users,uid=500 1 2
>>>>
>>>>chris@p450:~> mount /mnt/mandrake/
>>>>mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
>>>> or too many mounted file systems
>>>>chris@p450:~>
>>>>
>>>>p450:/home/chris # mount /mnt/mandrake
>>>>mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
>>>> or too many mounted file systems
>>>>p450:/home/chris #
>>>>
>>>>Christopher Paulin
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>CCOSS mailing list
>>>>ccoss@xxxxxxxxxxxxx
>>>>CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
>>>>CCOSS Web page: http://www.ccoss.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>CCOSS mailing list
>>>ccoss@xxxxxxxxxxxxx
>>>CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
>>>CCOSS Web page: http://www.ccoss.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>_______________________________________________
>>CCOSS mailing list
>>ccoss@xxxxxxxxxxxxx
>>CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
>>CCOSS Web page: http://www.ccoss.org
>>
>>
>>
>>
>>
>
>
>_______________________________________________
>CCOSS mailing list
>ccoss@xxxxxxxxxxxxx
>CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
>CCOSS Web page: http://www.ccoss.org
>
>
>
_______________________________________________
CCOSS mailing list
ccoss@xxxxxxxxxxxxx
CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
CCOSS Web page: http://www.ccoss.org
- References:
- [ccoss] mounting errors
- From: Christopher Paulin
- [ccoss] Re: mounting errors
- From: Bill
- [ccoss] Re: mounting errors
- From: Christopher Paulin
- [ccoss] Re: mounting errors
- From: Bill
Other related posts:
- » [ccoss] mounting errors
- » [ccoss] Re: mounting errors
- » [ccoss] Re: mounting errors
- » [ccoss] Re: mounting errors
- » [ccoss] Re: mounting errors
- [ccoss] mounting errors
- From: Christopher Paulin
- [ccoss] Re: mounting errors
- From: Bill
- [ccoss] Re: mounting errors
- From: Christopher Paulin
- [ccoss] Re: mounting errors
- From: Bill