NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Installing Gentoo GNU/Linux 2004.3 on SPARC - Part 2 - Creating the Filesystems
Topic: GNU/Linux   Posted:2005-01-01
Printer Friendly: Print

spacerspacer
There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration

Let's create the filesystems. First, we need to partition the drive. Of course, this will destroy any data on the drive. Read our terms of use. We have a 4 gig drive as a boot drive. We plan to put PostgreSQL on one box, and intrusion detection software on the smaller box, so a root partition of 3 Gigs and the rest as swap should be just fine. We have to delete the old partitions first:

livecd root # fdisk /dev/sda
command (m for help): p
Disk /dev/sda (Sun disk label): 16 heads, 135 sectors, 3880 cylinders
Units = cylinders of 2160 * 512 bytes
Device Flag    Start       End    Blocks   Id  System
/dev/sda1          1881      3880   2158920    2  SunOS root
/dev/sda2  u          0       486    524880    3  SunOS swap
/dev/sda3             0      3880   4190400    5  Whole disk
/dev/sda8           486      1881   1506600    8  SunOS home
Command (m for help):
[a bunch of d commands to delete the partitions inserted here]
Command (m for help): p
Disk /dev/sda (Sun disk label): 16 heads, 135 sectors, 3880 cylinders
Units = cylinders of 2160 * 512 bytes
Device Flag    Start       End    Blocks   Id  System
Command (m for help):

Now, let's create the root and swap partitions:

Command (m for help): n
Partition number (1-8): 1
First cylinder (0-3880):
Last cylinder or +size or +sizeM or +sizeK (0-3880, default 3880): +3000M
Command (m for help): n
Partition number (1-8): 2
First cylinder (2713-3880): 2713
Last cylinder or +size or +sizeM or +sizeK (2713-3880, default 3880):
Using default value 3880
Command (m for help): t
Partition number (1-8): 2
Hex code (type L to list codes):l
0  Empty            4  SunOS usr        7  SunOS var       83  Linux native
1  Boot             5  Whole disk       8  SunOS home      8e  Linux LVM
2  SunOS root       6  SunOS stand     82  Linux swap      fd  Linux raid auto
3  SunOS swap
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)
Command (m for help):
Command (m for help): p
Disk /dev/sda (Sun disk label): 16 heads, 135 sectors, 3880 cylinders
Units = cylinders of 2160 * 512 bytes
Device Flag    Start       End    Blocks   Id  System
/dev/sda1             0      2713   2930040   83  Linux native
/dev/sda2  u       2713      3880   1260360   82  Linux swap
Command (m for help):
Command (m for help): a
Partition number (1-8): 1
Command (m for help): p
Disk /dev/sda (Sun disk label): 16 heads, 135 sectors, 3880 cylinders
Units = cylinders of 2160 * 512 bytes
Device Flag    Start       End    Blocks   Id  System
/dev/sda1  u          0      2713   2930040   83  Linux native
/dev/sda2  u       2713      3880   1260360   82  Linux swap
Command (m for help):
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
SCSI device sda: 8385121 512-byte hdwr sectors (4293 MB)
SCSI device sda: 8385121 512-byte hdwr sectors (4293 MB)
Syncing disks.
livecd root #

Make the filesystems:

livecd root # mke2fs -j /dev/sda1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
366528 inodes, 732510 blocks
36625 blocks (5.00%) reserved for the super user
First data block=0
23 block groups
32768 blocks per group, 32768 fragments per group
15936 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
livecd root #
livecd root # mkswap /dev/sda2
Assuming pages of size 8192 (not 4096)
Setting up swapspace version 1, size = 1290600 kB
livecd root #

In the next installment of this article, we will copy the initial system, portage, and distfiles.

There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS