Results 1 to 6 of 6

Thread: Format a 250 Gb hard drive in ext3fs

  1. #1

    Format a 250 Gb hard drive in ext3fs

    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 ?

  2. #2

    Ext3 and Big hard Disk

    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é

  3. #3
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    Quote Originally Posted by Ulyss62
    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 ?
    Quote Originally Posted by Ulyss62
    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
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  4. #4
    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

  5. #5
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    377
    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
    Last edited by WlanMan; 09-10-2005 at 18:06.
    My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub

  6. #6
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    If you mount by itself partitions in post-boot then it will not be remounted!

    Code:
    [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!

Similar Threads

  1. External Hard Drive + USB Hub Question!
    By akula in forum WL-500g Q&A
    Replies: 6
    Last Post: 16-04-2005, 21:23
  2. hard drive idle shutdown
    By vampire in forum WL-500g Q&A
    Replies: 1
    Last Post: 08-01-2005, 17:01
  3. Another USB Hard drive problem
    By bodel007 in forum WL-500g Q&A
    Replies: 5
    Last Post: 12-05-2004, 10:36
  4. HELP Required: USB 2.0 Hard drive not recognized
    By darrellr in forum WL-500g Q&A
    Replies: 4
    Last Post: 06-05-2004, 16:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •