Re: [expert] Moving partitions

2000-10-27 Thread Buchan Milne

You also need to edit the grub/lilo config files to pass the right root
location, if you are moving your root, or be prepared to do it on the
lilo commandline.

Buchan

Charles Curley wrote:
 
 On Thu, Oct 26, 2000 at 01:10:28PM -0400, Jeff Malka wrote:
  Not sure I understand.  I can move the partition effortlessly using
  Partition Magic.  I just needed to know if this would mess up the path
  structure or something else that linux uses.
 
  Is that what cat is about?
 
 No. Cat will move the data, but won't modify how the partitions are
 mounted. What you need to do is move the data around from partition to
 partition, then edit /etc/fstab to mount the new partition where the old
 one was. That will preserve your paths and other data.
 
 Also, I'm not sure that cat is appropriate here. It would work copying to
 a new partition of the smae size. I don't think it will work if the new
 partition is smaller, and if the new one is larger, you risk losing the
 difference.
 
 I'd look into cpio, dd and tar for this.
 
 
  Jeff Malka [EMAIL PROTECTED]
  Registered Linux user  183185
 
  - Original Message -
  From: Rivera, Oscar [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, October 26, 2000 12:33 PM
  Subject: RE: [expert] Moving partitions
 
 
   you can use the cat command to move the partition.
  
   cat /dev/hd?  /dev/hd?
 
 --
 
 -- C^2
 
 No windows were crashed in the making of this email.
 
 Looking for fine software and/or web pages?
 http://w3.trib.com/~ccurley
 
   
 Keep in touch with http://mandrakeforum.com:
 Subscribe the "[EMAIL PROTECTED]" mailing list.

-- 
|--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone   +27824722231
email   mailto:[EMAIL PROTECTED]
Centre for Automotive Engineering   http://www.cae.co.za
South Africas first satellite:http://sunsat.ee.sun.ac.za
Control Models  http://www.control.co.za
|Registered Linux User #182071-|



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Charles Curley

On Thu, Oct 26, 2000 at 10:16:15AM -0400, Jeff Malka wrote:
 When I first installed linux, for reasons I no longer remember I installed
 Mandrake 7.1 as follows on my 8 GB second HD:
 
 I have a windows extended partition of 5.3 GB.  Within and at the end of
 this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main linux
 partition (hdb11).  Beyond this extended partition I have my /usr, swap,
 /opt, /home partitions (hdb2, hdb3, hdb4).
 
 I own a full copy of Partition Magic which I used during the install.  I
 would like to move the main linux partition "out" of the windows extended
 partition into free space beyond it..  If I moved it using Partition Magic,
 from within NT, will I still be able to boot into linux and will the
 partition move mess up things in linux?

This may be a silly question, but why do you want to move it? "If it
works, don't fix it."

Meanwhile, it would probably help if you gave us a more detailed view of
the drive in question. As root:

fdisk -l /dev/hdb




-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Jeff Malka

 This may be a silly question, but why do you want to move it? "If it
 works, don't fix it."

As a "learning experience" (this is not yet my main pc)
and because I have had a few problems that could be related to it:

1) grub will not work on it.  lilo does.
2) every so often, after I logout to the main graphic login screen (Mandrake
7.1) I lose the mouse which restores itself if I restart x.
3) I was told originally not to do it this way

 Meanwhile, it would probably help if you gave us a more detailed view of
 the drive in question. As root:

 fdisk -l /dev/hdb

Disk /dev/hdb: 240 heads, 63 sectors, 1090 cylinders
Units = cylinders of 15120 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hdb1   * 2   721   54432005  Extended
/dev/hdb2   833   951899640   83  Linux
/dev/hdb3   722   745181440   83  Linux
/dev/hdb4   746   832657720   83  Linux
/dev/hdb5 276566968+   6  FAT16
/dev/hdb677   146529168+   6  FAT16
/dev/hdb7   147   187309928+   6  FAT16
/dev/hdb8   188   201105808+   6  FAT16
/dev/hdb9   202   243317488+   6  FAT16
/dev/hdb10  244   354839128+   6  FAT16
/dev/hdb11  456   721   2010928+  83  Linux

Partition table entries are not in disk order

Disk /dev/hda: 128 heads, 63 sectors, 767 cylinders
Units = cylinders of 8064 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hda1   * 2   1295160966  FAT16
/dev/hda2   157   767   24635525  Extended
/dev/hda3   130   156108864   16  Hidden FAT16
/dev/hda4 1 1  4000+   a  OS/2 Boot Manager
/dev/hda5   *   157   238330592+   6  FAT16
/dev/hda6   *   239   497   1044256+   6  FAT16
/dev/hda7   *   498   701822496+   6  FAT16
/dev/hda8   702   753209632+  82  Linux swap

Partition table entries are not in disk order


Hope this helps.

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: Charles Curley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 11:00 AM
Subject: Re: [expert] Moving partitions


 On Thu, Oct 26, 2000 at 10:16:15AM -0400, Jeff Malka wrote:
  When I first installed linux, for reasons I no longer remember I
installed
  Mandrake 7.1 as follows on my 8 GB second HD:
 
  I have a windows extended partition of 5.3 GB.  Within and at the end of
  this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main
linux
  partition (hdb11).  Beyond this extended partition I have my /usr, swap,
  /opt, /home partitions (hdb2, hdb3, hdb4).
 
  I own a full copy of Partition Magic which I used during the install.  I
  would like to move the main linux partition "out" of the windows
extended
  partition into free space beyond it..  If I moved it using Partition
Magic,
  from within NT, will I still be able to boot into linux and will the
  partition move mess up things in linux?





Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



RE: [expert] Moving partitions

2000-10-26 Thread Rivera, Oscar

you can use the cat command to move the partition.

cat /dev/hd?  /dev/hd?

Oscar

-Original Message-
From: Jeff Malka [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 8:58 AM
To: expert mandrake
Cc: Charles Curley
Subject: Re: [expert] Moving partitions


 This may be a silly question, but why do you want to move it? "If it
 works, don't fix it."

As a "learning experience" (this is not yet my main pc)
and because I have had a few problems that could be related to it:

1) grub will not work on it.  lilo does.
2) every so often, after I logout to the main graphic login screen (Mandrake
7.1) I lose the mouse which restores itself if I restart x.
3) I was told originally not to do it this way

 Meanwhile, it would probably help if you gave us a more detailed view of
 the drive in question. As root:

 fdisk -l /dev/hdb

Disk /dev/hdb: 240 heads, 63 sectors, 1090 cylinders
Units = cylinders of 15120 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hdb1   * 2   721   54432005  Extended
/dev/hdb2   833   951899640   83  Linux
/dev/hdb3   722   745181440   83  Linux
/dev/hdb4   746   832657720   83  Linux
/dev/hdb5 276566968+   6  FAT16
/dev/hdb677   146529168+   6  FAT16
/dev/hdb7   147   187309928+   6  FAT16
/dev/hdb8   188   201105808+   6  FAT16
/dev/hdb9   202   243317488+   6  FAT16
/dev/hdb10  244   354839128+   6  FAT16
/dev/hdb11  456   721   2010928+  83  Linux

Partition table entries are not in disk order

Disk /dev/hda: 128 heads, 63 sectors, 767 cylinders
Units = cylinders of 8064 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hda1   * 2   1295160966  FAT16
/dev/hda2   157   767   24635525  Extended
/dev/hda3   130   156108864   16  Hidden FAT16
/dev/hda4 1 1  4000+   a  OS/2 Boot Manager
/dev/hda5   *   157   238330592+   6  FAT16
/dev/hda6   *   239   497   1044256+   6  FAT16
/dev/hda7   *   498   701822496+   6  FAT16
/dev/hda8   702   753209632+  82  Linux swap

Partition table entries are not in disk order


Hope this helps.

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: Charles Curley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 11:00 AM
Subject: Re: [expert] Moving partitions


 On Thu, Oct 26, 2000 at 10:16:15AM -0400, Jeff Malka wrote:
  When I first installed linux, for reasons I no longer remember I
installed
  Mandrake 7.1 as follows on my 8 GB second HD:
 
  I have a windows extended partition of 5.3 GB.  Within and at the end of
  this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main
linux
  partition (hdb11).  Beyond this extended partition I have my /usr, swap,
  /opt, /home partitions (hdb2, hdb3, hdb4).
 
  I own a full copy of Partition Magic which I used during the install.  I
  would like to move the main linux partition "out" of the windows
extended
  partition into free space beyond it..  If I moved it using Partition
Magic,
  from within NT, will I still be able to boot into linux and will the
  partition move mess up things in linux?







Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Charles Curley
n
extended partition. I'd delete hdb2, which is the last partition on the
disk, then create an extended partition which runs from cylinder 833 to
1090, then create logical partitions inside that.

Have I given you enough to get you started?

 
 Hope this helps.
 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: Charles Curley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 26, 2000 11:00 AM
 Subject: Re: [expert] Moving partitions
 
 
  On Thu, Oct 26, 2000 at 10:16:15AM -0400, Jeff Malka wrote:
   When I first installed linux, for reasons I no longer remember I
 installed
   Mandrake 7.1 as follows on my 8 GB second HD:
  
   I have a windows extended partition of 5.3 GB.  Within and at the end of
   this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main
 linux
   partition (hdb11).  Beyond this extended partition I have my /usr, swap,
   /opt, /home partitions (hdb2, hdb3, hdb4).
  
   I own a full copy of Partition Magic which I used during the install.  I
   would like to move the main linux partition "out" of the windows
 extended
   partition into free space beyond it..  If I moved it using Partition
 Magic,
   from within NT, will I still be able to boot into linux and will the
   partition move mess up things in linux?
 

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Charles Curley

On Thu, Oct 26, 2000 at 01:10:28PM -0400, Jeff Malka wrote:
 Not sure I understand.  I can move the partition effortlessly using
 Partition Magic.  I just needed to know if this would mess up the path
 structure or something else that linux uses.
 
 Is that what cat is about?

No. Cat will move the data, but won't modify how the partitions are
mounted. What you need to do is move the data around from partition to
partition, then edit /etc/fstab to mount the new partition where the old
one was. That will preserve your paths and other data.

Also, I'm not sure that cat is appropriate here. It would work copying to
a new partition of the smae size. I don't think it will work if the new
partition is smaller, and if the new one is larger, you risk losing the
difference.

I'd look into cpio, dd and tar for this.

 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: Rivera, Oscar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 26, 2000 12:33 PM
 Subject: RE: [expert] Moving partitions
 
 
  you can use the cat command to move the partition.
 
  cat /dev/hd?  /dev/hd?


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Nikolay V. Kursov

 When I first installed linux, for reasons I no longer remember I installed
 Mandrake 7.1 as follows on my 8 GB second HD:
 
 I have a windows extended partition of 5.3 GB.  Within and at the end of
 this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main linux
 partition (hdb11).  Beyond this extended partition I have my /usr, swap,
 /opt, /home partitions (hdb2, hdb3, hdb4).
 
 I own a full copy of Partition Magic which I used during the install.  I
 would like to move the main linux partition "out" of the windows extended
 partition into free space beyond it..  If I moved it using Partition Magic,
 from within NT, will I still be able to boot into linux and will the
 partition move mess up things in linux?
 
 Still learning.
 
 Thanks
 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185

If you want to move root partition you need:
I. make boot diskette:
  1. copy kernel to floppy:  cp /boot/vmlinuz /dev/fd0
  2. set root partition: rdev /dev/hdxx /dev/fd0
where hdxx - new place of root partition.
II. move partition 
III. reboot system from diskette
IV. edit lilo.conf and fstab according to new places of partitions. 
V. run lilo
VI. reboot system

If you would like use Grub you need edit /boot/grub/menu.lst and run
/boot/grub/install.sh

-- 
Regards,
Nikolay V. Kursov
IT,Co. 380(512)500388
ICQ #57477715



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Ron Stodden

Larry Marshall wrote:

 Partition Magic will move the data as the partition is moved.  If I
 understood what he was asking, there'd be no change in fstab.  Most likely
 /boot would still be /dev/hda5.  Maybe I didn't understand what he was
 asking.

If a Linux partition is copied, the copy will not boot.  You must
bring up another working Linux partition (maybe the source of the
partition copy) then as root:

mount the copied partition.

chroot mount point kedit /etc/fstab

Alter the root line to the new device.

Remove any other mention of the new root partition.

Save.

chroot mount point kedit /etc/lilo.conf

Change all mentions of the old root device to the new root device.

Save.

chroot mount point /sbin/lilo

Boot down.

Add the new boot device to your boot manager (hopefully xosl).

Boot the new Linux partition.

Yes, that's all!!

If you now want to delete the old Linux partition, remember to
replace it with a minimum-size ext2 placeholder partition so as not
to disturb the partition numbering.

-- 
Regards,

Ron. [AU]



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Jeff Malka

Thanks.

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: Ron Stodden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 6:50 PM
Subject: Re: [expert] Moving partitions


 Larry Marshall wrote:

  Partition Magic will move the data as the partition is moved.  If I
  understood what he was asking, there'd be no change in fstab.  Most
likely
  /boot would still be /dev/hda5.  Maybe I didn't understand what he was
  asking.

 If a Linux partition is copied, the copy will not boot.  You must
 bring up another working Linux partition (maybe the source of the
 partition copy) then as root:

 mount the copied partition.

 chroot mount point kedit /etc/fstab

 Alter the root line to the new device.

 Remove any other mention of the new root partition.

 Save.

 chroot mount point kedit /etc/lilo.conf

 Change all mentions of the old root device to the new root device.

 Save.

 chroot mount point /sbin/lilo

 Boot down.

 Add the new boot device to your boot manager (hopefully xosl).

 Boot the new Linux partition.

 Yes, that's all!!

 If you now want to delete the old Linux partition, remember to
 replace it with a minimum-size ext2 placeholder partition so as not
 to disturb the partition numbering.

 --
 Regards,

 Ron. [AU]








 Keep in touch with http://mandrakeforum.com:
 Subscribe the "[EMAIL PROTECTED]" mailing list.





Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] Moving partitions

2000-10-26 Thread Jeff Malka

Thank you.

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: Nikolay V. Kursov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 5:38 PM
Subject: Re: [expert] Moving partitions


  When I first installed linux, for reasons I no longer remember I
installed
  Mandrake 7.1 as follows on my 8 GB second HD:
 
  I have a windows extended partition of 5.3 GB.  Within and at the end of
  this extended partition (don't ask why) I have a 5.3 GB linuxExt2 main
linux
  partition (hdb11).  Beyond this extended partition I have my /usr, swap,
  /opt, /home partitions (hdb2, hdb3, hdb4).
 
  I own a full copy of Partition Magic which I used during the install.  I
  would like to move the main linux partition "out" of the windows
extended
  partition into free space beyond it..  If I moved it using Partition
Magic,
  from within NT, will I still be able to boot into linux and will the
  partition move mess up things in linux?
 
  Still learning.
 
  Thanks
 
  Jeff Malka [EMAIL PROTECTED]
  Registered Linux user  183185

 If you want to move root partition you need:
 I. make boot diskette:
   1. copy kernel to floppy:  cp /boot/vmlinuz /dev/fd0
   2. set root partition: rdev /dev/hdxx /dev/fd0
 where hdxx - new place of root partition.
 II. move partition
 III. reboot system from diskette
 IV. edit lilo.conf and fstab according to new places of partitions.
 V. run lilo
 VI. reboot system

 If you would like use Grub you need edit /boot/grub/menu.lst and run
 /boot/grub/install.sh

 --
 Regards,
 Nikolay V. Kursov
 IT,Co. 380(512)500388
 ICQ #57477715








 Keep in touch with http://mandrakeforum.com:
 Subscribe the "[EMAIL PROTECTED]" mailing list.





Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.