Re: [SLUG] boot partition

From: Eben King (eben1@tampabay.rr.com)
Date: Mon Aug 02 2004 - 22:47:42 EDT


On Mon, 2 Aug 2004, scott wrote:

> It shouldn't do anything about the partition number, since you aren't
> deleting it.

Agreed.

> Just load up cfdisk, change the hda1 partition type to linux,

0x83

> and after you are out of cfdisk run mkfs.(ext2,ext3,xfs,
> whatever) on it. I don't think you'll have to reboot just changing the
> partition type.

Dunno, I got this after I changed a partition type:

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or
resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional information.
Syncing disks.

I don't know of anything that relies on the partition type, so you should
be OK leaving it 'wrong' until you reboot naturally. Maybe if you run
another partition editor before you reboot it'll have the old partition
type.

> Then if you want the newly formatted partition to be the home directory,
> mount the partition to a dummy directory and do a cp -a /home/*
> yourmountpoint to copy all of your files over to the new partition.

Lose the asterisk, because that won't get /home/.lock for example. I'd
use

{ cd /home && tar cf - . ; } | { cd yourmountpoint && tar xvpsf - ; }

myself; others would use find /home | cpio someargs, but I don't know how
to do that.

> I'm pretty sure that should take care of it.

The hard-disk-upgrade-HOWTO might be useful.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Two atoms are walking along. Suddenly, one stops. The other says, "What's wrong?" "I've lost an electron." "Are you sure?" "I'm positive!"

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:15:59 EDT