Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Replacing laptop hard drive with SSD.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 444

PostPosted: Sat Dec 15, 2012 5:40 pm    Post subject: Replacing laptop hard drive with SSD. Reply with quote

(Maybe this belongs in Kernel & Hardware, not sure) I have a laptop (core 2 duo celeron) that had it's spinning hard disk die some months ago. I replaced it with an older 2.5" disk I had around, but it was smaller so I had to give up my dual-boot windows. I just purchased a 120GB SSD (Samsung 830) and I am wondering what changes I have to make to adjust my system to this device.

Current fstab (minus boilerplate)
Code:
LABEL=BOOT              /boot           ext2            noauto,noatime  1 2
LABEL=ROOT              /               ext3            defaults        0 1
LABEL=HOME              /home           ext3            defaults        0 2
LABEL=VAR               /var            reiserfs        defaults        0 2
LABEL=STUFF             /mnt/stuff      auto            defaults        0 0
LABEL=SWAP              none            swap            sw              0 0
tmpfs           /var/tmp/portage        tmpfs           defaults,size=3g        0 0
tmpfs                   /tmp            tmpfs           defaults,size=100m,nosuid,noexec,mode=1777      0 0
tmpfs                   /var/log        tmpfs           defaults,size=100m,nosuid,noexec,mode=1777      0 0
/dev/sr0                /mnt/cdrom      auto            noauto,ro,user  0 0
current df -h
Code:
Filesystem      Size  Used Avail Use% Mounted on
rootfs          9.9G  4.9G  4.5G  52% /
/dev/root       9.9G  4.9G  4.5G  52% /
tmpfs           2.0G  384K  2.0G   1% /run
udev             10M     0   10M   0% /dev
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
shm             2.0G  140K  2.0G   1% /dev/shm
/dev/sda5        25G   11G   13G  47% /home
/dev/sda6        20G  5.8G   15G  29% /var
/dev/sda7        16G  7.4G  7.0G  52% /mnt/stuff
tmpfs           3.0G     0  3.0G   0% /var/tmp/portage
tmpfs           100M   51M   50M  51% /tmp
tmpfs           100M  680K  100M   1% /var/log
planned fstab:
Code:
LABEL=BOOT              /boot           ext4            noauto,noatime,discard  1 2
LABEL=ROOT              /               ext4            noatime,discard,defaults        0 1
LABEL=HOME              /home           ext4            defaults,noatime,discard        0 2
LABEL=STUFF             /mnt/stuff      auto            defaults        0 0
tmpfs           /var/tmp/portage        tmpfs           defaults,size=3g        0 0
tmpfs                   /tmp            tmpfs           defaults,size=100m,nosuid,noexec,mode=1777      0 0
tmpfs                   /var/log        tmpfs           defaults,size=100m,nosuid,noexec,mode=1777      0 0
/dev/sr0                /mnt/cdrom      auto            noauto,ro,user  0 0
Code:
BOOT = /dev/sda1 64M
ROOT = /dev/sda2 25G
HOME = /dev/sda3 30G
STUFF = /dev/sda5 25G (ntfs or fat32)
WINDOWS = /dev/sda6 40G (ntfs or whateve windows want, linux won't touch it)


I know I should be careful to make sure that all of my parititons start on multiples of 2048 in fdisk, but that this can be done using +G/M for sizes. I don't plan on using swap, but I would like to be able so hibernate. Should I use swap or a hibernation file?

Right now I'm not running {h,s}dparm. Should I be? If so what options should I set? I am running smartd, (which was how I found out my old disk was dieing) the only config line I have for smartd is
Code:
/dev/sda -I 194 -I 9 -a -o on -S on -s (S/../.././02|L/../../6/03) -m root
Should I keep that or change it or get rid of it or what?
Back to top
View user's profile Send private message
galanom
n00b
n00b


Joined: 24 Oct 2011
Posts: 26

PostPosted: Sat Dec 15, 2012 7:16 pm    Post subject: Re: Replacing laptop hard drive with SSD. Reply with quote

Hibernation does need swap, but at least TuxOnIce can use swap files instead of partitions. In main kernels it may still be possible but with some tweaking.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13998

PostPosted: Sat Dec 15, 2012 9:56 pm    Post subject: Reply with quote

If you want to prevent normal use of swap, you might be able to use the suspend/resume hooks to activate swap just before you hibernate and deactivate it just after you resume.
Back to top
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 444

PostPosted: Sat Dec 15, 2012 11:21 pm    Post subject: Reply with quote

Looks like tuxonice can use a file. Any suggestions about the fstab? or partitioning? or smartd or anything else I should d
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum