Re: [ubuntu-uk] how to change hdd/partition numbering. SOLVED

2008-01-26 Thread Vitorio Okio
 That sounds a bit dangerous - does that work by recovering the partition
 structure after the partition table is changed/wiped?

Solved it this way. Created a new primary partition as wanted but in the 
middle of the HDD and numbered it sda1. Get fdisk complaining about 
incorrect partitions ordering as expected and let it to correct it.

After this has to reinstall GRUB, since it could not boot reporting Error 
15 (file not found). This took some research and 5 minutes of work. :-)

Now everything is back in perfect order. The entire story was very 
educational for me as a newbie. I've learnt from it a lot.

Thanks for your help.

Cheers.
Vito



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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Kris Douglas
On 23/01/2008, Vitorio Okio [EMAIL PROTECTED] wrote:
 I've deleted with GParted unwanted Dell Utility partition sited the first
 on my HDD.  This partition was set as /dev/sda1, so all others followed
 correspondignly: /dev/sda2, /dev/sda3, etc.

 Now after deleting and booting back in Ubuntu my now first partition is
 still marked as /dev/sda2. And all others follow.

 How can I change this?  I would like my first partition being set /dev/
 sda1, etc.?

 Thank you.



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


That's the FSTAB mount points, I don't know if the OS would like these
being changed, as GRUB bases its boot on these mount points... I'm not
sure, anybody else?

-- 
Kris Douglas
  Softdel Limited Hosting Services
  Web: www.softdel.net
  Mail: [EMAIL PROTECTED]

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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Renjith Nair
These links may be of help although i personally support Kris's comments..

http://ubuntuforums.org/showthread.php?t=246506 (Some ideas about changing
the name for USB HD, the technique is similar for normal hard disk too)

http://www.faqs.org/docs/Linux-mini/Partition.html ( Linux partition Guide)

Regards,
Renjith

On 23/01/2008, Kris Douglas [EMAIL PROTECTED] wrote:

 On 23/01/2008, Vitorio Okio [EMAIL PROTECTED] wrote:
  I've deleted with GParted unwanted Dell Utility partition sited the
 first
  on my HDD.  This partition was set as /dev/sda1, so all others followed
  correspondignly: /dev/sda2, /dev/sda3, etc.
 
  Now after deleting and booting back in Ubuntu my now first partition is
  still marked as /dev/sda2. And all others follow.
 
  How can I change this?  I would like my first partition being set /dev/
  sda1, etc.?
 
  Thank you.
 
 
 
  --
  ubuntu-uk@lists.ubuntu.com
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
  https://wiki.kubuntu.org/UKTeam/
 

 That's the FSTAB mount points, I don't know if the OS would like these
 being changed, as GRUB bases its boot on these mount points... I'm not
 sure, anybody else?

 --
 Kris Douglas
   Softdel Limited Hosting Services
   Web: www.softdel.net
   Mail: [EMAIL PROTECTED]

 --
 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/


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Tom Bamford
Vitorio Okio wrote:
 I've deleted with GParted unwanted Dell Utility partition sited the first 
 on my HDD.  This partition was set as /dev/sda1, so all others followed 
 correspondignly: /dev/sda2, /dev/sda3, etc.

 Now after deleting and booting back in Ubuntu my now first partition is 
 still marked as /dev/sda2. And all others follow.

 How can I change this?  I would like my first partition being set /dev/
 sda1, etc.?

 Thank you
Hi,

You can renumber your partitions but you'll need a live CD to do it 
with. Assuming you have either backed up your entire system or you don't 
care if you nuke it by accident or by means of a power cut - boot off 
the live cd, then run (in a terminal window)

sudo fdisk /dev/sda


Press x to go into the fdisk advanced menu, then press f to fix the 
partition order. You'll need to update your grub configuration, so mount 
your /boot (or /) partition in a temporary location and locate your 
system's /boot/grub/menu.lst file. Update any partition references in 
the notation hd(0,1) - the second number may have to be knocked down 
one to reflect the new order.

I would also check to see if any of your partition UUIDs have changed as 
a result of renumbering them. Open your grub menu file in one window and 
a terminal in the other. Run this command in the terminal

ls -l /dev/disk/by-uuid

to list your partition UUIDs and manuall inspect your grub file to make 
sure they match up. Make any corrections where necessary, making sure 
the line root=UUID=1234567890 parameter is correct on any line 
beginning with the word kernel. Once done, save the menu file, unmount 
your partitions and reboot your system. Hopefully it will boot, if not 
then note down any errors and reboot into the live CD.


Hope this helps,
Tom


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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Vitorio Okio
On Wed, 23 Jan 2008 16:08:14 +, Tom Bamford wrote:

 You can renumber your partitions but you'll need a live CD to do it
 with. Assuming you have either backed up your entire system or you don't
 care if you nuke it by accident or by means of a power cut - boot off
 the live cd, then run (in a terminal window)
 
 sudo fdisk /dev/sda
 
 
 Press x to go into the fdisk advanced menu, then press f to fix the
 partition order. You'll need to update your grub configuration, so mount
 your /boot (or /) partition in a temporary location and locate your
 system's /boot/grub/menu.lst file. Update any partition references in
 the notation hd(0,1) - the second number may have to be knocked down
 one to reflect the new order.
 
 I would also check to see if any of your partition UUIDs have changed as
 a result of renumbering them. Open your grub menu file in one window and
 a terminal in the other. Run this command in the terminal
 
 ls -l /dev/disk/by-uuid
 
 to list your partition UUIDs and manuall inspect your grub file to make
 sure they match up. Make any corrections where necessary, making sure
 the line root=UUID=1234567890 parameter is correct on any line
 beginning with the word kernel. Once done, save the menu file, unmount
 your partitions and reboot your system. Hopefully it will boot, if not
 then note down any errors and reboot into the live CD.

Looks like a great solution. I'll give it a try.

Thank you.



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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Vitorio Okio
On Wed, 23 Jan 2008 16:08:14 +, Tom Bamford wrote:

 Vitorio Okio wrote:
 I've deleted with GParted unwanted Dell Utility partition sited the
 first on my HDD.  This partition was set as /dev/sda1, so all others
 followed correspondignly: /dev/sda2, /dev/sda3, etc.

 Now after deleting and booting back in Ubuntu my now first partition is
 still marked as /dev/sda2. And all others follow.

 How can I change this?  I would like my first partition being set /dev/
 sda1, etc.?

 Thank you
 Hi,
 
 You can renumber your partitions but you'll need a live CD to do it
 with. Assuming you have either backed up your entire system or you don't
 care if you nuke it by accident or by means of a power cut - boot off
 the live cd, then run (in a terminal window)
 
 sudo fdisk /dev/sda
 
 
 Press x to go into the fdisk advanced menu, then press f to fix the
 partition order. You'll need to update your grub configuration, so mount
 your /boot (or /) partition in a temporary location and locate your
 system's /boot/grub/menu.lst file. Update any partition references in
 the notation hd(0,1) - the second number may have to be knocked down
 one to reflect the new order.
 
 I would also check to see if any of your partition UUIDs have changed as
 a result of renumbering them. Open your grub menu file in one window and
 a terminal in the other. Run this command in the terminal
 
 ls -l /dev/disk/by-uuid
 
 to list your partition UUIDs and manuall inspect your grub file to make
 sure they match up. Make any corrections where necessary, making sure
 the line root=UUID=1234567890 parameter is correct on any line
 beginning with the word kernel. Once done, save the menu file, unmount
 your partitions and reboot your system. Hopefully it will boot, if not
 then note down any errors and reboot into the live CD.
 

Unfortunately it did not worked. Here is the actual output of my try.

At the first run fdisk reported partitions out of order after printing 
the partition table.  Then after applying 'x' and 'f' it reported that 
partition order was successfully changed. 

In reality though it left the partition table untouched. And it starts 
from sda2, etc. as before the fix.  The only difference is that fdisk 
is now happy :-) and does not report partitions are out of order 
anymore. 

I am aware of another way that I is described in Linux Partition HOWTO 
as a partition table recovery after deleting partition (and this is 
exactly my case)  It also was advised me in another newsgroup.  It is 
much harder though, since it involves the deletion of each of the 
existing partition and careful recreation of them using new ordering 
numbers but same partition data (start, end, units, etc.) from the 
existing partition table.

I'll give it try tomorrow.

The method suggested by you looked very attractive in its simplicity.  
But apparently it is to work in cases when the partition numbering is 
messed up in the middle of their sequence. At least I've learnt such an 
option exists, it can save me some trouble in the future.

Thank you.



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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Tom Bamford
Vitorio Okio wrote:
 
 Unfortunately it did not worked. Here is the actual output of my try.
 
 At the first run fdisk reported partitions out of order after printing 
 the partition table.  Then after applying 'x' and 'f' it reported that 
 partition order was successfully changed. 
 
 In reality though it left the partition table untouched. And it starts 
 from sda2, etc. as before the fix.  The only difference is that fdisk 
 is now happy :-) and does not report partitions are out of order 
 anymore. 
 

Oops, I forgot to say actually that you will need to enter 'w' in fdisk 
(whilst in the main menu) to make it write the changes to disk.

 I am aware of another way that I is described in Linux Partition HOWTO 
 as a partition table recovery after deleting partition (and this is 
 exactly my case)  It also was advised me in another newsgroup.  It is 
 much harder though, since it involves the deletion of each of the 
 existing partition and careful recreation of them using new ordering 
 numbers but same partition data (start, end, units, etc.) from the 
 existing partition table.
 
 I'll give it try tomorrow.
 

That sounds a bit dangerous - does that work by recovering the partition 
structure after the partition table is changed/wiped?

Regards,
Tom


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


Re: [ubuntu-uk] how to change hdd/partition numbering

2008-01-23 Thread Vitorio Okio
 Oops, I forgot to say actually that you will need to enter 'w' in
 fdisk
 (whilst in the main menu) to make it write the changes to disk.

I sertainly used 'w'.

When applyed at the first time, fdisk reported something like fixed
or changes applyed, I do not rememer the exact wording.
But when I found that no changes were actualy made and tried it again,
it reported back Partitions are in right order. Nothing to correct.
:-(

By the way one change was made though.  Before it was showing an empty
sda1 partition at the begining of the partition table, the deleted one
I guess.  And after the fix it did not show it anymore.

What is interesting though that if I run sfdisk instead of fdisk,
sfdisk still shows that empty sda1 partitions in my table.  So, using
'f' option just stopped fdisk from seeng the empty sda1 partition
entry in the partition table.

Mistery. :-)

I certainly can use the system as it is.  At the end who cares how the
partitions are numbered, as soon as the system is happy and working.
It is more for a learning sake.  And then I'm probably perversed:
things like this puzzle me untill I find a solution.  This is why I'm
learning Linux and willing to go away from Windows.  :-)




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


[ubuntu-uk] how to change hdd/partition numbering

2008-01-22 Thread Vitorio Okio
I've deleted with GParted unwanted Dell Utility partition sited the first 
on my HDD.  This partition was set as /dev/sda1, so all others followed 
correspondignly: /dev/sda2, /dev/sda3, etc.

Now after deleting and booting back in Ubuntu my now first partition is 
still marked as /dev/sda2. And all others follow.

How can I change this?  I would like my first partition being set /dev/
sda1, etc.?

Thank you.



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