Storage Devices
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsHARDWAREStorage Devices

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old July 17th, 2006, 08:21 AM
mphill's Avatar
mphill mphill is offline
untitled
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Oct 2005
Location: Zagreb
Posts: 3,679 mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)  Folding Points: 14729 Folding Title: Novice Folder
Time spent in forums: 3 Months 2 Weeks 4 Days 2 h 50 sec
Reputation Power: 4203
Send a message via ICQ to mphill
Linux fdisk

There was several suggestions to deal with partitions using linux fdisk on this forum but little explanation how. Since linux fdisk is much more complex than DOS fdisk it can be very confusing, especialy to inexpirienced windows user, so I decided to write something about metter.
First of all you will need some linux distribution. Let it be DSL (damn small linux). After you create bootable media, connect disk you want to format and boot.

1.NAMING

Fdisk needs to know the name of device it will work with. It means that you will need to open root console antype : "fdisk <device_name>". In linux it goes like this:
IDE disks:

primary master - /dev/hda
primary slave - /dev/hdb
secondary master - /dev/hdc
secondary slave - /dev/hdd


SCSI:
scsi disks are seen as /dev/sda, /dev/sdb, /dev/sdc etc.

USB:
USB disks are seen as SCSI.

[note]Some older (pre 2.6 kernel) sets IDE DVD/CD burners to mount like scsi device. It is because of compatibility with burning software which worked only with scsi devices[note]

2.PARTITION NAMING

After you typed "fdisk <correct_device_name>", you are in fdisk prompt. Typing "p" you can get list of partitions allready present. For example:

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 9601 77120001 83 Linux
/dev/hda2 9602 9729 1028160 82 Linux swap

Command (m for help):


Here you can see (in this case) two primary partitions one ext3 (linux) and second "linux swap" type. Disk can be splited in 4 primary partitions of which one can be extended and they are named from /dev/hda1 to /dev/hda4. One of them can be extended partition which can contain logical partitions. Logical partitions are allways named from /dev/hda5 upward, /dev/hda6, /dev/hda7...
[on IDE disks you can have up to 63 logical partitions and on SCSI disk you can have it up to 15]

3.ADDING PARTITION

In fdisk prompt type "n".
Now, you have to choose what type your new partition will be.

Command (m for help): n
Command action
e extended
p primary partition (1-4)


After you choose type of partition, if there are more than one option you will be asked for partition number.
Next you will be asked for start cylinder and by default it is the lowest possible. I suggest leaving it as it is. Next you will need to enter end cylinder, default is last possible. Here you can enter values like +size or +sizeM or +sizeK or +sizeG where size is number of bytes, sizeG is GB, +sizeM is MB and sizeK is KB (+1024, +8192K, +13M, +4G).

4.TYPE OF PARTITION

Partition type needs to be defined. Type L, and listing will show.

Command (m for help): L

0 Empty 1c Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid
1 FAT12 1e Hidden W95 FAT1 75 PC/IX be Solaris boot
2 XENIX root 24 NEC DOS 80 Old Minix c1 DRDOS/sec (FAT-
3 XENIX usr 39 Plan 9 81 Minix / old Lin c4 DRDOS/sec (FAT-
4 FAT16 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT-
5 Extended 40 Venix 80286 83 Linux c7 Syrinx
6 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: da Non-FS data
7 HPFS/NTFS 42 SFS 85 Linux extended db CP/M / CTOS / .
8 AIX 4d QNX4.x 86 NTFS volume set de Dell Utility
9 AIX bootable 4e QNX4.x 2nd part 87 NTFS volume set df BootIt
a OS/2 Boot Manag 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access
b W95 FAT32 50 OnTrack DM 93 Amoeba e3 DOS R/O
c W95 FAT32 (LBA) 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor
e W95 FAT16 (LBA) 52 CP/M 9f BSD/OS eb BeOS fs
f W95 Ext'd (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT
10 OPUS 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/
11 Hidden FAT12 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b
12 Compaq diagnost 56 Golden Bow a7 NeXTSTEP f1 SpeedStor
14 Hidden FAT16 <3 5c Priam Edisk a8 Darwin UFS f4 SpeedStor
16 Hidden FAT16 61 SpeedStor a9 NetBSD f2 DOS secondary
17 Hidden HPFS/NTF 63 GNU HURD or Sys ab Darwin boot fd Linux raid auto
18 AST SmartSleep 64 Novell Netware b7 BSDI fs fe LANstep
1b Hidden W95 FAT3 65 Novell Netware b8 BSDI swap ff BBT

Command (m for help):


Now, type t, choose partition you created and enter code of type you want.
Type "w" and that's it, you are done. If you want fdisk to do nothing and forget changes you have done, type "q", fdisk will do nothing until you exit it.

You will see effect next time when you remount device.


Fdisk has loads of other useful functions (defining number of cylinders, heads or sectors for example) and list of his functions you can get with typing "m".

Hope this was helpfull and sorry for my englisch.
Comments on this post
Nilpo agrees: Nice work, mp.
madhyena agrees: now I can rep you, well deserved.
__________________
Click Here ->    

Reply With Quote
  Trader Rating: 4 · #2  
Old July 17th, 2006, 08:30 AM
madhyena's Avatar
madhyena madhyena is offline
SץsAםмιи & Wяιτєя
Dev Hardware Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2004
Location: Romania, the one and only.
Posts: 4,566 madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)  Folding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate Folder
Time spent in forums: 1 Year 1 Month 3 Weeks 2 Days 17 h 50 m 20 sec
Reputation Power: 6786
Send a message via AIM to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
Awesome work. Afterall your english is ok, don't always be pessimistic. We don't need perfect grammar, just that we need to type and express ourselfes in a clear way, easy to understand.
Good job, and I'll catch up with the rep, now I can't.

PS: If you want put this thread's linky in your signature, it's worth.
__________________

“Greatness, combined with the hint of a 24-carat lifestyle, is within us striving to make it through, craving for attention,
and in the end, recognition, leaving a record worthy of biography on forging success stories.”
—ME

Check out MadHyeNa's Website & Article Index. Visit Nilpo.com - Ask the Windows Guru!™
I succeed, conquer, and achieve, therefore I am.

Reply With Quote
  Trader Rating: 0 · #3  
Old July 17th, 2006, 10:21 AM
000's Avatar
000 000 is offline
Permanently Banned
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Aug 2004
Posts: 3,447 000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 10 h 57 m 49 sec
Warnings Level: 20
Number of bans: 2
Reputation Power: 0
Very nicely written, should be stickied.

Reply With Quote
  Trader Rating: 4 · #4  
Old July 17th, 2006, 10:37 AM
madhyena's Avatar
madhyena madhyena is offline
SץsAםмιи & Wяιτєя
Dev Hardware Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2004
Location: Romania, the one and only.
Posts: 4,566 madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)  Folding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate Folder
Time spent in forums: 1 Year 1 Month 3 Weeks 2 Days 17 h 50 m 20 sec
Reputation Power: 6786
Send a message via AIM to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
Quote:
Originally Posted by 000
Very nicely written, should be stickied.
Agree, I thought the same way, but in "Operating Systems" section there are already 5 stickies, so I'm not sure if admins/mods will sticky it. But it's great, and we can link to anybody who has problems with fdisk@linux- it's great guide.

Reply With Quote
  Trader Rating: 0 · #5  
Old July 17th, 2006, 11:22 AM
000's Avatar
000 000 is offline
Permanently Banned
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Aug 2004
Posts: 3,447 000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level)000 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 10 h 57 m 49 sec
Warnings Level: 20
Number of bans: 2
Reputation Power: 0
Quote:
Originally Posted by madhyena
Agree, I thought the same way, but in "Operating Systems" section there are already 5 stickies, so I'm not sure if admins/mods will sticky it. But it's great, and we can link to anybody who has problems with fdisk@linux- it's great guide.


I think mphill should link it in his sig, it's really good, and will stop all of the n00b questions. Perhaps even in the storage devices forum.

Reply With Quote
  Trader Rating: 4 · #6  
Old July 17th, 2006, 11:47 AM
madhyena's Avatar
madhyena madhyena is offline
SץsAםмιи & Wяιτєя
Dev Hardware Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2004
Location: Romania, the one and only.
Posts: 4,566 madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)madhyena User rank is General 87th Grade (Above 100000 Reputation Level)  Folding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate Folder
Time spent in forums: 1 Year 1 Month 3 Weeks 2 Days 17 h 50 m 20 sec
Reputation Power: 6786
Send a message via AIM to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
Quote:
Originally Posted by 000
I think mphill should link it in his sig, it's really good, and will stop all of the n00b questions. Perhaps even in the storage devices forum.
Yup, I already suggested that in my first post here.

Reply With Quote
  Trader Rating: 2 · #7  
Old August 3rd, 2006, 08:29 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Hardware God (5000 - 5499 posts)
 
Join Date: May 2004
Location: Salem, OH
Posts: 5,344 Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)Nilpo User rank is General 68th Grade (Above 100000 Reputation Level)  Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1Folding Points: 189852 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 1 Week 2 Days 21 h 59 m 7 sec
Reputation Power: 5514
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
MySpace Orkut
Thread moved to Storage Devices and stickied.

Sorry for the move, too many stickies in OS already.

[EDIT]MP, I edited your sig to reflect the new link. [/EDIT]
Comments on this post
mphill agrees: 1. thanks, 2. 3 orange things ! 3. 40 power ?!
__________________
Click the image if at any point you don't like my decision.

10011100011000101111100011100000011000000100000011 10010011011110110001101101011011110100011000001110 0100111101000100001

Visit Nilpo.com and Ask the Windows Guru!

Open me for some very useful links!    

Reply With Quote
Reply

Viewing: Dev Hardware ForumsHARDWAREStorage Devices > Linux fdisk


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |