[arch-general] Arch on SSD!
Andrea Crotti
andrea.crotti.0 at gmail.com
Sun Oct 21 11:28:10 EDT 2012
I bought a crucial M4 (128GB) for my laptop, and now the idea is to move
the operating system and most of the data there, keeping the other disk
in the cd-bay as second disk.
I formatted the SSD disk like this:
Disk /dev/sda: 128.0 GB, 128035676160 bytes, 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee70d
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 250069679 124829016 83 Linux
Where sda2 is a LVM volume, but the first thing which I'm not sure is if
I got the alignment correct. I didn't find anywhere what should be the
alignment for my disk, and a way to check that you actually got it
right (some ways only for Windows funnily).
Any hint?
The second thing is that at the moment I should be able to boot both
disks, but the SSD now fails to load, and I'm a bit lost in the new
GRUB2 configuration:
MENUENTRY 'Arch GNU/Linux, with Linux core repo kernel' --class arch
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-core repo kernel-true-ad4103fa-d940-47ca-8506-301d8071d467' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5
--hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5
ad4103fa-d940-47ca-8506-301d8071d467
else
search --no-floppy --fs-uuid --set=root
ad4103fa-d940-47ca-8506-301d8071d467
fi
echo 'Loading Linux core repo kernel ...'
linux /boot/vmlinuz-linux
root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
All I need to do is boot from disk (hd0, 0) and then the / is on LVM
/dev/ssd/root.
I'm not sure, however, if this configuration is supposed to make sense
or it's just autogenerated as a template..
The fstab for the SSD is this:
/dev/mapper/ssd-root / ext4
rw,relatime,data=ordered,discard 0 2
# UUID=54d06c44-2b32-4969-be42-d98d2bf7e994
/dev/sda1 /boot ext4
rw,relatime,data=ordered,discard 0 2
but I've seen somewhere that ext4 might be a problem too, or is that
fixed?
Thanks a lot,
Andrea
More information about the arch-general
mailing list