 |
Linux Format forums Help, discussion, magazine feedback and more
|
| View previous topic :: View next topic |
| Author |
Message |
Chaz GELF

Joined: Fri Aug 24, 2012 8:06 am Posts: 3 Location: Aberdeenshire
|
Posted: Fri Aug 24, 2012 8:18 am Post subject: (Semi-Newbie!) Installing to the /home partition on an EeePC |
|
|
Alright, here's the situation: I have an Asus EeePC 901 netbook, which I use mostly for surfing the web, but also want to use for other things like playing games (Just basic games to keep me distracted when I'm on holiday away from my main PC) and what have you.
Right now I have Crunchbang Linux installed on the system, it's a nice lightweight distro, and there was an easy enough tutorial on how to set up the partitions specifically for my EeePC, using the 4GB partition to install the operating system itself, and the 16GB partition as the /home directory.
Now, here's where I run into issues: Whenever I install something through the package manager, it always installs into the partition where I installed the distro itself, rather than into the home directory. This means that comparatively massive 16GB of space isn't getting used, while the distro's partition is getting clogged up with my programs.
I'm probably missing something really obvious here, but how do I tell my package manager to install programs into the /home directory instead? |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Fri Aug 24, 2012 9:00 am Post subject: |
|
|
You don't, packages are installed into system directories, such as /usr. However, there is a quick and dirty workround.
Boot from a live distro, you cannot not do this while using the system. Mount your two filesystems, I assume they are /dev/sda1 for / and /dev/sdb1 for /home
| Code: | mkdir -p /mnt/{root,home}
mount /dev/sda1 /mnt/root
mount /dev/sdb1 /mnt/home |
Then move the whole usr directory to the home filesystem and create an empty directory in its place
| Code: | mv /mnt/root/usr /mnt/home/
mkdir /mnt/root/usr |
Now add a line to /etc/fstab to bind mount usr from the new location to the old.
| Code: | | /home/usr /usr bind defaults,bind 0 0 |
This must be after the line mounting /home.
You could repartition the second drive and create a proper partition for /usr and mount that in fstab, and a purist would say you should, but this should work with less effort.
The system doesn't care where the files in /usr actually reside, only that they are accessible through the /usr path. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
Chaz GELF

Joined: Fri Aug 24, 2012 8:06 am Posts: 3 Location: Aberdeenshire
|
Posted: Fri Aug 24, 2012 9:26 pm Post subject: |
|
|
| nelz wrote: | You could repartition the second drive and create a proper partition for /usr and mount that in fstab, and a purist would say you should, but this should work with less effort.
The system doesn't care where the files in /usr actually reside, only that they are accessible through the /usr path. |
This seems like the better option for the long run, and I have no problems with reinstalling this OS or another one (Probably Easypeasy since that's much better suited to netbooks), as all of my important files are on my main desktop.
Could you suggest a good partition layout for me, in that case? The main issue I come up against when trying to partition both drives is the swap space. Almost every place that has a tutorial for setting up Linux on a netbook says that swap space is bad because it wears out the SSD more quickly.
To clarify, the EeePC 901 I have has got two drives:
SCSI2 (0,0,0) (sda) - 4.0 GB ATA ASUS-PHISON SSD
SCSI2 (0,1,0) (sdb) - 16.1GB ATA ASUS-PHISON SSD |
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1794 Location: Cheshire, UK
|
Posted: Fri Aug 24, 2012 9:50 pm Post subject: |
|
|
Why not install to the 16GB drive with something like 8GB for / and the rest for home. Disable swap and have the 4GB for extra storage formatted the same way as the other drive. _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
Chaz GELF

Joined: Fri Aug 24, 2012 8:06 am Posts: 3 Location: Aberdeenshire
|
Posted: Fri Aug 24, 2012 10:04 pm Post subject: |
|
|
You know, I have no idea why I didn't think of that before! I always installed the OS to the 4GB drive in part because it made the most sense to me, and in part because I heard that drive was faster than the 16GB drive. Really, though, I don't need to worry so much about drive speed since the netbook is just an occasional-use system.
Thanks, that's cleared all that up for me! |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Fri Aug 24, 2012 10:35 pm Post subject: |
|
|
When I had a 901 I cheated and used LVM to combine the two drives  _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1794 Location: Cheshire, UK
|
Posted: Sat Aug 25, 2012 8:31 am Post subject: |
|
|
My mum bought one of the old 900 series - the one with windows and 8GB missing from the drive. When she started having issues with windows, I ended up installing Lubuntu to the 8GB drive and left Windows on the 4GB and she had a 1GB /home and an 8GB SDHC card for storage. _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|