mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-22 02:41:00 +02:00
XUbuntu readonly filesystem.
This commit is contained in:
parent
a2dddea665
commit
9869ef6c52
@ -10,41 +10,41 @@ XUbuntu 16.04 with read only filesystem for use with SSD disk
|
|||||||
|
|
||||||
* Install XUbuntu 16.04 in /dev/sdc1.
|
* Install XUbuntu 16.04 in /dev/sdc1.
|
||||||
|
|
||||||
* mkdir /media/sda2
|
* mkdir /hddsda2
|
||||||
|
|
||||||
* mount /dev/sda1 /media/sda2
|
* mount /dev/sda2 /hddsda2
|
||||||
|
|
||||||
* mkdir /media/sda2/tmp
|
* mkdir /hddsda2/tmp
|
||||||
|
|
||||||
* chmod 1777 /media/sda2/tmp
|
* chmod 1777 /hddsda2/tmp
|
||||||
|
|
||||||
* mkdir /media/sda2/username
|
* mkdir /hddsda2/home/username
|
||||||
|
|
||||||
* rsync -av /home/username/ /media/sda2/username/
|
* rsync -av /home/username/ /hddsda2/home/username/
|
||||||
|
|
||||||
* chmod 0700 /media/sda2/username
|
* chmod 0700 /hddsda2/home/username
|
||||||
|
|
||||||
* chown -R username.username /media/sda2/username
|
* chown -R username.username /hddsda2/home/username
|
||||||
|
|
||||||
* blkid
|
* blkid
|
||||||
/dev/sda1: UUID="D4EA43ACEA438A26" TYPE="ntfs"
|
/dev/sda1: UUID="D4EA43ACEA438A26" TYPE="ntfs"
|
||||||
/dev/sda2: UUID="c1a48592-1d54-4b61-822b-e02ce0c8094d" TYPE="ext4"
|
/dev/sda2: UUID="c1a48592-1d54-4b61-822b-e02ce0c8094d" TYPE="ext4"
|
||||||
/dev/sda3: UUID="7af9d5db-eac4-49f1-aafd-3cb82f08c9df" TYPE="swap"
|
/dev/sda3: UUID="7af9d5db-eac4-49f1-aafd-3cb82f08c9df" TYPE="swap"
|
||||||
/dev/sdb1: UUID="f1b32eb2-4f4f-4167-9817-7814c9dae9b5" TYPE="ext4"
|
|
||||||
/dev/sdb2: UUID="2A0F03B406002566" TYPE="ntfs"
|
|
||||||
/dev/sdc1: UUID="9d0a8f06-d686-4a6d-97d5-2320598335fb" TYPE="ext4"
|
/dev/sdc1: UUID="9d0a8f06-d686-4a6d-97d5-2320598335fb" TYPE="ext4"
|
||||||
|
|
||||||
* /etc/fstab
|
* /etc/fstab
|
||||||
UUID=9d0a8f06-d686-4a6d-97d5-2320598335fb / ext4 ro,noatime,errors=remount-ro 0 1
|
UUID=9d0a8f06-d686-4a6d-97d5-2320598335fb / ext4 ro,noatime,errors=remount-ro 0 1
|
||||||
UUID=c1a48592-1d54-4b61-822b-e02ce0c8094d /media/sda2 ext4 rw,noatime,errors=remount-ro 0 1
|
UUID=c1a48592-1d54-4b61-822b-e02ce0c8094d /hddsda2 ext4 rw,noatime,errors=remount-ro 0 1
|
||||||
UUID=7af9d5db-eac4-49f1-aafd-3cb82f08c9df none swap sw 0 0
|
UUID=7af9d5db-eac4-49f1-aafd-3cb82f08c9df none swap sw 0 0
|
||||||
tmpfs /var/lib/lightdm tmpfs nosuid,nodev,mode=0750,rw,size=32M,uid=lightdm,gid=lightdm 0 0
|
tmpfs /var/lib/lightdm tmpfs nosuid,nodev,mode=0750,rw,size=32M,uid=lightdm,gid=lightdm 0 0
|
||||||
tmpfs /var/log tmpfs nosuid,nodev,mode=0755,rw,size=32M 0 0
|
tmpfs /var/log tmpfs nosuid,nodev,mode=0777,rw,size=32M,uid=root,gid=syslog 0 0
|
||||||
/media/sda2/home /home none bind 0 0
|
/hddsda2/home /home none bind 0 0
|
||||||
/media/sda2/tmp /tmp none bind 0 0
|
/hddsda2/tmp /tmp none bind 0 0
|
||||||
/media/sda2/tmp /var/tmp none bind 0 0
|
/hddsda2/tmp /var/tmp none bind 0 0
|
||||||
|
/var/log /media none bind 0 0
|
||||||
/var/log /var/spool none bind 0 0
|
/var/log /var/spool none bind 0 0
|
||||||
/var/log /var/lib/blueman none bind 0 0
|
/var/log /var/lib/blueman none bind 0 0
|
||||||
|
/var/lib/lightdm /var/lib/lightdm-data none bind 0 0
|
||||||
|
|
||||||
* /usr/local/bin/remountrw
|
* /usr/local/bin/remountrw
|
||||||
mount -o remount,rw /
|
mount -o remount,rw /
|
||||||
|
Loading…
Reference in New Issue
Block a user