Language:EN / NE / AE / DE / IT

안녕하세요. 도정진입니다.


개인적으로 시간이 너무 없어서 개략적으로 적습니다.





1. u5pvr-unmount-atv7.deb 파일 받고 설치


root@u5pvr-debian:~# wget http://u5pvr.djjproject.com/u5pvr-umount-atv7.deb

--2017-10-22 12:38:46--  http://u5pvr.djjproject.com/u5pvr-umount-atv7.deb

Resolving u5pvr.djjproject.com (u5pvr.djjproject.com)... 1.226.113.222

Connecting to u5pvr.djjproject.com (u5pvr.djjproject.com)|1.226.113.222|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1006 [application/x-debian-package]

Saving to: ‘u5pvr-umount-atv7.deb’


u5pvr-umount-atv7.deb       100%[============================================>]    1006  --.-KB/s   in 0s


2017-10-22 12:38:46 (40.1 MB/s) - ‘u5pvr-umount-atv7.deb’ saved [1006/1006]


root@u5pvr-debian:~# dpkg -i u5pvr-umount-atv7.deb

dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 8 package 'u5pvr-umount-android7':

 missing description

Selecting previously unselected package u5pvr-umount-android7.

(Reading database ... 24699 files and directories currently installed.)

Preparing to unpack u5pvr-umount-atv7.deb ...

Unpacking u5pvr-umount-android7 (1.0-android7) ...

Setting up u5pvr-umount-android7 (1.0-android7) ...

root@u5pvr-debian:~#





2. 현재 마운트 된 리스트 확인 후 언마운트


root@u5pvr-debian:~# ls /mnt/media_rw

sda1        <-- 요놈

# 여러개가 존재할 수 있습니다. sda1 sda2 sda3 ... 모두 언마운트 해 주세요.

root@u5pvr-debian:~# umount_disk sda1
umount: /storage/sda1: mountpoint not found
umount: /mnt/media_rw/sda1: not mounted
[info]sda1 is succesfully unmounted.





3. 파티션 작업 후 포맷 작업하기


# 장착하신 하드에 따라 sda 인지 sdb 인지 혹은 sdc 인지 등등 다릅니다.

root@u5pvr-debian:~# fdisk /dev/block/sda


Welcome to fdisk (util-linux 2.25.2).

Changes will remain in memory only, until you decide to write them.

Be careful before using the write command.


# 현재 존재하는 파티션 모두 삭제

Command (m for help): d

Selected partition 1

Partition 1 has been deleted.


# 새로운 단일 파티션 생성

Command (m for help): n

Partition type

   p   primary (0 primary, 0 extended, 4 free)

   e   extended (container for logical partitions)

Select (default p): p

Partition number (1-4, default 1): 1

First sector (2048-234441647, default 2048):

Last sector, +sectors or +size{K,M,G,T,P} (2048-234441647, default 234441647):


Created a new partition 1 of type 'Linux' and of size 111.8 GiB.


# 변경된 설정을 디스크에 씀

Command (m for help): w

The partition table has been altered.

Calling ioctl() to re-read partition table.

Syncing disks.


# ntfs 로 포맷할 경우 아래의 패키지 필요

root@u5pvr-debian:~# apt-get install ntfs-3g

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  fuse libfuse2

The following NEW packages will be installed:

  fuse libfuse2 ntfs-3g

0 upgraded, 3 newly installed, 0 to remove and 54 not upgraded.

Need to get 675 kB of archives.

After this operation, 1,511 kB of additional disk space will be used.

Do you want to continue? [Y/n]

Get:1 http://httpredir.debian.org/debian/ jessie/main libfuse2 armhf 2.9.3-15+deb8u2 [125 kB]

Get:2 http://httpredir.debian.org/debian/ jessie/main fuse armhf 2.9.3-15+deb8u2 [69.1 kB]

Get:3 http://httpredir.debian.org/debian/ jessie/main ntfs-3g armhf 1:2014.2.15AR.2-1+deb8u3 [481 kB]

Fetched 675 kB in 7s (93.4 kB/s)

Selecting previously unselected package libfuse2:armhf.

(Reading database ... 24565 files and directories currently installed.)

Preparing to unpack .../libfuse2_2.9.3-15+deb8u2_armhf.deb ...

Unpacking libfuse2:armhf (2.9.3-15+deb8u2) ...

Selecting previously unselected package fuse.

Preparing to unpack .../fuse_2.9.3-15+deb8u2_armhf.deb ...

Unpacking fuse (2.9.3-15+deb8u2) ...

Processing triggers for man-db (2.7.0.2-5) ...

Setting up libfuse2:armhf (2.9.3-15+deb8u2) ...

Setting up fuse (2.9.3-15+deb8u2) ...

Processing triggers for libc-bin (2.19-18+deb8u7) ...

Selecting previously unselected package ntfs-3g.

(Reading database ... 24596 files and directories currently installed.)

Preparing to unpack .../ntfs-3g_1%3a2014.2.15AR.2-1+deb8u3_armhf.deb ...

Unpacking ntfs-3g (1:2014.2.15AR.2-1+deb8u3) ...

Processing triggers for man-db (2.7.0.2-5) ...

Setting up ntfs-3g (1:2014.2.15AR.2-1+deb8u3) ...

Processing triggers for libc-bin (2.19-18+deb8u7) ...


# 빠른 포맷 실행, sda 의 1번 파티션 sda1

root@u5pvr-debian:~# mkfs.ntfs /dev/block/sda1 -f

Cluster size has been automatically set to 4096 bytes.

Creating NTFS volume structures.

mkntfs completed successfully. Have a nice day.

root@u5pvr-debian:~# sync

root@u5pvr-debian:~# reboot

# 리부팅을 하시면 안드로이드의 vold 서비스에 의해 자동 마운트 됩니다.


# ext4 로 하실 경우 아래의 명령어 사용

root@u5pvr-debian:~# mkfs.ext4 /dev/block/sda1

mke2fs 1.42.12 (29-Aug-2014)

/dev/block/sda1 contains a ntfs file system

Proceed anyway? (y,n) y

Creating filesystem with 29304950 4k blocks and 7331840 inodes

Filesystem UUID: 5266dc4b-4965-4feb-aa28-d3236e1a3b32

Superblock backups stored on blocks:

        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

        4096000, 7962624, 11239424, 20480000, 23887872


Allocating group tables: done

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done





4. 정상적으로 되었는지 확인


root@u5pvr-debian:~# file -s /dev/block/sda1

/dev/block/sda1: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS    ", sec                               tors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden secto                               rs 2048, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/                               track 63, sectors 234439599, $MFT start cluster 4, $MFTMirror start cluster 1465                               2474, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 0339                               2e19572fd7d85; contains Microsoft Windows XP/VISTA bootloader BOOTMGR


# 혹은 ext4 는 아래와 같습니다.

root@u5pvr-debian:~# file -s /dev/block/sda1

/dev/block/sda1: Linux rev 1.0 ext4 filesystem data, UUID=5266dc4b-4965-4feb-aa28-d3236e1a3b32 (needs journal recovery) (extents) (large files) (huge files)


감사합니다.