Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 488384064 (238468 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 704/ head 128/ sector 63
The data for partition 2 is:
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
start 488384127, size 488367873 (238460 Meg), flag 0
beg: cyl 704/ head 129/ sector 1;
end: cyl 383/ head 254/ sector 63
The data for partition 3 is:
The data for partition 4 is:
挂载分区:
ko# mount /dev/da0s1 /media/
ko# mount_msdosfs /dev/da0s2 /mnt/
mount_msdosfs: /dev/da0s2: Disk too big, try '-o large' mount option: Invalid argument
ko# mount_msdosfs -o large /dev/da0s2 /mnt/
检查一下:
ko# df
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 9.9G 649M 8.4G 7% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/ada0p4 118G 27G 81G 25% /var
/dev/ada0p5 2G 23M 1.8G 1% /tmp
/dev/ada0p6 118G 46G 62G 43% /usr
/dev/ada0p7 103G 64G 31G 67% /usr/home
/dev/da0s1 229G 8.0k 210G 0% /media
/dev/da0s2 232G 96k 232G 0% /mnt
ko# gpart show da0
=> 63 976773105 da0 MBR (465G)
63 488384064 1 freebsd [active] (232G)
488384127 488367873 2 !12 (232G)
976752000 21168 - free - (10M)
HowTo: Mounting NTFS partition in write mode on FreeBSD
My brother's old laptop died and I got to keep its hard-drive. Being a Windows machine, it had a bunch of NTFS partitions. So this post explains how to identify a NTFS partition, mount it as read-only and finally learn how to mount it in write mode. I should mention that FreeBSD 7.4 was used but the same steps should apply to latter versions of the OS.
Physically attached the hard-drive (in my case I plugged an USB HDD) and have a look at /var/log/messages to identify the harddrive.
# tail -n 20 /var/log/messages
Jan 26 21:40:03 flumen kernel: da0: Fixed Direct Access SCSI-4 device
Jan 26 21:40:03 flumen kernel: da0: 40.000MB/s transfers
Jan 26 21:40:03 flumen kernel: da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)