Reply to topic  [ 1 post ] 
HOWTO: Partitions under SUSE 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
Creating partitions under SUSE is fairly easy.

If you open YaST and go to the System page, you will see an option called "Partions" or "Partioning" (the former is the literal translation from the German on my machine).

Clicking on this will bring up a warning dialog that this option is only for experts. Ignore this and allow it to proceed. You should then be presented with the "Hard disk preparation: Expert mode" or similarly named dialog.

Here you will see a list of the hard disks and partitions on your system. Even if a partition isn't loaded under Linux, or it is a fallow partition (un-formatted), it should appear there.

The list on my current workstation is as follows:

Code:
/dev/hda     111.7 GB    WDC-WS1200JB-00CRA0           0  14592
/dev/hda1    110.0 GB    Linux native        /         0  14359
/dev/hda2      1.7 GB    Linux swap          swap  14360  14592
/dev/hdb     111.7 GB    WDC-WD1200BB-00FTA0           0  14592
/dev/hdb1    111.7 GB    Linux native        /data     0  14591


You just need to select the partition from the list you want to work with.

Click on Edit and the details for the partition will appear. If the partition is already formatted, you can select to reformat it or you can assign it a mountpoint (see below).

If you want to split the partition into multiple partitions, you need to delete the partition first, then re-assign the space. You can specify several different formats for the partition.

You can specify the size of the partition in MB, GB or in the number of cylinders (sectors?).

You can specify the partition to not be formatted, if you just want to mount it, or you can specify which file system you want it to use. You get the following options:

Ext2 (old, legacy format without journalling)
Ext3 (newer version of Ext2 with journalling and ACL support)
Reiser (newer format with journalling, supposed to be very fast)
FAT (MS-DOS classic format, no security, no journalling, and no long filenames in the new version as Microsoft won the patent on that)
XFS (another journalling format with ACL support)
Swap (swap space for virtual memory for your system - if you have multiple versions of Linux installed, they can all share the same swap partition)

If you are going for a Linux partition, I would recommend Ext3 or ReiserFS. Reiser is pretty good, but certain applications can have problems with it - CyrusIMAP has problems handling mail transfer on some Reiser systems for example.

If you already have a Swap partition and you aren't running out of virtual memory, then you won't need this option.

If you are looking to share information with Windows either use FAT or Ext2/3 and use the Ext driver under Windows.

Mountpoints

This is where the new partition should appear in the system hierarchy. Common places would be in directories under /media or /mnt...

On the system above, I've actually installed the second hard disk under /data. This is non-standard, but a very handy and quick to find. This is also the beauty of *nix, you can put the partitions wherever you want them.

If we want to mount a Windows FAT partition for example, you can put it under /mnt/windows for example.

To do this, you need to assume root privileges and go to the directory, you can either do this with Konqueror or the Gnome browser in supervisor mode, or you can do it from the command line:

Code:
$ su <return>
[i]Password: [/i] (enter your root password here)
$ md /mnt/windows
$ chmod 777 /mnt/windows


This creates the windows directory where the new partition will be mounted (mapped onto the existing hierarchy). Changing the access to 777 allows all users to access it. If you want to restrict access, you will need to change the owner and the access rights to the directory.

-----------------------------------------------------------------------------------------------------------------------

big_D wrote:
attenboroughp wrote:
Two questions:

1. The 'md' command. As far as I can tell from your post, is this similar to the 'mkdir' command?


In SUSE 'md' is an alias for "mkdir -p"

attenboroughp wrote:
2. The 'chmod 777' command. When I use the 'chmod' command, I allways do it in the following way: eg. 'chmod a+wrx /mnt/windows'

Could you please explain the numbers. It seems much faster than my method. :)


These are the octets for owner, group and world. Therefore there is one number for each.

7 is the octet for read, write and execute (execute also essentially means accessible for directories), for normal files it means the file is either a binary executable or a script...

Read = 4
Write = 2
Execute = 1

754 would give the owner all rights, the group would get read and execute and the rest of the world would get read access...

attenboroughp wrote:
Ps, not too long ago I had to partition and format from the command line. (CentOS didn't have any way of doing it in the GUI!)

It was surprisingly easy and, I dare say, quicker then firing up the system partitioner tool?


Quite possibly, I often do things from the command line, but for new starters coming from a Windows background and seem to have an aversion to the command line, it makes things relatively simple.

A lot of people flame forums and mailing lists at how antiquated Linux is because today there should be no need to use a command line - the fact that the command line makes things quicker and easier seems to be beside the point for them...


Tue May 12, 2009 10:33 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.