Re: [ubuntu-uk] mbr removal command

2007-12-04 Thread Neil Greenwood
On 03/12/2007, Colin Watson <[EMAIL PROTECTED]> wrote:
> On Sat, Dec 01, 2007 at 03:34:36PM +, norman wrote:
> > < snip >
> > > It should be sda1 for the first SATA drive and byte size is usually
> > > before count.
> >
> > Now I am puzzled, I always the first drive was xxx0 and not xxx1. Ah
> > well, live and learn. Thanks.
>
> Partition numbers start at 1 under Linux; there are no "xxx0" devices
> for disks. You're perhaps thinking of "/dev/sda", which accesses the
> whole disk.
>

...or the GRUB numbering system, which does start at 0. I believe
they've changed this for the next version of GRUB, so it will use the
same sda/hda type labels as the Linux kernel uses (but I could be
wrong).

Cofion,
Neil.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-03 Thread Colin Watson
On Sat, Dec 01, 2007 at 03:34:36PM +, norman wrote:
> < snip >
> > It should be sda1 for the first SATA drive and byte size is usually
> > before count.
> 
> Now I am puzzled, I always the first drive was xxx0 and not xxx1. Ah
> well, live and learn. Thanks.

Partition numbers start at 1 under Linux; there are no "xxx0" devices
for disks. You're perhaps thinking of "/dev/sda", which accesses the
whole disk.

-- 
Colin Watson   [EMAIL PROTECTED]

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread norman
   
> You just substitute "/dev/hda1" for the device you want, but I would
> have thought it'd be more like "/dev/sda" if you want to wipe the MBR..
> Also the order of the options to "dd" does not matter.

The object is to wipe the MBR and I assume it is the sda part which is
relevant in this case.

Norman


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread Terence Simpson
norman wrote:
> As a result of my research into the complete removal of the MBR I came
> across the following command:-
>
> dd if=/dev/zero of=/dev/hda1 bs=512 count=1
>
> I have 2 questions and I would be grateful for answers, please. Firstly,
> as I have only one hdd and that is a SATA drive, should I substitute
> sda0 for hda1 and, secondly, does it matter which comes first bs=512 or
> count=1, I have seen both and so am confused?
>
> Norman 
>
>
>   
You just substitute "/dev/hda1" for the device you want, but I would
have thought it'd be more like "/dev/sda" if you want to wipe the MBR..
Also the order of the options to "dd" does not matter.

Terence


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread norman
< snip >
> 
> It should be sda1 for the first SATA drive and byte size is usually
> before count.

Now I am puzzled, I always the first drive was xxx0 and not xxx1. Ah
well, live and learn. Thanks.

Norman


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread Dougie Richardson
Hi Norman,

On Sat, 2007-12-01 at 10:51 +, norman wrote:
> As a result of my research into the complete removal of the MBR I came
> across the following command:-
> 
> dd if=/dev/zero of=/dev/hda1 bs=512 count=1
> 
> I have 2 questions and I would be grateful for answers, please. Firstly,
> as I have only one hdd and that is a SATA drive, should I substitute
> sda0 for hda1 and, secondly, does it matter which comes first bs=512 or
> count=1, I have seen both and so am confused?

It should be sda1 for the first SATA drive and byte size is usually
before count.

-- 
Dougie Richardson // [EMAIL PROTECTED]

"Stop breathing down my neck!"  // blog.lynxworks.eu
"My breathing is merely a simulation!" //  wiki.lynxworks.eu
"So is my neck, stop it anyway!"  //gallery.lynxworks.eu


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread norman

> You would change hda1 to sda0 I would think bs=512 comes first but don't
> know for sure.

Thank you.

Norman


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/


Re: [ubuntu-uk] mbr removal command

2007-12-01 Thread Daniel Lamb
You would change hda1 to sda0 I would think bs=512 comes first but don't
know for sure.

Regards,
Daniel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of norman
Sent: 01 December 2007 10:51
To: ubuntu-uk
Subject: [ubuntu-uk] mbr removal command

As a result of my research into the complete removal of the MBR I came
across the following command:-

dd if=/dev/zero of=/dev/hda1 bs=512 count=1

I have 2 questions and I would be grateful for answers, please. Firstly,
as I have only one hdd and that is a SATA drive, should I substitute
sda0 for hda1 and, secondly, does it matter which comes first bs=512 or
count=1, I have seen both and so am confused?

Norman 


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/