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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
06-20-2009, 07:36 AM
|
#1
|
|
Member
Registered: Jan 2009
Posts: 187
Rep:
|
"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.
|
|
|
|
06-20-2009, 07:56 AM
|
#2
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,350
|
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. 
|
|
|
|
06-22-2009, 01:41 AM
|
#3
|
|
Member
Registered: Jan 2009
Posts: 187
Original Poster
Rep:
|
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.
|
|
|
|
01-25-2010, 07:39 AM
|
#4
|
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
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.
|
|
|
|
01-25-2010, 07:40 AM
|
#5
|
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
after creating the partitons, use 'partprobe' to make the kernel use the new partition table.
|
|
|
|
01-25-2010, 11:16 PM
|
#6
|
|
Member
Registered: Jan 2009
Posts: 187
Original Poster
Rep:
|
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.
|
|
|
|
01-26-2010, 10:06 AM
|
#7
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,350
|
Hi,
Then mark the Thread as [Solved] via the 'Thread Tools'.
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|