LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-15-2003, 10:13 AM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Cool Sharing partitions


Hi,

I'm a relative newbie and have a newbie question. Is it possible for me to share partitions on a multi-boot system? I've got a test box with two drives, 8GB and 10GB, and I'd like to set up the second drive (8GB) with my /home, /swap and possibly /usr partitions and share them between different distros, leaving my 10GB drive for my / partitions for each distro.

Basically, I'm looking for a way to share/conserve space AND get the most distros on this box that I can. IF this is possible, I'll also want to know which partitions I can share between distros.

Much thanks to anyone with answers, regardless of which way it goes.

 
Old 11-15-2003, 10:32 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I share these partitions on my quad boot
/boot
/home
/pub

I have no problems with that setup, but I'm not sure about /usr, but I think you can share it as well.
 
Old 11-15-2003, 11:13 AM   #3
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
That's cool, piper, but could you explain what the /pub partition is all about? I've been advised to create the partitions as follows: /boot (100MB), /, /home and /usr and make the rest of the mountpoints/partitions subdirectories in the root directory.

Do you have any advice on how to set this up or does this method work okay?
 
Old 11-15-2003, 11:23 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
My /pub partition is a 60 gig partition that I use for general storage, such as my urpmi stuff for Mandrake, rpms for Red Hat and source code for Gentoo along with it's portage tree. I share this partition with all my networked computers.

The way you set up your partition depends upon what your use of the computer is. See Proper Filesystem Layout for some suggestions/hints.

# Linux filesystem structure
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout

My partitioning scheme:
Code:
Sat Nov 15 11:24am root@tinwhistle ~ # fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1217   9772056    c  Win95 FAT32 (LBA)
/dev/hda2   *      1217      1229     99855   83  Linux
/dev/hda3          1230      1656   3429877+  83  Linux
/dev/hda4          1657      4865  25776292+   5  Extended
/dev/hda5          1657      1719    506016   82  Linux swap
/dev/hda6          1720      2146   3429846   83  Linux
/dev/hda7          2147      2573   3429846   83  Linux
/dev/hda8          2574      3719   9205213+  83  Linux
/dev/hda9          3720      4865   9205213+  83  Linux

Disk /dev/hdb: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1       973   7815591   83  Linux
/dev/hdb2           974      1946   7815622+  83  Linux
/dev/hdb3          1947      2919   7815622+  83  Linux
/dev/hdb4          2920      9729  54701325   83  Linux
My /etc/fstab file
Code:
/dev/hda6      	       	/			reiserfs defaults	 1 1
/dev/hda2               /boot			ext3    defaults	1 2
none                    /dev/pts		devpts  gid=5,mode=620  0 0
/dev/hda8               /home			reiserfs defaults	 1 2
#/dev/hda3              /mnt/gentoo		reiserfs defaults	 1 2
#/dev/hda7              /mnt/mandrake		ext3    defaults	1 2
#/dev/hdc1              /pub			ext3    defaults	1 2
/dev/hda1               /mnt/win98		vfat    defaults	0 0
/dev/hdb3               /mnt/markrose		ext3    defaults	1 2
none                    /proc			proc    defaults	0 0
none                    /dev/shm		tmpfs   defaults	0 0
/dev/hdb4               /pub			ext3    defaults	1 2
/dev/hda9               /snd			reiserfs defaults	 1 2
/dev/hda5               swap			swap    defaults	0 0
/dev/cdrom              /mnt/cdrom		iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy		auto    noauto,owner     0 0

Last edited by fancypiper; 11-15-2003 at 11:26 AM.
 
Old 11-15-2003, 11:31 AM   #5
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Extremely cool, piper! Thanks for the direction to the resources as well as an obviously working example of what's good!

I may have a new best friend...

 
Old 11-15-2003, 03:00 PM   #6
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
A quick question re: one of the articles you recommended. What is a NHF? The acronym is thrown out first thing (and a couple of times) as if we (the readers of a basic explanation) should know what it means. Could you (or anyone) explain or clarify?
 
Old 11-15-2003, 06:43 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
There are some lazy, arrogant people at justlinux.com, so the NHFs should more properly be called JustLinux help files. 'Tis a sad tale indeed.

Once upon a time, there was Sensei and he sayeth, "Let there be a linuxnewbie.org" and it was.

Sensei sayeth, "All in the community that be newbies, help other newbies out by writing Newbieized Help Files" and the community responded.

Internet.com, noticing the heavy traffic there offered Sensei many jewels and trinkets, and Sensei being a mere human, sold linuxnewbie.org. Internet.com looketh at the name and was displeased and changed both the name and the posting rules. The gurus at justlinux.com got highly peeved and abandoned that site and came here where they are allowed to help newbies freely.

Now, Linux gurus and addicts are happy hanging around here.
 
  


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
Sharing swap partitions Jongi SUSE / openSUSE 7 10-12-2005 09:36 AM
windoze partitions sharing nanoprobe General 3 05-08-2005 09:13 AM
sharing disk partitions between 2 computers tcma Linux - Networking 1 01-06-2005 11:58 AM
Sharing partitions gauol Linux - General 2 10-01-2004 07:15 PM
Sharing Partitions between RH and Win Smooth Linux - Newbie 3 07-26-2003 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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