«Debian & intel GM965/GL960 Integrated Graphics Controller» и «Recover Deleted Files on an NTFS Hard Drive from a Linux»: разница между страницами

Материал из support.qbpro.ru
(Различия между страницами)
imported>Vix
(Новая страница: «Я являюсь "счастливым" обладателем интегрированного видеоадаптера GM965/GL960 Integrated Graphics Contro…»)
 
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:
Я являюсь "счастливым" обладателем интегрированного видеоадаптера GM965/GL960 Integrated Graphics Controller, а так как я пользуюсь только системой Linux на своем ноутбуке, то крайне болезненно принимаю некоторые глюки этого поделия когда приходится например обновлять ПО, в данный момент установил ядро версии 3.6.9, и начались странности..
To undelete our files, we first need to identify the hard drive that we want to undelete from. In the terminal window, type in:
периодически при непонятных но вычисляемых обстоятельствах ноут уходит в черный экран, при этом все продолжает работать, но изображение недоступно насмерть..
прикол в том что вызывает такое странное поведение именно тяжелые программы, например все от mozilla, иногда libreoffice, было и от virtualbox..
при очередном таком глюке, вслепую перешел в консоль и сделал dmesg|tail > err.txt
после перезагрузки увидел это:


  [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung
  sudo fdisk –l
[drm:i915_reset] *ERROR* Failed to reset chip.
.. гм..
сделал запрос на модуль: modinfo i915


  parm:          invert_brightness:Invert backlight brightness (-1 force normal, 0 machine defaults, 1 force inversion), please
  and press enter.
report PCI device ID, subsystem vendor and subsystem device ID to dri-devel@lists.freedesktop.org, if your machine needs it.
 
It will  then be included in an upcoming module version. (int)
sshot-2
parm:          modeset:Use kernel modesetting [KMS] (0=DRM_I915_KMS from .config, 1=on, -1=force vga console preference [default])
 
  (int)
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.
parm:           fbpercrtc:int
 
  parm:          panel_ignore_lid:Override lid status (0=autodetect [default], 1=lid open, -1=lid closed) (int)
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.
parm:          powersave:Enable powersavings, fbc, downclocking, etc. (default: true) (int)
 
parm:           semaphores:Use semaphores for inter-ring sync (default: -1 (use per-chip defaults)) (int)
Now that you know the name Ubuntu has assigned to your hard drive, we’ll scan it to see what files we can uncover.
parm:          i915_enable_rc6:Enable power-saving render C-state 6. Different stages can be selected via bitmask values
 
  (0 =  disable; 1 = enable rc6; 2 = enable deep rc6; 4 = enable deepest rc6). For example, 3 would enable rc6 and deep rc6, and 7
In the terminal window, type:
  would  enable everything. default: -1 (use per-chip default) (int)
 
parm:          i915_enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)
  sudo ntfsundelete <HD name>
parm:          lvds_downclock:Use panel (LVDS/eDP) downclocking for power savings (default: false) (int)
 
parm:          lvds_channel_mode:Specify LVDS channel mode (0=probe BIOS [default], 1=single-channel, 2=dual-channel) (int)
and hit enter. In our case, the command is:
parm:          lvds_use_ssc:Use Spread Spectrum Clock with panels [LVDS/eDP] (default: auto from VBT) (int)
 
parm:          vbt_sdvo_panel_type:Override/Ignore selection of SDVO panel mode in the VBT (-2=ignore, -1=auto [default],
  sudo ntfsundelete /dev/sda1
index in  VBT BIOS table) (int)
 
parm:          reset:Attempt GPU resets (default: true) (bool)
sshot-3
parm:          enable_hangcheck:Periodically check GPU activity for detecting hangs. WARNING: Disabling this can cause system
 
wide  hangs. (default: true) (bool)
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.
parm:          i915_enable_ppgtt:Enable PPGTT (default: true) (int)
 
............. из всего этого богатства опций самые интересные:
Nevertheless, we have three files that we can recover – two JPGs and an MPG.
1. lvds_channel_mode:
 
  2. reset
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.
3. enable_hangcheck
 
4. modeset:
To quickly recover the two JPGs, we will use the * wildcard to recover all of the files that end with .jpg.
немного "поигравшись" получил стабильное решение только так:
 
добавляем или создаем в /etc/modprobe/i915kms.conf
In the terminal window, enter
options i915 modeset=1
 
options i915 enable_hangcheck=1
  sudo ntfsundelete <HD name> –u –m *.jpg
options i915 reset=0
 
options lvds_channel_mode=1
which is, in our case,
.. обязательно качаем самую последнюю версию libdrm-intel1
 
качаем тут: http://intellinuxgraphics.org/download.html
  sudo ntfsundelete /dev/sda1 –u –m *.jpg
нас интересует : http://cgit.freedesktop.org/mesa/drm/
 
тянем что-то типа  libdrm-2.4.40.tar.gz
sshot-10
распаковываем где нибудь..
 
в распакованном каталоге делаем autogen.sh
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.
следом configure.sh
 
если просит чего, доустанавливаем...
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!
после делаем make -j3 (компиляция в 3 потока, у кого мощнее можно больше по числу ядер процессора)
 
следом ставим пакет если его нет : apt-get install checkinstall
We have one more file to undelete – our MPG.
теперь в каталоге даем команду: checkinstall -D
 
отвечаем утвердительно, и везде названия вместо libdrm меняем на libdrm-intel1
sshot-4
затем запускаем сборку deb пакета нажимая enter ..
 
теперь ставим пакет, тем самым обновляемся в данном случае до libdrm-intel1-2.4.40
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.
советую также обновить xserver-xorg-video-intel  до версии 2.2.15.0-3 из backports
 
.. после этого черный экран у меня перестал появляться..
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>
'''Resurses:'''
<hr>
* [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]

Версия от 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: