-
Junior Member
registered user
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?
-
Senior Member
registered user
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
-
Administrator
Site Admin-
![Quote](images/misc/quote_icon.png)
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).
-
Junior Member
registered user
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'.
-
Senior Member
registered user
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.
-
Administrator
Site Admin-
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.
-
Senior Member
registered user
Isn't better swapping with /dev/hda1 since it's the faster
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
maxIT
Isn't better swapping with /dev/hda1 since it's the faster
![Question](images/smilies/icon_question.gif)
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
-
By zillah in forum Hardware & Booting
Replies: 14
Last Post: 01-14-2006, 10:54 PM
-
By yukichigai in forum Laptops
Replies: 1
Last Post: 07-14-2005, 04:27 AM
-
By Kowood in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 04-14-2005, 07:57 PM
-
By MatthiasR in forum General Support
Replies: 7
Last Post: 01-09-2005, 09:33 PM
-
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
-
Forum Rules
![Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller picture](/store/img/g/ph8AAOSwnHxmXzcB/s-l225/Dell-EMC-092GD6-Broadcom-9305-16i-LSI-Quad-Port-4-.jpg)
Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller
$84.99
![ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT picture](/store/img/g/m2IAAOSwmz5kyNFT/s-l225/ORICO-5-Bay-Raid-USB3-0-to-SATA-External-Hard-Driv.jpg)
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT
$134.39
![OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire picture](/store/img/g/-FoAAOSwtEBmQ5qa/s-l225/OWC-Guardian-Maximus-Raid-Enclosure-SATA-Hard-Driv.jpg)
OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire
$36.99
![ASUS Hyper M.2 x16 Gen 4 RAID Card- Used Working picture](/store/img/g/fGwAAOSwAStmfi9c/s-l225/ASUS-Hyper-M-2-x16-Gen-4-RAID-Card-Used-Working.jpg)
ASUS Hyper M.2 x16 Gen 4 RAID Card- Used Working
$32.95
![Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture](/store/img/g/C7YAAOSwLYJl3nQQ/s-l225/Dell-PERC-H330-PCIe-3-0-x8-RAID-Storage-Controller.jpg)
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile
$17.99
![LSI 8 Port 6Gbps PCIe 3.0 External SAS RAID Card w/ 1GB CacheVault & Low Profile picture](/store/img/g/3oUAAOSweflmcp0x/s-l225/LSI-8-Port-6Gbps-PCIe-3-0-External-SAS-RAID-Card-w.jpg)
LSI 8 Port 6Gbps PCIe 3.0 External SAS RAID Card w/ 1GB CacheVault & Low Profile
$24.65
![LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture](/store/img/g/NdcAAOSwlPtmc2X8/s-l225/LSI-MegaRAID-9361-8i-12Gbps-PCIe-3-x8-SATA-SAS-3-8.jpg)
LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault
$39.00
![Dell H310 SATA SAS RAID Controller Card - HV52W with 1 SFF-8087 Cable, IT Mode picture](/store/img/g/9JUAAOSwlFNmcxPK/s-l225/Dell-H310-SATA-SAS-RAID-Controller-Card-HV52W-with.jpg)
Dell H310 SATA SAS RAID Controller Card - HV52W with 1 SFF-8087 Cable, IT Mode
$20.00
![ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB picture](/store/img/g/m2IAAOSwmz5kyNFT/s-l225/ORICO-5-Bay-Raid-Enclosure-USB3-0-SATA-External-Ha.jpg)
ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB
$42.49
![Yottamaster 5 Bay RAID Hard Drive Enclosure Type-C B For 2.5](/store/img/g/izoAAOSwfCZlZs9y/s-l225/Yottamaster-5-Bay-RAID-Hard-Drive-Enclosure-Type-C.jpg)
Yottamaster 5 Bay RAID Hard Drive Enclosure Type-C B For 2.5" 3.5" SATA HDD SSDs
$139.99