LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-17-2014, 08:37 PM   #1
coproc
LQ Newbie
 
Registered: Nov 2013
Distribution: Debian 7 "Wheezy" / Rasbian
Posts: 13

Rep: Reputation: Disabled
Post Mounting SD cards to /home


Sorry in advance if this was already listed.

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


/dev/mmcblk0p1 31263744 32 31263712 1% /media/B43D-894C
 
Old 01-17-2014, 10:02 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 01-18-2014, 07:36 AM   #3
coproc
LQ Newbie
 
Registered: Nov 2013
Distribution: Debian 7 "Wheezy" / Rasbian
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-18-2014, 04:38 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Just some ideas.

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.
 
Old 01-21-2014, 05:25 PM   #5
coproc
LQ Newbie
 
Registered: Nov 2013
Distribution: Debian 7 "Wheezy" / Rasbian
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-22-2014, 07:24 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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.
 
Old 01-22-2014, 07:57 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
Old 01-24-2014, 11:29 AM   #8
coproc
LQ Newbie
 
Registered: Nov 2013
Distribution: Debian 7 "Wheezy" / Rasbian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
plugdev group mounting usb pen disks and sd cards problems Laodiceans Slackware 6 07-15-2012 02:19 PM
[help] mounting /home pcandpc Fedora 9 06-12-2007 08:07 AM
Mounting a card reader (SD cards only) dave`2005 Linux - Hardware 4 05-27-2006 09:51 AM
mounting sd cards - permission problem Veteq Linux - Software 1 01-19-2005 06:21 PM
3 PCI Network Cards....... 2 For Home computers and 1 for an Cable Modem gr8razorx Linux - Networking 11 12-01-2003 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration