-
Notifications
You must be signed in to change notification settings - Fork 3
/
NOTES
49 lines (24 loc) · 916 Bytes
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Tool to resize the /media/internal partition to create room for additional partitions and create those partitions, add them to /etc/fstab and mount them.
DEPENDENCIES: fatresizer, lvm-tools, ext2-tools
WORKFLOW:
put in size of partition you want to have "new" after reading sizes of things already.
app then calculates what values to send to fatresize, lvcreate.
app makes sure no other apps are running (foreground)
app calls media_internal_resize script
app calls create_new_partition script
Media_internal-resize:
pkill -SIGUSR1 cryptofs
umount /media/internal
resizefat -v /dev/mapper/store-media new_size
lvreduce -L new_size /dev/mapper/store-media
mount /media/internal
pkill -SIGUSR2 cryptofs
return
create_new_partition:
lvcreate -L Size --name ext3fs store
mke2fs -j /dev/mapper/store-ext3fs
tune2fs -i 0 /dev/mapper/store-ext3fs
mkdir /media/ext3fs
modify /etc/fstab
mount
return