You are not logged in.

#1 2005-06-26 09:04:29

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

second harddrive

Hi!

I have been thinking on this for a while...
.I know that if I have installed a Linux on / on hda1...then it runs out of space. Instead of cleaning up I now can get a new hardrive and mount it to / also.

My question is, what happens to the data? what if I need to reinstall? is it a hazard for corrupted files?

this is not something I am planning to do, but  I would like to now how it works


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#2 2005-06-26 12:04:42

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: second harddrive

partitions hide other partitions if they are mounted at the same point,

so if you mount your second drive at / you can't use your first drive,


arch + gentoo + initng + python = enlisy

Offline

#3 2005-06-26 13:40:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: second harddrive

CyberTron wrote:

Instead of cleaning up I now can get a new hardrive

Not good as a general policy, IMO. Get a new hard drive if you feel you need it, but I'd recommend establishing why your disk filled up, and cleaning up where necessary.

I'd use the new disk for one of your existing directories e.g. /home or /var, not /.

Offline

#4 2005-06-26 13:43:27

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: second harddrive

Yes, I would never do this, my question was just in theory...

I have read somewhere that you may use two harddrives to be "one big" in Unix/Linux (just by mounting them to the same point) so I wanted to see if that was true, which it apparently are not...


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#5 2005-06-26 15:49:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: second harddrive

CyberTron wrote:

I have read somewhere that you may use two harddrives to be "one big" in Unix/Linux

Maybe you were reading about Unionfs? It's mainly used in Live CDs so far (including Archie) but the way I understand it, you could use it in the circumstances you describe as well - although not quite as simply as mounting the two disks to the same mount point.

Offline

#6 2005-06-26 16:18:06

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: second harddrive

I'm not sure, i was reading this som etime  ago in a swedish slackware forum...

so not sure if it were true or not...


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#7 2005-06-26 23:36:30

archdaemon
Member
Registered: 2005-01-27
Posts: 83

Re: second harddrive

CyberTron wrote:

Yes, I would never do this, my question was just in theory...

I have read somewhere that you may use two harddrives to be "one big" in Unix/Linux (just by mounting them to the same point) so I wanted to see if that was true, which it apparently are not...

It is, but not in the sense you have it. As mentioned, mounting to the same point hides the original mount. But the point of adding a second hard drive in the same FS is getting at the idea of mounting it somewhere else. Not at the same *mountpoint* but at a mountpoint on the *same filesystem*. Say you buy drive #2 and format it - mount it at /mnt/foo and copy over /home or /usr or /opt or something. Once that data is on, you can blow out everything under /home or /usr or /opt and then remount your new disk to the old directory/mount point. Then you still have an integrated FS with everything in its place and a lot more room.

I already had a second disk in but it's a similar principle - on one distro I hadn't intended to have any opt but ended up with a bit. So then I started running out room. So I moved /opt to a free partition on the other drive. Voila! Plenty of room.

But, again, as mentioned, that's only for when you know there's a good reason for running out of room. Otherwise, you need to do some filesystem administration rather than throwing more hardware at the problem. You noted that, but it bears repeating. smile

Offline

#8 2005-06-27 08:48:49

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: second harddrive

yes ou are right big_smile

I am, in fact, using different /home/names on different harddrives on my server...

thanx for clearing things up to me everyone


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

Board footer

Powered by FluxBB