NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
partition new hard disk
Hi,
prior to the problem of dump and restore my HD, i Need a good way to
partition my hard disk!
I tried using fdisk and disklabel, but failed as I wrote. It appears
aprtitioned, i make a newfs and then fsck will fail. Also entering
manually an offset found embyrically was strange.
I thus just attached the HDD in a usb enclosure, booted 6.1 install cd
(I had to use another laptop, on the current one it segmentation faults,
but that's a different problem), partitioned and then aborted
installation. Voilà, a well partitioned and formatted disk. Reattached
to my netbsd laptop, I check the disklabel, which is:
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 60958720 63 4.2BSD 2048 16384 0 # (Cyl. 0*- 29765*)
b: 1574849 60958783 swap # (Cyl. 29765*-
30533)
c: 62533569 63 unused 0 0 # (Cyl. 0*- 30533)
d: 62533632 0 unused 0 0 # (Cyl. 0 - 30533)
so now, let us fsck (the still unmounted disk!)
bash-4.2# fsck /dev/sd0a
** /dev/rsd0a
Invalid signature in fsinfo blockfix? [yn] y
Unable to write FSInfo (Read-only file system)
With this I am at loss. I can mount it, touch a file... but how is it
that fsck fails this way?
Hmm.
What I find very strange is that there are no partition in fdisk. Is
this due to the fact that during install I told to "use entire disk" ?
bash-4.2# fdisk /dev/sd0a
fdisk: Can't read secondary GPT header: Invalid argument
fdisk: Cannot determine the number of heads
Disk: /dev/sd0a
NetBSD disklabel disk geometry:
cylinders: 30534, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 62533632, bytes/sector: 512
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 62533632
Partitions aligned to 16065 sector boundaries, offset 63
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Riccardo
null
Home |
Main Index |
Thread Index |
Old Index