I just want to share some things I've found out about ssd drives.

I installed the ssd drive as /dev/sdc and created a gpt partition table 
with parted.  The fist partition, /dev/sdc1, is about 11G.

I created a ext4 filesystem and mounted as /mnt/ssd.

Next I created the root directories: bin, boot, dev, etc, home,
lib, media, mnt, opt, proc, root, sbin, srv, sys, tmp, usr, var.

Then a symbolic link: lib64 -> lib

[/mnt/ssd] $ cp -a /etc/* etc
I did the same for bin, sbin, lib, usr, root

I updated /boot/grub/grub.cfg and found I needed some parameters on the 
boot line:

linux   /vmlinuz-3.3.6-lfs-20120515 root=/dev/sdc1 rootfstype=ext4 ro 
raid=noautodetect rootflags=data=writeback

The new items were rootfstype=ext4 and rootflags=data=writeback.

I did not initially create /run because I thought it was created in the 
first bootscript, but found that it couldn't be created because the 
filesystem is mounted as read only.  I'll need to remove that line in 
the boot script because it doesn't do anything.  (mkdir -p /run)

I also had problems initially because I forgot to create 
/dev/{console,null}.

I created separate partitions for /tmp and /var and copied the current 
/var to the new partition.

The fstab now looks like:

/dev/sdc1      /            ext4   noatime,discard,data=writeback  1  1
/dev/sda3      swap         swap   pri=1                0     0
/dev/sda1      /boot        ext3   defaults             1     2
/dev/sda9      /usr/src     ext3   defaults             1     2
/dev/sda11     /home        ext3   defaults             1     2
/dev/sdb5      /var         ext3   defaults             1     2
/dev/sdb6      /tmp         ext3   defaults             1     2

The kernel messages stopped at 3.998941 seconds and the bootscripts 
started.  The start time for all scripts was 6 seconds starting at 
16:45:15 for mountkernfs and finishing at 16:45:20 for sshd.

Previously the kernel was about about the same with the bootscripts 
running about 10 seconds.

I don't think putting /boot on the ssd would make much of a difference. 
  From the time I hit enter in grub to the time the kernel messages 
start is a second or less.

I then did a benchmark on rsync without the make check.  When building 
on /tmp, the CMMI time was 20 seconds.  When I changed the build to /mnt 
(on the ssd) the build time was 7.9 seconds.

Not bad.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to