LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2001, 11:40 PM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Rep: Reputation: 30
Redhat and SuSE fdisk differ?


Today, I came across an interesting observation about fdisk on Redhat
and on SuSE. It is about how the two versions of fdisk handle unallocated
space. Where as Redhat Version didn't report unallocated space as a
partition, the SuSE's fdisk did.

Here is a snapshot of harddisk..

| hda1 | free | part-1| part-2|
|<--Pri->|<-- extended --->|
the free space above is just a free, unallocated space. It's not even an
unformatted partition.

Here is a snapshot of Redhat's fdisk.
/dev/hda1
/dev/hda5
/dev/hda6
(there is no mention of free space)

and Here is SuSE's fdisk
/dev/hda1
/dev/hda5 -> refers to free space.
/dev/hda6 -> part-1
/dev/hda7 -> part-2.

i am curious to know if anyone experienced this before?
Because of ths difference, I lost one partition today, while installing SuSE
 
Old 11-15-2001, 11:45 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
That is strange

If it was not partitioned then why would it show up as /dev/hda5?


If it was then why would it matter if it were formatted?
 
Old 11-16-2001, 06:21 PM   #3
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
I noticed this too, except that it was the difference (in RedHat) between fdisk and cfdisk. cfdisk saw my free space, but fdisk did not.

Try cfdisk /dev/hda and you should see the free space. I actually wrote a query about this, but have yet to have a definitive answer on it.

http://www.linuxquestions.org/questi...&threadid=8768
 
Old 11-17-2001, 08:23 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The Start and End on each partition here is consecutive..

Are you saying that there could be free space in between somewhere and I would not see it?


Disk /dev/hda: 255 heads, 63 sectors, 1048 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7 56196 fd Linux raid autodetect
/dev/hda2 8 1048 8361832+ 5 Extended
/dev/hda5 8 1015 8096728+ fd Linux raid autodetect
/dev/hda6 1016 1048 265041 82 Linux swap

Command (m for help):
 
Old 11-17-2001, 09:04 PM   #5
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Well,
I have seen suse report the free space as a partition. Therefore the start and end section in SuSe's fdisk is contigous.
However, thats not true with redhat. Redhat doesn't report free space as a partition, instead your eyes should be descerning enough to match each partition's end value to the start value of next partition. If you see the do not relate (or if there is a big gap between them), then you can infer the in-between space as free space.
Ravi
 
Old 11-17-2001, 09:28 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
That's what I thought. :-)

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Fdisk Failure On New Luns From Eva3000 Redhat lvdi744 Red Hat 0 11-23-2005 04:00 AM
fdisk and cfdisk not available in SuSE? fitzov Linux - Newbie 2 04-27-2005 03:48 AM
Fdisk does not apply in Redhat futurist Linux - General 3 03-17-2003 08:19 PM
need to get rid of redhat 7.2, and no fdisk wont work redcommie Linux - General 5 12-05-2002 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration