Re: Recover stupid mistake

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Martin wrote:

> Well I've made some progress, I have my /,boot and home via parted rescue

> Only problem is that now parted only sees swap as p4, rather than an
> extended partition with swap and my main 711 Gig storage partition

You know where the extended partition starts and ends, you just miss
the end-of-swap/begin-of-data position.
I suppose your swap partition is a well rounded number (1G? 1.5G? 2G?).
Can you read any logs generated when the system was ok?
Or you can try a trick like this:

  [root@thinkpad ~]# file -s /dev/sda7
  /dev/sda7: Linux/i386 swap file (new style) 1 (4K pages) size 1222821 pages
  [root@thinkpad ~]$ bc
  bc 1.06
  Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
  This is free software with ABSOLUTELY NO WARRANTY.
  For details type `warranty'.
  1222821*4096
  5008674816
  quit
  [rragusa@thinkpad ~]$

where I understand that my swap partition is around 5,000,000,000 bytes,
which is probably what fdisk gave me for "+5G".

I think the partition size is written into swap space by mkswap, so you
will have the correct number even if you temporarily create a bigger
swap extending partly into your 711G partition.

-- 
   Roberto Ragusa    mail at robertoragusa.it
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux