Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a netbook with a 32GB SSD. I have it split up into 3 partions: see below.
This device has an expansion slot for a SDHC card, which I have installed another 32GB SDHC card.
The computer can see it, but what I would like to do is mount it to my /home. I'm sure there is a way, but I'm still new to linux.
Would this be something as simply unmounting /media/B43D-894C and mounting it back as /home?
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 11886456 8195304 3064300 73% /
/dev/sda2 14290304 1164492 12376864 9% /home
tmpfs 765172 0 765172 0% /dev/shm
Did you manually mount /media/B43D-894C or did it appear automatically after you inserted the SDHC? If the latter then it was mounted by automounter. Typically you can see configuration of that in /etc/auto* files.
Since you currently have /home mounted you'd want to unmount that (/dev/sda2) and remount it as something else before trying to mount a new /home. Otherwise when you do mount a new /home it would hide what was in the old /home.
So a question is do you really want to replace /home or do you just want to be able to access the SDHC under your /home. If the latter you can simply make a symbolic link /media/B43D-894C to say /home/sdhc by typing:
ln -s /media/B43D-894C /home/sdhc
That would make a symbolic link so when you are in /home you can do cd /home/sdhc and see all the files that are under /media/B43D-894C.
If you want to replace /home you would first unmount the old /home then remove the now empty /home directory (mount point) and run command:
ln -s /media/B43D-894C /home
At that point any access of /home would access /media/B43D-894C.
I'm suggesting linking rather than mounting on the theory that automounter did in fact mount your sdhc.
Alternatively you could remove the automounter setup for the sdhc and manually mount the /dev/mmcblk0p1 as /home (and add to /etc/fstab to remount automatically on boot) -OR- you could try to modify the automounter so it mounts the sdhc as /home instead of /media/B43D-894C.
Thank you for the quick response!
The SDHC was mounted automatically, apparently as I didn't manually mount it.
What I would like to do, is to increase the capacity of the /home directory. So instead of having only 14GB for the users, I'd have 36GB. And then later, as that space fills, I would like to add more storage, but not have to completely redo the setup.
I get the feeling you'd have to use some method like lvm or zfs or btrfs to combine partitions.
Not sure you can simply mount sd card to /home and have a /home on the system and combine them as such.
There might be an issue with how fast the mount brings up the sd card and maybe some wait put in to use it simply. Fstab entry ought to fix it but grub might have to be looked at.
I was really hoping for a dynamic volume type solution. Similar to the way dynamic volumes work in Windows. Thanks for the suggestions. I didn't know if Linux (or Slackware) had that option.
LVM is the common way to use dynamic disk like MS has.
Fast on it's heals is the zfs and btrfs. There may be some other ways out there too.
I'll look into those solutions. I will post back if it's something that works.
Quote:
Originally Posted by rknichols
Just remember that if you have a filesystem that spans several devices and any of the devices fails or is missing, you lose the entire filesystem.
That is a good point to make! So it really translates into, make sure backups are performed. RIght now I'm primarly just building a system up and see what I can get done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.