วันอังคารที่ 9 กันยายน พ.ศ. 2557

Adding Disk to VM Ware and configure SAMBA share

NOT LVM

1. Create new disk on VM Ware.

2. Reboot Linux Mint.

3. fdisk /dev/sdX
 >> P   (to list partition, make sure no any partition exist cause this is new disk)
>> N  ( create new)
>>>>> fill in start point
>>>>> file in end point ,this will calculate its size.
>> W  (save)
> Q (quit)

4. mkfs.ext4 /dev/sdb1      , change ext type and device number per your system.

5. Mount   and edit in /etc/fstab

/dev/sdb1        /share  ext4    defaults 0       0

===============================================

Samba.

p-mint17 share # useradd -m ushare
p-mint17 share # passwd ushare
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
p-mint17 share # smbpasswd -a ushare
New SMB password:
Retype new SMB password:
Added user ushare.



p-mint17 share # cat /etc/samba/smb.conf
[share]
        comment = Share Directories
        path = /share
        valid users = ushare
        public = no
        browseable = yes
        writable = yes
        printable = no


service smbd restart