Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Replacing laptop hard drive with SSD.

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Nicias
Guru
Guru
Posts: 446
Joined: Tue Dec 06, 2005 2:40 am

Replacing laptop hard drive with SSD.

  • Quote

Post by Nicias » Sat Dec 15, 2012 5:40 pm

(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: Select all

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: Select all

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: Select all

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: Select all

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: Select all

/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?
Top
galanom
n00b
n00b
Posts: 28
Joined: Mon Oct 24, 2011 6:22 pm

Re: Replacing laptop hard drive with SSD.

  • Quote

Post by galanom » Sat Dec 15, 2012 7:16 pm

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.
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Dec 15, 2012 9:56 pm

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.
Top
Nicias
Guru
Guru
Posts: 446
Joined: Tue Dec 06, 2005 2:40 am

  • Quote

Post by Nicias » Sat Dec 15, 2012 11:21 pm

Looks like tuxonice can use a file. Any suggestions about the fstab? or partitioning? or smartd or anything else I should d
Top
Post Reply

4 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic