LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-21-2009, 01:18 AM   #1
srinivasasathi
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Please help me with fdisk


Hi ,

I'm partitioning a LUN using fdisk. It was a Netapp LUN. I'll have to correct the starting sector to 64 as recomended by netapp. I'm getting the following error while doing it


Command (m for help): p

Disk /dev/mapper/LUN: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1009, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1009, default 1009):
Using default value 1009

Command (m for help): p

Disk /dev/mapper/LUN: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes

Device Boot Start End Blocks Id System
/dev/mapper/LUN1 1 1009 2095662 83 Linux

Command (m for help): x

Expert command (m for help): m
Command action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order
g create an IRIX (SGI) partition table
h change number of heads
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit

Expert command (m for help): b
Partition number (1-4): 1
New beginning of data (62-4191385, default 62): 64

Expert command (m for help): p

Disk /dev/mapper/LUN: 67 heads, 62 sectors, 1009 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 66 62 1008 64 4191322 83
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 1, 3)

2 00 0 0 0 0 0 0 0 0 00
3 00 0 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 0 00

Expert command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


I'm using Redhat 4.6

Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

can anyone help me to resolve this problem.

Thanks in advance
 
Old 11-21-2009, 01:27 AM   #2
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
usually the LUN is a raw-disk unless it is formatted... you can try "partprobe" to avoid rebooting the system after working with fdisk.
 
Old 11-21-2009, 01:40 AM   #3
srinivasasathi
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
if i did partprobe .. it was saying

A bug has been detected in GNU parted. Please email a bug report to bug-parted@gnu.org containing the version (1.6.19) and the following message:Assertion (head_size <= 63) at disk_dos.c:569 in function probe_partition_for_geom() failed.
A bug has been detected in GNU parted. Please email a bug report to bug-parted@gnu.org containing the version (1.6.19) and the following message:Assertion (head_size <= 63) at disk_dos.c:569 in function probe_partition_for_geom() failed.
 
Old 11-21-2009, 01:43 AM   #4
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
perhaps, you've to reboot then... partprobe usually does the trick for most RH users...

what the error means is that "Disk Geometry probing failed" using this utility... because of the head size

Cheers !

Last edited by gnukish; 11-21-2009 at 01:44 AM.
 
Old 11-21-2009, 01:55 AM   #5
srinivasasathi
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
actually .. my problem was not with partprobe.. i'm concerned abt the error

Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 1, 3)


please help me in solving this..

Thanks in advance
 
Old 11-21-2009, 02:37 AM   #6
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
The problem obviously lies in the logical definition of the drive. In other words your partitioning scheme is messed up.

Delete that particular partition and try recreating it... (should I tell you to backup data if you have any?)

Try fdisk -l or use cfdisk if fdisk gives the same error. Hope that helps !
 
  


Reply

Tags
different, has, partition


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 11:51 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Fdisk help GUIPenguin Linux - General 3 01-22-2005 03:24 PM
two hd in fdisk JROCK1980 Slackware 1 03-01-2004 05:29 PM
Where can I get fdisk? Nevetsmik103081 Linux - Software 2 06-18-2003 04:45 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration