«Asterisk» и «Recover Deleted Files on an NTFS Hard Drive from a Linux»: разница между страницами

Материал из support.qbpro.ru
(Различия между страницами)
imported>Vix
 
imported>Vix
(Новая страница: «To undelete our files, we first need to identify the hard drive that we want to undelete from. In the terminal window, type in: sudo fdisk –l and press ente…»)
 
Строка 1: Строка 1:
==[[Офисная АТС на Asterisk малой кровью или бюджетный способ получить мини АТС с функциями серьезной станции.]]==
To undelete our files, we first need to identify the hard drive that we want to undelete from. In the terminal window, type in:
=='''ОСНОВНОЙ ПРИНЦИП РЕШЕНИЯ ПРОБЛЕМ'''==
 
[[Файл:Asterisk howto.png|1024px]]<br>
sudo fdisk –l
=='''ПОЛЕЗНОЕ'''==
 
* [http://asterisk.ru/knowledgebase База знаний]
and press enter.
* [[Asterisk — полезные фичи]]
 
* [[Asterisk настройка перехвата звонка]]
sshot-2
 
What you’re looking for is a line that ends with HPSF/NTFS (under the heading System). In our case, the device is “/dev/sda1”. This may be slightly different for you, but it will still begin with /dev/. Note this device name.
 
If you have more than one hard drive partition formatted as NTFS, then you may be able to identify the correct partition by the size. If you look at the second line of text in the screenshot above, it reads “Disk /dev/sda: 136.4 GB, …” This means that the hard drive that Ubuntu has named /dev/sda is 136.4 GB large. If your hard drives are of different size, then this information can help you track down the right device name to use. Alternatively, you can just try them all, though this can be time consuming for large hard drives.
 
Now that you know the name Ubuntu has assigned to your hard drive, we’ll scan it to see what files we can uncover.
 
In the terminal window, type:
 
sudo ntfsundelete <HD name>
 
and hit enter. In our case, the command is:
 
sudo ntfsundelete /dev/sda1
 
sshot-3
 
The names of files that can recovered show up in the far right column. The percentage in the third column tells us how much of that file can be recovered. Three of the four files that we originally deleted are showing up in this list, even though we shut down the computer right after deleting the four files – so even in ideal cases, your files may not be recoverable.
 
Nevertheless, we have three files that we can recover – two JPGs and an MPG.
 
Note: ntfsundelete is immediately available in the Ubuntu 9.10 Live CD. If you are in a different version of Ubuntu, or for some other reason get an error when trying to use ntfsundelete, you can install it by entering “sudo apt-get install ntfsprogs” in a terminal window.
 
To quickly recover the two JPGs, we will use the * wildcard to recover all of the files that end with .jpg.
 
In the terminal window, enter
 
sudo ntfsundelete <HD name> –u –m *.jpg
 
which is, in our case,
 
sudo ntfsundelete /dev/sda1 –u –m *.jpg
 
sshot-10
 
The two files are recovered from the NTFS hard drive and saved in the current working directory of the terminal. By default, this is the home directory of the current user, though we are working in the Desktop folder.
 
Note that the ntfsundelete program does not make any changes to the original NTFS hard drive. If you want to take those files and put them back in the NTFS hard drive, you will have to move them there after they are undeleted with ntfsundelete. Of course, you can also put them on your flash drive or open Firefox and email them to yourself – the sky’s the limit!
 
We have one more file to undelete – our MPG.
 
sshot-4
 
Note the first column on the far left. It contains a number, its Inode. Think of this as the file’s unique identifier. Note this number.
 
To undelete a file by its Inode, enter the following in the terminal:
 
sudo ntfsundelete <HD name> –u –i <Inode>
 
In our case, this is:
 
sudo ntfsundelete /dev/sda1 –u –i 14159
 
sshot-11
 
This recovers the file, along with an identifier that we don’t really care about. All three of our recoverable files are now recovered.
<hr>
<hr>
* [https://serveradmin.ru/nastroyka-servera-telefonii-asterisk-s-nulya/ Asterisk — SIP АТС для офиса, пошаговая инструкция по настройке с нуля]
'''Resurses:'''
* [https://zen.yandex.ru/media/id/5d90d329433ecc00b139a5ba/ustanovka-asterisk-16-na-debian-10-pod-kliuch-5da620bbdf944400b19c76ea Установка Asterisk 16 на Debian 10]
* [https://wiki.freepbx.org/display/FOP/Installing+FreePBX+15+on+Debian+9.6 Installing FreePBX 15 on Debian 9.6]
* [https://jakondo.ru/ustanovka-freepbx-14-v-svyazke-s-asterisk-16-na-debian-9-stretch/  Установка FreePBX 15 с Asterisk 16 на Debian 9.6]
* [https://habr.com/ru/post/151011/ Поднимает телефонию с нуля: Asterisk, FreePBX, GSM-шлюз на Huawei E173 в Debian]
* [http://linux.mixed-spb.ru/asterisk/diagnostics.php Диагностика asterisk]
* [https://rl5d.blogspot.com/2012/07/sipp-asterisk.html  LINUX AND HAMRADIO]
* [https://jami.net/thank-you/ SIP Client]
* [https://habr.com/en/company/southbridge/blog/313078/ FreePBX: первые шаги по граблям]
<hr>
<hr>
* [https://new-tel.net/support/asterisk-ats-instruktsiya-po-nastroyke/ Asterisk АТС, инструкция по настройке]
* [https://www.howtogeek.com/howto/13706/recover-deleted-files-on-an-ntfs-hard-drive-from-a-ubuntu-live-cd/ Recover Deleted Files on an NTFS Hard Drive from a Ubuntu Live CD]
* [https://asterisk-pbx.ru/wiki/asterisk/dialplan Asterisk Dialplan - extensions.conf]
* [https://voxlink.ru/kb/book/osnovy-dialplana/ Основы диалплана]
* [https://wiki.merionet.ru/ip-telephoniya/30/teoriya-dialplan-v-asterisk/ Теория: Диалплан в Asterisk]
* [http://o5uww2i.obzg6llwn5uxaltsou.cmle.ru/freepbx/freepbx-14-nastrojka-sip-tranka.html Настройка SIP транка]
* [http://belokonevit.blogspot.com/2018/05/freePBXtrunkinboundoutbound.html FreePBX: Настройка Транка, входящих исходящих вызовов. Работа над ошибками. ]
* [http://o5uww2i.obzg6llwn5uxaltsou.cmle.ru/freepbx/freepbx-14-marshrutizacija-vyzovov.html FreePBX 14 - маршрутизация вызовов]
* [https://7392219446306130432_1a3fe57f8fd3ee96e1a8224565f469f4a4d48ada.blogspot.com/2015/05/asterisk-tlssrtp-c.html Asterisk TLS+SRTP c подписанными сертификатами (заметки) ]
 
=='''СВЕЖЕЕ'''==
* [https://serveradmin.ru/ustanovka-asterisk-16-na-debian-10/#_asterisk Установка Asterisk 16 на Debian 10]
* [https://serveradmin.ru/nastroyka-servera-telefonii-asterisk-s-nulya/ Asterisk — SIP АТС для офиса, пошаговая инструкция по настройке с нуля]
* [https://serveradmin.ru/nastroyka-servera-telefonii-asterisk-s-nulya/#Nastrojka_iptables_asterisk_za_NAT_probros_portov Настройка iptables, asterisk за NAT, проброс портов]
* [https://settled70.blogspot.com/2017/05/asterisk.html Asterisk: быстрая настройка для небольшого офиса ]
* [http://prog-it.github.io/Asterisk-CDR-Viewer-Mod/ Web-интерфейс для просмотра и прослушивания записей звонков Asterisk]
* [https://wiki.yola.ru/asterisk/dial_plans Asterisk: Планы набора номеров]
* [http://wikiadmin.net/Asterisk/ Asterisk(wikiadmin)]
* [https://asterisk-pbx.ru/wiki/asterisk/cf/cdr Asterisk CDR - Статистика звонков]
* [https://habr.com/ru/post/241622/ «Допиливаем» Asterisk CDR Viewer под себя]
* [https://asterisk-pbx.ru/wiki/asterisk/cf/queues.conf Asterisk настройка очереди - queues.conf]
* [https://serveradmin.ru/zvonok-v-asterisk-cherez-8-7-ili-7-zamena-7-na-8/ Звонок в Asterisk через 8, +7 или 7, замена +7 на 8]
* [https://habr.com/ru/post/139178/ Программная переадресация на другой телефон]
* [https://ixnfo.com/pereadresacziya-vyzovov-v-asterisk.html Программная расширенная переадресация на другой телефон]
* [https://habr.com/ru/post/174125/ Asterisk. Передаем номер звонящего при переадресации на мобильный с помощью СМС]
* [https://habr.com/ru/post/324580/ Asterisk queues, мелкие хитрости]
* [https://www.dmosk.ru/miniinstruktions.php?mini=queues-asterisk#agents Настройка очередей звонков в Asterisk]
* [[Asterisk. Немного хитростей и основных команд собранных в результате работы.]]
* [https://newadmin.ru/commands-asterisk/ Команды Asterisk ]
* [http://asterisk.ru/knowledgebase/Asterisk+config+sip.conf Файл конфигурации sip.conf - определяет каналы SIP.]
* [https://asterisk-pbx.ru/wiki/asterisk/cf/chan_sip Настройка SIP в Asterisk - sip.conf]
* [https://asterisk-pbx.ru/wiki/asterisk/func/callerid function 'CALLERID']
* [https://www.voipnotes.ru/blog/change-incomming-callerid-asterisk-freepbx/ Изменение входящего CallerID в Asterisk (FreePBX)]
* [https://asterisk-pbx.ru/wiki/asterisk/dialplan Asterisk Dialplan - extensions.conf]
* [http://www.sipring.ru/overview/133-sip-channel.html Параметры SIP канала ]
* [https://asterisk-pbx.ru/wiki/asterisk/trustrpid Asterisk SIP trustrpid]
* [https://habr.com/ru/sandbox/17082/ Настройка SIP-trunk от Asterisk до VoIP Service Provider «Сибирьтелеком»]
* [https://serveradmin.ru/opoveshhenie-o-zanyatosti-vtoroy-linii-v-asterisk/ Оповещение о занятости второй линии]
* [http://www.zarubochki.ru/node/463 Ryo CDR: еще один asterisk CDR viewer]
* [http://atc-ip.ru/info/87/1.html Web интерфейс прослушивания записей звонков Asterisk]
* [https://wiki.yola.ru/sox/asterisk SoX: Конвертация файлов для Asterisk]
* [https://www.snussi.ru/asterisk/12.html Музыка во время ожидания]

Версия от 23:39, 25 сентября 2017

To undelete our files, we first need to identify the hard drive that we want to undelete from. In the terminal window, type in:

sudo fdisk –l
and press enter.
sshot-2

What you’re looking for is a line that ends with HPSF/NTFS (under the heading System). In our case, the device is “/dev/sda1”. This may be slightly different for you, but it will still begin with /dev/. Note this device name.

If you have more than one hard drive partition formatted as NTFS, then you may be able to identify the correct partition by the size. If you look at the second line of text in the screenshot above, it reads “Disk /dev/sda: 136.4 GB, …” This means that the hard drive that Ubuntu has named /dev/sda is 136.4 GB large. If your hard drives are of different size, then this information can help you track down the right device name to use. Alternatively, you can just try them all, though this can be time consuming for large hard drives.

Now that you know the name Ubuntu has assigned to your hard drive, we’ll scan it to see what files we can uncover.

In the terminal window, type:

sudo ntfsundelete <HD name>

and hit enter. In our case, the command is:

sudo ntfsundelete /dev/sda1

sshot-3

The names of files that can recovered show up in the far right column. The percentage in the third column tells us how much of that file can be recovered. Three of the four files that we originally deleted are showing up in this list, even though we shut down the computer right after deleting the four files – so even in ideal cases, your files may not be recoverable.

Nevertheless, we have three files that we can recover – two JPGs and an MPG.

Note: ntfsundelete is immediately available in the Ubuntu 9.10 Live CD. If you are in a different version of Ubuntu, or for some other reason get an error when trying to use ntfsundelete, you can install it by entering “sudo apt-get install ntfsprogs” in a terminal window.

To quickly recover the two JPGs, we will use the * wildcard to recover all of the files that end with .jpg.

In the terminal window, enter

sudo ntfsundelete <HD name> –u –m *.jpg

which is, in our case,

sudo ntfsundelete /dev/sda1 –u –m *.jpg

sshot-10

The two files are recovered from the NTFS hard drive and saved in the current working directory of the terminal. By default, this is the home directory of the current user, though we are working in the Desktop folder.

Note that the ntfsundelete program does not make any changes to the original NTFS hard drive. If you want to take those files and put them back in the NTFS hard drive, you will have to move them there after they are undeleted with ntfsundelete. Of course, you can also put them on your flash drive or open Firefox and email them to yourself – the sky’s the limit!

We have one more file to undelete – our MPG.

sshot-4

Note the first column on the far left. It contains a number, its Inode. Think of this as the file’s unique identifier. Note this number.

To undelete a file by its Inode, enter the following in the terminal:

sudo ntfsundelete <HD name> –u –i <Inode>

In our case, this is:

sudo ntfsundelete /dev/sda1 –u –i 14159

sshot-11

This recovers the file, along with an identifier that we don’t really care about. All three of our recoverable files are now recovered.


Resurses: