Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Creating home dir



eliot%exception-dev.de@localhost (=?iso-8859-1?Q?Andr=E9_Geisler?=) writes:

>I used the INSTALL.txt to setup the system, and i created 0x4e425507 partition 
>for home directory.
>But neither the Install.txt nor the install process helped me to setup the 
>home directory.
>Disklabel and frisk did not help me too.

>How can I setup a home directory?

If the partition is set up correctly, it should automatically appear
in the output of disklabel. disklabel collects the root partition (NBR\7)
as 'a', the swap partition (NBS\1) as 'b', a fake partition 'c' to represent
the whole disk, and then every other partition (NBU\7) on the disk starting
with 'd'.

For example:

# disklabel sd0
[...]
 f:   1242340   1994120     4.2BSD   1024  8192     0  # (Cyl.    159 -    259)

This would be the third other partition.

You can format the filesystem on the partition with:

# newfs /dev/rsd0f 

create a directory /home (probably already exists):

# mkdir /home

and add a line to /etc/fstab with a text editor:

 /dev/sd0f /home ffs rw  0 2

or if you want journaling:

 /dev/sd0f /home ffs rw,log  0 2

Then you can mount the partition

# mount /home

and use it to add user accounts

# useradd -m -b /home -c "John Silver" john
# useradd -m -b /home -c "Betty Boop" betty




Home | Main Index | Thread Index | Old Index