public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Disk Partitioning
@ 2006-03-16 10:50 Paul Stear
  2006-03-16 12:01 ` Hans-Werner Hilse
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Stear @ 2006-03-16 10:50 UTC (permalink / raw
  To: gentoo-user

Hi all,
I am so dumb.  I partitioned a new disk for 1 large partition, I then needed 
to make a file system and by mistake I entered
mke2fs -j /dev/sda and ignored the warning.  I soon discovered that I didn't 
have any partition so I created it again with fdisk and the made the file 
system correctly with mke2fs -j /dev/sda1

My problem now is that when I plug the disk in (it's am external USB disk) I 
get 2 icons on my kde desktop both saying 200G Media one is /dev/sda and the 
other /dev/sda1 but of course I only have 1 200G disk.

How can I correct this?

Paul
-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Disk Partitioning
  2006-03-16 10:50 [gentoo-user] Disk Partitioning Paul Stear
@ 2006-03-16 12:01 ` Hans-Werner Hilse
  2006-03-16 12:44   ` Paul Stear
  0 siblings, 1 reply; 6+ messages in thread
From: Hans-Werner Hilse @ 2006-03-16 12:01 UTC (permalink / raw
  To: gentoo-user

Hi,

On Thu, 16 Mar 2006 10:50:10 +0000 Paul Stear <gentoo@appjaws.plus.com>
wrote:

> My problem now is that when I plug the disk in (it's am external USB
> disk) I get 2 icons on my kde desktop both saying 200G Media one
> is /dev/sda and the other /dev/sda1 but of course I only have 1 200G
> disk.

Probably there are still the filesystem magic bytes written in the boot
sector (first 512 bytes). I think overwriting them should do the trick,
but I'd like a second opinion on this, before I advice you to do
"dd if=/dev/zero of=/dev/sda bs=512 count=1" (but if there isn't any
data on that drive, then go and try this...)

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Disk Partitioning
  2006-03-16 12:01 ` Hans-Werner Hilse
@ 2006-03-16 12:44   ` Paul Stear
  2006-03-16 17:55     ` Matthias Bethke
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Stear @ 2006-03-16 12:44 UTC (permalink / raw
  To: gentoo-user

On Thursday 16 Mar 2006 12:01, Hans-Werner Hilse wrote:
> Hi,
>
> On Thu, 16 Mar 2006 10:50:10 +0000 Paul Stear <gentoo@appjaws.plus.com>
>
> wrote:
> > My problem now is that when I plug the disk in (it's am external USB
> > disk) I get 2 icons on my kde desktop both saying 200G Media one
> > is /dev/sda and the other /dev/sda1 but of course I only have 1 200G
> > disk.
>
> Probably there are still the filesystem magic bytes written in the boot
> sector (first 512 bytes). I think overwriting them should do the trick,
> but I'd like a second opinion on this, before I advice you to do
> "dd if=/dev/zero of=/dev/sda bs=512 count=1" (but if there isn't any
> data on that drive, then go and try this...)
>
> -hwh
Thanks for the reply, I tried your suggestion but it didn't make any 
difference.
This is a print the raw data in the partition table
Device: /dev/sda
0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA

This is the same type of disk's print the raw data in the partition table
Device: /dev/sda
0x000: 33 C0 8E D0 BC 00 7C FB 50 07 50 1F FC BE 1B 7C
0x010: BF 1B 06 50 57 B9 E5 01 F3 A4 CB BE BE 07 B1 04
0x020: 38 2C 7C 09 75 15 83 C6 10 E2 F5 CD 18 8B 14 8B
0x030: EE 83 C6 10 49 74 16 38 2C 74 F6 BE 10 07 4E AC
0x040: 3C 00 74 FA BB 07 00 B4 0E CD 10 EB F2 89 46 25
0x050: 96 8A 46 04 B4 06 3C 0E 74 11 B4 0B 3C 0C 74 05
0x060: 3A C4 75 2B 40 C6 46 25 06 75 24 BB AA 55 50 B4
0x070: 41 CD 13 58 72 16 81 FB 55 AA 75 10 F6 C1 01 74
0x080: 0B 8A E0 88 56 24 C7 06 A1 06 EB 1E 88 66 04 BF
0x090: 0A 00 B8 01 02 8B DC 33 C9 83 FF 05 7F 03 8B 4E
0x0A0: 25 03 4E 02 CD 13 72 29 BE 46 07 81 3E FE 7D 55
0x0B0: AA 74 5A 83 EF 05 7F DA 85 F6 75 83 BE 27 07 EB
0x0C0: 8A 98 91 52 99 03 46 08 13 56 0A E8 12 00 5A EB
0x0D0: D5 4F 74 E4 33 C0 CD 13 EB B8 00 00 00 00 00 00
0x0E0: 56 33 F6 56 56 52 50 06 53 51 BE 10 00 56 8B F4
0x0F0: 50 52 B8 00 42 8A 56 24 CD 13 5A 58 8D 64 10 72
0x100: 0A 40 75 01 42 80 C7 02 E2 F7 F8 5E C3 EB 74 49
0x110: 6E 76 61 6C 69 64 20 70 61 72 74 69 74 69 6F 6E
0x120: 20 74 61 62 6C 65 00 45 72 72 6F 72 20 6C 6F 61
0x130: 64 69 6E 67 20 6F 70 65 72 61 74 69 6E 67 20 73
0x140: 79 73 74 65 6D 00 4D 69 73 73 69 6E 67 20 6F 70
0x150: 65 72 61 74 69 6E 67 20 73 79 73 74 65 6D 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 8B FC 1E 57 8B F5 CB 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 58 BB 35 CD 00 00 00 01
0x1C0: 01 00 07 3F E0 FF 20 00 00 00 E0 E7 49 17 00 00
0x1D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA
-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Disk Partitioning
  2006-03-16 12:44   ` Paul Stear
@ 2006-03-16 17:55     ` Matthias Bethke
  2006-03-16 18:58       ` Rick van Hattem
  0 siblings, 1 reply; 6+ messages in thread
From: Matthias Bethke @ 2006-03-16 17:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

Hi Paul,
on Thursday, 2006-03-16 at 12:44:15, you wrote:
> > "dd if=/dev/zero of=/dev/sda bs=512 count=1" (but if there isn't any
> > data on that drive, then go and try this...)
> >
> Thanks for the reply, I tried your suggestion but it didn't make any 
> difference.

If there's nothing on it yet, you can of course zero-out the whole
disk---bit of an overkill but will do the job :) I would have thought
killing the boot sector would do it as well but then perhaps the volume
manager could be looking for a root sector?

cheers!
  Matthias
-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Disk Partitioning
  2006-03-16 17:55     ` Matthias Bethke
@ 2006-03-16 18:58       ` Rick van Hattem
  2006-03-17 11:37         ` Paul Stear
  0 siblings, 1 reply; 6+ messages in thread
From: Rick van Hattem @ 2006-03-16 18:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]

On Thursday 16 March 2006 18:55, Matthias Bethke wrote:
> Hi Paul,
>
> on Thursday, 2006-03-16 at 12:44:15, you wrote:
> > > "dd if=/dev/zero of=/dev/sda bs=512 count=1" (but if there isn't any
> > > data on that drive, then go and try this...)
> >
> > Thanks for the reply, I tried your suggestion but it didn't make any
> > difference.
>
> If there's nothing on it yet, you can of course zero-out the whole
> disk---bit of an overkill but will do the job :) I would have thought
> killing the boot sector would do it as well but then perhaps the volume
> manager could be looking for a root sector?
>
> cheers!
>   Matthias
Normally it wouldn't

Problems like this can usually be solved by
1. wiping the first few sectors on the harddisk (I usually do "dd if=/dev/zero 
of=/dev/sda bs=1k count=100", I know it's way more then neede but it never 
hurts and types just as fast ;))
2. (s/c)fdisk the drive and create the new partition and reboot after it to be 
certain the partition table is read again (I've seen otherwise before)
3. mke2fs, mkreiserfs, or something similar :)

-- 
Rick van Hattem	Rick.van.Hattem(at)Fawo.nl

[-- Attachment #2: Type: application/pgp-signature, Size: 200 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Disk Partitioning
  2006-03-16 18:58       ` Rick van Hattem
@ 2006-03-17 11:37         ` Paul Stear
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Stear @ 2006-03-17 11:37 UTC (permalink / raw
  To: gentoo-user

On Thursday 16 Mar 2006 18:58, Rick van Hattem wrote:
> dd if=/dev/zero
> of=/dev/sda bs=1k count=100
Thanks for the help
That worked It is now only showing sda1
Paul
-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-17 11:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16 10:50 [gentoo-user] Disk Partitioning Paul Stear
2006-03-16 12:01 ` Hans-Werner Hilse
2006-03-16 12:44   ` Paul Stear
2006-03-16 17:55     ` Matthias Bethke
2006-03-16 18:58       ` Rick van Hattem
2006-03-17 11:37         ` Paul Stear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox