|
|
 |
 |
 |
 |
register |
bbs |
search |
rss |
faq |
about
|
 |
 |
meet up |
add to del.icio.us |
digg it
|
 |
 |
| Everything *NIX This is a general forum about all forms of *nix. Post your ideas and thoughts on this wonderful OS family. Talk about your personal favorite flavor of *nix and why you think it's so much better than the others. Anything pertaining to *nix and *nix administration should be posted here. |
 |
# 1

2008-11-19, 19:24
|
|
Regular
|
|
Staten Island New York (Ugh)
|
|
Partitions got renumbered, how do i find my swap
I reinstalled windows and got grub back on, but I lost a few small FAT partitions I was using as placeholders in the process.
I found my other partitions but I cant seem to find my swap. Im in linux with no swap ATM, how do i find my swap? I know what size it is.
|
# 2

2008-11-19, 22:55
|
|
Moderator
|
|
Sierra Vista. Arizona
|
|
Re: Partitions got renumbered, how do i find my swap
Try this for now:
http://www.cgsecurity.org/wiki/TestDisk
Alternatively, you said you knew what size it was, unfortunately, unless you know the cylinder you started and ended it at, the size may or may not matter.
For example, if you have sda1 and sda2, and you know SWAP was sda3, but sda1 and sda2 have not moved, you could potentially recover the partition, using the size with fdisk. Unfortunately, if any partitions overlap the cylinders, the size is insignificant.
Try TestDisk first, it is available for a bunch of operating saystems.
|
# 3

2008-11-21, 04:01
|
|
|
Re: Partitions got renumbered, how do i find my swap
You have a working Linux environment? Try fdisk -l. That's L as in Lima Bean. The output of that will be a list of every partition on every drive that Linux can figure out. Swap partitions are ID type 82, and fdisk will helpfully label them "Linux swap."
Translating the Linux-style /dev/sdx (or /dev/hdx, depending) to actual physical drive locations is another story. Fdisk will show starting and ending cylinders, though, as well as size (though only in blocks). It might be enough information for you, anyway.
|
# 4

2008-11-22, 00:02
|
|
|
Re: Partitions got renumbered, how do i find my swap
If you want us to help you further give us your MBR.
You can do so using dd if=/dev/sda of=~/mbr.bin count=1, then simply give us the file or the hexdump (hexdump -C -v ~/mbr.bin).
|
# 5

2008-11-22, 02:04
|
|
Regular
|
|
Staten Island New York (Ugh)
|
|
Re: Partitions got renumbered, how do i find my swap
My partitions just got renumbered, I only lost my FAT partitons, and fuck those anyway.
The fdisk -l worked, turned out my swap was still hda3.
|
# 6

2008-11-23, 05:17
|
|
|
Re: Partitions got renumbered, how do i find my swap
GParted should tell you no problem.
|
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
|
|
|
|
 |
 |
To the best of our knowledge, the text on this page may be freely reproduced and distributed.

totse.com certificate signatures
|
 |
 |
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
|
 |
 |
 |
 |
|
|