LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to create Reiserfs partition (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-reiserfs-partition-163589/)

rincewind 03-28-2004 10:05 PM

how to create Reiserfs partition
 
Hi,

I have this huge bug in my head that can't make me to understand how to create an reiserfs partion over the rest of my harddrive. =)
I have compiled reiserfs into the kernel and when i write fdisk -l i get the following result:

Code:

mysrv:~# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1      15508    7815591  83  Linux
/dev/hda2          15508      19380    1951897+  82  Linux swap

Logically, I should have 70 gig (from start 19381 to end 15061) on my harddrive and I want to partition it as an reiserfs partition.=)

How do I do that? I have mkreiserfs and all of the other tools.

Thankfull for help.
-- Rincewind

Tinkster 03-28-2004 10:19 PM

Just like that. You create the partition using
fdisk (cfdisk, ...) and assign it the type of 83,
then you use mkreiserfs to create the file-system
on it
mkreiserfs /dev/<your partition>



Cheers,
Tink

SciYro 03-29-2004 12:53 AM

Code:

fdisk /dev/hda
n
p
3
[renturn]
[return]
w

mkreiserfs /dev/hda3

that sould do it, well mkreiserfs asks you a few questions, but i forget the order but i think its

y
[return]

whansard 03-29-2004 01:15 AM

linux doesn't even care what the partition type is. you can format any partition as reiserfs or ext2, and use it. windows uses it though. seriously. you can make it any type at all, and format it as reiserfs, as long as you have fstab pointing in the right place, it will work. just don't make it extended or bsd or solaris. those would be treated differently. i typed that just so you would know the partition type really isn't important.

just to confuse the crap out of people on this site, you could make a big type 82 partition, and format it as reiserfs, and make make a small type 83, and mkswap on it. it would work fine and you could confuse everybody to no end.


All times are GMT -5. The time now is 12:54 PM.