'잡동사니'에 해당되는 글 12955건

  1. 2014.12.02 mbr , fdisk, partprobe?
  2. 2014.11.30 대졸 신입 월급 278만원?
  3. 2014.11.27 intelligent hub?
  4. 2014.11.27 HPET - High Precision Event Timer / linux
  5. 2014.11.26 ntp / ptp
  6. 2014.11.26 네트워크 지연시간 설정 및 측정
  7. 2014.11.26 alsa timestamp
  8. 2014.11.26 alsa async
  9. 2014.11.26 동기 비동기
  10. 2014.11.24 ipad 복원하기 실패 ㅠㅠ
Linux2014. 12. 2. 08:52
강제로 mbr을 갈아 엎으면
fdisk로 들어가서 정보가 보이는데
w를 해서 저장을 하지 않고  q로 나오면은 
커널에서도 변경된 파티션으로 인식하지 못하는 문제가 있다.

이를 해결하기 위해서는 멀 해야 하려나 -_- 

minimonk@devmini:~/nfs/Ver1.0.1.12$ sudo fdisk /dev/sdb

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Selected partition 3

Command (m for help): p

Disk /dev/sdb: 1977 MB, 1977614336 bytes
61 heads, 62 sectors/track, 1021 cylinders, total 3862528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x37168ace

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks. 

minimonk@devmini:~/nfs/Ver1.0.1.12$  sudo dd if=./mbr.imx283 of=/dev/sdb
1+0 레코드 들어옴
1+0 레코드 나감
512 바이트 (512 B) 복사됨, 0.00272973 초, 188 kB/초 

minimonk@devmini:~/nfs/Ver1.0.1.12$ dmesg | tail
[420014.024095] sd 38:0:0:0: [sdb] No Caching mode page found
[420014.024112] sd 38:0:0:0: [sdb] Assuming drive cache: write through
[420014.026165]  sdb: 

minimonk@devmini:~/nfs/Ver1.0.1.12$ sudo fdisk /dev/sdb

Command (m for help): q

minimonk@devmini:~/nfs/Ver1.0.1.12$ dmesg | tail
[420014.024095] sd 38:0:0:0: [sdb] No Caching mode page found
[420014.024112] sd 38:0:0:0: [sdb] Assuming drive cache: write through
[420014.026165]  sdb: 

minimonk@devmini:~/nfs/Ver1.0.1.12$ sudo fdisk /dev/sdb

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

minimonk@devmini:~/nfs/Ver1.0.1.12$ dmesg | tail
[420091.481789] sd 38:0:0:0: [sdb] No Caching mode page found
[420091.481807] sd 38:0:0:0: [sdb] Assuming drive cache: write through
[420091.483255]  sdb: sdb1 sdb2 sdb3 

음.. 그냥.. fdisk를 EOF로 해서 w 하도록 해야하나 -_-
2014/04/11 - [Linux] - 리눅스 쉘 스크립트 << EOF 를 이용해서 자동화 하기

partprobe 라는걸 해봤지만.. 안되네..

[링크 : http://2factor.tistory.com/49
[링크 : http://faq.hostway.co.kr/Linux_ETC/4528
[링크 : http://linux.die.net/man/8/partprobe]  

---
오!! 된다!!!
$ sudo hdparm -z /dev/sdb

/dev/sdb:
 re-reading partition table

minimonk@devmini:~/nfs/Ver1.0.1.12$ dmesg | tail
[437273.173713] sd 44:0:0:0: [sdb] No Caching mode page found
[437273.173729] sd 44:0:0:0: [sdb] Assuming drive cache: write through
[437273.175179]  sdb: sdb1 sdb2 sdb3


[링크: http://serverfault.com/questions/36038/reread-partition-table-without-rebooting ]

'Linux' 카테고리의 다른 글

tar 퍼미션 유지하기  (0) 2014.12.05
압축풀지 않고 tar 파일 용량 알아내기  (0) 2014.12.02
HPET - High Precision Event Timer / linux  (0) 2014.11.27
timezone  (0) 2014.11.21
dd 출력파일 자르지 않기  (0) 2014.11.20
Posted by 구차니
-_-
와... 나 7년 일해도 대졸 신입 만도 못하게 받고 살았던거구나 ㅠㅠ
통계가 도대체 어따구로 해야 저렇게 나올수 있는걸까? -_-

[링크 : http://media.daum.net/society/labor/newsview?newsid=20141130110108529]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

네이트온 비밀대화라...  (0) 2014.12.21
12.12 성공한 쿠데타는 처벌할 수 없다라..  (0) 2014.12.12
8.15 광복절  (0) 2014.08.15
면접 보고 옴  (0) 2014.07.08
6.25 64주년..  (0) 2014.06.25
Posted by 구차니
하드웨어/Network 장비2014. 11. 27. 20:28
HUB는 여러가지 종류가 있는데
일반적으로 가장 익숙(?)한 것은 스위칭 허브와 더미 허브 인 듯 하다.

예전에 구매했던 3com 허브의 경우 크게 분류가 없어서 애매했는데..
2010/12/20 - [하드웨어/Network 장비] - 3com Baseline Switch 2226-SFP Plus 업데이트 하기

위키에 의하면.. Managed switch에 Fully managed 혹은 Enterprise Hub 라고 하면 되려나?
  • Unmanaged switches – these switches have no configuration interface or options. They are plug and play. They are typically the least expensive switches, and therefore often used in a small office/home office environment. Unmanaged switches can be desktop or rack mounted.
  • Managed switches – these switches have one or more methods to modify the operation of the switch. Common management methods include: a command-line interface (CLI) accessed via serial consoletelnet or Secure Shell, an embedded Simple Network Management Protocol (SNMP) agent allowing management from a remote console or management station, or a web interface for management from a web browser. Examples of configuration changes that one can do from a managed switch include: enabling features such as Spanning Tree Protocol or port mirroring, setting port bandwidth, creating or modifyingVirtual LANs (VLANs), etc. Two sub-classes of managed switches are marketed today:
    • Smart (or intelligent) switches – these are managed switches with a limited set of management features. Likewise "web-managed" switches are switches which fall into a market niche between unmanaged and managed. For a price much lower than a fully managed switch they provide a web interface (and usually no CLI access) and allow configuration of basic settings, such as VLANs, port-bandwidth and duplex.[17]
    • Enterprise Managed (or fully managed) switches – these have a full set of management features, including CLI, SNMP agent, and web interface. They may have additional features to manipulate configurations, such as the ability to display, modify, backup and restore configurations. Compared with smart switches, enterprise switches have more features that can be customized or optimized, and are generally more expensive than smart switches. Enterprise switches are typically found in networks with larger number of switches and connections, where centralized management is a significant savings in administrative time and effort. A stackable switch is a version of enterprise-managed switch.
[링크 : http://en.wikipedia.org/wiki/Network_switch

[링크 : http://kwonhanseung.blogspot.kr/2013/04/04.html]
[링크 : http://bali.pe.kr/wp/?p=522]

'하드웨어 > Network 장비' 카테고리의 다른 글

z-wave  (0) 2015.09.10
직비(zig-bee) / 블루투스 SPP(Serial Port Profile)  (0) 2015.07.02
DM9161 phy address  (0) 2013.06.19
iptime n104-r3  (0) 2012.12.23
USB to RS232 컨버터 데이터 수신 몇바이트 놓칠경우  (2) 2012.11.06
Posted by 구차니
Linux2014. 11. 27. 10:06
HPET는 hpet로 표기되는게 아니라
constant_tsc나 nonstop_tsc 으로 표기 된다고 한다.

$ cat /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid

[링크 : http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/tsc-resynchronization]  

'Linux' 카테고리의 다른 글

압축풀지 않고 tar 파일 용량 알아내기  (0) 2014.12.02
mbr , fdisk, partprobe?  (0) 2014.12.02
timezone  (0) 2014.11.21
dd 출력파일 자르지 않기  (0) 2014.11.20
linux kernel panic 자동복구  (0) 2014.11.13
Posted by 구차니
NTP - Network Time Protocol
PTP - Precision Time Protocol

NTP
As of June 2010, the current protocol is version 4 (NTPv4)
NTP is intended to synchronize all participating computers to within a few milliseconds of Coordinated Universal Time (UTC).[1]:3 It uses a modified version of Marzullo's algorithm to select accurate time servers and is designed to mitigate the effects of variable network latency. NTP can usually maintain time to within tens of milliseconds over the public Internet, and can achieve better than one millisecond accuracy in local area networks under ideal conditions. Asymmetric routes and network congestion can cause errors of 100 ms or more.

PTP
The Precision Time Protocol (PTP) is a protocol used to synchronize clocks throughout a computer network. On a local area network, it achieves clock accuracy in the sub-microsecond range, making it suitable for measurement and control systems.
IEEE 1588-2002
IEEE 1588-2008

[링크 : http://en.wikipedia.org/wiki/Network_Time_Protocol]
[링크 : http://en.wikipedia.org/wiki/Precision_Time_Protocol]


For example when ntpq -c rl prints precision=-16, the precision is about 15 microseconds (2^-16 s).
[링크 : http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm]
[링크 : http://linux.die.net/man/8/ntpq]
[링크 : http://linux.die.net/man/8/ntpdc]


Why is IEEE 1588 so accurate? Two words: Hardware timestamping.
In some cases the delay can be quite long, many microseconds, or even milliseconds
[링크 : http://blog.meinbergglobal.com/2013/09/14/ieee-1588-accurate/]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

MPEG4 HE-AAC 관련  (0) 2015.01.29
SBR - Spectral band replication  (0) 2015.01.23
네트워크 지연시간 설정 및 측정  (0) 2014.11.26
동기 비동기  (0) 2014.11.26
파이프 라인 / 슈퍼스칼라  (0) 2013.10.08
Posted by 구차니
die.net에는 없는 명령인거 같은데..
아무튼 짧은 레이턴시를 길게 일정길이로 늘려줄수는 있으나
작게 잡아지진 않는 것 같고..

tc qdisk add dev eth0 root netem delay 100ms
tc qdisk del dev eth0 root netem delay 100ms
[링크 : http://monovision.tistory.com/5]
[링크 : http://linux.die.net/man/8/tc]

레이턴시는 sockperf라는 유틸을 이용해서 잴 수 있다고 한다.

[링크 : http://www.smallake.kr/?p=2246]
[링크 : https://code.google.com/p/sockperf/]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

SBR - Spectral band replication  (0) 2015.01.23
ntp / ptp  (0) 2014.11.26
동기 비동기  (0) 2014.11.26
파이프 라인 / 슈퍼스칼라  (0) 2013.10.08
VLIW - Very Long Instruction Word  (0) 2013.10.08
Posted by 구차니
Linux API/alsa2014. 11. 26. 21:37

'Linux API > alsa' 카테고리의 다른 글

alsa 예제  (0) 2024.06.04
alsa 구조  (0) 2015.05.29
alsa async  (0) 2014.11.26
alsa debug function  (0) 2014.11.18
ALSA 드라이버 관련  (0) 2014.11.17
Posted by 구차니
Linux API/alsa2014. 11. 26. 21:32
ALSA에서도 비동기 처리가 가능하다는데.
polling을 쓰라는거 보면 무언가 좀 unsafe 한 부분이 있나 보다 싶긴한데..
공식 문서를 찾아볼 필요가 있을 듯.

[링크 : http://alsa.opensrc.org/HowTo_Asynchronous_Playback]
 

'Linux API > alsa' 카테고리의 다른 글

alsa 구조  (0) 2015.05.29
alsa timestamp  (0) 2014.11.26
alsa debug function  (0) 2014.11.18
ALSA 드라이버 관련  (0) 2014.11.17
alsa 함수 - size / time  (0) 2014.11.17
Posted by 구차니
동기 비동기는
블러킹과 넌블러킹으로 구현이 되는 상태라고 해야하나?

동기는 서로의 동기를 맞추어 딱딱 주고 받고(물론 서버가 안주면 클라이언트는 무한 대기)
비동기는 안주면 기다리지 않고 다른걸 하다 핸들러를 통하거나 다음번에 받아서 처리하는 식이라고 해석해야하나?

통신에서의 동기는 동기화된 클럭에 맞추어 start / end 없이 전송하는 것이고
비동기는 신호가 없다가 start 신호가 오면 wait 타임을 거쳐 동기를 맞추고 주고 받는 방식 인 듯.

[링크 : http://nsinc.tistory.com/108]
[링크 : http://recipes.egloos.com/viewer/5126390]
[링크 : http://linuxism.tistory.com/757]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

ntp / ptp  (0) 2014.11.26
네트워크 지연시간 설정 및 측정  (0) 2014.11.26
파이프 라인 / 슈퍼스칼라  (0) 2013.10.08
VLIW - Very Long Instruction Word  (0) 2013.10.08
펜타일(Pentile) 방식 디스플레이  (2) 2011.10.15
Posted by 구차니
아래 링크에서 ipsw를 받고
[링크 : http://www.ipswdownloader.com/]

itune에서

복원하기 버튼을 쉬프트 클릭해서 ipsw를 선택하면 된다는데..


[링크 : http://osnews.kr/858]
[링크 : http://support.apple.com/ko-kr/ts4451]
[링크 : http://dj153.egloos.com/viewer/2875486]

(2014년 9월 29일) 업데이트 : 9월 27일부터 iOS 7.1.2에 대한 '서명'이 중단되어 위의 방법으로는 iOS 7으로 복원이 불가능함. 
[링크 : http://www.itworld.co.kr/news/89665]


아아 망했어요 ㅠㅠ 
Posted by 구차니