sudo mkdir /target
sudo mount /dev/sdb1 /target -t btrfs -o rw,ssd,space_cache,relatime,discard,compress=lzo
sudo mkdir /target/home
sudo mount /dev/sdb2 /target/home -t btrfs -o rw,ssd,space_cache,relatime,discard,compress=lzo
Change this to reflect the partition system you have on your drive. Above all KNOW what you're doing and WHY, or you'll just screw things up.
This works because the LMDE installer won't remount the partitions and instead writes to the already existing ones I just created with the special mount options. I don't know anyone else who has though of this.
Unfortunately this only partly worked, and I'm not sure if it has anything to do with the premounting.
The installer completes okay, and doesn't give any errors. Not in the UI at least. GTK always spits out some sort of error when opening a UI, I've learned to ignore it because no one seems to have ever fixed it in the last several releases of Gnome-based DM's.
Code: Select all
mint@mint ~ $ sudo mkdir /target
mint@mint ~ $ sudo mkdir /target/home
mint@mint ~ $ sudo mount /dev/sdb5 /target -t btrfs -o ssd,compress=lzo,space_cache,relatime,discard
mint@mint ~ $ sudo mount /dev/sdb4 /target/home -t btrfs -o ssd,compress=lzo,space_cache,relatime,discard
mount: mount point /target/home does not exist
mint@mint ~ $ sudo mkdir /target/home
mint@mint ~ $ sudo mount /dev/sdb4 /target/home -t btrfs -o ssd,compress=lzo,space_cache,relatime,discard
mint@mint ~ $ sudo pluma /etc/mtab
(pluma:5787): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.265DOW': No such file or directory
(pluma:5787): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(pluma:5787): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.1S2JOW': No such file or directory
(pluma:5787): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
mint@mint ~ $ sudo /usr/bin/python2.7 -tt /usr/lib/live-installer/main.py $*
** (process:5800): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:5800): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:5800): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
## INSTALLATION
--> Installation started
EXECUTING: 'mkfs.btrfs /dev/sdb5'
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using
/dev/sdb5 is mounted
--> Mounting partitions
------ Mounting /live/image/casper/filesystem.squashfs on /source/
EXECUTING: 'mount -o loop -t squashfs /live/image/casper/filesystem.squashfs /source/'
------ Mounting /dev/sdb5 on /target/
EXECUTING: 'mount -t btrfs /dev/sdb5 /target'
mount: /dev/sdb5 already mounted or /target busy
mount: according to mtab, /dev/sdb5 is already mounted on /target
------ Mounting /dev/sdb3 on /target/boot
EXECUTING: 'mount -t ext4 /dev/sdb3 /target/boot'
------ Mounting /dev/sdb6 on /target/var
EXECUTING: 'mount -t reiserfs /dev/sdb6 /target/var'
------ Mounting /dev/sdb4 on /target/home
EXECUTING: 'mount -t btrfs /dev/sdb4 /target/home'
mount: /dev/sdb4 already mounted or /target/home busy
mount: according to mtab, /dev/sdb4 is already mounted on /target/home
--> Indexing files
--> Copying files
--> Restoring meta-info
--> Chrooting
--> Removing live user
Removing user `mint' ...
Warning: group `mint' has no more members.
Done.
--> Removing live-initramfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package live-initramfs is not installed, so not removed
The following packages will be REMOVED:
live-boot* live-boot-initramfs-tools* live-config* live-config-sysvinit*
live-installer*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 1,251 kB disk space will be freed.
(Reading database ... 168492 files and directories currently installed.)
Removing live-boot ...
Purging configuration files for live-boot ...
Removing live-boot-initramfs-tools ...
Removing live-config ...
Purging configuration files for live-config ...
Removing live-config-sysvinit ...
Purging configuration files for live-config-sysvinit ...
Removing live-installer ...
Purging configuration files for live-installer ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-2-amd64
cryptsetup: WARNING: could not determine root device from /etc/fstab
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Error connecting: Error connecting: Connection refused
--> Adding new user
--> Writing fstab
--> Writing hostname
--> Configuring MDM
--> Setting the locale
Generating locales (this might take a while)...
en_US.UTF-8... done
en_US.UTF-8... done
Generation complete.
--> Setting the timezone
--> Localizing Firefox and Thunderbird
--> Setting the keyboard
--> Configuring Grub
--> Running grub-install
Installation finished. No error reported.
--> Running grub-mkconfig
Generating grub.cfg ...
Found background image: linuxmint.png
Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-3.2.0-2-amd64
Found initrd image: /boot/initrd.img-3.2.0-2-amd64
done
--> Checking Grub configuration
--> Found Grub theme: if background_image /grub/linuxmint.png; then
--> Found Grub theme: if background_image /grub/linuxmint.png ; then
--> Found Grub entry: menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64' --class linuxmint --class gnu-linux --class gnu --class os {
--> Found Grub entry: menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64 (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os {
--> Cleaning APT
--> Unmounting partitions
EXECUTING: 'umount /target/boot'
EXECUTING: 'umount /target/var'
EXECUTING: 'umount /target/home'
EXECUTING: 'umount /target'
EXECUTING: 'umount /source'
umount: /source: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
--> All done
## INSTALLATION COMPLETE
mint@mint ~ $
cryptsetup: WARNING: could not determine root device from /etc/fstab
When I reset the computer, nothing would boot. So I went into the livecd again, installed and ran boot-repair. It did some sort of repair and posted the log here:
http://paste2.org/p/2537311
I checked the UUIDs of the fstab file and they were legit. I really don't have enough experience to know, but it seems to me somewhere someone got confused about which root they should be running from.
After boot-repair, GRUB loads, gives me normal and recovery kernel options. I select normal kernel. It says something like "loading initial ramdisk image" which I'm not sure is normal. Then it says it /run doesn't exist, and after several complaints asks me to CTRL-D or enter root password. After doing the limited things I know how to do, I find that root is running from sda1, which is the drive GRUB was installed on but not my OS disk.
I would REALLY like to figure out what is wrong here and get compression running. Help?