Add a new hard disk to NetBSD

Source: Internet
Author: User
Tags dmesg
Simple Steps:
1: Use dmesg to view system information:
Dmesg | grep ^ WD
2: Use fdisk to view partition information
Fdisk wd1
3: Use fdisk-u to update the disk partition table
Do you want to change our idea of what BIOS thinks? Select N. Do not change the BIOS detection result.
Which partition do you want to change: select the partition you want to love more
Sysid should be the default value of partition type 169. Do not change it. If you know what you are doing, you can change it.
Start position of the Start Partition
The size partition size. Enter m after the value. Otherwise, it is calculated by K.
Boot menu if this is a boot partition and OS is installed on this partition, enter the boot ID
After setting all partitions:
Which partition do you want to change? Select none to exit
Shocould we write new partition table. Input Yes, write Will Partition Table

4: Use disklabel to view the Partition Number
Disklabel wd1
5. Create a file system using newfs
Newfs-O 2/dev/wd1e format the disk as a ufs2 File System
Other file systems: 0 BSD 4.3 1 FFS 2 ufs2
6: After formatting, view the partition information
Disklabel/dev/wd1
7: Mount
Mount/dev/wd1e/mnt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.