NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Help! I can't boot my Windows partition any more!



On 30 September 2015 at 23:47, Ottavio Caruso
<ottavio2006-netbsd%yahoo.com@localhost> wrote:
> Hello,
>
> I used to dual boot Windows 7 and NetBSD.
>
> This is my fdisk:
>
>
> Disk: /dev/rwd0d
> NetBSD disklabel disk geometry:
> cylinders: 155061, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
> total sectors: 156301488, bytes/sector: 512
>
> BIOS disk geometry:
> cylinders: 1023, heads: 240, sectors/track: 63 (15120 sectors/cylinder)
> total sectors: 156301488
>
> Partitions aligned to 2048 sector boundaries, offset 2048
>
> Partition table:
> 0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
>     start 2048, size 204800 (100 MB, Cyls 0-13/163/19)
> 1: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
>     start 206848, size 63375360 (30945 MB, Cyls 13/163/20-4205/41/25)
> 2: NetBSD (sysid 169)
>     start 63582208, size 46360576 (22637 MB, Cyls 4205/41/26-7271/83/35), Active
> 3: Primary DOS with 32 bit FAT (sysid 11)
>     start 109942784, size 46358528 (22636 MB, Cyls 7271/83/36-10337/93/13)
> First active partition: 2
> Drive serial number: 4067601000 (0xf272aa68)
>
>
> and this is my disklabel:
>
> -- bash-4.3$ sudo disklabel wd0
> # /dev/rwd0d:
> type: unknown
> disk: HITACHI HTS5425
> label:
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 16
> sectors/cylinder: 1008
> cylinders: 155061
> total sectors: 156301488
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0
>
> 16 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
>  a:  17687376  63582208     4.2BSD   2048 16384     0  # (Cyl.  63077*-  80624*)
>  b:    204800      2048       NTFS                     # (Cyl.      2*-    205*)
>  c:  46360576  63582208     unused      0     0        # (Cyl.  63077*- 109070*)
>  d: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)
>  e:  28673200  81269584     4.2BSD   2048 16384     0  # (Cyl.  80624*- 109070*)
>  f:  63375360    206848       NTFS                     # (Cyl.    205*-  63077*)
>  g:  46358528 109942784      MSDOS                     # (Cyl. 109070*- 155060*)
>
>
> I marked my NetBSD partition active with SystemRescueCD, leaving me
> the only option to boot Windows from a usb drive with syslinux.
>
> Now the usb drive is unbootable, therefore I can only access NetBSD.
>
> How can I boot from Windows without recurring to an external computer?
>

At least can anybody advise if I can mark the partition active from
within NetBSD?

Would "fdisk -B wd0" give me the option to select a bootable partition?

Is it safe to use fdisk on a Windows partition?

-- 
Ottavio


Home | Main Index | Thread Index | Old Index