Linux mount USB

 

 

Če priključite USB ključ na računalnik in se ta ni avtomatsko naložil, sledite naslednjemu postopku:

 

1. Z ukazom “fdisk -l” vidimo vse podatkovne naprave priključene na sistem.

root@bt:#/fdisk -l

 

Sedaj vidimo ime našega USB-ključa “Disk /dev/sdb1”

—————————————————————————————————————————————————————–

*Kratek opis imen diskov in naprav”

Ime naprave oz. diska je ponavadi “/dev/sda”, “/dev/sdb”, kar predstavlja celoten disk.

IDE (reče se tudi ATA) diski imajo oznake “/dev/hda/.

SCSI diski imajo oznake “/dev/sda/”.

XT diski imajo oznake “/dev/xda/”.

 

Particije (virutalni deli diska)  se označujejo z številkami. Primer SCSI disk z dvema particijama:

“/dev/sda1”

“/dev/sda2”

 

Najbolj enstavna namestitev Linux sistema je ena velika particija + “swap” particija. Na veliki imamo naložen operacijski sistem, podatke itd…Swap particija pa se uporabja za navidezni pomnilnik (kernel vzame neuporabljene podatke iz fizičnega pomnilnika in jih zapiše na disk, ter tako sprosti prostor za druge procese).

—————————————————————————————————————————————————————-

 

2. Sedaj naredimo direktorij v katerega bomo “mountali” naš USB. Ponavadi ga naredimo v “/mnt/” direktorij.

root@debian:/# mkdir /mnt/mojUSB

 

3. Z ukazom “mount” omogočimo dostop do podatkov, urejanje….

root@debian:/# mount -t ntfs /dev/sdb1/ /mnt/mojUSB/

 

Ker ima naš USB NTFS file system smo dodali paramter “-t NTFS”. Če imate FAT32 napišete “-t FAT32”.

 

4. Sedaj je USB-ključ “mounted” v direktorij “/mnt/mojUSB/” in lahko dostopate do podatkov na njemu (pregled vsebine: “ls /mnt/mojUSB/”)

 

5. Za odstranjevanje ključa uporabite ukaz “umount”.

root@debian:/# umount /mnt/mojUSB/

 

6. V primeru, da vam ne uspe odstraniti naprave, ker je zasedena ali jo uporablja drug proces naredite naslednje:

 

Z ukazom “fuser” pogledate kdo drži napravo

root@debian:/# fuser -m /mnt/mojUSB

mnt/mojUSB 1446

 

Nato z ukazom “ps” poiščemo PID procesa in ga ubijemo z “kill”.

root@debian:/# ps auxw | grep 1446

root 1446 0.0 0.1 4640 1956 pts/0 ….. bash

root@debian:/# kill 1446

 

Če ste postavljeni v “/mnt/mojUSB” vam bo ravno tako javil “device busy”. Zato se postavite na root ali kam drugam, ko boste želeli odstraniti napravo!!!

3 Responses to Linux mount USB

  • admin says:

    Hello!
    Well…to prevent script kiddies from destroying your site you have to update plugins and CMS as soon as pathces become available. Also is good to change rights on some directories and to install only plugins that are necessary. Add httaccess to admin panel, use fail2ban for blocking bruteforce attacks, monitor your traffic with IDS systems, install tripwire…but for real hackers we dont stand a chance.
    You have to know that exploits are available at least half of year or more before they are left in wilderness. There are codes that can bypass any antivirus software (written in complilty new programming languages). My advice is to backup site on regular basis and check for unusal scripts. And for end make a complex password (social engineering).

  • Poezija says:

    I seldom comment, however I browsed some of the remarks
    here Linux mount USB | Internetna zaščita. I do have a few
    questions for you if it’s allright. Could it be just me or do some of the remarks look like they are written by brain dead visitors? 😛 And, if you are writing at other social sites, I would like to keep up with you. Would you post a list of every one of all your social pages like your Facebook page, twitter feed, or linkedin profile?

Leave a Reply

Your email address will not be published. Required fields are marked *

VNESITE ŠTEVILO V PRAZNO POLJE !!! *

Internetna zaščita

Copyright © 2013. All Rights Reserved.