NetBSD-Users archive

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

Re: Problem with gpt partitioning in NetBSD-5.0.2 amd64



It worked! I'm very impressed with you guys, thank you very much! I can
now continue with my setup of the server and start copy some ;-) data to
the RAID.

/Peter

On 04/02/2010 12:42 AM, Christos Zoulas wrote:
> #include <stdlib.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <err.h>
>
> int
> main(void)
> {
>       static char buf[0x200];
>       int fd = open("/dev/rsd0d", O_RDWR);
>
>       if (fd == -1)
>               err(1, "open");
>         if (lseek(fd, 0x417bcdbfe00ULL, SEEK_SET) == (off_t)-1)
>               err(1, "lseek");
>         if (write(fd, buf, sizeof(buf)) == -1)
>               err(1, "write");
>         (void)close(fd);
>         return 0;
> }
>   


Home | Main Index | Thread Index | Old Index