LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2005, 07:21 PM   #1
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
hda1 is full, can i add hdb1 at the end?


hda1(4gig) is full, its an encrpyted partition for /home. hdb1 (10gig) is empty and not used.
can i mount both on the same dir? giving me a 14gig /home?
 
Old 09-18-2005, 07:44 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
If you use LVM or devmapper, then this is possible. With traditional mounting mechanisms, this is not possible.
 
Old 09-18-2005, 07:54 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I don't think it can be done. If I understand these things correctly, a partition has to be contiguous (all in one piece).

So! You could have /home and /home2 partitions. Decide what goes in /home and what goes in /home2, set your permissions so that only you have access to /home2, and use it as a convient place to store data files, music, etc.

Your most difficult decision to make: which partition will be /home (4G or 10G) and which will be /home2 (4G or 10G). Then, if necessary to move /home to the 10G partition, make a backup of /home, rename /home to /home2, make a new /home, and restore the backup to the new /home (the 10G partition).

Then edit /etc/fstab to reflect your changes. Otherwise, you may be screwed.
 
Old 09-18-2005, 08:08 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Also, I would strongly encourage an extensive backup before touching anything. Or else you'll do like me and get two args backwards and then right after you hit enter, go "oh s*".
 
Old 09-18-2005, 08:36 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
On reflection, maybe you can have something of a half-assed extension of /home.

Within /home, create a directory (perhaps in your users folder) called /home2 (the command would be: mkdir /home/<username>/home2), where <username> is your user name, and /home2 is a sub-directory of your users home directory.

Edit /etc/fstab to include an entry (mountpoint) for '/dev/hdb1 /home/<username>/home2'. Format /dev/hdb1 for the filesystem type you choose (ext2, ext3, reiserFS, etc).

Eh, voila! You've got it. Just don't forget that's how you got it.
 
Old 09-18-2005, 09:45 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Alternatively, you could mount /home2 and have symlinks for some data to /home2. For example, 'ln -s /home2/mp3s ~/mp3s' or similar. I once did that with a bad partitioning scheme of my own.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does the hard disc space get full till the very end? suro Linux - Software 3 07-11-2005 12:09 PM
HDA1 is full, what now? Bag9697 Linux - Newbie 3 06-16-2005 08:42 PM
Mandrake hda1 full! Urgent advice sought before wife explodes alans Linux - Hardware 4 06-14-2005 12:31 PM
Damaged hda1, Can't Mount hdb1 doctorcisco Linux - Hardware 1 12-28-2004 09:24 PM
Editing buttons (quote, code etc.) add the code to the end vharishankar LQ Suggestions & Feedback 2 09-13-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration