Creating partions in Linux

tazmius

Junior Member
Dec 2, 2003
18
0
0
I have a 2nd hd I've installed in my Linux box (running a copy of Xandros 2.0). How to I create a partition on it with Linux? Also, as this drive is going to be used as a backup for my data, what would be the best format to partition with? ext2, ext2, reiserfs, etc??

Thanks in advance for any help.

Taz
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
tazmius, to create partitions in linux you can use either of these two commands cfdisk or fdisk. I personally like both of them, but if you are new to linux cfdisk is probably easier. Once you create linux partitions which are the slices in your hard drive . Then you have to choose a filesystem or format for you partition, I personally wouldn't go with anything that doesn't provide journaling. When it comes to filesystems I personally like ext3. But remember that a windows box, can't read ext3, so if you are going to use that partition to share and transfer files between windows and linux you will need to use fat32.

I hope this helps,
pitupepito
 

tazmius

Junior Member
Dec 2, 2003
18
0
0
Thanks. I'll try that. Looks like I'l have to install it first though...tried running cfdisk at the CLI and got a an error but fdisk did run. I want to download cfdisk though and see how that goes....

I'll post later today with results....

Taz
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
cfdisk does things "more correct" it's more then just a different interface then fdisk.

If you want a nice thing to do to a drive that is used but doesn't have anything you want to save before reformatting it is to do:

dd if=/dev/zero of=/dev/hda

or

dd if=/dev/urandom of=/dev/hda

(were hda is the drive you want to obliterate)

the zero command writes zeros to fill up the drive and urandom fills the drive up with random junk. (this is exactly the same thing you get when you do a so-called (and incorrectly called) low-level format utility you can get from the various harddrive manufactures.) That way you can be sure that their isn't going to be any suprises like some off-standard format or something that can cause issues. Plus it's a decent drive check because it writes to ALL the bits, so if the drive is damaged or anything it will choke on the bad sectors, it should only give a error when it reaches the end of the drive. It may take a LONG time, though on a big drive. If you have a 30gig drive then it will create a 30gig "file" to fill it up.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |