System Setup: Disks, parititons, and Filesystems

  SlashDot  Python Home

 

Configuration
Hardware
Linux
Disks
X Windows
Printer
Modem
Sound
Network
Scanner
CD-RW
Windows
Other

Table of Contents

HardDisks

1999-01-xx Initially purchased with 8.4G drive. Installed Win95, then WinNT, then Linux Redhat 5.2. Multibooting via Partition magic's Boot Manager. Running out of space...

1999-07-21 I bought a MAXTOR 10G at CompUSA. Found the open slot for another harddrive. Set the jumper for "slave" mode, then put it in. Had to bend a metal tab (on the case slot framing) out of the way to get it to slide all the way in. Then it was a stretch to get the signal and power cables installed. Started the system and checked that the bios could read the full 10G.

Next, I used the provided SUSE boot disk and went through the semi-expert path. First, I tried all in one massive partition. I got it loaded and played with it for a while, but SUSE couldn't handle my full 10.0G, and the inodes were high, so I tried breaking it up. Never did get acknowledgement of the disk beyond 8.4G. Also found found SUSE has so much stuff that my guesses were wrong. Finally, I did "almost all packages", and eliminated those I didn't expect to ever examine much less use. Then redid the partitions to allow reasonable space. Later, I went back and added /dev/hdb6 to use up the rest of the hdb extended partition. But there is still 2G outside that.

1999-09-02 /usr was building up, due to /usr/local/src. So I moved src to /src (using a tar file), and put in a symlink to it from /usr/local. That moved 200M, and leaves room for getting more stuff off the net. Next time, I'd use only 1G for /, and give most disk space to /usr.

1999-12-19 Upgraded to SUSE 6.3. After selecting the stuff I wanted, the result was more space on partitions than before the upgrade.

Partitions

[Run fdisk as root]

/dev/hda

wilma:~ # /sbin/fdisk -l /dev/hda

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

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1       126   1012063+   6  FAT16
/dev/hda2           262      1022   6112732+   5  Extended
/dev/hda3           127       252   1012095   16  Hidden FAT16
/dev/hda4   *       253       253      8032+   a  OS/2 Boot Manager
/dev/hda5           262       390   1036161    6  FAT16
/dev/hda6           391       516   1012063+   6  FAT16
/dev/hda7           517       529    104391   82  Linux swap
/dev/hda8           530       755   1815313+  83  Linux
/dev/hda9           756       998   1951866   83  Linux

/dev/hdb

wilma:~ # /sbin/fdisk -l /dev/hdb

Disk /dev/hdb: 64 heads, 63 sectors, 4095 cylinders
Units = cylinders of 4032 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1      1016   2048224+  83  Linux
/dev/hdb2          1017      1067    102816   83  Linux
/dev/hdb3          1068      1132    131040   82  Linux swap
/dev/hdb4          1133      4095   5973408    5  Extended
/dev/hdb5          1133      3500   4773856+  83  Linux
/dev/hdb6          3501      4095   1199488   83  Linux

Mounts

/etc/fstab
/dev/hda7       swap                      swap            defaults   0   0
/dev/hdb3       swap                      swap            defaults   0   0
/dev/hdb1       /                         ext2            defaults   1   1
/dev/hdb5       /usr                      ext2            defaults   1   2
/dev/hdb2       /home                     ext2            defaults   1   2

/dev/hdc        /cdrom                    iso9660         user,noauto,ro,exec,dev 0   0

/dev/fd0        /floppy                   auto            user,noauto,rw,exec,dev 0   0

none            /proc                     proc            defaults   0   0

none            /dev/pts                  devpts          defaults   0   0
# End of YaST-generated fstab lines
#========================================================================
#added to end of YaST-determined extended partition:
/dev/hdb6       /opt                      ext2            defaults   1   2

/dev/fd0        /mnt/dosa                 msdos           noauto,user 0   0

#---for cross-mounting the redhat, win95, and winnt systems----------
/dev/hda1       /mnt/win95                vfat            user,rw,noauto,noexec 0   0
/dev/hda3       /mnt/winnt                vfat            user,rw,noauto,noexec 0   0
/dev/hda5       /mnt/hgg                  vfat            user,rw,noauto,noexec 0   0
/dev/hda6       /mnt/klg                  vfat            user,rw,noauto,noexec 0   0
/dev/hda8       /mnt/redhat               ext2            user,rw,noauto,noexec 0   0
/dev/hda9       /mnt/redhat_local         ext2            user,rw,auto,noexec   0   0
fred:/usr2	/mnt/fred_usr2		  nfs	          defaults              0   0

Usage

df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdb1              1981000   1531857    346732  82% /
/dev/hdb5              4611781   3937650    435439  90% /usr
/dev/hdb2                96328     49794     41394  55% /home
/dev/hdb6              1160826   1027263     73589  93% /opt
/dev/hda9              1888052    271409   1519050  15% /mnt/redhat_local
fred:/usr2             3967900     21556   3741520   1% /mnt/fred_usr2

 
Creator: Harry George
Updated/Created: 2001-01-07