qwertyjjj |
02-04-2010 11:03 PM |
format new partition?
Right, I almost royally messed up my server by trying to create a reiser filesystem.
I had to change the etc/fstab on reboot as it was failing.
This has removed the /home label on the /dev/sda2 partition.
fdisk -l gives:
Quote:
[root@ sysconfig]# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 29061 233352157+ 83 Linux
/dev/sda3 29062 29698 5116702+ 83 Linux
/dev/sda4 29699 30401 5646847+ 5 Extended
/dev/sda5 29699 30335 5116671 83 Linux
/dev/sda6 30336 30400 522081 82 Linux swap / Solaris
[root@ sysconfig]#
|
df -h gives the following but it is missing sda2
Do I have to remount it or something?
I then want to install reiser on the /dev/sda2 and relabel /home. I intend to have my squid cache on this drive also.
Quote:
[root@ ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.8G 1.5G 3.0G 34% /
/dev/sda3 4.8G 1.7G 2.9G 37% /var
/dev/sda1 76M 23M 50M 32% /boot
tmpfs 465M 0 465M 0% /dev/shm
[root@serve ~]#
|
EDIT: I successfully ran reiserfs on the partition but it will not now recognise the filesystem when trying to mount it.
Quote:
[root@serve ~]# mkfs.reiserfs /dev/sda2
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
The Defense Advanced Research Projects Agency (DARPA, www.darpa.mil) is the
primary sponsor of Reiser4. DARPA does not endorse this project; it merely
sponsors it.
Jeremy Fitzhardinge wrote the teahash.c code for V3. Colin Plumb also
contributed to that.
Guessing about desired format.. Kernel 2.6.18-164.11.1.el5 is running.
Format 3.6 with standard journal
Count of blocks on the device: 58338032
Number of blocks consumed by mkreiserfs formatting process: 9992
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 98f490bc-f8a7-4e7b-9f3a-50ac6f1e98f8
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/sda2'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.
ReiserFS is successfully created on /dev/sda2.
[root@serve ~]# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 29061 233352157+ 83 Linux
/dev/sda3 29062 29698 5116702+ 83 Linux
/dev/sda4 29699 30401 5646847+ 5 Extended
/dev/sda5 29699 30335 5116671 83 Linux
/dev/sda6 30336 30400 522081 82 Linux swap / Solaris
[root@serv]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.8G 1.5G 3.0G 34% /
/dev/sda3 4.8G 1.7G 2.9G 37% /var
/dev/sda1 76M 23M 50M 32% /boot
tmpfs 465M 0 465M 0% /dev/shm
[root@se]#
[root@serve ~]# mount /dev/sda2 /var/spool/squid
mount: unknown filesystem type 'reiserfs'
[root@server ~]#
|
|