LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-11-2010, 03:55 PM   #1
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Rep: Reputation: 0
Wink I can access data on HD, but parted sees it as unallocated space


Ok, thanks for your interest in the first place.
I bought a second hard drive, (seagate, 1TB) and followed some instructions about how should i format it. Unfortunately i don't remember where. I ended up with a fully functional disk and copied to it about 400 Gb of data. As far as i knew there was a single 935Gb partition. I needed to shrink the partition to create a smaller one i need in vfat, and every partition manager i tried (gparted, parted, Kde's partition manager, testdisk) sees the disk fine, as a 1TB unallocated space hard drive. I realize, the data was copied directly to /dev/sdb, not /dev/sdb1. I can access the data with no trouble, it gets mounted on boot and on use i have no issue. But i can't edit the partition table, because as far as parted is concerned, it's all unallocated space. I tried running testdisk (even deep) and parted rescue, but they don't see any partitions. Any thoughts? maybe some way of making a new partition table without erasing data=?

Thanks in advance
 
Old 07-11-2010, 04:07 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What dark magic are you performing?

Post your /etc/fstab, the output of "mount" when the data drive is mounted, and the output of "fdisk -l".
 
Old 07-11-2010, 04:22 PM   #3
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/sdb /media/data ext4 defaults 0 0
UUID=1edc0739-9c4a-4ec3-b81a-6a6560f3302b / ext4 defaults 0 0
UUID=abdac117-a800-4d54-aedc-0834be71a22c swap swap defaults 0 0
UUID=08d06ab6-6bbf-482d-91ee-75c41767586e /home ext4 defaults 0 0
mount's entry:

/dev/sdb on /media/data type ext4 (rw)

everything else on mount is about the other hard drive.

annd the fdisk -l:

Disco /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3d8bf86f

Disposit. Inicio Comienzo Fin Bloques Id Sistema
[evildrake@chakra ~]$

It is in spanish, but still, there's no partition shown. Still, with the partition mounted, i can access the data perfectly.
 
Old 07-11-2010, 04:56 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You didn't partition the disk.
So it has no partitions, so there's no partition table.
There is a filesystem, but that's all there is.
You did not do it "right", even if it is "working".

You need to save the data somewhere else, partition the 1TB disk, format it, and then copy the data back.
Then the partitioning tools will work as expected.
 
Old 07-11-2010, 05:01 PM   #5
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah, i understand that much. The thing is, moving 400Gb around is impossible for me atm, so i was wondering if there is a way around, to partition it but stay able to rescue the information.
 
Old 07-11-2010, 05:05 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Not AFAIK.
 
Old 07-11-2010, 05:09 PM   #7
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Well, bummer. Thanks for your help, though.
 
Old 07-11-2010, 05:40 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I also can't help, but interested in what sector zero looks like (the filesystem metadata). Want to post the output from this (merely reading that sector)?.
Code:
dd if=/dev/sdb count=1 | hexdump -C | less
 
Old 07-11-2010, 05:50 PM   #9
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Here's the output.

Quote:
00000000 eb 48 90 00 00 00 00 00 00 00 00 00 00 00 00 00 |.H..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 02 |................|
00000040 80 00 00 20 01 00 00 00 00 02 fa 90 90 f6 c2 80 |... ............|
00000050 75 02 b2 80 ea 59 7c 00 00 31 c0 8e d8 8e d0 bc |u....Y|..1......|
00000060 00 20 fb a0 40 7c 3c ff 74 02 88 c2 52 be 81 7d |. ..@|<.t...R..}|
00000070 e8 36 01 f6 c2 80 74 56 b4 41 bb aa 55 cd 13 5a |.6....tV.A..U..Z|
00000080 52 72 4b 81 fb 55 aa 75 45 a0 41 7c 84 c0 78 3e |RrK..U.uE.A|..x>|
00000090 75 05 83 e1 01 74 37 66 8b 4c 10 be 05 7c c6 44 |u....t7f.L...|.D|
000000a0 ff 01 66 8b 1e 44 7c c7 04 10 00 c7 44 02 01 00 |..f..D|.....D...|
000000b0 66 89 5c 08 c7 44 06 00 70 66 31 c0 89 44 04 66 |f.\..D..pf1..D.f|
000000c0 89 44 0c b4 42 cd 13 72 05 bb 00 70 eb 7d b4 08 |.D..B..r...p.}..|
000000d0 cd 13 73 0a f6 c2 80 0f 84 e8 00 e9 8d 00 be 05 |..s.............|
000000e0 7c c6 44 ff 00 66 31 c0 88 f0 40 66 89 44 04 31 ||.D..f1...@f.D.1|
000000f0 d2 88 ca c1 e2 02 88 e8 88 f4 40 89 44 08 31 c0 |..........@.D.1.|
00000100 88 d0 c0 e8 02 66 89 04 66 a1 44 7c 66 31 d2 66 |.....f..f.D|f1.f|
00000110 f7 34 88 54 0a 66 31 d2 66 f7 74 04 88 54 0b 89 |.4.T.f1.f.t..T..|
00000120 44 0c 3b 44 08 7d 3c 8a 54 0d c0 e2 06 8a 4c 0a |D.;D.}<.T.....L.|
00000130 fe c1 08 d1 8a 6c 0c 5a 8a 74 0b bb 00 70 8e c3 |.....l.Z.t...p..|
00000140 31 db b8 01 02 cd 13 72 2a 8c c3 8e 06 48 7c 60 |1......r*....H|`|
00000150 1e b9 00 01 8e db 31 f6 31 ff fc f3 a5 1f 61 ff |......1.1.....a.|
00000160 26 42 7c be 87 7d e8 40 00 eb 0e be 8c 7d e8 38 |&B|..}.@.....}.8|
00000170 00 eb 06 be 96 7d e8 30 00 be 9b 7d e8 2a 00 eb |.....}.0...}.*..|
00000180 fe 47 52 55 42 20 00 47 65 6f 6d 00 48 61 72 64 |.GRUB .Geom.Hard|
00000190 20 44 69 73 6b 00 52 65 61 64 00 20 45 72 72 6f | Disk.Read. Erro|
000001a0 72 00 bb 01 00 b4 0e cd 10 ac 3c 00 75 f4 c3 00 |r.........<.u...|
000001b0 00 00 00 00 00 00 00 00 6f f8 8b 3d 00 00 00 00 |........o..=....|
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
 
Old 07-11-2010, 07:13 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Are you booting off that disk ?.
Didn't expect to see that in the MBR - no reason why not I guess.

Soooo ...
I see a blank partition table. I'd reckon you could allocate a partition to cover the data you have.
Not recommending it for you if you can't back up your data, but I might have to go find an old disk to test this.
 
Old 07-11-2010, 08:43 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
O.K., ignore the above. Your data will be at risk.

I had an old 4 Gig drive sitting around. Zeroed it, and formatted as ext3, copied some data over.
Made sure that was accessable, then added a partition to cover the entire drive. Can't mount it. Non-zero data starts at sector 2, not 63 as would normally be needed for a "standard" partition.
I played with the start sector of a partition covering the entire drive, but couldn't get it to mount.
 
Old 07-12-2010, 12:13 AM   #12
evildrake
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Well, you sir are too kind. Now i know for sure that the only way i can partition my drive will erase all the data, so a full backup is in order. Thanks for your commitment.
 
Old 07-12-2010, 12:55 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Not entirely philanthropic on my behalf.
This interested me enough to go have a look.

Backups (current ones) are always an excellent idea.
 
  


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
Unallocated Space in Gparted? magic8ball88 Linux - Newbie 11 05-22-2010 01:53 AM
Array unallocated space in c Cyhaxor Programming 14 12-02-2009 02:36 PM
Giving Unallocated space to /home mickeyboa Fedora 3 06-30-2009 02:36 PM
partioning unallocated space Ledft Linux - Newbie 4 05-30-2006 11:23 PM
Format ext3 ONLY on unallocated space X-Crawler Linux - General 3 03-16-2004 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:20 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