From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 17 Oct 2011 07:17:55 -0400 Message-ID: From: slash To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] New disk, i/o error Topicbox-Message-UUID: 38f5b316-ead7-11e9-9d60-3106f5b1d025 > How did you used disk/prep? I ran 'disk/prep -bw -a^(9fat nvram fossil swap) /dev/sdE1/plan9'. When I ran it, my old disk was sdE0 and the new was sdE1. Now I notice the layout prep created is identical on both disks! su# disk/prep /dev/sdE0/plan9 # old 9fat 0 204800 (204800 sectors, 100.00 MB) nvram 204800 204801 (1 sectors, 512 B ) fossil 204801 389668226 (389463425 sectors, 185.71 GB) swap 389668226 390716802 (1048576 sectors, 512.00 MB) >>> q su# disk/prep /dev/sdE1/plan9 # new 9fat 0 204800 (204800 sectors, 100.00 MB) nvram 204800 204801 (1 sectors, 512 B ) fossil 204801 389668226 (389463425 sectors, 185.71 GB) swap 389668226 390716802 (1048576 sectors, 512.00 MB) empty 390716802 3907024002 (3516307200 sectors, 1.63 TB) >>> q > I don't believe you can, fossil is usually used with venti and venti can definitely > be grown on the fly, fossil alone is normally confined to just laptops where this is > not an issue. Will this work: 1. boot off the old disk (/dev/sdE0/plan9) 2. disk/prep /dev/sdE1/plan9 - delete swap and fossil - create a new fossil at the same offset as the old one but bigger - write changes 3. mount /dev/sdE1/fossil I am trying to find a way to resize /dev/sdE1/fossil without losing the existing data on it.