-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmounts.sh
More file actions
executable file
·61 lines (51 loc) · 1.7 KB
/
mounts.sh
File metadata and controls
executable file
·61 lines (51 loc) · 1.7 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is specific to my uuids.
# very important to MKDIR mount points!!!
# mkdir -p /data/hd0/p0
# mount UUID="5b98d9ef-2962-44d1-8e47-843190364473" /data/hd0/p0
mkdir -p /data/hd0/p0
disk_uuid=5b98d9ef-2962-44d1-8e47-843190364473
if ! grep -q ${disk_uuid} /etc/fstab; then
echo '' >> /etc/fstab
echo '# hd0 ext4 datastore' >> /etc/fstab
echo "UUID=${disk_uuid} /data/hd0/p0 auto defaults 0 1" >> /etc/fstab
else
echo 'skipping hd0 ext4 datastore'
fi
# mkdir -p /data/hd0/p1
# mount UUID="0CD215CED215BD40" /data/hd0/p1
mkdir -p /data/hd0/p1
disk_uuid=0CD215CED215BD40
if ! grep -q ${disk_uuid} /etc/fstab; then
echo '' >> /etc/fstab
echo '# hd0 ntfs datastore' >> /etc/fstab
echo "UUID=${disk_uuid} /data/hd0/p1 auto defaults 0 1" >> /etc/fstab
else
echo 'skipping hd0 ntfs datastore'
fi
# mkdir -p /data/hd0/p2
# mount UUID="029e3f11-b69f-4662-b05d-145040ca74b3" /data/hd0/p2
mkdir -p /data/hd0/p2
disk_uuid=029e3f11-b69f-4662-b05d-145040ca74b3
if ! grep -q ${disk_uuid} /etc/fstab; then
echo '' >> /etc/fstab
echo '# hd0 ext4 datastore' >> /etc/fstab
echo "UUID=${disk_uuid} /data/hd0/p2 auto defaults 0 1" >> /etc/fstab
else
echo 'skipping hd0 ext4 datastore 2.'
fi
# mkdir -p /data/sd0/p0
# mount UUID="BEE60E9EE60E56D5" /data/sd0/p0
mkdir -p /data/sd0/p0
disk_uuid=BEE60E9EE60E56D5
if ! grep -q ${disk_uuid} /etc/fstab; then
echo '' >> /etc/fstab
echo '# sd0 ntfs + windows partition' >> /etc/fstab
echo "UUID=${disk_uuid} /data/sd0/p0 auto defaults 0 1" >> /etc/fstab
else
echo 'skipping sd0 ntfs datastore.'
fi
# UBUNTU PARTITION
# mkdir -p /data/sd0/p1
# mount UUID="07b8854c-37ee-43c8-9eef-44331efaa76d" /data/sd0/p1
mkdir -p /data/sd0/here
mount -a