Re: Cannot find my Linux partition
On Thu, 31 Oct 2002, Craig Rodrigues wrote: > On Thu, Oct 31, 2002 at 06:33:13PM +0100, Poul-Henning Kamp wrote: > > Please try this patch: > I am also attaching the dmesg.boot file. > > I can now mount my Linux partition with: > mount -r -t ext2fs /dev/da1s7 /linuxmount This might be a dumb question, but would the GEOM layer enable freebsd to be installed on an extended partition (with the proper mods to the bootloader??) -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Cannot find my Linux partition
On Thu, Oct 31, 2002 at 06:33:13PM +0100, Poul-Henning Kamp wrote: > Please try this patch: Hi, I tried your patch. This is what I get now: = for i in `/bin/ls /dev/da1*`; do printf "$i $(file - < $i)\n"; done /dev/da1 standard input: x86 boot sector /dev/da1s1 standard input: x86 boot sector /dev/da1s2 standard input: x86 boot sector, extended partition table /dev/da1s5 standard input: x86 boot sector /dev/da1s6 standard input: Linux rev 0.0 ext2 filesystem data /dev/da1s7 standard input: x86 boot sector /dev/da1s8 standard input: Linux/i386 swap file = I am also attaching the dmesg.boot file. I can now mount my Linux partition with: mount -r -t ext2fs /dev/da1s7 /linuxmount You rule, man! Now I can go on vacation. :) -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED] dmesg.boot.3.gz Description: application/gunzip
Re: Cannot find my Linux partition
In message <[EMAIL PROTECTED]>, Craig Rodrigues writes: > >--qDbXVdCdHGoSgWSk >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline > >On Thu, Oct 31, 2002 at 04:56:49PM +0100, Poul-Henning Kamp wrote: >> Can you please email me: >> >> boot -v console output (use serial console if you can) >> sysctl -n kern.geom.confxml > >OK, I edited /boot/default/loader.conf, and added set boot_verbose="YES" >and rebooted. (I'm still not at the machine physically :). I think it did. I wasn't aware that extended partitions could have a "boot me!" flag (0x80). Please try this patch: Index: geom_mbr.c === RCS file: /home/ncvs/src/sys/geom/geom_mbr.c,v retrieving revision 1.22 diff -u -r1.22 geom_mbr.c --- geom_mbr.c 28 Oct 2002 07:50:47 - 1.22 +++ geom_mbr.c 31 Oct 2002 17:30:44 - @@ -159,7 +159,7 @@ }; static void -g_mbr_print(int i __unused, struct dos_partition *dp __unused) +g_mbr_print(int i, struct dos_partition *dp) { g_hexdump(dp, sizeof(dp[0])); @@ -247,7 +247,7 @@ if (dp[i].dp_size == 0) continue; if (bootverbose) { - printf("Slice %d:\n", i + 1); + printf("Slice %d on %s:\n", i + 1, gp->name); g_mbr_print(i, dp + i); } npart++; @@ -324,16 +324,6 @@ } } -static void -g_mbrext_print(int i, struct dos_partition *dp) -{ - g_hexdump(dp, sizeof(dp[0])); - printf("[%d] f:%02x typ:%d", i, dp->dp_flag, dp->dp_typ); - printf(" s(CHS):%d/%d/%d", dp->dp_scyl, dp->dp_shd, dp->dp_ssect); - printf(" e(CHS):%d/%d/%d", dp->dp_ecyl, dp->dp_ehd, dp->dp_esect); - printf(" s:%d l:%d\n", dp->dp_start, dp->dp_size); -} - static struct g_geom * g_mbrext_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) { @@ -379,12 +369,13 @@ break; for (i = 0; i < NDOSPART; i++) g_dec_dos_partition( - buf + DOSPARTOFF + i * sizeof(struct dos_partition), - dp + i); + buf + DOSPARTOFF + + i * sizeof(struct dos_partition), dp + i); g_free(buf); - g_mbrext_print(0, dp); - g_mbrext_print(1, dp + 1); - if (dp[0].dp_flag == 0 && dp[0].dp_size != 0) { + printf("Slice %d on %s:\n", slice + 5, gp->name); + g_mbr_print(0, dp); + g_mbr_print(1, dp + 1); + if ((dp[0].dp_flag & 0x7f) == 0 && dp[0].dp_size != 0) { g_topology_lock(); pp2 = g_slice_addslice(gp, slice, (((off_t)dp[0].dp_start) << 9ULL) + off, -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Cannot find my Linux partition
On Thu, Oct 31, 2002 at 04:56:49PM +0100, Poul-Henning Kamp wrote: > Can you please email me: > > boot -v console output (use serial console if you can) > sysctl -n kern.geom.confxml OK, I edited /boot/default/loader.conf, and added set boot_verbose="YES" and rebooted. (I'm still not at the machine physically :). dmesg.boot has more stuff now, hopefully it helps. -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED] dmesg.boot.2.gz Description: application/gunzip
Re: Cannot find my Linux partition
On Thu, Oct 31, 2002 at 04:56:49PM +0100, Poul-Henning Kamp wrote: > Can you please email me: > > boot -v console output (use serial console if you can) > sysctl -n kern.geom.confxml > > Thanks in advance! I am not physically at the machine in question right now, and am leaving in a few hours for a week of vacation (out of FreeBSD range :). I am attaching the kern.geom.confxml and dmesg.boot. I will try to get the boot -v output, if I have time, otherwise it will have to wait. :( -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED] kern.geom.confxml.gz Description: application/gunzip dmesg.boot.gz Description: application/gunzip
Re: Cannot find my Linux partition
In message <[EMAIL PROTECTED]>, Craig Rodrigues writes: >I just cvsup'd and rebuilt kernel/world on -CURRENT today, and now >the same SCSI disk looks like: > >= >for i in $(/bin/ls -1 /dev/da1*); do printf "$i $(file - < $i)\n"; done >/dev/da1 standard input: x86 boot sector >/dev/da1s1 standard input: x86 boot sector >/dev/da1s2 standard input: x86 boot sector, extended partition table >/dev/da1s5 standard input: x86 boot sector >= Hi Craig, Can you please email me: boot -v console output (use serial console if you can) sysctl -n kern.geom.confxml Thanks in advance! -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Cannot find my Linux partition
Hi, I have in my kernel config: options EXT2FS On -STABLE, and on -CURRENT from a week ago, one my SCSI drives looked like this: = /dev/da1s1 standard input: x86 boot sector /dev/da1s2 standard input: x86 boot sector, extended partition table /dev/da1s3 standard input: empty /dev/da1s4 standard input: empty /dev/da1s5 standard input: x86 boot sector /dev/da1s6 standard input: Linux rev 0.0 ext2 filesystem data /dev/da1s7 standard input: x86 boot sector = I used to be able to mount my Linux partition with: mount -r -t ext2fs /dev/da1s7 /linuxmount I just cvsup'd and rebuilt kernel/world on -CURRENT today, and now the same SCSI disk looks like: = for i in $(/bin/ls -1 /dev/da1*); do printf "$i $(file - < $i)\n"; done /dev/da1 standard input: x86 boot sector /dev/da1s1 standard input: x86 boot sector /dev/da1s2 standard input: x86 boot sector, extended partition table /dev/da1s5 standard input: x86 boot sector = da1s7 is no longer there, and I can't figure out how to mount my Linux partition. None of the combinations of: mount -r -t ext2fs /dev/da1s[125] /linuxmount works. Any help appreciated. -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message