LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2009, 01:09 PM   #1
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,621

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I need to install root on one HDD and home on another


I am putting a bunch of flavors on an external dual HDD enclosure. It has 2 SATA 320Gb WD HDDs in it.

I was going to put 32b OSs on one and 64 OSs on the other. Can't do it that way because it will only boot from sda.

So I figure to put the root/boot partition on sda and home on sdb. I did this very easily with Mandriva2009.

I failed completely with PCLOS and Mepis. Mepis will only do one drive as far as I can tell and PCLOS acted all right but failed to install grub and the partitions do not have everything they should have in them.

Does anyone know if there is a way to do this? I am going to try UE 64 later.
 
Old 02-28-2009, 01:45 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,205

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
sure, there is always the manual way

use fdisk or gparted to create your partitions
install the os on /dev/sda (with /home being under the / partition and don't create any user accounts)

then edit /etc/fstab to point /dev/sdb1 to /home as such

/etc/sdb1 /home ext3 defaults 1 2

replacing ext3 with whatever filesystem you chose to format /dev/sdb1 with
then create your user accounts once you get /home mounted
 
Old 02-28-2009, 10:31 PM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,621

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
frieza
WELL, and here I thought I was doing it the manual way.

I will give that a whack. UE went on with no problem. I have Hardy on too but all on sda so that I have one that in my newbyness I can trust the boot on it.

I like Ubuntu but I would like to have this setup so that people could try several at speed rather than the LiveCD.

I like your signature. I am not fluent but I could see that Vista was out of tune in comparison to 98. I had to loose Vista or have a stroke.
Note the lack of MS in my signature. It's the only box I have.

I know that people play computer games and I know that am a little elderly for that interest but - screwing around with Linux is too much fun. If I had been a gamer before Linux, I don't think I would be now.

I have never yet fooled with fstab stuff. Ah - another learning experience. "They" say that folks over 55 do not learn enough new stuff. I am just doing this for my health. Now there is a good excuse for screwing some thing else up.

By the way, I deleted all partitions on the 2 drives last night and redid them with cfdisk and flagged both as bootable hoping that would work. It did not but now I don't have any primary partitions on either drive. Much neater and more flexible.
 
Old 02-28-2009, 11:45 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,621

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I have had a look at the fstab file in Hardy, Mandriva and UE.

This really is neat. But.

I am pretty sure I have only got the beginings of a clue here as to what this does.

Example; I have had some problems with some installations recognizing the existing swap partitions. This one (Hardy) was put on after sda5 after I had partitioned it an sda6 (swap). Hardy does not recognize that there is any swap as shown on the system monitor that claims "0 bytes".

In UE, it recognizes both small swap partitions (almost 5Gb on sda and 3Gb on sdb) because I was bright enough to mark them as such in the partitioning part of the install process (as opposed to my usual practice of ignoring that).

The thing is that, to me, the entries in fstab look pretty much alike. Hardy does have sda6 listed twice as opposed to UE listing sda6 and sdb7.

None of the entries look much like what you are saying to do.

Hardy
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda5
UUID=2cba6f98-066b-4319-8435-a6d81bdc5fca /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda6
UUID=3362106e-ec0a-4e5b-8ca5-40bfbca214b9 none            swap    sw              0       0
# /dev/sdb6
UUID=e7c2c853-41c3-41cd-bd45-a41a1404b069 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/scd0       /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
UE
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda8
UUID=6c6283e6-25c5-4f76-92e5-f6f8e7444616 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sdb6
UUID=d9991226-dde9-4f95-bc52-3a976f464f1b /home           ext3    relatime        0       2
# /dev/sda6
UUID=e2fca92e-b1d2-496e-9ef5-5f1070152ed2 none            swap    sw              0       0
# /dev/sdb7
UUID=e7ffcf32-c52f-4c2b-bb22-0d150c4a99d1 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
If you just look at the first entry for sda6 in both files, they look alike to me, yet one works and the other does not.

I think that I had better get some more education before I start messing with these files a lot. I need to check them all and what they are seeing for swap and what is there for them.

Nautilus may be a dangerous tool used this way but I will be able to see ALL the fstab files on one page in a hurry when I get the internal drives back online (I turn off every thing that is not involved when installing - I am getting pretty good at fixxing grub problems).

Any clarafication will be met with a smile.
 
Old 03-01-2009, 12:20 AM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,205

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
here is how what i told you would line up in a real fstab file

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
   /dev/sdb1       /home         ext3   defaults         1         2
that line should explain a bit
file system.. the partition or drive you want to mount
mount point.. the directory in the tree you want to mount
options, specify how you want the drive mounted (permissions, ownership etc.., havnt used this one much other then to set noauto for removable disks so they dont try to mount at boot and cause the system to stop booting)
type, what type of format is being used (ext2, ext3 etc..)
dump and pass i'm not sure exactly but they have to do with the fsck check on boot
1 1 would be the / volume
1 2 would be any other volume you want to have checked at boot
0 0 would be volumes you don't want checked at boot (suck as fat32 voluems)

hope that helps
except it looks like i typoed and put /etc/ when i meant /dev

UUID=d9991226-dde9-4f95-bc52-3a976f464f1b is just another of many ways of addressing a drive

Last edited by frieza; 03-01-2009 at 12:25 AM.
 
Old 03-01-2009, 02:00 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,621

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
AHH, yes this is a great help.

I have been studying too. I found that the format you are using in Mepis.

I also just got one of my drives that was not connected to the swap partition connected. This was all caused by installing SUSE 11.1 where I wanted it instead of letting it wipe out 3 in use partitions. I do not like that installer at all.

I believe that I will retry the Mepis and/or PCLOS install. With your information I should succeed or at least screw up in a more knowledgible way.

Thanks a bunch
Tom
 
Old 03-02-2009, 04:10 AM   #7
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Have a look.That might help.Short and to the point.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
External USB HDD Install - can't find root Jabor Slackware - Installation 4 05-08-2008 12:08 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Moving root from a dual-boot HDD to a new HDD Androoski SUSE / openSUSE 1 05-13-2005 10:34 PM
Mounting /home on it's own partition with knoppix HDD install delamatrix Debian 1 02-07-2005 01:50 PM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM


All times are GMT -5. The time now is 08:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration