Results 1 to 8 of 8

Thread: Creating Linux and Swap partitions on a blank drive

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    13

    Creating Linux and Swap partitions on a blank drive

    I've searched high and low for partitioning software that will create linux ext3 ext2 and swap partitions from a boot disk.
    I take it there is a better way?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    I have installed a brand new untouched HD in a system and partitioned it using Knoppix.
    boot off the Knoppix CD with the cheat code:
    knoppix nofstab

    Then when Knoppix fully loads the GUI desktop, you can run the GUI partitioner tool: qtparted
    If you are comfortable with the command line, then run the command 'cfdisk /dev/hda' to partition the HD. You may have to reboot in order for the system to recognize the partition changes. Next, format the partitions with the desired filesystem.
    format a ext2fs filesystem: mke2fs -v /dev/hda1
    format a ext3fs filesystem: mke2fs -vj /dev/hda2
    format a swap parition:mkswap /dev/hda3

  3. #3
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by UnderScore
    boot off the Knoppix CD with the cheat code:
    knoppix nofstab
    James, can you tell us what the nofstab cheat code is? I've looked at the cheat codes section of the wiki but find no explination of it (the only mention of nofstab is in one example using it along with a number of other cheat codes, but no clue as to what it is intended to do).

  4. #4
    Junior Member registered user
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    13
    Wonderful. Last time I installed Knoppix it was on a dual-boot system so i used Partition Magic from windows. This is just as great. Thank you.

    Yes, also I could not find much information on 'nofstab'.

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Sure.
    By default Knoppix will look/scan the HDs to see if it contains partitions. If the HDs do have partitions, Knoppix will automatically build a '/etc/fstab' file and fill-in the appropriate partition entries and will also create the '/mnt/hdxx' mount points. The 'nofstab' cheat code prevents this look/scan and prevents the generation of the /etc/fstab and its mount points.

    Reasons why someone might use 'nofstab':
    *HD is brand new & no partitions. Not necessary to scan it.
    *User plans to do HD/partition maintenance. Do not want /etc/fstab & mount points to be created.
    *Combine 'nofstab' with 'noswap' to force Knoppix to not even touch a HD. Again useful for HD/partition maintenance but also for data recovery and forensics.

    Usage of the nofstab cheat code will probably break the userfriendly desktop HD icons since they rely on the the automatic config of both fstab & the mount points.

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Thanks James, good info. I'll give you time to add it to the wiki, but if you don't do it yourself, I'm going to cut and paste plagerize you and copy what you wrote above into the cheat code section.

  7. #7
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245
    Isn't better swapping with /dev/hda1 since it's the faster

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Quote Originally Posted by maxIT
    Isn't better swapping with /dev/hda1 since it's the faster
    Yes if you use swap space it should have better performance. But for maintenace or data forensics purposes it is necessary to disable swap acess.
    *Try this only on a spare HD *
    Partition & format a spare HD as I suggested in the post above.
    Then reboot Knoppix normally. Then attempt to add, remove, resize partitions while the swap partition is enabled. It may be successful or it could fail. The write/resize processes will attempt to change the sectors on the HD where the swap is currently active. It could work but each process will be stepping on each other sort of like 2 people trying to go through a door-way at the same time.

Similar Threads

  1. Knoppix and creating partitions not recogniozed by XP CD
    By zillah in forum Hardware & Booting
    Replies: 14
    Last Post: 01-14-2006, 10:54 PM
  2. Replies: 1
    Last Post: 07-14-2005, 04:27 AM
  3. Swap Partitions
    By Kowood in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 04-14-2005, 07:57 PM
  4. Problems creating swap file
    By MatthiasR in forum General Support
    Replies: 7
    Last Post: 01-09-2005, 09:33 PM
  5. Partitions on one disk appear blank in Knoppix
    By chrisjhurl in forum Hardware & Booting
    Replies: 3
    Last Post: 08-06-2004, 01:26 PM

Posting Permissions

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


Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working picture

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working

$99.99



Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ picture

Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ

$350.00



Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On) picture

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)

$300.00



DEFECTIVE Atari 810 Vintage Computer Disk Drive  powers on Unit Only Boo G3D picture

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D

$49.29



Atari XE  130XE Computer NTSC with Power Supply Powers On Untested picture

Atari XE 130XE Computer NTSC with Power Supply Powers On Untested

$159.95



SOLD AS IS Lot of 5.25

SOLD AS IS Lot of 5.25" Floppy Disks w/ Games & Software? Commodore 64 Atari 800

$59.99



Atari 520ST Vintage Home Computer Keyboard Unit picture

Atari 520ST Vintage Home Computer Keyboard Unit

$199.97



Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI picture

Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI

$44.00



VTG Atari 1200XL Home Computer System 1200 XL ** Tested ** Parts or Repair picture

VTG Atari 1200XL Home Computer System 1200 XL ** Tested ** Parts or Repair

$323.75



ATARI HDD Drive ACSI Emulator 520-1040ST/STF/STFM, STE, Mega STE, TT030 acsi2stm picture

ATARI HDD Drive ACSI Emulator 520-1040ST/STF/STFM, STE, Mega STE, TT030 acsi2stm

$48.95