Linux/Ubuntu2012. 4. 8. 20:19
열심히 사이즈 조절하고 복제하는데 부팅이 안되는 현상이 발생 -_-
혹시나 해서 align 문제인가 해서 바꾸어서 해보지면 여전히 안되는데..
faq 찾아보니, 부트로더 복구 기능을 사용하라고 한다.
그나저나.. 딱 한번 저 부트가 깨졌다는걸 봤지
그냥 커서만 깜박이던데 문제 없으려나?
-> win7 cd 넣고 복구하니 부팅이 되지만, 이전의 파티션 설정이 달라져서 조금 미묘하게 된 느낌 -_-
시스템 예약이라는 E 드라이브는 원래 부트로더로서 보이지 않아야 하는데 보여버리고..
로컬 F는 기존의 D였는데 cdrom에도 우선순위가 밀려버렸다. 아무튼 문제없이 부팅은 됨.


Gparted Live cd를 노릇노릇 구워서 부팅하면 아래와 같은 화면이 나오는데 "엔터" 누름


언어 고르라는데 귀찮으면 엔터~(영문 기본)


그래픽 하게 보일꺼냐고 물어보는데 귀찮으니 엔터~


Gparted가 똭~!


ctrl-c,v 신공으로 드라이브 바꾸어 가면서 붙여주면 된다.
단, 줄여서 복사하는 경우에는 단일 파티션의 크기가 원래 하드보다 클 경우 복제가 불가능하고
파티션 중 단일 파티션으로 남은 공간보다 큰 경우는 복제가 불가능하다.
이 경우는 부팅용 드라이브와 부트로더만 복제하고 수작업으로 복제를 하거나,
원본 파티션 크기를 조절해서 옮기는 수 밖에 없을듯 하지만 위험을 감수해야 할 듯 하다.


친절한 Ctrl+C, Ctrl+V


복사할 파티션을 조절해주고 Apply를 누르면 겁주는데 Apply 눌러주면 시작~


먼가 열심히 복사를 꼼지락 꼼지락 한다.
단, 하드가 깨졌을 경우 디스크 검사를 해주어야지 안그러면 커널 패닉이 나는 경우도 있으니 주의해야 한다.


ctrl-v 하면 align이 MiB으로 기본 설정되어 있다.
굳이 변경하지 않아도 되고, 구형 하드의 경우 Cylinder로 하고 SSD라던가 신형은 MiB로 하라는데 차이는 모르겠다.
그리고 여기서 "New size"를 변경하면 파티션 복사시 크기를 줄이거나 늘릴수 있다.
(단 늘리거나 줄이는 것은 파일 시스템에 따라 제한이 되지만 ntfs는 모두 가능하다)


만약 부팅이 안되면(윈7/비스타는 100% 안되는듯?)
cd 넣고 부팅해서 "컴퓨터 복구"를 눌러준다.


난 관대하니까 크게 한번 더 찰칵


먼가 이상한거 쏼라쏼라 하지만 "시동 복구" 이거 눌러주면 다 해결됨.


---
[링크 : http://gparted.sourceforge.net/livecd.php]
[링크 : http://gparted.sourceforge.net/faq.php#faq-14]

[링크 : http://www.howtogeek.com/.../using-gparted-to-resize-your-windows-vista-partition/] // howto
[링크 : http://neosmart.net/blog/2009/windows-7-system-repair-discs/] // download
Posted by 구차니
Linux/Ubuntu2012. 4. 4. 21:35
fstab에서 마운트 옵션을 noatime, discard 를 추가해주면 된다고 한다.
noatime은 atime(Access TIME)을 변경하지 않도록 하는 것이고
discard는 블럭이 사용하지 않을때 TRIM 명령을 사용하도록 하는 것이다.

noatime
Do not update inode access times on this filesystem (e.g, for faster access on the news spool to speed up news servers). 

discard
/nodiscard
Controls whether ext4 should issue discard/TRIM commands to the underlying block device when blocks are freed. This is useful for SSD devices and sparse/thinly-provisioned LUNs, but it is off by default until sufficient testing has been done.

[링크 : 
http://linux.die.net/man/8/mount] 

아무튼 fstrim을 통해서 주기적으로 해주라는데 이건 옵션적인거니까 머 일단 패스?
FSTRIM(8)                                                            FSTRIM(8)



NAME
       fstrim - discard unused blocks on a mounted filesystem

SYNOPSIS
       fstrim [-o offset] [-l length] [-m minimum-extent] [-v] mountpoint


DESCRIPTION
       fstrim  is  used  on a mounted filesystem to discard (or "trim") blocks
       which are not in use by the filesystem.  This is useful for solid-state
       drives (SSDs) and thinly-provisioned storage.

       By  default,  fstrim  will discard all unused blocks in the filesystem.
       Options may be used to modify this behavior based on range or size,  as
       explained below.

       The  mountpoint  argument  is  the  pathname of the directory where the
       filesystem is mounted.


OPTIONS
       The offset, length, and minimum-free-extent arguments may  be  followed
       by  binary  (2^N) suffixes KiB, MiB, GiB, TiB, PiB and EiB (the "iB" is
       optional, e.g. "K" has the same meaning as  "KiB")  or  decimal  (10^N)
       suffixes KB, MB, GB, PB and EB.

       -h, --help
              Print help and exit.

       -o, --offset offset
              Byte offset in filesystem from which to begin searching for free
              blocks to discard.  Default  value  is  zero,  starting  at  the
              beginning of the filesystem.

       -l, --length length
              Number  of  bytes after starting point to search for free blocks
              to discard.  If the specified value extends past the end of  the
              filesystem,  fstrim  will  stop at the filesystem size boundary.
              Default value extends to the end of the filesystem.

       -m, --minimum minimum-free-extent
              Minimum contiguous free range to discard, in bytes. (This  value
              is  internally  rounded up to a multiple of the filesystem block
              size).  Free ranges smaller  than  this  will  be  ignored.   By
              increasing  this  value, the fstrim operation will complete more
              quickly  for  filesystems  with  badly   fragmented   freespace,
              although  not  all  blocks  will be discarded.  Default value is
              zero, discard every free block.

       -v, --verbose
              Verbose execution. When specified fstrim will output the  number
              of  bytes passed from the filesystem down the block stack to the
              device for potential discard. This number is a  maximum  discard
              amount  from  the  storage  device's perspective, because FITRIM
              ioctl called repeated will keep sending  the  same  sectors  for
              discard repeatedly.

              fstrim  will  report the same potential discard bytes each time,
              but only sectors which had been written to between the  discards
              would actually be discarded by the storage device.  Further, the
              kernel block layer reserves the  right  to  adjust  the  discard
              ranges  to fit raid stripe geometry, non-trim capable devices in
              a LVM setup, etc.  These reductions would not  be  reflected  in
              fstrim_range.len (the --length option).


AUTHOR
       Lukas Czerner <lczerner@redhat.com>
       Karel Zak <kzak@redhat.com>

SEE ALSO
       mount(8)

AVAILABILITY
       The  fstrim  command is part of the util-linux package and is available
       from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.



                                   Nov 2010                          FSTRIM(8) 

[링크 : http://www.wilderssecurity.com/showthread.php?t=310021]
Posted by 구차니
Linux/Ubuntu2012. 4. 2. 22:51
Ubuntu 11.10 Desktop 64bit 에서 발생하고 있고 AMD 4200+x2 이다.
대충 찾아봐도 Cool'n'Quiet 관련해서 문제라는 이야기가 있는데
내가 그걸 안켜놨던가...?


---
2012.4.3 추가

위의 에러는 ACPI 관련해서 문제가 발생하는 것으로 Cool'n'Quiet를 켜놓으면 발생한다고 한다.

On AMD with Xen, the cpuidle is set to use the halt one (this is b/c the halt
ends up doing a yield hypercall) - look in setup.c - and the hypervisor does
the appropiate halt operation (MWAIT, halt, etc, or schedules another guest on
the CPU). Anyhow, to not have the cpuidle trying to activate, the
"boot_option_idle_override" is set. Therefore, the ACPI _PSS driver
(processor.ko) ends up bailing out, b/c of that parameter. As such the "older"
AMD pstate driver is invoked (powernow-k8), and the older driver attempts to
use ACPI _PSD - but only if in UP mode, or it attempts to use the voltage
tables - which are k8 or earlier. To detect that, it use the MSR (sadly not
CPUID values), which Xen traps and returns 00, which the powernow-k8 driver
interprets as "buggy hardware - can't use". Which is exactly what you are
seeing.

I believe (and sadly I don't have the hardware to check this - but I think I
saw the somebody using it) if you were running on K8 hardware - it ought to
work.

Solution: Have the ACPI processor driver cooperate with Xen. Patches are in the
queue for it (if you are really interested look in oss.oracle.com/kwilk/xen.git
#devel/acpi-cpufreq.v2 - but they are not yet upstream-able material. Actually,
they are quite ugly).

Other solution:
The "easy" option for right now would be to do what Dave suggest until the
upstream patches are ready and reviewed.
---
Just to add, per Konrad's comment above.

This issue also occurs on K8 hardware (Athlon II 4850e) with powernow enabled
in the BIOS (aka Cool'n'quiet).

Disabling Cool'n'quiet removes the messages.

I just performed the standard Desktop install of the F16 Beta, installed Xen,
rebuilt the grub menu, and rebooted to dom0.  Syslog is full of the same
message per this bug.

It would be great to see Dave's solution (see comment 5 above); an interim
kernel-patch solution to this bug - as it currently stands dom0 functionality
is largely unuseable.
 
[링크 : https://bugzilla.redhat.com/show_bug.cgi?id=739159]  
---
2012.4.4 추가
확실히 Cool'n'Quiet를 끄니 에러가 발생하진 않음.


Posted by 구차니
Linux/Ubuntu2012. 4. 1. 16:42
세션을 Ubuntu 대신 unity나 gnome3로 하면된다.
그나저나 크롬과 충돌이 있나.. 그냥 터미널꺼 붙여 넣으면 span / div 태그로 도배되고 저장이 안되네 -_-

[링크 : http://kldp.org/node/128605]


---
2012.04.04 추가

아래의 두가지 방법중 하나를 골라서 하면된다.
$ sudo vi /etc/lightdm/lightdm.conf 

[SeatDefaults]
autologin-guest=false
autologin-user=minimonk
autologin-user-timeout=0
autologin-session=lightdm-autologin
greeter-session=unity-greeter
user-session=ubuntu-2d 

$ sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu-2d  

[링크 : http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins
Posted by 구차니
Linux/Ubuntu2012. 3. 31. 22:07
적응이고 머고 간에 일단 짜증난다 -_-
드럽게 느리고 무겁고 버벅대고 하드 많이 쓰고
기존의 애플릿이 다 구조가 변경되서 추가하는것도 힘들고 왜이렇게 바뀐겨 -_-
12.04 LTS 나올것도 두렵네 -_-


기존의 cpufreq 유틸은 못찾았고
indicator-multiload를 수동으로 추가해서 상단에 cpu 사용량등을 보고할수는 있는듯

[링크 : http://askubuntu.com/questions/30334/what-application-indicators-are-available

---
죽어라 검색해보니 아래와 같이 추가하고, 설치하면 자동으로 시작프로그램이 등록이 된다.
$ sudo add-apt-repository ppa:artfwo/ppa
You are about to add the following PPA to your system:
 PPA
 This archive contains SuperCollider packages, some packages, related to bug 217611, libvorbis with aoTuV beta5.5 patchset and test packages of various projects.
 More info: https://launchpad.net/~artfwo/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.b1vZa1epBv --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 29CB7600B6F706CEDFED21EE9ED9A781DD9300F1
gpg: requesting key DD9300F1 from hkp server keyserver.ubuntu.com
gpg: key DD9300F1: public key "Launchpad PPA for Артём Попов" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
$ sudo apt-get update
$ sudo apt-get install indicator-cpufreq

[링크 : 
http://www.webcoz.com/...cpu-frequency-indicator-for-change-monitor-cpu-speed-in-ubuntu-ppa/] 

Posted by 구차니
Linux/Ubuntu2012. 3. 31. 19:23
Xnote LW25에 설치했더니 화면밝기가 가장 어둡게 나온다 -_-
그래서 인터넷 뒤져보니 echo 0를 넣으라는데
실험적으로 넣어보니 0~8 까지 입력이 가능했다.
/etc/rc.local에서 빨간 라인을 추가하고 리부팅 하면 다음번 부터 가장 밝게 나온다.

$ sudo vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 8 > /sys/class/backlight/acpi_video0/brightness 
exit 0 
 

[링크 : http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot]
Posted by 구차니
Linux/Ubuntu2012. 3. 29. 22:20
gnome-shell 하나 설치하면 해결끝이라는데...?

$ sudo apt-get install gnome-shell

[링크 : http://www.avinashtech.com/...disable-unity-in-ubuntu-11-10-and-get-old-classic-ubuntu-desktop/]  


---
2012.3.31 추가

기본세션을 영구적으로 변경하는 방법은 다음과 같다.
$ sudo apt-get install gnome-shell
$ sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell 

[링크 : http://ubuntuguide.net/ubuntu-11-10-how-to-auto-login-gnome-shell-gnome3-desktop]
[링크 : http://ubuntuguide.net/ubuntu-11-10-oneiric-login-to-classic-gnome2-and-gnome3gnome-shell]
Posted by 구차니
Linux/Ubuntu2012. 3. 27. 23:13

뜬금없이 저런 에러가 떠서 놀랐는데

(가뜩이나 좀 불량 기미가 보이는 cpu라서 -_-)


혹시나 BIOS에서 설정이 잘못된게 있나? 싶어서 확인해보니

Cool'n'Quiet가 Disable로 되어있었다. 이걸 Auto로 해주니 해결~!



2012/03/03 - [Linux/Ubuntu] - CPU 클럭 설정하기


Posted by 구차니
Linux/Ubuntu2012. 3. 4. 20:46
vlc / totem / smplayer

세개를 써봤는데 h.264(avc) 코덱으로 되어 있는 1920x1080에 대해서
윈도우에서도 그리 버벅댈 사양은 아닐꺼 같은데(AMD 4400+x2/1GB/740g)
 
아무튼 vlc가 가장 덜 끊어지고,
totem 이나 smplayer는 비슷한 수준 ㅠ.ㅠ 
Posted by 구차니
Linux/Ubuntu2012. 3. 3. 23:00
예전에 ATI로는 해본적이 없던가..?
아무튼 처음에 부팅할때 이상하게 화면이 자주 깜빡이고 모니터도 색상이 이상하게 나오다가
겨우잡는 현상이 발생되서 자세히 보고 있으니, 부팅메시지 중에도 EDID Error가 나오길래
dmesg로 보니 아래와 같이 촤르르르륵

[   12.423089] [drm] Initialized drm 1.1.0 20060810
[   12.470094] [drm] radeon defaulting to kernel modesetting.
[   12.470098] [drm] radeon kernel modesetting enabled.
[   12.470163] radeon 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[   12.472067] [drm] radeon: Initializing kernel modesetting.
[   12.472807] [drm] register mmio base: 0xFEAF0000
[   12.472810] [drm] register mmio size: 65536
[   12.473833] ATOM BIOS: ATI
[   12.474044] [drm] GPU reset succeed (RBBM_STATUS=0x10000140)
[   12.474061] [drm] radeon: VRAM 32M
[   12.474063] [drm] radeon: VRAM from 0x3E000000 to 0x3FFFFFFF
[   12.474065] [drm] radeon: GTT 512M
[   12.474066] [drm] radeon: GTT from 0x40000000 to 0x5FFFFFFF
[   12.474098] [drm] radeon: irq initialized.
[   12.474314] [drm] Detected VRAM RAM=32M, BAR=32M
[   12.474319] [drm] RAM width 128bits DDR
[   12.476930] [TTM] Zone  kernel: Available graphics memory: 443732 kiB.
[   12.476934] [TTM] Zone highmem: Available graphics memory: 496824 kiB.
[   12.476954] [drm] radeon: 32M of VRAM memory ready
[   12.476956] [drm] radeon: 512M of GTT memory ready.
[   12.476976] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   12.480743] [drm] radeon: 1 quad pipes, 1 z pipes initialized.
[   12.480760] [drm] radeon: cp idle (0x10000C03)
[   12.480863] [drm] Loading RS690/RS740 Microcode
[   12.480936] platform radeon_cp.0: firmware: requesting radeon/RS690_cp.bin
[   12.487430] [drm] radeon: ring at 0x0000000040000000
[   12.487450] [drm] ring test succeeded in 1 usecs
[   12.487598] [drm] radeon: ib pool ready.
[   12.487680] [drm] ib test succeeded in 0 usecs
[   12.487782] [drm] Default TV standard: NTSC
[   12.487884] [drm] Radeon Display Connectors
[   12.487886] [drm] Connector 0:
[   12.487887] [drm]   VGA
[   12.487890] [drm]   DDC: 0x7e50 0x7e40 0x7e54 0x7e44 0x7e58 0x7e48 0x7e5c 0x7e4c
[   12.487892] [drm]   Encoders:
[   12.487893] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[   12.487895] [drm] Connector 1:
[   12.487896] [drm]   S-video
[   12.487897] [drm]   Encoders:
[   12.487899] [drm]     TV1: INTERNAL_KLDSCP_DAC1
[   12.487900] [drm] Connector 2:
[   12.487902] [drm]   DVI-D
[   12.487903] [drm]   HPD2
[   12.487905] [drm]   DDC: 0x7e40 0x7e60 0x7e44 0x7e64 0x7e48 0x7e68 0x7e4c 0x7e6c
[   12.487907] [drm]   Encoders:
[   12.487909] [drm]     DFP2: INTERNAL_DDI
[   12.487910] [drm] Connector 3:
[   12.487911] [drm]   HDMI-A
[   12.487914] [drm]   DDC: 0x7e40 0x7e50 0x7e44 0x7e54 0x7e48 0x7e58 0x7e4c 0x7e5c
[   12.487915] [drm]   Encoders:
[   12.487917] [drm]     DFP3: INTERNAL_LVTM1
[   12.557911] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   12.604074] [drm:edid_is_valid] *ERROR* Raw EDID:
[   12.604113] <3>03 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00  ................
[   12.604115] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604117] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604120] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604122] <3>00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00  ................
[   12.604124] <3>00 00 00 00 00 0f 00 00 00 00 00 00 00 00 00 00  ................
[   12.604126] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604129] <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[   12.604130] 

그래서 찾아보니 머.. 결론은 i2c를 통해서 EDID정보를 받는데 그 부분의 드라이버 설정이 오류가 있는지
다시 컴파일을 해주어야 한다~ 머 이런거.. 지금와서 ATI에서 다시 드라이버 리눅스용으로 받으면 해결이 되려나?

[링크 : http://ubuntuforums.org/showthread.php?t=1607778 

---
혹시나 해서 찾아봤지만.. 리눅스 내장 드라이버 아닌, ATI 공식 드라이버는 XP/VISTA용 밖에 없는듯 하다.

 
Posted by 구차니