You cannot see this page without javascript.

리눅스 부팅시 초기화

Linux 조회 수 1079 추천 수 0 2015.01.05 22:20:35

try ubuntu... 로 진입하셔서
gparted를 실행햐셔서,
casper-rw라는 이름의 파티션을 만드세요.
파일시스템은 ext4가 좋겠군요.
이것은 루트디렉토리 변경사항을 저장할 파티션입니다.
만일 /home디렉토리를 따로 분리하고 싶으시면,
home-rw파티션을 만드시면 됩니다.

그런 다음 부트메뉴에 라이브모드를 등록하셔야하는데...
/boot/grub/custom.cfg를 편집하셔서..

Code:
set isofile="/ubuntu-cd/ubuntu.iso"

menuentry "UBUNTU Live" {
insmod ext4
insmod ntfs
insmod fat
insmod loopback

loopback lo $isofile

# persistent
linux (lo)/casper/vmlinuz persistent boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash
initrd (lo)/casper/initrd.lz
}

menuentry "UBUNTU Readonly" {
insmod ext4
insmod ntfs
insmod fat
insmod loopback

loopback lo $isofile

# nopersistent
linux (lo)/casper/vmlinuz nopersistent boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash
initrd (lo)/casper/initrd.lz
}
menuentry "Try UBUNTU" {
insmod ext4
insmod ntfs
insmod fat
insmod loopback

loopback lo $isofile
linux (lo)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash
initrd (lo)/casper/initrd.lz
}


iso파일 위치는 적당히 바꿔주시구요
세가지 메뉴를 제공하는데...

Try UBUNTU : 말그대로 사용해보기 모드입니다.
UBUNTU Live: 업데이트및 변경사항이 casper-rw에 저장됩니다.
UBUNTU Readonly: 위의 모드에서 변경사항 대로 사용하지만, 변경사항이 저장되지 않습니다.

위의 파티션 대신, 파일을 만들어 사용하실 수 도 있습니다.
Code:
mkdir t
sudo mount /dev/sda1 t
#4G파일 만드는 경우
sudo dd if=/dev/zero of=t/casper-rw bs=1M count=4096
sudo -F mkfs.ext4 t/casper-rw
sudo umount t


만일 크기를 더 늘리실 경우는,
Code:
mkdir t
sudo mount /dev/sda1 t
#1G늘리는 경우
dd if=/dev/zero bs=1M count=1024 | sudo tee -a t/casper-rw
sudo resize2fs t/casper-rw
sudo umount t

List of Articles
번호 제목 글쓴이 날짜 조회 수sort
109 Linux 리눅스 게이밍 가이드 1부 : 게임을 위한 환경 설정 [10] LynX 2014-12-24 1027
108 Server 전산업무 리스트 LynX 2016-05-20 1028
107 Xpress Engine XE 애드온(addon)개발하기 LynX 2014-07-11 1044
106 Linux MySQL 5.1.73 바이너리 설치 LynX 2014-07-02 1047
105 CentOS APM 소스 설치 file [15] LynX 2015-05-29 1053
104 APM APM 기본적인 점검 LynX 2013-12-27 1064
103 CentOS7 ▒ Doly의 CentOS7 강좌10 3. CentOS시작, 종료, 둘러보기 -2 file [17] LynX 2014-10-23 1071
102 Linux LFS/Preface - 서문 [9] LynX 2014-08-06 1072
101 아레한글 사용시 출력물에 음영이 나타나는 현상. file [11] LynX 2012-03-29 1077
» Linux 리눅스 부팅시 초기화 [21] LynX 2015-01-05 1079
99 CentOS init mode change LynX 2019-05-30 1098
98 Linux mint APM install LynX 2015-12-11 1101
97 E-Mail hmailserver 설치 LynX 2014-05-29 1121
96 CentOS wow 6.x 구축 [6] LynX 2015-11-30 1133
95 LinuxMint LinuxMint MariaDB source 설치 [12] LynX 2014-12-19 1135
94 IIS+MSSQL+XE [9] LynX 2012-12-12 1142
93 CentOS wow 3.3.5a 구축 [1] LynX 2015-11-30 1170
92 Linux 리눅스 명령어 모음 LynX 2013-09-02 1177
91 CentOS php에 ssh2 설치하여 sftp 사용가능 file LynX 2016-03-10 1195
90 APM What one can and should optimize LynX 2019-06-03 1222

XE Login