Descriere:
Am de share-uit un HDD extern dintr-un sistem de operare linux pentru o masina cu windows.
Componente:
- Una bucata linux :D
- Una bucata windows 7
- Un HDD extern
Schema :
Shell input/output:
Am de share-uit un HDD extern dintr-un sistem de operare linux pentru o masina cu windows.
Componente:
- Una bucata linux :D
- Una bucata windows 7
- Un HDD extern
Schema :
Shell input/output:
sudo apt-get update
sudo reboot
sudo fdisk -l
-----------------------------------------------------
Disk /dev/mmcblk0: 3965 MB, 3965190144 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 17 1216 76800 c W95 FAT32 (LBA)
/dev/mmcblk0p2 1233 26672 1628160 83 Linux
/dev/mmcblk0p3 26689 29744 195584 82 Linux swap / Solaris
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 121601 976760001 7 HPFS/NTFS
Disk /dev/sdb: 4005 MB, 4005560320 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 486 3903763+ b W95 FAT32
-----------------------------------------------------
sudo mkdir /mnt/disk1
sudo mkdir /mnt/disk2
ls /mnt
-----------------------------------------------------
disk1
disk2
-----------------------------------------------------
sudo nano /etc/fstab
-----------------------------------------------------
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0
#/dev/mmcblk0p3 none swap sw 0 0
-----------------------------------------------------
-----------------------------------------------------
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0
#/dev/mmcblk0p3 none swap sw 0 0
/dev/sda1 /mnt/disk1 ntfs-3g defaults 0 0
/dev/sdb1 /mnt/disk2 vfat defaults 0 0
-----------------------------------------------------
sudo mount -a
sudo apt-get install samba
sudo apt-get install samba-common-bin
sudo nano /etc/samba/smb.conf
------------------------------------------------------
[usb1]
comment = USB Share
path = /mnt/disk1
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes
------------------------------------------------------
------------------------------------------------------
[usb2]
comment = USB Share
path = /mnt/disk2
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes
------------------------------------------------------
sudo service samba restart
sudo testparm -s
sudo apt-get install autofs
sudo nano /etc/auto.master
------------------------------------------------------
+auto.master
------------------------------------------------------
You need to add the following below the +auto.master entry
------------------------------------------------------
+auto.master
/media/ /etc/auto.ext-usb --timeout=10,defaults,user,exec,uid=1000
------------------------------------------------------
O seară faină !