PDA

Bekijk de volledige versie : Format a 250 Gb hard drive in ext3fs



Ulyss62
08-10-2005, 00:36
I want to format my 250 Gb hard Drive in one shot using ext3fs

So I create only 1 primary partition using :
fdisk /dev/ide/host0/bus0/target0/lun0/disc

When I want to format that partition using :
mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1
The system send me bach a warning saying that there is no enough memory : Memory allocation failed while setting up superblocks

I think that I need a swap somewhere but how can I do that If I want only One partition

Other question If I have several partitions, which one will be accessed through samba through the WL500G ? All ?

galmiche
08-10-2005, 09:52
Hi ,
If you want to format big Hard Disks, you have to create then activate first the swap partition (swapon) then you'll be able to format without error messages.
Hervé

WlanMan
08-10-2005, 13:10
The system send me bach a warning saying that there is no enough memory : Memory allocation failed while setting up superblocks
System gets out of memory when it creates the data structures in ram before write, so you will need the swap. some douzend MB of swap are ever a good idea, or does these few mb of space loss make you a problem ?


Other question If I have several partitions, which one will be accessed through samba through the WL500G ? All ?
First partition will be seen in samba and ftp, and inside this partition there will be automatic created subdirektorys holding the concent of the other partitions.

Greets

Ulyss62
08-10-2005, 13:42
Thank for your quick reply...

I'm newby in using Linux command line.
To be sure that I've right understood, here is the summary

1 - I create 2 primary partitions on my hard drive using :
fdisk /dev/scsi/host0/bus0/target0/lun0/disc
part 1 = 32 Mb for example
part 2 = 250 Gb
then I reboot my WL500g

2 - I format part1 using :
mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1

3 - I create a swap on part1 using :
mkeswap /dev/scsi/host0/bus0/target0/lun0/part1
swapon /dev/scsi/host0/bus0/target0/lun0/part1

4 - I format part 2 using :
mke2fs -j /dev/scsi/host0/bus0/target0/lub0/part5

5 - I can suppress part1 and loose only 32 Mb of space
part 2 is then the only available partition of about 250 Gb

Thank if anybody can check the process and the syntaxe

WlanMan
09-10-2005, 16:49
Looks OK

You can put the swap as the secound partition to go sure if you want, and you dont need to format the swap partition prior doing mkswap since this itself is a sort of formating. what you should do is marking the desired partition as swap by changing the file system number with fdisk, i think you will find it. if you make 2 primary ones, they will be part1 and part2, not 5 since from there the secondary partitions are counting.

Greets

oleo
10-10-2005, 14:00
If you mount by itself partitions in post-boot then it will not be remounted!


[admin@leon sbin]$ cat /usr/local/sbin/post-boot
#!/bin/sh
mount -t ext3 /dev/discs/disc0/part1 /opt
mount -t ext3 /dev/discs/disc0/part3 /tmp/harddisk
swapon /dev/discs/disc0/part2
# remove audio module
killall waveservermain
rmmod audio
rmmod soundcore
# And printer
killall p910nd
killall lpd
killall infosvr
rmmod printer

My torture tests showed that only Maxtor 320G disk with Revoltec case works fine. Other disks/cases produce USB_TIMEOUT under heavy load!