LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-25-2012, 05:25 AM   #1
deswarf
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Rep: Reputation: Disabled
crazy partition puzzle (ext4+ntfs+ufs)


I have been trying to solve this problem for approximately a few days now, but neither coffee nor beer help...


The topic is as follows.

There are 2 hard drives: /dev/sda where safely nest win and backtrack,
and /dev/sdb that partitioned as:
  1. 119 Gb - ext4 (archive, named [New Volume])
  2. Extended partition, divided in
    • 107 Gb - ntfs
    • 88 Gb - ntfs
    • 5 Gb - unallocated
  3. 5 Gb - swap (probably belongs to no system but could be used as additional swap by debian from /dev/sda)
Gnome-disk-utility showed 119 Gb situated in the beginning of hard drive, as I could remember.


After installation of freebsd on that 107 Gb partition (facepalm...blonde...haven't thought ) and, moreover, merging of those 5 Gb partiotions into one 10 Gb of freebsd swap (during freebsd installation it asked about segment sizes but I told to keep them as is), 119 Gb disk was ok, freebsd booted from grub as hd1,2,a i.e. from 3rd partition of 2nd hard drive, /dev/sdb3, and was ok too, but 88 Gb disk disappeared as one should expect. Moreover, there appeared /dev/sdc1, /dev/sdc2,...,/dev/sdc6 respectivelly to amount of freebsd drives that were created during installation (/usr,/var,/tmp...).


Having thought something like "partition flew, nothing to worry about, we'll restore it..." I ran testdisk from /dev/sda's backtrack. 88Gb disk appeared and worked fine, but... all other partitions disappeared.


Next testdisk resulted, if to believe to gnome-disk-utility and testdisk, in the mixed mosaic of partitions on 2nd hard drive in the order like:
sdc1-sdb1-sdc2-sdb2-sdc3...or even worse...in other words, it mixed all the disks on /dev/sdb and those begins from some of ufs disk instead of ext4 [New Volume].

Now testdisk shows it like:
Code:
Disk /dev/sdb - 320 GB / 298 GiB - CHS 38914 255 63
     Partition               Start        End    Size in sectors
>D Linux Swap               0   1  1   126 254 47    2040176
 D Linux                    0  32 33 14480 241 33  232634368 [New Volume]
 D HPFS - NTFS           1427   1  1 14480 254 63  209712447
 D Linux                 7073  55 23 21554   9 23  232634368 [New Volume]
 D FreeBSD              14480 241 34 27534 253 62  209713295
 D HPFS - NTFS          14481   1  1 27534 254 63  209712447
 D HPFS - NTFS          27535   1  1 38258  49 54  172268073
 D HPFS - NTFS          27535   1  1 38912 254 63  182787507
 D Linux Swap           38258  69 20 38913  69 52   10522608
 D Linux Swap           38878  22 57 38913  69 52     565232
and
Code:
root@bt:~# fdisk -l /dev/sdb

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x891f2998

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            7074       21555   116317184   83  Linux
The thing that I don't like the most is that [New Volume] starts not at the beginning of /dev/sdb and there is a space before it.



So, what types should be assigned to partitions to everything work fine? And why did that /dev/sdc occured as a separated unit? I've stucked with this stuff... , any suggestions how to solve this puzzle? I don't care already about the rest of partitions, I only want the 119 Gb disk is to returned.
 
Old 11-25-2012, 06:08 AM   #2
deswarf
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Well, fine, another overdose of coffee led to deleting all the partitions and creating of 119 Gb by force specially at the very beginning of drive, despite I was not sure about direct size in bytes of it. Booted from dvd to be sure that none of /dev/sdb's parts is in use. It mounts. Haven't checked the structure of files yet but if mounts I believe that could be read? Then the question remains if there is a possibility to assign "right" types to the rest of partitions? And why did that "extra" /dev/sdc appear?

Last edited by deswarf; 11-25-2012 at 06:54 AM.
 
Old 11-26-2012, 07:38 AM   #3
deswarf
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Solved by forced repartitioning "by hands" without relying on testdisk. Files saved.
 
  


Reply



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
Moving Vbox partition from ext4 fs to NTFS silvyus_06 Linux - General 5 12-04-2010 10:21 AM
recovering a 'ntfs' partition which got ruined by mkfs.ext4 command jagsir Linux - General 6 09-19-2010 07:53 AM
ext4 vs ntfs partition space used jithin1987 Linux - Newbie 1 11-04-2009 07:37 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM
ntfs to ufs... anyone done this before ? da1 *BSD 4 03-22-2008 11:53 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:08 AM.

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
Open Source Consulting | Domain Registration