Gentoo Archives: gentoo-amd64

From: Adam James <ad@×××××××××××××.uk>
To: gentoo-amd64@l.g.o
Cc: markknecht@×××××.com
Subject: Re: [gentoo-amd64] The new table will be used at the next reboot.
Date: Sun, 04 Jun 2006 08:22:39
Message-Id: 20060604091905.747616ab@heliosphan.kernelpanic.co.uk
In Reply to: [gentoo-amd64] The new table will be used at the next reboot. by Mark Knecht
1 On Sat, 3 Jun 2006 20:08:43 -0700
2 "Mark Knecht" <markknecht@×××××.com> wrote:
3
4 > Hi,
5 > I created a new logical partition on my main drive. I'm wondering
6 > how I would tell the kernel to use the new table without doing a
7 > reboot? Is this possible and is it easy or dangerous? I'd prefer not
8 > to reboot right now, but would rather reboot than take too many
9 > chances.
10 >
11 > Thanks,
12 > Mark
13 >
14 > /dev/sda11 10252 14075 30716248+ 7 HPFS/NTFS
15 > /dev/sda12 14076 15049 7823623+ 83 Linux
16 >
17 > Command (m for help): w
18 > The partition table has been altered!
19 >
20 > Calling ioctl() to re-read partition table.
21 >
22 > WARNING: Re-reading the partition table failed with error 16: Device
23 > or resource busy.
24 > The kernel still uses the old table.
25 > The new table will be used at the next reboot.
26 > Syncing disks.
27 > lightning ~ #
28
29 `hdparm -z' should do it. It's not listed as "(DANGEROUS)" in the usage
30 table, so I presume it is safe to use.
31
32 --Adam
33 --
34 gentoo-amd64@g.o mailing list