Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lost partition table
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
youth against youth
n00b
n00b


Joined: 17 Jul 2006
Posts: 14
Location: Rimini

PostPosted: Fri Jul 21, 2006 10:44 am    Post subject: lost partition table Reply with quote

Hi, i'm experimentig a nasty problem that's scaring me a little..
It seems like i've no more got a partition table :cry:

here is my fstab

Code:
/dev/hda4               /                   reiserfs         noatime      0  1
/dev/hda3               none            swap            sw              0 0
/dev/hdc                /mnt/cdrom      iso9660         noauto,ro,users 0 0
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec0 0


and here is what fdisk -l /dev/hda says

Code:
Oni ~ # fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hda doesn't contain a valid partition table


The story so far (or "what have i done to do such a mess on my system"):

I've tried to run the swsusp using hibernate script, it has come falwless to the powerdown but, during rebooting, i've seen the boot process complainig about the absence of a swap partition

here is what /var/log/messages has to say:
Code:

Jul 21 09:52:26 Oni [   57.103107] Unable to find swap-space signature


When i run fdisk (or mac-fdisk for that matter) i've got this scaring output
Code:

Oni log # mac-fdisk /dev/hda
The number of cylinders for this disk is set to 16383.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

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

   Device Boot   Begin    Start      End   Blocks   Id  System

Command (m for help):


So, where is my freakin partition table?
I've tryed to mkswap & swapon.
It seemed to work but it's not, i can create the swap fs on the partition, I can turn it on with swapon but the system wouldn't see it..
Now i'm asking myself:
    - how could this system boot if it has no partition table?
    - it's safe to reboot and may it fix the problem or i will not be able to boot agains?

Any help would be really appreciated =)

PS i'm using gentoo-sources-2.6.17-rc3 with swsusp on a powerbook 12' 1Ghz (yes,the one with the infamous Nvida FX 5200 Go-And-Get-Yourself-Blessed )


UPDATE: emerged parted and gparted..they seem to read correctly the partiotion table..
_________________
--
Cristiano Balducci
Think for yourself and question authority
Back to top
View user's profile Send private message
radoslawc
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2005
Posts: 112
Location: POLAND

PostPosted: Fri Jul 21, 2006 12:29 pm    Post subject: Reply with quote

Hi
try this for guessing partition layout, works sometimes ;)

edit: ah I see your update yo seem to found it already cheers
_________________
“You know all those extra lines of code that we sometimes refer to as bloatware. It's actually very important and efficient stuff. There is some very substantial functionality built into the operating system.” Laura DiDio
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jul 21, 2006 1:42 pm    Post subject: Reply with quote

Well, first of all, fdisk should never be used on a mac partitioned disk, it will never show useful information (it's only for PC partitions). If you have written a PC partition to a disk (with fdisk) already containing mac partition, it can screw up like this. If parted reads the partition info fine, have you tried letting it save the partitions info again to overwrite the dodgy info? Make sure that you write down your current partitions and extents just in case!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum