LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
Search this Thread
Old 06-20-2009, 08:36 AM   #1
ytd
Member
 
Registered: Jan 2009
Posts: 189

Rep: Reputation: 31
"WARNING: Re-reading the partition table failed with error 22: Invalid argument."


[root@herculetest ~]#
[root@herculetest ~]# fdisk /dev/vg0/space29
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 1032.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

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

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.
[root@herculetest ~]#



WARNING: Re-reading the partition table failed with error 22: Invalid argument.


Is there a problem ? Or should it be fine only with a reboot ? If it's a problem, how do I fix it and what did I do wrong ?

I see on the internet that this error appears to alot of people.
 
Old 06-20-2009, 08:56 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,459
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,

You should perform work on a valid device. What does your output for dmesg show for your storage that you wish too partition? Your not going to perform a partitioning on a filesystem but on a device so you can create a filesystem.
 
Old 06-22-2009, 02:41 AM   #3
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
You know what I think ? I think there's nothing wrong with that, it's just a warning that the kernel started to use the new table, which I can tell by the time that the partition already changed to Linux LVM (8E).

Are you really sure it's a problem ?

I have 800GB HD and I created physical volume in which I have created logical volumes of eight gigs which are for informix, those lv are pointed to raw devices (character devices) in which informix is working in them. Informix was stopped at the time I was trying to do fdisk /dev/vg0/space1 in which vg0 is my physical volume group and the space is the lv.
 
Old 01-25-2010, 08:39 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
This usually happens if the device does not contain a dos partition. You can use the 'o' switch in 'fdisk' to create an empty dos partition table and then use fdisk again to create the new partition.
 
Old 01-25-2010, 08:40 AM   #5
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
after creating the partitons, use 'partprobe' to make the kernel use the new partition table.
 
Old 01-26-2010, 12:16 AM   #6
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
This one's old. I have different problems now. But, anyway, that wasn't really a problem, as the "error" says, the new table will be used after reboot, that's why the linux dosen't read the partition immediately after I created it. I didn't want any "extension" if you may, on the partition, I mean like dos, ext2, fat32 etc. I just needed to create logical volumes in character mode for an informix server, which I successfully did.

Thread closed. But, thankx anyway.





WARNING: Re-reading the partition table failed with error 22: Invalid argument.
 
Old 01-26-2010, 11:06 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,459
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,

Then mark the Thread as [Solved] via the 'Thread Tools'.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Invalid argument" error while mounting NFS partition montylee Programming 12 07-23-2009 01:36 PM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 02:16 PM
Slackware 12.0 fdisk: Re-reading the partition failed Error 22: Invalid Argument Rayburn96 Linux - Software 1 08-02-2007 02:01 AM
alsa mixer sayin "function snd_mixer_load failed:invalid argument" callmeleroi Fedora 0 03-11-2007 10:05 AM
"Warning: add_groups: Invalid Argument" helliax Linux - General 3 03-20-2006 07:52 AM


All times are GMT -5. The time now is 01:38 PM.

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