<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:72109764-c3c9-4861-8be7-bc29c11ef61a,g:abd4d8fa-9c36-4771-8e9f-c58aef82a0dc-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CoverPage" xlink:type="simple" xlink:href="wdc-20200403.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended" id="ic7c7b99bd52f44dd9ce0fef86d3c0d3a_CoverPage"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" id="ic2287e1da4c7452c930a5274d992c32d_CondensedConsolidatedBalanceSheets"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" id="icd02aa9d2df741e48949abc8a7e789db_CondensedConsolidatedBalanceSheetsParenthetical"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended" id="i771bf94b610e480488790c2b6b38281f_CondensedConsolidatedStatementsofOperations"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended" id="i3d897e9b57094f84a8ef161cb7331b8b_CondensedConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended" id="iad74ecf4fdb04713be53871fe27cce2b_CondensedConsolidatedStatementsofCashFlows"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200403.xsd#CondensedConsolidatedStatementsofShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsofShareholdersEquity" xlink:type="extended" id="iecfa105998dc48bf8e68ff44f9cb6c92_CondensedConsolidatedStatementsofShareholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_ebfae987-5055-4b3a-bc15-7048677dd95c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ebfae987-5055-4b3a-bc15-7048677dd95c" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3fe6d4d5-a293-4778-99ff-1c30a0758877" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_StockholdersEquity_3fe6d4d5-a293-4778-99ff-1c30a0758877" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_78e9f01f-009c-49d7-a702-a5c15ad3d415" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_SharesIssued_78e9f01f-009c-49d7-a702-a5c15ad3d415" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_85592ad2-8ee8-4099-926c-99378b227d32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_NetIncomeLoss_85592ad2-8ee8-4099-926c-99378b227d32" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_f6a166d3-2d8a-4db4-ac13-b726489677a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_f6a166d3-2d8a-4db4-ac13-b726489677a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_ae748f61-d233-4ac1-8598-12f3ba05e6b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_ae748f61-d233-4ac1-8598-12f3ba05e6b4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_c46c22b6-9d87-4bbe-831b-07e621a8ba89" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_c46c22b6-9d87-4bbe-831b-07e621a8ba89" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_382fc9bb-a85b-4867-afa6-b406e269e6dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_382fc9bb-a85b-4867-afa6-b406e269e6dc" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_1320ef34-0b20-4dc7-9d5a-6e29b979aceb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_1320ef34-0b20-4dc7-9d5a-6e29b979aceb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_c52090fd-b711-45b9-a2e7-2396ce8ff4e9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_c52090fd-b711-45b9-a2e7-2396ce8ff4e9" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendsDeclared_d89eb35e-fdd4-4374-b59c-5dbbf4b2d061" xlink:href="wdc-20200403.xsd#wdc_DividendsDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_wdc_DividendsDeclared_d89eb35e-fdd4-4374-b59c-5dbbf4b2d061" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_1eb4283d-08ac-405a-9f68-513d448361db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_1eb4283d-08ac-405a-9f68-513d448361db" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_9adc0e53-deee-47a6-93d9-78ceefe1bc7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_9adc0e53-deee-47a6-93d9-78ceefe1bc7f" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax_dcb34ca1-4ec8-4a4e-8c9a-d0d5803ba1ab" xlink:href="wdc-20200403.xsd#wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_20664c9c-daef-4e7c-8302-e6f859eb4dc5" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax_dcb34ca1-4ec8-4a4e-8c9a-d0d5803ba1ab" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f970f4b2-39bc-46b0-9e0a-44b495a533a2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_f2830789-915a-43d5-afe7-0e7a1f2d7495" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3e274609-a03d-4ec5-85d5-37435f883b7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_ebfae987-5055-4b3a-bc15-7048677dd95c" xlink:to="loc_us-gaap_StatementTable_3e274609-a03d-4ec5-85d5-37435f883b7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_35e1c66d-d542-44c6-ab81-b3617a5a95f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3e274609-a03d-4ec5-85d5-37435f883b7f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_35e1c66d-d542-44c6-ab81-b3617a5a95f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_35e1c66d-d542-44c6-ab81-b3617a5a95f6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_35e1c66d-d542-44c6-ab81-b3617a5a95f6" xlink:to="loc_us-gaap_EquityComponentDomain_35e1c66d-d542-44c6-ab81-b3617a5a95f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_35e1c66d-d542-44c6-ab81-b3617a5a95f6" xlink:to="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_bb086a4e-2539-4fc3-bd11-1dbc983f395b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:to="loc_us-gaap_CommonStockMember_bb086a4e-2539-4fc3-bd11-1dbc983f395b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_7da8e464-8432-4e1f-9f0e-fac3d1ba95b1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:to="loc_us-gaap_TreasuryStockMember_7da8e464-8432-4e1f-9f0e-fac3d1ba95b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_e09544dc-1aed-4079-b7f0-732df817e087" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_e09544dc-1aed-4079-b7f0-732df817e087" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_47fcb187-3601-4961-9e08-b240a97ce4c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_47fcb187-3601-4961-9e08-b240a97ce4c9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_0c44f664-e34d-4c17-a38a-e165e37bb916" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_ab8339c7-0d94-4ac0-84fb-cef4bb05b371" xlink:to="loc_us-gaap_RetainedEarningsMember_0c44f664-e34d-4c17-a38a-e165e37bb916" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="simple" xlink:href="wdc-20200403.xsd#OrganizationandBasisofPresentation"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="extended" id="i5a60e07e3c0445a5bf378dc4b7690a7b_OrganizationandBasisofPresentation"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="simple" xlink:href="wdc-20200403.xsd#OrganizationandBasisofPresentationPolicies"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="extended" id="i9c17ee5d79644a5083f66d251138c78b_OrganizationandBasisofPresentationPolicies"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#OrganizationandBasisofPresentationRemainingPerformanceObligationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails" xlink:type="extended" id="iafb7bc42f1cc4b92bacf7b7c8580410e_OrganizationandBasisofPresentationRemainingPerformanceObligationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_9ab7ef82-924c-4c23-a740-e74e8000bbac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_9ab7ef82-924c-4c23-a740-e74e8000bbac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2b5ddf1b-500a-41f8-90e9-3b5422ebf5bf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2b5ddf1b-500a-41f8-90e9-3b5422ebf5bf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_f4772dc1-fe4c-419e-8ebe-25e3790b0f9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2b5ddf1b-500a-41f8-90e9-3b5422ebf5bf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_f4772dc1-fe4c-419e-8ebe-25e3790b0f9a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20200403.xsd#OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1" xlink:type="extended" id="i22c0385b6a7c450a89b698efa20d703e_OrganizationandBasisofPresentationRemainingPerformanceObligationDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_9ab7ef82-924c-4c23-a740-e74e8000bbac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_9ab7ef82-924c-4c23-a740-e74e8000bbac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2b5ddf1b-500a-41f8-90e9-3b5422ebf5bf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_cb0c239e-d799-4b18-bf44-30d532108177" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2b5ddf1b-500a-41f8-90e9-3b5422ebf5bf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentlyAccountingPronouncements" xlink:type="simple" xlink:href="wdc-20200403.xsd#RecentlyAccountingPronouncements"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncements" xlink:type="extended" id="i6d4e8ccd92cc4a17b8e6fd2c86a28eda_RecentlyAccountingPronouncements"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RecentlyAccountingPronouncementsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="extended" id="ibddfc7e8dcd94066bd505fbaa5b813f3_RecentlyAccountingPronouncementsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_f8118c8a-5eab-485a-874f-dedd5c884785" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_3248d091-9197-4a95-89ab-97978dcfa37b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_f8118c8a-5eab-485a-874f-dedd5c884785" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_3248d091-9197-4a95-89ab-97978dcfa37b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_20824287-673c-443f-8b0e-490d518ee9be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_f8118c8a-5eab-485a-874f-dedd5c884785" xlink:to="loc_us-gaap_OperatingLeaseLiability_20824287-673c-443f-8b0e-490d518ee9be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_50186206-0a29-4fe5-ae4a-90f9e381148c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_f8118c8a-5eab-485a-874f-dedd5c884785" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_50186206-0a29-4fe5-ae4a-90f9e381148c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_992db564-680d-44b6-b97f-ae637b294437" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_f8118c8a-5eab-485a-874f-dedd5c884785" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_992db564-680d-44b6-b97f-ae637b294437" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_ef42a129-5465-4be6-bd3b-f818726d526e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_992db564-680d-44b6-b97f-ae637b294437" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_ef42a129-5465-4be6-bd3b-f818726d526e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_ef42a129-5465-4be6-bd3b-f818726d526e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_ef42a129-5465-4be6-bd3b-f818726d526e" xlink:to="loc_us-gaap_TypeOfAdoptionMember_ef42a129-5465-4be6-bd3b-f818726d526e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_bee8f1fa-98b3-4fcf-ac40-490dcc6c04ce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_ef42a129-5465-4be6-bd3b-f818726d526e" xlink:to="loc_us-gaap_TypeOfAdoptionMember_bee8f1fa-98b3-4fcf-ac40-490dcc6c04ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_9410caa9-c663-47a0-8cab-3c661a6c5f3b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_bee8f1fa-98b3-4fcf-ac40-490dcc6c04ce" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_9410caa9-c663-47a0-8cab-3c661a6c5f3b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/Revenues" xlink:type="simple" xlink:href="wdc-20200403.xsd#Revenues"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/Revenues" xlink:type="extended" id="i0a0b927901e4485a92dae00bebc848e9_Revenues"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesTables" xlink:type="extended" id="i9b2234248a784e49bb4aebbf1cdda70d_RevenuesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="extended" id="i7849a7a522c0441f84c28f1472438039_RevenuesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_0cf5a3da-0d73-46c4-a258-5f5f2ea527b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_546dfb14-7fe1-4885-bc92-211dcaba34e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0cf5a3da-0d73-46c4-a258-5f5f2ea527b8" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_546dfb14-7fe1-4885-bc92-211dcaba34e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_88dad727-e443-48a2-acf1-7494da2b7bcf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_0cf5a3da-0d73-46c4-a258-5f5f2ea527b8" xlink:to="loc_us-gaap_ConcentrationRiskTable_88dad727-e443-48a2-acf1-7494da2b7bcf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e934c8f2-91e9-4d00-a81d-a102f0150b08" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_88dad727-e443-48a2-acf1-7494da2b7bcf" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e934c8f2-91e9-4d00-a81d-a102f0150b08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e934c8f2-91e9-4d00-a81d-a102f0150b08_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e934c8f2-91e9-4d00-a81d-a102f0150b08" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e934c8f2-91e9-4d00-a81d-a102f0150b08_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e8401c09-7952-4617-871d-2b8640015b5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_e934c8f2-91e9-4d00-a81d-a102f0150b08" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e8401c09-7952-4617-871d-2b8640015b5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_1cc05b15-46d4-41d6-a1ea-9dd38c8e772c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_e8401c09-7952-4617-871d-2b8640015b5f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_1cc05b15-46d4-41d6-a1ea-9dd38c8e772c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_796fd700-730c-4116-81cf-e0b6ca8016ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_88dad727-e443-48a2-acf1-7494da2b7bcf" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_796fd700-730c-4116-81cf-e0b6ca8016ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_796fd700-730c-4116-81cf-e0b6ca8016ae_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_796fd700-730c-4116-81cf-e0b6ca8016ae" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_796fd700-730c-4116-81cf-e0b6ca8016ae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_424ec8a9-ad0b-45d8-995c-43f25ec47d95" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_796fd700-730c-4116-81cf-e0b6ca8016ae" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_424ec8a9-ad0b-45d8-995c-43f25ec47d95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_69e83d7d-5091-4d52-89ae-f001f0a005e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_424ec8a9-ad0b-45d8-995c-43f25ec47d95" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_69e83d7d-5091-4d52-89ae-f001f0a005e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_ac58337b-42b6-41a2-8afc-52733d048603" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_88dad727-e443-48a2-acf1-7494da2b7bcf" xlink:to="loc_srt_MajorCustomersAxis_ac58337b-42b6-41a2-8afc-52733d048603" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_ac58337b-42b6-41a2-8afc-52733d048603_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_ac58337b-42b6-41a2-8afc-52733d048603" xlink:to="loc_srt_NameOfMajorCustomerDomain_ac58337b-42b6-41a2-8afc-52733d048603_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_28234f93-4132-4f2b-bcfa-26ad6da3c8c8" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_ac58337b-42b6-41a2-8afc-52733d048603" xlink:to="loc_srt_NameOfMajorCustomerDomain_28234f93-4132-4f2b-bcfa-26ad6da3c8c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TopTenCustomersMember_a91606cd-be71-4c6d-92ae-46c32777fef5" xlink:href="wdc-20200403.xsd#wdc_TopTenCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_28234f93-4132-4f2b-bcfa-26ad6da3c8c8" xlink:to="loc_wdc_TopTenCustomersMember_a91606cd-be71-4c6d-92ae-46c32777fef5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesRevenueRemainingPerformanceObligationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="extended" id="ibb965b04ba594b4cba7aea54d9b82b57_RevenuesRevenueRemainingPerformanceObligationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_0082aa68-db14-47ab-9ddc-f1f222f7354b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_0082aa68-db14-47ab-9ddc-f1f222f7354b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_440e3b1d-38b4-4280-947a-36d5fb32faf7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_440e3b1d-38b4-4280-947a-36d5fb32faf7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_69ac3873-6197-457a-a3b2-8e5ab850c3a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_69ac3873-6197-457a-a3b2-8e5ab850c3a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_810745e7-f4c5-4fd1-a793-2ca03b9cc909" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_69ac3873-6197-457a-a3b2-8e5ab850c3a6" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_810745e7-f4c5-4fd1-a793-2ca03b9cc909" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesRevenueRemainingPerformanceObligationDetails_1"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="extended" id="iab5ba9dba89145738e9aeb7c03a5203c_RevenuesRevenueRemainingPerformanceObligationDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_0082aa68-db14-47ab-9ddc-f1f222f7354b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_0082aa68-db14-47ab-9ddc-f1f222f7354b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_440e3b1d-38b4-4280-947a-36d5fb32faf7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_440e3b1d-38b4-4280-947a-36d5fb32faf7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_69ac3873-6197-457a-a3b2-8e5ab850c3a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_f6aaaef8-165b-4cd4-a202-585e69946f28" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_69ac3873-6197-457a-a3b2-8e5ab850c3a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RevenuesDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="extended" id="ia51020063f50487296455a7edc38c1d5_RevenuesDisaggregationofRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_b915d80c-2e8f-4bfe-b6f7-5b261a285c97" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2faa2663-3500-47a9-b13d-e74697afc5c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b915d80c-2e8f-4bfe-b6f7-5b261a285c97" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2faa2663-3500-47a9-b13d-e74697afc5c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_b86fc4d9-72d3-4c9c-bc87-3fc88a2bd419" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b915d80c-2e8f-4bfe-b6f7-5b261a285c97" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_b86fc4d9-72d3-4c9c-bc87-3fc88a2bd419" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorAxis_62a110f7-4002-48d3-86a7-c1d14423ff61" xlink:href="wdc-20200403.xsd#wdc_FormFactorAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_b86fc4d9-72d3-4c9c-bc87-3fc88a2bd419" xlink:to="loc_wdc_FormFactorAxis_62a110f7-4002-48d3-86a7-c1d14423ff61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorDomain_62a110f7-4002-48d3-86a7-c1d14423ff61_default" xlink:href="wdc-20200403.xsd#wdc_FormFactorDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_FormFactorAxis_62a110f7-4002-48d3-86a7-c1d14423ff61" xlink:to="loc_wdc_FormFactorDomain_62a110f7-4002-48d3-86a7-c1d14423ff61_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorDomain_17795266-4afe-4b11-a501-0a8b405854f0" xlink:href="wdc-20200403.xsd#wdc_FormFactorDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_FormFactorAxis_62a110f7-4002-48d3-86a7-c1d14423ff61" xlink:to="loc_wdc_FormFactorDomain_17795266-4afe-4b11-a501-0a8b405854f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_2f4f63b8-be55-4e3b-a7a5-9f60dd9b9d80" xlink:href="wdc-20200403.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_17795266-4afe-4b11-a501-0a8b405854f0" xlink:to="loc_wdc_HDDMember_2f4f63b8-be55-4e3b-a7a5-9f60dd9b9d80" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashbasedMember_ad96feaa-ea75-4021-808e-a6c5c460f8dc" xlink:href="wdc-20200403.xsd#wdc_FlashbasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_17795266-4afe-4b11-a501-0a8b405854f0" xlink:to="loc_wdc_FlashbasedMember_ad96feaa-ea75-4021-808e-a6c5c460f8dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_84731acb-a838-4a66-ae6c-a44dd495cfe6" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_b86fc4d9-72d3-4c9c-bc87-3fc88a2bd419" xlink:to="loc_srt_ProductOrServiceAxis_84731acb-a838-4a66-ae6c-a44dd495cfe6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_84731acb-a838-4a66-ae6c-a44dd495cfe6_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_84731acb-a838-4a66-ae6c-a44dd495cfe6" xlink:to="loc_srt_ProductsAndServicesDomain_84731acb-a838-4a66-ae6c-a44dd495cfe6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_789d54a3-897f-411c-a069-8e79fc3af700" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_84731acb-a838-4a66-ae6c-a44dd495cfe6" xlink:to="loc_srt_ProductsAndServicesDomain_789d54a3-897f-411c-a069-8e79fc3af700" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientDevicesMember_9163d7d3-55c4-44ba-9a2a-4b4c31e2da7f" xlink:href="wdc-20200403.xsd#wdc_ClientDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_789d54a3-897f-411c-a069-8e79fc3af700" xlink:to="loc_wdc_ClientDevicesMember_9163d7d3-55c4-44ba-9a2a-4b4c31e2da7f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DataCenterDevicesSolutionsMember_717b413c-30ba-44df-b14a-49d447f08a81" xlink:href="wdc-20200403.xsd#wdc_DataCenterDevicesSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_789d54a3-897f-411c-a069-8e79fc3af700" xlink:to="loc_wdc_DataCenterDevicesSolutionsMember_717b413c-30ba-44df-b14a-49d447f08a81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientSolutionsMember_ee4c20bf-50b8-4f5c-9ed1-79c779c3d4a9" xlink:href="wdc-20200403.xsd#wdc_ClientSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_789d54a3-897f-411c-a069-8e79fc3af700" xlink:to="loc_wdc_ClientSolutionsMember_ee4c20bf-50b8-4f5c-9ed1-79c779c3d4a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_a806968b-4d56-456f-aea7-c3f52414ceab" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_b86fc4d9-72d3-4c9c-bc87-3fc88a2bd419" xlink:to="loc_srt_StatementGeographicalAxis_a806968b-4d56-456f-aea7-c3f52414ceab" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a806968b-4d56-456f-aea7-c3f52414ceab_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_a806968b-4d56-456f-aea7-c3f52414ceab" xlink:to="loc_srt_SegmentGeographicalDomain_a806968b-4d56-456f-aea7-c3f52414ceab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_087e1344-8b93-4df0-b40f-2cfb72539832" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_a806968b-4d56-456f-aea7-c3f52414ceab" xlink:to="loc_srt_SegmentGeographicalDomain_087e1344-8b93-4df0-b40f-2cfb72539832" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AmericasMember_a4e3f325-f675-4145-938b-d3258682a81c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_AmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_087e1344-8b93-4df0-b40f-2cfb72539832" xlink:to="loc_srt_AmericasMember_a4e3f325-f675-4145-938b-d3258682a81c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EuropeMiddleEastAndAfricaMember_78582c93-38e6-49fd-992a-23f632e7c2ea" xlink:href="wdc-20200403.xsd#wdc_EuropeMiddleEastAndAfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_087e1344-8b93-4df0-b40f-2cfb72539832" xlink:to="loc_wdc_EuropeMiddleEastAndAfricaMember_78582c93-38e6-49fd-992a-23f632e7c2ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaMember_6b3f377b-c43d-4465-8c83-b721fbcd8f83" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_AsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_087e1344-8b93-4df0-b40f-2cfb72539832" xlink:to="loc_srt_AsiaMember_6b3f377b-c43d-4465-8c83-b721fbcd8f83" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementData"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="extended" id="id65d67a0b1eb47bebd46a7bd06c32d26_SupplementalFinancialStatementData"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="extended" id="i174153236d854a57946acaa9f30df274_SupplementalFinancialStatementDataTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="extended" id="i0a72945ec5034b3cbd5be46d5a46b569_SupplementalFinancialStatementDataAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_ca7523d4-4510-4cb8-898b-3a1ec071e3a2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_ca7523d4-4510-4cb8-898b-3a1ec071e3a2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_30fc3d81-9373-4ae7-b71a-8e83bae21fee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_NotesReceivableNet_30fc3d81-9373-4ae7-b71a-8e83bae21fee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_c2c02163-7452-42f7-ad4e-3a4061ec1502" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_c2c02163-7452-42f7-ad4e-3a4061ec1502" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIntangibleAssetsNet_d873cb3a-6c26-4a2c-8ad4-29b9a3060c68" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_OtherIntangibleAssetsNet_d873cb3a-6c26-4a2c-8ad4-29b9a3060c68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_862e716c-60ca-4a8b-96e8-33f3dc438024" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_862e716c-60ca-4a8b-96e8-33f3dc438024" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_64bc0ad9-55cc-442d-a703-7d2a5cc5f744" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_64bc0ad9-55cc-442d-a703-7d2a5cc5f744" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod_cf050588-03ec-4ef4-b5f0-3cc9bf4792c4" xlink:href="wdc-20200403.xsd#wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod_cf050588-03ec-4ef4-b5f0-3cc9bf4792c4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_2dff959d-1be3-414a-bab3-ca1d48bcebd3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_2dff959d-1be3-414a-bab3-ca1d48bcebd3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_d5248822-3ab0-43d6-b0be-3bdc1b94c322" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_fc87ffb6-5ad9-46e4-8cbd-d0ed35dcaa55" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_d5248822-3ab0-43d6-b0be-3bdc1b94c322" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_d5248822-3ab0-43d6-b0be-3bdc1b94c322" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_58123e55-602e-4127-b52f-2f69cbecf5b2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_839bc26d-5f6b-48ec-8f54-73c0e89ffe0c" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_58123e55-602e-4127-b52f-2f69cbecf5b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IntelliFlashMember_afb30868-e430-4c35-9f20-13851560fae3" xlink:href="wdc-20200403.xsd#wdc_IntelliFlashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_58123e55-602e-4127-b52f-2f69cbecf5b2" xlink:to="loc_wdc_IntelliFlashMember_afb30868-e430-4c35-9f20-13851560fae3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_d5248822-3ab0-43d6-b0be-3bdc1b94c322" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_4823c2e7-abca-4d58-bdee-a441fcb1384d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_245c9e8f-c76f-4fa9-a0ab-d44f7fc44914" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_4823c2e7-abca-4d58-bdee-a441fcb1384d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_67a2bc29-362d-4f08-9db0-72a83bab6744" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_4823c2e7-abca-4d58-bdee-a441fcb1384d" xlink:to="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_67a2bc29-362d-4f08-9db0-72a83bab6744" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_9bee8572-ae1e-4848-9b5d-ff7b7126c366" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_d5248822-3ab0-43d6-b0be-3bdc1b94c322" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_9bee8572-ae1e-4848-9b5d-ff7b7126c366" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_9bee8572-ae1e-4848-9b5d-ff7b7126c366_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_9bee8572-ae1e-4848-9b5d-ff7b7126c366" xlink:to="loc_us-gaap_ReceivableTypeDomain_9bee8572-ae1e-4848-9b5d-ff7b7126c366_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_30914169-4751-49ea-b36b-27c8f4f404c5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_9bee8572-ae1e-4848-9b5d-ff7b7126c366" xlink:to="loc_us-gaap_ReceivableTypeDomain_30914169-4751-49ea-b36b-27c8f4f404c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FactoredReceivablesMember_e3ec1307-3f45-4f2d-8c5e-d1e8bd35b386" xlink:href="wdc-20200403.xsd#wdc_FactoredReceivablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_30914169-4751-49ea-b36b-27c8f4f404c5" xlink:to="loc_wdc_FactoredReceivablesMember_e3ec1307-3f45-4f2d-8c5e-d1e8bd35b386" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataInventoryDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="extended" id="i3996c94a3cf048dd92d2536a98efe9b2_SupplementalFinancialStatementDataInventoryDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended" id="ia3d2bcdac4fd4d0c810f16e2af5ef7cf_SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SupplementalFinancialInformationLineItems_e8e1dd3d-27cf-4b4e-ad49-ce949487213f" xlink:href="wdc-20200403.xsd#wdc_SupplementalFinancialInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_e4adb6ee-fc2d-4bbd-afd1-0198d2f9a2de" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_e8e1dd3d-27cf-4b4e-ad49-ce949487213f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_e4adb6ee-fc2d-4bbd-afd1-0198d2f9a2de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_b4cc19dd-2711-4074-9f4b-4aeaafe3ff70" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_e4adb6ee-fc2d-4bbd-afd1-0198d2f9a2de" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_b4cc19dd-2711-4074-9f4b-4aeaafe3ff70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_37f7d778-2f64-491d-9620-5bed5b66ca2a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_e4adb6ee-fc2d-4bbd-afd1-0198d2f9a2de" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_37f7d778-2f64-491d-9620-5bed5b66ca2a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_75c7e5c4-b82d-47bd-b796-65202d305f28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_e4adb6ee-fc2d-4bbd-afd1-0198d2f9a2de" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_75c7e5c4-b82d-47bd-b796-65202d305f28" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SupplementalFinancialInformationTable_527b8596-2cea-407f-9c7d-72549892abb1" xlink:href="wdc-20200403.xsd#wdc_SupplementalFinancialInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_e8e1dd3d-27cf-4b4e-ad49-ce949487213f" xlink:to="loc_wdc_SupplementalFinancialInformationTable_527b8596-2cea-407f-9c7d-72549892abb1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6a72486a-ebcb-426a-9dc4-6017eb598333" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_SupplementalFinancialInformationTable_527b8596-2cea-407f-9c7d-72549892abb1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6a72486a-ebcb-426a-9dc4-6017eb598333" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6a72486a-ebcb-426a-9dc4-6017eb598333_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6a72486a-ebcb-426a-9dc4-6017eb598333" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6a72486a-ebcb-426a-9dc4-6017eb598333_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6a72486a-ebcb-426a-9dc4-6017eb598333" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_80e8abb9-770a-49de-80bd-1b027804c90c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_us-gaap_LandMember_80e8abb9-770a-49de-80bd-1b027804c90c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_0d76b9e6-ef48-41f0-9394-14c15721df04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_0d76b9e6-ef48-41f0-9394-14c15721df04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_6b7024f3-bd07-4a05-801d-bc71760bc050" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_6b7024f3-bd07-4a05-801d-bc71760bc050" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ComputerEquipmentandSoftwareMember_baf138a6-67c3-49bb-99d7-2b2fb7aa52a1" xlink:href="wdc-20200403.xsd#wdc_ComputerEquipmentandSoftwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_wdc_ComputerEquipmentandSoftwareMember_baf138a6-67c3-49bb-99d7-2b2fb7aa52a1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_197346c1-c346-4abc-827e-603e05168e71" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_197346c1-c346-4abc-827e-603e05168e71" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_ead6d7b4-679d-471a-ab08-e73c88c29da3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_0cfff38f-2203-475c-8e5b-a7055cafcbc2" xlink:to="loc_us-gaap_ConstructionInProgressMember_ead6d7b4-679d-471a-ab08-e73c88c29da3" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataGoodwillRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="extended" id="ic0ae559643c147328f0707da0e23600d_SupplementalFinancialStatementDataGoodwillRollForwardDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="extended" id="i9b9dfbef166f449ab2d368c579f59bf9_SupplementalFinancialStatementDataIntangibleAssetsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="extended" id="i312c79d6481a46ff8a4024cb35563273_SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="extended" id="i7821eec747944a71b62e8434e6f42bd5_SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="extended" id="ibabe76c8c3d848a3b9faba3950f22df9_SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended" id="i036d867ca484493b8947cc0931e4c626_SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_faa51712-9a8f-411a-8d1b-b8b4368e7492" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:href="wdc-20200403.xsd#wdc_AccumulatedOtherComprehensiveIncomeLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_faa51712-9a8f-411a-8d1b-b8b4368e7492" xlink:to="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_512e58db-4c31-481e-bbdf-d065f688c40f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:to="loc_us-gaap_StockholdersEquity_512e58db-4c31-481e-bbdf-d065f688c40f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_4199f476-9922-45b1-bb19-2c6b438a0ce5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_4199f476-9922-45b1-bb19-2c6b438a0ce5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_68da93b8-bcec-4758-a0fc-1dd7ba7d501d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_68da93b8-bcec-4758-a0fc-1dd7ba7d501d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_38995d2f-027d-4bb2-90ef-86c464f9441c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_38995d2f-027d-4bb2-90ef-86c464f9441c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a3757b1-4790-4f3e-bb56-9f674c56902d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_29830fd2-4ea2-41ce-9c2b-3c3668aa584f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9a3757b1-4790-4f3e-bb56-9f674c56902d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_22a03f13-ebfd-46d2-9ac7-f34f10cf6e29" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8b2745e4-e637-4923-8ca6-5bc41777375f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_faa51712-9a8f-411a-8d1b-b8b4368e7492" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8b2745e4-e637-4923-8ca6-5bc41777375f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_e52a1600-a1a2-4aa3-b5eb-522968472ce3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_8b2745e4-e637-4923-8ca6-5bc41777375f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_e52a1600-a1a2-4aa3-b5eb-522968472ce3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e52a1600-a1a2-4aa3-b5eb-522968472ce3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e52a1600-a1a2-4aa3-b5eb-522968472ce3" xlink:to="loc_us-gaap_EquityComponentDomain_e52a1600-a1a2-4aa3-b5eb-522968472ce3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e52a1600-a1a2-4aa3-b5eb-522968472ce3" xlink:to="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_cee47f4a-1877-428c-95f1-49d0771fce9a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_cee47f4a-1877-428c-95f1-49d0771fce9a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_3dde6af4-d53b-45c4-8178-6cdb48d91eec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_3dde6af4-d53b-45c4-8178-6cdb48d91eec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_9830a6fa-4e8f-4f0f-b62b-bce4270ca93a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_9830a6fa-4e8f-4f0f-b62b-bce4270ca93a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_09cd2612-c90e-4535-9044-37d62956446f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_c8346135-bfa1-462a-8246-8d77cea1451c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_09cd2612-c90e-4535-9044-37d62956446f" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="simple" xlink:href="wdc-20200403.xsd#FairValueMeasurementsandInvestments"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="extended" id="i385bc88f652648f9a4a87ff15e8dd797_FairValueMeasurementsandInvestments"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#FairValueMeasurementsandInvestmentsTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="extended" id="i6d3e72f95e0344b2b72ef918a3db4b93_FairValueMeasurementsandInvestmentsTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20200403.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="extended" id="iead24fa179314365b25de16aa0d6b18b_FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b9797fc5-d72f-4a38-8996-a8a7db835a1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_6ba65045-0328-4714-934b-3f9ee4ba3018" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b9797fc5-d72f-4a38-8996-a8a7db835a1f" xlink:to="loc_us-gaap_AssetsAbstract_6ba65045-0328-4714-934b-3f9ee4ba3018" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_601429c7-c926-4ab9-a43b-9ab12676fb1e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_6ba65045-0328-4714-934b-3f9ee4ba3018" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_601429c7-c926-4ab9-a43b-9ab12676fb1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_9513e5a8-888e-4afe-b26f-39f09b781116" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_6ba65045-0328-4714-934b-3f9ee4ba3018" xlink:to="loc_us-gaap_DerivativeAssets_9513e5a8-888e-4afe-b26f-39f09b781116" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_1dbbca87-a69d-4030-bc21-9f8adb360e39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_6ba65045-0328-4714-934b-3f9ee4ba3018" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_1dbbca87-a69d-4030-bc21-9f8adb360e39" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_07a7a245-348a-43c3-9aac-b40ec9ca7bfb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b9797fc5-d72f-4a38-8996-a8a7db835a1f" xlink:to="loc_us-gaap_LiabilitiesAbstract_07a7a245-348a-43c3-9aac-b40ec9ca7bfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_3765b1d9-39a8-438f-b6a3-5245745ea1f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_07a7a245-348a-43c3-9aac-b40ec9ca7bfb" xlink:to="loc_us-gaap_DerivativeLiabilities_3765b1d9-39a8-438f-b6a3-5245745ea1f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_96d5e39c-297d-45b4-b632-41ccd21e1e1a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_07a7a245-348a-43c3-9aac-b40ec9ca7bfb" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_96d5e39c-297d-45b4-b632-41ccd21e1e1a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c538785c-9d71-4a6d-82fe-26b2f34ee2dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b9797fc5-d72f-4a38-8996-a8a7db835a1f" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c538785c-9d71-4a6d-82fe-26b2f34ee2dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_086c85c1-3869-43f0-aa85-d4e76bde7f03" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c538785c-9d71-4a6d-82fe-26b2f34ee2dd" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_086c85c1-3869-43f0-aa85-d4e76bde7f03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_086c85c1-3869-43f0-aa85-d4e76bde7f03_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_086c85c1-3869-43f0-aa85-d4e76bde7f03" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_086c85c1-3869-43f0-aa85-d4e76bde7f03_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_53cbcd0d-d4f3-4a58-8216-c9d5f0862829" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_086c85c1-3869-43f0-aa85-d4e76bde7f03" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_53cbcd0d-d4f3-4a58-8216-c9d5f0862829" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_992f123a-9f16-444c-9d72-366d5995cd1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_53cbcd0d-d4f3-4a58-8216-c9d5f0862829" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_992f123a-9f16-444c-9d72-366d5995cd1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_301102ea-8800-4da9-9f11-26728e39b1fa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c538785c-9d71-4a6d-82fe-26b2f34ee2dd" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_301102ea-8800-4da9-9f11-26728e39b1fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_301102ea-8800-4da9-9f11-26728e39b1fa_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_301102ea-8800-4da9-9f11-26728e39b1fa" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_301102ea-8800-4da9-9f11-26728e39b1fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_301102ea-8800-4da9-9f11-26728e39b1fa" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_644f633d-bbec-4ee6-8955-0446938721e2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:to="loc_us-gaap_MoneyMarketFundsMember_644f633d-bbec-4ee6-8955-0446938721e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_d5487975-6a81-4515-a482-f8dcea6782e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:to="loc_us-gaap_CertificatesOfDepositMember_d5487975-6a81-4515-a482-f8dcea6782e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_f294b218-8387-4d9d-85b9-1cabd8512e7d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:to="loc_us-gaap_ForeignExchangeContractMember_f294b218-8387-4d9d-85b9-1cabd8512e7d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_688b1870-b75c-459f-901a-0dd424f05c53" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0e54d7e2-76f8-4ee9-9a63-87e23b5a1b12" xlink:to="loc_us-gaap_InterestRateSwapMember_688b1870-b75c-459f-901a-0dd424f05c53" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0d185c52-124b-4530-aff2-d024de964afd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c538785c-9d71-4a6d-82fe-26b2f34ee2dd" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0d185c52-124b-4530-aff2-d024de964afd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0d185c52-124b-4530-aff2-d024de964afd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0d185c52-124b-4530-aff2-d024de964afd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0d185c52-124b-4530-aff2-d024de964afd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_295ae3d2-74b7-4f29-9624-3487e89ee00d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_0d185c52-124b-4530-aff2-d024de964afd" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_295ae3d2-74b7-4f29-9624-3487e89ee00d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_e4a092d0-f52e-4b91-9002-ec4677bba138" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_295ae3d2-74b7-4f29-9624-3487e89ee00d" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_e4a092d0-f52e-4b91-9002-ec4677bba138" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_4dd40654-600f-41b9-b6a6-4cc4e3f191dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_295ae3d2-74b7-4f29-9624-3487e89ee00d" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_4dd40654-600f-41b9-b6a6-4cc4e3f191dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_dac5c810-7e56-4db7-abda-cdde2cf3d739" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_295ae3d2-74b7-4f29-9624-3487e89ee00d" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_dac5c810-7e56-4db7-abda-cdde2cf3d739" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="extended" id="i4b455dc5453445659b8e921c8aeaec3a_FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_0ee887e4-7008-4c7c-837a-00f252e672df" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4deaaed1-eb62-4f2d-805d-be18f7cd1fd9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0ee887e4-7008-4c7c-837a-00f252e672df" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_4deaaed1-eb62-4f2d-805d-be18f7cd1fd9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_a1e15d13-25ad-405a-99b7-d94f1c44d075" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0ee887e4-7008-4c7c-837a-00f252e672df" xlink:to="loc_us-gaap_LongTermDebtFairValue_a1e15d13-25ad-405a-99b7-d94f1c44d075" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_6ddcd127-c4b7-4d55-98a8-35a732720b42" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0ee887e4-7008-4c7c-837a-00f252e672df" xlink:to="loc_us-gaap_DebtInstrumentTable_6ddcd127-c4b7-4d55-98a8-35a732720b42" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7ac43fde-508a-41bc-914c-64dfa73a0d65" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_6ddcd127-c4b7-4d55-98a8-35a732720b42" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7ac43fde-508a-41bc-914c-64dfa73a0d65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7ac43fde-508a-41bc-914c-64dfa73a0d65_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7ac43fde-508a-41bc-914c-64dfa73a0d65" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7ac43fde-508a-41bc-914c-64dfa73a0d65_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8d34323b-f751-4fac-a375-8823b784c406" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7ac43fde-508a-41bc-914c-64dfa73a0d65" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8d34323b-f751-4fac-a375-8823b784c406" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_bebb6062-9e94-474f-9eb9-521e43bbf16e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8d34323b-f751-4fac-a375-8823b784c406" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_bebb6062-9e94-474f-9eb9-521e43bbf16e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_0b20529a-9e11-495a-a4ab-0f9285800547" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_6ddcd127-c4b7-4d55-98a8-35a732720b42" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_0b20529a-9e11-495a-a4ab-0f9285800547" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_0b20529a-9e11-495a-a4ab-0f9285800547_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_0b20529a-9e11-495a-a4ab-0f9285800547" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_0b20529a-9e11-495a-a4ab-0f9285800547_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_c51aca54-e11d-4490-9a81-21935abd0a65" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_0b20529a-9e11-495a-a4ab-0f9285800547" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_c51aca54-e11d-4490-9a81-21935abd0a65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8ee8e1c0-9128-4169-9e8c-7723236cfb3d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_c51aca54-e11d-4490-9a81-21935abd0a65" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8ee8e1c0-9128-4169-9e8c-7723236cfb3d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_6af3f4ee-20a1-47d6-9907-5f15f01a2d6e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_8ee8e1c0-9128-4169-9e8c-7723236cfb3d" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_6af3f4ee-20a1-47d6-9907-5f15f01a2d6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_1730a15b-4adb-4c5d-aab5-6697bc7bee21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_c51aca54-e11d-4490-9a81-21935abd0a65" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_1730a15b-4adb-4c5d-aab5-6697bc7bee21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_a97d826e-dcf4-4eb9-9721-a83406e298b1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_ae61a6e1-e8b9-4339-a99a-4ae3555f8649" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_6ddcd127-c4b7-4d55-98a8-35a732720b42" xlink:to="loc_us-gaap_DebtInstrumentAxis_ae61a6e1-e8b9-4339-a99a-4ae3555f8649" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ae61a6e1-e8b9-4339-a99a-4ae3555f8649_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_ae61a6e1-e8b9-4339-a99a-4ae3555f8649" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ae61a6e1-e8b9-4339-a99a-4ae3555f8649_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_ae61a6e1-e8b9-4339-a99a-4ae3555f8649" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_5f60de6e-7dfd-46a5-8f33-fcd267e62a24" xlink:href="wdc-20200403.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_5f60de6e-7dfd-46a5-8f33-fcd267e62a24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA1Member_97daf7ac-d06b-40de-966a-2cda2c2793c5" xlink:href="wdc-20200403.xsd#wdc_TermLoanA1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:to="loc_wdc_TermLoanA1Member_97daf7ac-d06b-40de-966a-2cda2c2793c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_9cc4460b-50e7-4668-a54e-aad2db4f8ef1" xlink:href="wdc-20200403.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:to="loc_wdc_U.S.TermLoanB4Member_9cc4460b-50e7-4668-a54e-aad2db4f8ef1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_1ee75245-e144-4f2f-ab4b-2376064449ff" xlink:href="wdc-20200403.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_1ee75245-e144-4f2f-ab4b-2376064449ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_86853d5c-3a51-4f8c-bd06-3ec82e7af1fd" xlink:href="wdc-20200403.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ec03e7c9-c554-407d-bf43-13fe565ddbef" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_86853d5c-3a51-4f8c-bd06-3ec82e7af1fd" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="simple" xlink:href="wdc-20200403.xsd#DerivativesInstrumentsandHedgingActivities"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="extended" id="i9b719cb7fee544c8bf75f48279293b97_DerivativesInstrumentsandHedgingActivities"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="extended" id="i39951d03ccdc4229882ca0937d1b3afe_DerivativesInstrumentsandHedgingActivitiesAdditionalInformationDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Debt" xlink:type="simple" xlink:href="wdc-20200403.xsd#Debt"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/Debt" xlink:type="extended" id="i4dfdfa98b5e145d996623085f020cc86_Debt"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#DebtTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtTables" xlink:type="extended" id="i8bc415d87de843ba9c2b66e90ff5988f_DebtTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#DebtScheduleofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="extended" id="i1c11041f87094c18bfe6af8b788944a5_DebtScheduleofDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b7cee277-3671-4f2e-b76f-94e8cb5179b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_b7cee277-3671-4f2e-b76f-94e8cb5179b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_3006c683-fd95-4b81-bae2-5c24ffce6d3e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_3006c683-fd95-4b81-bae2-5c24ffce6d3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_752da338-baf4-4f7e-b33f-221040ee98b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_752da338-baf4-4f7e-b33f-221040ee98b8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_1bf85908-9ccd-4507-a8f4-7840f4357b1b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_LongTermDebt_1bf85908-9ccd-4507-a8f4-7840f4357b1b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_77de63d5-f6f6-4f2a-a52b-9d292d0f0949" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_LongTermDebtCurrent_77de63d5-f6f6-4f2a-a52b-9d292d0f0949" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_365ae1e1-2c61-42d3-bd5c-1719eaf4f4f1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_365ae1e1-2c61-42d3-bd5c-1719eaf4f4f1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_90f4821c-fb4e-4378-aa62-bf7faa5fb8e1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_84b80eee-85e8-4c97-b777-f749d967a54b" xlink:to="loc_us-gaap_DebtInstrumentTable_90f4821c-fb4e-4378-aa62-bf7faa5fb8e1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_3f018653-10bb-4bcc-9ade-e623d60a1325" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_90f4821c-fb4e-4378-aa62-bf7faa5fb8e1" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_3f018653-10bb-4bcc-9ade-e623d60a1325" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3f018653-10bb-4bcc-9ade-e623d60a1325_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3f018653-10bb-4bcc-9ade-e623d60a1325" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3f018653-10bb-4bcc-9ade-e623d60a1325_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fd01a1fd-5c33-4296-ba84-1a4594fbb363" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3f018653-10bb-4bcc-9ade-e623d60a1325" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fd01a1fd-5c33-4296-ba84-1a4594fbb363" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_d3fe4da4-d698-4ad8-913f-ae8b9378fe9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_fd01a1fd-5c33-4296-ba84-1a4594fbb363" xlink:to="loc_us-gaap_ConvertibleDebtMember_d3fe4da4-d698-4ad8-913f-ae8b9378fe9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_648edf23-13f0-4845-a2d3-c78e42b7b7ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_90f4821c-fb4e-4378-aa62-bf7faa5fb8e1" xlink:to="loc_us-gaap_DebtInstrumentAxis_648edf23-13f0-4845-a2d3-c78e42b7b7ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_648edf23-13f0-4845-a2d3-c78e42b7b7ee_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_648edf23-13f0-4845-a2d3-c78e42b7b7ee" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_648edf23-13f0-4845-a2d3-c78e42b7b7ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_648edf23-13f0-4845-a2d3-c78e42b7b7ee" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_7921626e-b0e5-42e2-afb5-db36630ee61c" xlink:href="wdc-20200403.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_7921626e-b0e5-42e2-afb5-db36630ee61c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA1Member_78479599-cb86-4f5e-9b04-d6737427e572" xlink:href="wdc-20200403.xsd#wdc_TermLoanA1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:to="loc_wdc_TermLoanA1Member_78479599-cb86-4f5e-9b04-d6737427e572" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_9d2df55f-a026-449a-ade8-028a425b5b71" xlink:href="wdc-20200403.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:to="loc_wdc_U.S.TermLoanB4Member_9d2df55f-a026-449a-ade8-028a425b5b71" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_fce86e00-0cb7-43cb-bddc-8f9d49b50438" xlink:href="wdc-20200403.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_fce86e00-0cb7-43cb-bddc-8f9d49b50438" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_959fb5d4-1e4b-4466-be6a-17ca16647a71" xlink:href="wdc-20200403.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a84b97bd-d6ef-4b82-af29-fbd8826746c0" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_959fb5d4-1e4b-4466-be6a-17ca16647a71" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#DebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended" id="i72e48d911d7d47c1b98a41affb59df7e_DebtAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_ab6263da-7a2a-44d2-bd4f-e988443ddb55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_948ff5bf-940c-4a4f-90c1-8522e4f20c6d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ab6263da-7a2a-44d2-bd4f-e988443ddb55" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_948ff5bf-940c-4a4f-90c1-8522e4f20c6d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_e47b76d2-87e0-4dfd-a6d7-84aab91de9fa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ab6263da-7a2a-44d2-bd4f-e988443ddb55" xlink:to="loc_us-gaap_DebtInstrumentTable_e47b76d2-87e0-4dfd-a6d7-84aab91de9fa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_84f0c5d5-30ce-4a4d-bab6-1b28333932bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_e47b76d2-87e0-4dfd-a6d7-84aab91de9fa" xlink:to="loc_us-gaap_DebtInstrumentAxis_84f0c5d5-30ce-4a4d-bab6-1b28333932bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_84f0c5d5-30ce-4a4d-bab6-1b28333932bd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_84f0c5d5-30ce-4a4d-bab6-1b28333932bd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_84f0c5d5-30ce-4a4d-bab6-1b28333932bd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_86a1f427-19d2-45f8-adb9-add1fdfd10d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_84f0c5d5-30ce-4a4d-bab6-1b28333932bd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_86a1f427-19d2-45f8-adb9-add1fdfd10d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_d55a914c-68b7-41bb-94a5-ef139711d917" xlink:href="wdc-20200403.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86a1f427-19d2-45f8-adb9-add1fdfd10d1" xlink:to="loc_wdc_U.S.TermLoanB4Member_d55a914c-68b7-41bb-94a5-ef139711d917" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlans" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlans"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlans" xlink:type="extended" id="if987a66f4fa44bf1af505ecfb8012751_PensionsandOtherPostretirementBenefitPlans"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlansTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansTables" xlink:type="extended" id="i838bebce73ee4937875e0edb8a2717ee_PensionsandOtherPostretirementBenefitPlansTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails" xlink:type="extended" id="i5bee4ceb3958461ba5904a363a5456cc_PensionsandOtherPostretirementBenefitPlansAdditionalInformationDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="extended" id="i6092690e74454c04b7a7473e96d829d5_PensionsandOtherPostretirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="extended" id="i970f45fac1b942b7839077f78eee25b4_PensionsandOtherPostretirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingencies"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="extended" id="iaaa16fe51a074bfea9b8489e9fc310b3_RelatedPartiesandRelatedCommitmentsandContingencies"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="extended" id="if461a982244c445fbc5778e363948ddc_RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended" id="i50fcd5b22166467bb2ad94e9e9f329e7_RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_f5e167ec-e2e2-46f1-b458-3cd2ea2b65c5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_f5e167ec-e2e2-46f1-b458-3cd2ea2b65c5" xlink:to="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_400b3952-dff2-4377-9161-ac9f63e20af2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_400b3952-dff2-4377-9161-ac9f63e20af2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_3064054c-c9c5-4bd4-acfd-47bd5605168e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_3064054c-c9c5-4bd4-acfd-47bd5605168e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_InvestmentFundingCommitments_76ad2dad-70f7-466b-a8ff-57cc028b58bd" xlink:href="wdc-20200403.xsd#wdc_InvestmentFundingCommitments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_wdc_InvestmentFundingCommitments_76ad2dad-70f7-466b-a8ff-57cc028b58bd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_912caa8e-1d19-486f-a4be-0976cb811989" xlink:href="wdc-20200403.xsd#wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_912caa8e-1d19-486f-a4be-0976cb811989" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_d51ad975-648a-4ef7-a056-4b8d10e4e3ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_us-gaap_OtherCommitment_d51ad975-648a-4ef7-a056-4b8d10e4e3ba" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherCommitmentPeriod_291088b5-362a-450e-9b55-d90efe81bebd" xlink:href="wdc-20200403.xsd#wdc_OtherCommitmentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_wdc_OtherCommitmentPeriod_291088b5-362a-450e-9b55-d90efe81bebd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_76eff547-e576-4cb4-9d4b-d2d5e57f3a29" xlink:href="wdc-20200403.xsd#wdc_OtherCommitmentRemainingCommittedPrepayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_76eff547-e576-4cb4-9d4b-d2d5e57f3a29" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_2b26090f-70f6-4f5d-8148-155018865b83" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_2b26090f-70f6-4f5d-8148-155018865b83" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PartnersOwnershipInVentureBusiness_ab51f428-5f14-4b1e-8a5a-1195711d88ff" xlink:href="wdc-20200403.xsd#wdc_PartnersOwnershipInVentureBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_wdc_PartnersOwnershipInVentureBusiness_ab51f428-5f14-4b1e-8a5a-1195711d88ff" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_a22e7b3b-f090-43bc-a350-af0cb7f052fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_9ed33a5b-84cf-48b0-bcdc-165dfcb9b449" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_a22e7b3b-f090-43bc-a350-af0cb7f052fd" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:href="wdc-20200403.xsd#wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_f5e167ec-e2e2-46f1-b458-3cd2ea2b65c5" xlink:to="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1742e3ee-92d2-441d-9369-b4f385067be0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1742e3ee-92d2-441d-9369-b4f385067be0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1742e3ee-92d2-441d-9369-b4f385067be0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1742e3ee-92d2-441d-9369-b4f385067be0" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1742e3ee-92d2-441d-9369-b4f385067be0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7b0ded5c-aa78-4355-86ea-0627b2caf95a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1742e3ee-92d2-441d-9369-b4f385067be0" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7b0ded5c-aa78-4355-86ea-0627b2caf95a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_94e22da9-9feb-47f1-8826-bcf2b1d2b139" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7b0ded5c-aa78-4355-86ea-0627b2caf95a" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_94e22da9-9feb-47f1-8826-bcf2b1d2b139" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_01339a71-793c-42c1-b6d6-23bd2943ea92" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_us-gaap_OtherCommitmentsAxis_01339a71-793c-42c1-b6d6-23bd2943ea92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_01339a71-793c-42c1-b6d6-23bd2943ea92_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_01339a71-793c-42c1-b6d6-23bd2943ea92" xlink:to="loc_us-gaap_OtherCommitmentsDomain_01339a71-793c-42c1-b6d6-23bd2943ea92_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_3cfcbcf1-2a74-4528-9bb3-4bf5274f3015" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_01339a71-793c-42c1-b6d6-23bd2943ea92" xlink:to="loc_us-gaap_OtherCommitmentsDomain_3cfcbcf1-2a74-4528-9bb3-4bf5274f3015" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PrepaymentsOfFutureDepreciationMember_60dafadf-b507-4861-9dfa-987a8c79a800" xlink:href="wdc-20200403.xsd#wdc_PrepaymentsOfFutureDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_3cfcbcf1-2a74-4528-9bb3-4bf5274f3015" xlink:to="loc_wdc_PrepaymentsOfFutureDepreciationMember_60dafadf-b507-4861-9dfa-987a8c79a800" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_de57a942-ed21-4e51-a525-b59c8f71d110" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_dei_LegalEntityAxis_de57a942-ed21-4e51-a525-b59c8f71d110" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_de57a942-ed21-4e51-a525-b59c8f71d110_default" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_de57a942-ed21-4e51-a525-b59c8f71d110" xlink:to="loc_dei_EntityDomain_de57a942-ed21-4e51-a525-b59c8f71d110_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d4ee113b-2681-44a1-af58-5638d031f1ec" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_de57a942-ed21-4e51-a525-b59c8f71d110" xlink:to="loc_dei_EntityDomain_d4ee113b-2681-44a1-af58-5638d031f1ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnissoftWuxiGroupCoLtd.Member_cfedb3e6-04e8-4290-bc6c-cc3b62e0d9e9" xlink:href="wdc-20200403.xsd#wdc_UnissoftWuxiGroupCoLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_d4ee113b-2681-44a1-af58-5638d031f1ec" xlink:to="loc_wdc_UnissoftWuxiGroupCoLtd.Member_cfedb3e6-04e8-4290-bc6c-cc3b62e0d9e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_56411b58-6eb3-42aa-8f49-cc48b746cca1" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_56411b58-6eb3-42aa-8f49-cc48b746cca1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_56411b58-6eb3-42aa-8f49-cc48b746cca1_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_56411b58-6eb3-42aa-8f49-cc48b746cca1" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_56411b58-6eb3-42aa-8f49-cc48b746cca1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_0fe4180a-bfdf-47d8-b0c7-89084042a0c4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_56411b58-6eb3-42aa-8f49-cc48b746cca1" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_0fe4180a-bfdf-47d8-b0c7-89084042a0c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashVenturesMember_57bd8f00-49a1-4db8-aa40-87f8cae09d4c" xlink:href="wdc-20200403.xsd#wdc_FlashVenturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_0fe4180a-bfdf-47d8-b0c7-89084042a0c4" xlink:to="loc_wdc_FlashVenturesMember_57bd8f00-49a1-4db8-aa40-87f8cae09d4c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_058df897-a741-4f6c-b948-f32fdf552542" xlink:href="wdc-20200403.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_0fe4180a-bfdf-47d8-b0c7-89084042a0c4" xlink:to="loc_wdc_UnisVentureMember_058df897-a741-4f6c-b948-f32fdf552542" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b0ec6457-d186-4767-a236-cb27b896aa47" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b0ec6457-d186-4767-a236-cb27b896aa47" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_b0ec6457-d186-4767-a236-cb27b896aa47_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b0ec6457-d186-4767-a236-cb27b896aa47" xlink:to="loc_us-gaap_RelatedPartyDomain_b0ec6457-d186-4767-a236-cb27b896aa47_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_a637a7bb-1dab-4377-9e12-9f2f11ae2e42" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b0ec6457-d186-4767-a236-cb27b896aa47" xlink:to="loc_us-gaap_RelatedPartyDomain_a637a7bb-1dab-4377-9e12-9f2f11ae2e42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_4ef120b1-790d-481b-a915-63814db3a99b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_a637a7bb-1dab-4377-9e12-9f2f11ae2e42" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_4ef120b1-790d-481b-a915-63814db3a99b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameAxis_aba01e42-a927-43f0-bae9-059c5f387d48" xlink:href="wdc-20200403.xsd#wdc_EquityMethodInvestorNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_wdc_EquityMethodInvestorNameAxis_aba01e42-a927-43f0-bae9-059c5f387d48" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_aba01e42-a927-43f0-bae9-059c5f387d48_default" xlink:href="wdc-20200403.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_aba01e42-a927-43f0-bae9-059c5f387d48" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_aba01e42-a927-43f0-bae9-059c5f387d48_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_f985c3e8-1350-4a6a-97e3-a0aac2a8c594" xlink:href="wdc-20200403.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_aba01e42-a927-43f0-bae9-059c5f387d48" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_f985c3e8-1350-4a6a-97e3-a0aac2a8c594" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_WesternDigitalCorpMember_486b706b-fd71-4d9a-89e2-0fa26ebce79d" xlink:href="wdc-20200403.xsd#wdc_WesternDigitalCorpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EquityMethodInvestorNameDomain_f985c3e8-1350-4a6a-97e3-a0aac2a8c594" xlink:to="loc_wdc_WesternDigitalCorpMember_486b706b-fd71-4d9a-89e2-0fa26ebce79d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_a6f437a3-d5da-4c85-bc34-31135ff97c71" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_srt_RangeAxis_a6f437a3-d5da-4c85-bc34-31135ff97c71" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a6f437a3-d5da-4c85-bc34-31135ff97c71_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_a6f437a3-d5da-4c85-bc34-31135ff97c71" xlink:to="loc_srt_RangeMember_a6f437a3-d5da-4c85-bc34-31135ff97c71_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_2656f5ac-d677-44de-8635-9766a94c156f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_a6f437a3-d5da-4c85-bc34-31135ff97c71" xlink:to="loc_srt_RangeMember_2656f5ac-d677-44de-8635-9766a94c156f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_6108f16c-4f71-43ec-afb9-ecca6a0fc79a" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2656f5ac-d677-44de-8635-9766a94c156f" xlink:to="loc_srt_MinimumMember_6108f16c-4f71-43ec-afb9-ecca6a0fc79a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_93b365ed-56f5-4a0b-b67b-6c412acdb776" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2656f5ac-d677-44de-8635-9766a94c156f" xlink:to="loc_srt_MaximumMember_93b365ed-56f5-4a0b-b67b-6c412acdb776" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_2611d3d0-8f6d-4e86-9c5c-36a298a37205" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_e1067538-c6eb-4bf1-a068-d3f3027f45b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_99931fd4-b6e4-4ed4-8e7f-de26fbc3b0be" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_e1067538-c6eb-4bf1-a068-d3f3027f45b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_4cc58ffe-9ba3-4b8d-ac62-f93d788ba0a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_e1067538-c6eb-4bf1-a068-d3f3027f45b5" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_4cc58ffe-9ba3-4b8d-ac62-f93d788ba0a8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="extended" id="i1ad68c6665a140ac89c56c0e4d5cfc54_RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_7a2f1a64-e3df-48cf-accc-5db27ba4baa6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_d055fd77-2495-4b75-8bcd-5e3d570bea98" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_7a2f1a64-e3df-48cf-accc-5db27ba4baa6" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_d055fd77-2495-4b75-8bcd-5e3d570bea98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_fb74d583-9b0c-43ef-8de7-21712592b1ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_7a2f1a64-e3df-48cf-accc-5db27ba4baa6" xlink:to="loc_us-gaap_Investments_fb74d583-9b0c-43ef-8de7-21712592b1ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_3a7045f8-db6e-452c-95e2-f19a7df9743a" xlink:href="wdc-20200403.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_7a2f1a64-e3df-48cf-accc-5db27ba4baa6" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_3a7045f8-db6e-452c-95e2-f19a7df9743a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8cf49e5a-5649-451c-9127-6cfc21174ef2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_7a2f1a64-e3df-48cf-accc-5db27ba4baa6" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8cf49e5a-5649-451c-9127-6cfc21174ef2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_20655333-4024-4440-a036-6e697a0f2517" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8cf49e5a-5649-451c-9127-6cfc21174ef2" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_20655333-4024-4440-a036-6e697a0f2517" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_20655333-4024-4440-a036-6e697a0f2517_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_20655333-4024-4440-a036-6e697a0f2517" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_20655333-4024-4440-a036-6e697a0f2517_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_20655333-4024-4440-a036-6e697a0f2517" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashPartnersLtdMember_52360bb6-baaf-44e0-8fde-af2b17170b3e" xlink:href="wdc-20200403.xsd#wdc_FlashPartnersLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:to="loc_wdc_FlashPartnersLtdMember_52360bb6-baaf-44e0-8fde-af2b17170b3e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashAllianceLtdMember_68f3cc6c-52b9-42f2-86a0-718a29d0d694" xlink:href="wdc-20200403.xsd#wdc_FlashAllianceLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:to="loc_wdc_FlashAllianceLtdMember_68f3cc6c-52b9-42f2-86a0-718a29d0d694" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashForwardLtdMember_d2b04653-3f20-417c-9b5a-6150c86a582d" xlink:href="wdc-20200403.xsd#wdc_FlashForwardLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:to="loc_wdc_FlashForwardLtdMember_d2b04653-3f20-417c-9b5a-6150c86a582d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_e85969db-2bf5-4eaa-8be0-afaa189f1760" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0128f222-4380-4a9d-957b-d0332bc8423a" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_e85969db-2bf5-4eaa-8be0-afaa189f1760" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="extended" id="ia327c0872bc2429ea2956e4c45bca2d0_RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_ec9eb727-374a-453a-9fb9-68dfab653b0f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_953ff547-d7af-40c2-b639-7adde556a06f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_ec9eb727-374a-453a-9fb9-68dfab653b0f" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_953ff547-d7af-40c2-b639-7adde556a06f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_492aebff-e011-4bd7-91f4-96d3b03ecc2d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_ec9eb727-374a-453a-9fb9-68dfab653b0f" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_492aebff-e011-4bd7-91f4-96d3b03ecc2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_8a55f646-6cb1-4fb4-8678-4e4260f74d26" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_ec9eb727-374a-453a-9fb9-68dfab653b0f" xlink:to="loc_us-gaap_InventoryGross_8a55f646-6cb1-4fb4-8678-4e4260f74d26" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_2f7e5fdc-69f1-4bbf-87ef-f45004e91eca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_ec9eb727-374a-453a-9fb9-68dfab653b0f" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_2f7e5fdc-69f1-4bbf-87ef-f45004e91eca" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BalanceSheetInformationAxis_354049bd-86df-4f0c-ae77-594b0ec6cfa1" xlink:href="wdc-20200403.xsd#wdc_BalanceSheetInformationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_2f7e5fdc-69f1-4bbf-87ef-f45004e91eca" xlink:to="loc_wdc_BalanceSheetInformationAxis_354049bd-86df-4f0c-ae77-594b0ec6cfa1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_354049bd-86df-4f0c-ae77-594b0ec6cfa1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_354049bd-86df-4f0c-ae77-594b0ec6cfa1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_354049bd-86df-4f0c-ae77-594b0ec6cfa1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_354049bd-86df-4f0c-ae77-594b0ec6cfa1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableMember_483487b6-bb08-4aa1-980e-47d294bb47be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:to="loc_us-gaap_NotesReceivableMember_483487b6-bb08-4aa1-980e-47d294bb47be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentsMember_ffc0811d-9f75-41ab-b95d-ba9574d4ee1e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:to="loc_us-gaap_EquityMethodInvestmentsMember_ffc0811d-9f75-41ab-b95d-ba9574d4ee1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_d28916ef-29f5-4e86-8664-5becdcb1aee2" xlink:href="wdc-20200403.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_d28916ef-29f5-4e86-8664-5becdcb1aee2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_b18d0ace-2bce-4f2b-96e9-0b6c049cd017" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_127d92d7-2aa4-4da2-b2cc-eb3eff4222c2" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_b18d0ace-2bce-4f2b-96e9-0b6c049cd017" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_6437a552-6ad9-4658-9222-207d1639aa74" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_2f7e5fdc-69f1-4bbf-87ef-f45004e91eca" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_6437a552-6ad9-4658-9222-207d1639aa74" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_6437a552-6ad9-4658-9222-207d1639aa74_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_6437a552-6ad9-4658-9222-207d1639aa74" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_6437a552-6ad9-4658-9222-207d1639aa74_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_dfd2b06c-fb7f-4109-8ccd-e4ec42d18d31" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_6437a552-6ad9-4658-9222-207d1639aa74" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_dfd2b06c-fb7f-4109-8ccd-e4ec42d18d31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_c57387ed-9aee-4f40-88ea-be1a5781f2a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_dfd2b06c-fb7f-4109-8ccd-e4ec42d18d31" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_c57387ed-9aee-4f40-88ea-be1a5781f2a8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="extended" id="iffe2d11127804c23bcc3c5c0a95b7164_RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_3518dfa3-dc0c-4bc5-a639-73992133bce7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_bc2a12a5-8bdd-4a05-aaf1-f774c8f00aa7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_3518dfa3-dc0c-4bc5-a639-73992133bce7" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_bc2a12a5-8bdd-4a05-aaf1-f774c8f00aa7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_277ef50c-659f-4b6d-a6f4-418678aacacc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_3518dfa3-dc0c-4bc5-a639-73992133bce7" xlink:to="loc_us-gaap_LossContingenciesTable_277ef50c-659f-4b6d-a6f4-418678aacacc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BalanceSheetInformationAxis_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5" xlink:href="wdc-20200403.xsd#wdc_BalanceSheetInformationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_277ef50c-659f-4b6d-a6f4-418678aacacc" xlink:to="loc_wdc_BalanceSheetInformationAxis_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_c096f189-59df-495d-87a2-26af78e2b0b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_1bb8ebf0-0b00-4b00-8d15-f7a063a294b5" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_c096f189-59df-495d-87a2-26af78e2b0b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_aa45a92d-b134-4aa6-900c-bad21ae768ff" xlink:href="wdc-20200403.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_c096f189-59df-495d-87a2-26af78e2b0b7" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_aa45a92d-b134-4aa6-900c-bad21ae768ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_ba0f1521-4312-4334-b125-527ce77c408f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_277ef50c-659f-4b6d-a6f4-418678aacacc" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_ba0f1521-4312-4334-b125-527ce77c408f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_ba0f1521-4312-4334-b125-527ce77c408f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_ba0f1521-4312-4334-b125-527ce77c408f" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_ba0f1521-4312-4334-b125-527ce77c408f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_b4f85e38-a073-4192-b1e5-ed35e09a571f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_ba0f1521-4312-4334-b125-527ce77c408f" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_b4f85e38-a073-4192-b1e5-ed35e09a571f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_481bbdac-f422-4b6a-8b52-1d96e081ed4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_b4f85e38-a073-4192-b1e5-ed35e09a571f" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_481bbdac-f422-4b6a-8b52-1d96e081ed4d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended" id="i4c789d38d91d479798f20f366ac4bcd9_RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_9b5ee4c9-7620-4d69-8549-a0323d7e59a0" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_9b5ee4c9-7620-4d69-8549-a0323d7e59a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_661f505f-b257-4140-9a94-4ffaa69e77ff" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_661f505f-b257-4140-9a94-4ffaa69e77ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_97fd794c-8c63-4240-ad80-b87bffa2be7c" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_97fd794c-8c63-4240-ad80-b87bffa2be7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_d330b3b4-23a8-467a-9408-8e3beccec932" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_d330b3b4-23a8-467a-9408-8e3beccec932" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_2a00c4cf-5c60-4084-8d20-7c1ca926831e" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_2a00c4cf-5c60-4084-8d20-7c1ca926831e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_55b57a67-b5c6-4522-a24f-fe4f442fa847" xlink:href="wdc-20200403.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_55b57a67-b5c6-4522-a24f-fe4f442fa847" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_6de31f9c-1f8b-4f6a-863b-827a5f362001" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_6de31f9c-1f8b-4f6a-863b-827a5f362001" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3ebb1b7-eac2-4a1d-b993-cb370c74ab7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_8c118c31-a76d-494e-81e1-9ebefe43e397" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3ebb1b7-eac2-4a1d-b993-cb370c74ab7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fba83892-8362-445f-a3cb-d935ceda92d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3ebb1b7-eac2-4a1d-b993-cb370c74ab7f" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fba83892-8362-445f-a3cb-d935ceda92d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_fba83892-8362-445f-a3cb-d935ceda92d1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fba83892-8362-445f-a3cb-d935ceda92d1" xlink:to="loc_us-gaap_RelatedPartyDomain_fba83892-8362-445f-a3cb-d935ceda92d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_004c208d-6272-44b8-a56d-a4b320256ab0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fba83892-8362-445f-a3cb-d935ceda92d1" xlink:to="loc_us-gaap_RelatedPartyDomain_004c208d-6272-44b8-a56d-a4b320256ab0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_07faa6c9-c1fa-440e-b1a2-fcdac96a3712" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_004c208d-6272-44b8-a56d-a4b320256ab0" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_07faa6c9-c1fa-440e-b1a2-fcdac96a3712" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_5ea9383e-24b1-4683-91aa-d73df324326e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3ebb1b7-eac2-4a1d-b993-cb370c74ab7f" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_5ea9383e-24b1-4683-91aa-d73df324326e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_5ea9383e-24b1-4683-91aa-d73df324326e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_5ea9383e-24b1-4683-91aa-d73df324326e" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_5ea9383e-24b1-4683-91aa-d73df324326e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_31778705-c0f6-4715-84e1-b522c330685f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_5ea9383e-24b1-4683-91aa-d73df324326e" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_31778705-c0f6-4715-84e1-b522c330685f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentOfPrincipalAmortizationMember_5a2ba30e-ca94-4731-a19c-918bba5763c9" xlink:href="wdc-20200403.xsd#wdc_PaymentOfPrincipalAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_31778705-c0f6-4715-84e1-b522c330685f" xlink:to="loc_wdc_PaymentOfPrincipalAmortizationMember_5a2ba30e-ca94-4731-a19c-918bba5763c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseOptionExercisePriceMember_9015ccfe-25eb-4202-8e9c-ff483bfd4d99" xlink:href="wdc-20200403.xsd#wdc_PurchaseOptionExercisePriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_31778705-c0f6-4715-84e1-b522c330685f" xlink:to="loc_wdc_PurchaseOptionExercisePriceMember_9015ccfe-25eb-4202-8e9c-ff483bfd4d99" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitments"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="extended" id="i6d96d4eb2380493f92c981541e353623_LeasesandOtherCommitments"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="extended" id="i5741ee85ed5e4861bdd5abb070657a85_LeasesandOtherCommitmentsTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="extended" id="i134ba678fee6421bab444c3e1e91dc18_LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended" id="if36ccefdf22444309534d8a3d2ec44aa_LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="extended" id="i2fbbe0f8719845eeb2b72ddcae3b31c7_LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquity" xlink:type="extended" id="i9122682f849e49f8930743880f305bac_ShareholdersEquity"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended" id="i34575995bafc4224993c470827b83583_ShareholdersEquityTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityStockBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="extended" id="if31722feced44efabf211896ff70921c_ShareholdersEquityStockBasedCompensationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b811cd94-7ff2-4b6b-96aa-ce110677f9f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_e72968de-5e7f-4b2c-ade9-89993006fe88" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b811cd94-7ff2-4b6b-96aa-ce110677f9f3" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_e72968de-5e7f-4b2c-ade9-89993006fe88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_4c5a6b3c-2aff-4d2b-82eb-8b2d3b44e3f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b811cd94-7ff2-4b6b-96aa-ce110677f9f3" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_4c5a6b3c-2aff-4d2b-82eb-8b2d3b44e3f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_83b480f7-1305-4187-8cbb-36a7870994e5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b811cd94-7ff2-4b6b-96aa-ce110677f9f3" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_83b480f7-1305-4187-8cbb-36a7870994e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_307d76d1-fcfd-4a93-befe-3e5fe4907599" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b811cd94-7ff2-4b6b-96aa-ce110677f9f3" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_307d76d1-fcfd-4a93-befe-3e5fe4907599" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_c5bbc09f-622f-44aa-90db-5640d1d46da4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_307d76d1-fcfd-4a93-befe-3e5fe4907599" xlink:to="loc_us-gaap_AwardTypeAxis_c5bbc09f-622f-44aa-90db-5640d1d46da4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_c5bbc09f-622f-44aa-90db-5640d1d46da4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_c5bbc09f-622f-44aa-90db-5640d1d46da4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_c5bbc09f-622f-44aa-90db-5640d1d46da4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bdf0c299-7a47-447f-9e99-0987dc1a5320" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_c5bbc09f-622f-44aa-90db-5640d1d46da4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bdf0c299-7a47-447f-9e99-0987dc1a5320" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_98db6b34-ff77-4ab1-a368-76c72f5f5354" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bdf0c299-7a47-447f-9e99-0987dc1a5320" xlink:to="loc_us-gaap_EmployeeStockOptionMember_98db6b34-ff77-4ab1-a368-76c72f5f5354" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_37146116-bbf7-463b-aa02-56cc73ed9689" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bdf0c299-7a47-447f-9e99-0987dc1a5320" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_37146116-bbf7-463b-aa02-56cc73ed9689" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_7c8384b8-7074-48d2-b91e-138359d5a3bd" xlink:href="wdc-20200403.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bdf0c299-7a47-447f-9e99-0987dc1a5320" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_7c8384b8-7074-48d2-b91e-138359d5a3bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_69cc1d35-566c-4125-bea2-788eb98241d9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_307d76d1-fcfd-4a93-befe-3e5fe4907599" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_69cc1d35-566c-4125-bea2-788eb98241d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_69cc1d35-566c-4125-bea2-788eb98241d9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_69cc1d35-566c-4125-bea2-788eb98241d9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_69cc1d35-566c-4125-bea2-788eb98241d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_f98d2da6-f566-434f-8e47-fa9095c237a7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_69cc1d35-566c-4125-bea2-788eb98241d9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_f98d2da6-f566-434f-8e47-fa9095c237a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_013ccaa8-a9b1-4831-ad4e-fdd93105f5a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f98d2da6-f566-434f-8e47-fa9095c237a7" xlink:to="loc_us-gaap_CostOfSalesMember_013ccaa8-a9b1-4831-ad4e-fdd93105f5a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5327af37-acd5-4eb1-9007-f5150cbda03f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f98d2da6-f566-434f-8e47-fa9095c237a7" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_5327af37-acd5-4eb1-9007-f5150cbda03f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_0d58a13c-56f9-40e7-8582-b57a829ec873" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f98d2da6-f566-434f-8e47-fa9095c237a7" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_0d58a13c-56f9-40e7-8582-b57a829ec873" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityUnrecognizedSharebasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="extended" id="i76bdd4fb5e824f108c31c727abf0a180_ShareholdersEquityUnrecognizedSharebasedCompensationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_b094a713-3dcf-4973-922a-277cf030d819" xlink:href="wdc-20200403.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_ed966a16-265b-467d-8eb9-2907cafd3652" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_b094a713-3dcf-4973-922a-277cf030d819" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_ed966a16-265b-467d-8eb9-2907cafd3652" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_51e049b8-577f-40e3-b8c3-85427a5f042a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_b094a713-3dcf-4973-922a-277cf030d819" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_51e049b8-577f-40e3-b8c3-85427a5f042a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_e7ec5002-4760-4539-819a-1fdd74b9d9d4" xlink:href="wdc-20200403.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_b094a713-3dcf-4973-922a-277cf030d819" xlink:to="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_e7ec5002-4760-4539-819a-1fdd74b9d9d4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_1a8660ef-76f8-4d2f-ab68-86baff8b0e09" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_e7ec5002-4760-4539-819a-1fdd74b9d9d4" xlink:to="loc_us-gaap_AwardTypeAxis_1a8660ef-76f8-4d2f-ab68-86baff8b0e09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a8660ef-76f8-4d2f-ab68-86baff8b0e09_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1a8660ef-76f8-4d2f-ab68-86baff8b0e09" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1a8660ef-76f8-4d2f-ab68-86baff8b0e09_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_69215fa2-407f-4660-9c19-9cf7f5a072eb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1a8660ef-76f8-4d2f-ab68-86baff8b0e09" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_69215fa2-407f-4660-9c19-9cf7f5a072eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_51ea032d-16bb-48ac-a072-d31a890b2b9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_69215fa2-407f-4660-9c19-9cf7f5a072eb" xlink:to="loc_us-gaap_EmployeeStockOptionMember_51ea032d-16bb-48ac-a072-d31a890b2b9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_7e4125ec-95c8-43a8-b3c9-37c219cc8665" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_69215fa2-407f-4660-9c19-9cf7f5a072eb" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_7e4125ec-95c8-43a8-b3c9-37c219cc8665" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_1fb2269a-7785-4eca-8f16-afdeceb3e76d" xlink:href="wdc-20200403.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_69215fa2-407f-4660-9c19-9cf7f5a072eb" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_1fb2269a-7785-4eca-8f16-afdeceb3e76d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityStockOptionActivityDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="extended" id="i444d26f0e5b6480388505fc43ed8fb05_ShareholdersEquityStockOptionActivityDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended" id="ie1051465ff0348f1af37bd298a0fe8a3_ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_12f7c830-6db6-4396-90b0-0c2cd5006443" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_12f7c830-6db6-4396-90b0-0c2cd5006443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_29537bfc-6f1b-4cd5-8a6a-5ef1b5eaa59e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_29537bfc-6f1b-4cd5-8a6a-5ef1b5eaa59e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_c47172bd-99ad-404e-b976-6b65f9c1e3ca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_c47172bd-99ad-404e-b976-6b65f9c1e3ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_86b668c9-7ff8-46d7-be97-c1a96bd1c8db" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_86b668c9-7ff8-46d7-be97-c1a96bd1c8db" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_48115141-b755-45c4-af07-a781c601cb78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_18a1d18f-a8bf-41ae-b708-1b64135e4f72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_48115141-b755-45c4-af07-a781c601cb78" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_b38a8450-c6a9-4a9e-9c12-6e15a1584bb6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_12f7c830-6db6-4396-90b0-0c2cd5006443" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_aebcf21d-1e3b-40c1-868b-25401e65673c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_aebcf21d-1e3b-40c1-868b-25401e65673c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b5ab3eed-15d4-4bb3-84f7-f52e0fab15b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_b5ab3eed-15d4-4bb3-84f7-f52e0fab15b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_c2219360-57c2-4ed0-90cd-456bc959eb97" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_c2219360-57c2-4ed0-90cd-456bc959eb97" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_93385455-d559-440c-b8ee-8659cda5d9e0" xlink:href="wdc-20200403.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_76ec60e3-3ae4-4fc8-8069-551ee28b7271" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_93385455-d559-440c-b8ee-8659cda5d9e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_afe903fc-b1de-422c-9b6d-2cbf88b7fb53" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_e9e8ba72-464a-4dba-a502-840241bb0a53" xlink:href="wdc-20200403.xsd#wdc_AggregateValueOfRestrictedStockAwardsVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_12f7c830-6db6-4396-90b0-0c2cd5006443" xlink:to="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_e9e8ba72-464a-4dba-a502-840241bb0a53" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543492cd-6d28-40de-a333-eb0ea8715c78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_12f7c830-6db6-4396-90b0-0c2cd5006443" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543492cd-6d28-40de-a333-eb0ea8715c78" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_a4ab34c0-abed-4c1e-823c-8985019f8afe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_543492cd-6d28-40de-a333-eb0ea8715c78" xlink:to="loc_us-gaap_AwardTypeAxis_a4ab34c0-abed-4c1e-823c-8985019f8afe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a4ab34c0-abed-4c1e-823c-8985019f8afe_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_a4ab34c0-abed-4c1e-823c-8985019f8afe" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a4ab34c0-abed-4c1e-823c-8985019f8afe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ed6a4a8f-94d0-40e7-aecd-7f998c16a868" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_a4ab34c0-abed-4c1e-823c-8985019f8afe" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ed6a4a8f-94d0-40e7-aecd-7f998c16a868" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_db1bf264-39cd-4367-9d81-7052be5c248b" xlink:href="wdc-20200403.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ed6a4a8f-94d0-40e7-aecd-7f998c16a868" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_db1bf264-39cd-4367-9d81-7052be5c248b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityShareRepurchaseProgramDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="extended" id="i50e275337fd2456f98e84a73ab1883de_ShareholdersEquityShareRepurchaseProgramDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8d7e709d-28bf-442c-bc4a-22a589429a6c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_a0ec3fc2-d3cf-49c9-959f-37efa6fd6ac7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8d7e709d-28bf-442c-bc4a-22a589429a6c" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_a0ec3fc2-d3cf-49c9-959f-37efa6fd6ac7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_7fcf7ec6-abe8-4871-b0f7-9daf68877bbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8d7e709d-28bf-442c-bc4a-22a589429a6c" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_7fcf7ec6-abe8-4871-b0f7-9daf68877bbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_d3fea932-989b-427f-994c-9215049cbe40" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_8d7e709d-28bf-442c-bc4a-22a589429a6c" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_d3fea932-989b-427f-994c-9215049cbe40" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_777dc165-aa21-4b70-ab44-978610e22204" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_d3fea932-989b-427f-994c-9215049cbe40" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_777dc165-aa21-4b70-ab44-978610e22204" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_777dc165-aa21-4b70-ab44-978610e22204_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_777dc165-aa21-4b70-ab44-978610e22204" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_777dc165-aa21-4b70-ab44-978610e22204_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_35916f97-78c8-4da7-9178-47a1820cd059" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_777dc165-aa21-4b70-ab44-978610e22204" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_35916f97-78c8-4da7-9178-47a1820cd059" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_628cc4e2-b4dc-4d09-b2bc-cbdc821b3ba1" xlink:href="wdc-20200403.xsd#wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_35916f97-78c8-4da7-9178-47a1820cd059" xlink:to="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_628cc4e2-b4dc-4d09-b2bc-cbdc821b3ba1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareRepurchaseProgramMember_3da87348-48ca-4d91-b774-ee89276ab9fe" xlink:href="wdc-20200403.xsd#wdc_ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_35916f97-78c8-4da7-9178-47a1820cd059" xlink:to="loc_wdc_ShareRepurchaseProgramMember_3da87348-48ca-4d91-b774-ee89276ab9fe" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#ShareholdersEquityDividendsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="extended" id="i4bcce7444e404ad48300a5823f65ff0a_ShareholdersEquityDividendsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_25750588-d859-4992-8eb3-eb7f81fb5d57" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_9581d391-6f72-4a62-86c1-37716ffec789" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_25750588-d859-4992-8eb3-eb7f81fb5d57" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_9581d391-6f72-4a62-86c1-37716ffec789" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendsDeclared_066f8616-e57b-4ae3-b555-ccb7c3dff774" xlink:href="wdc-20200403.xsd#wdc_DividendsDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_25750588-d859-4992-8eb3-eb7f81fb5d57" xlink:to="loc_wdc_DividendsDeclared_066f8616-e57b-4ae3-b555-ccb7c3dff774" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_f740366a-1f63-4540-bc42-c7baf86cd2d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_25750588-d859-4992-8eb3-eb7f81fb5d57" xlink:to="loc_us-gaap_PaymentsOfDividends_f740366a-1f63-4540-bc42-c7baf86cd2d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_85171bf0-5f1c-4cde-9f16-09d9b2dd1771" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_25750588-d859-4992-8eb3-eb7f81fb5d57" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_85171bf0-5f1c-4cde-9f16-09d9b2dd1771" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_99c3d2a4-75b7-49da-a7f3-177ddfdb826f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_85171bf0-5f1c-4cde-9f16-09d9b2dd1771" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_99c3d2a4-75b7-49da-a7f3-177ddfdb826f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_99c3d2a4-75b7-49da-a7f3-177ddfdb826f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_99c3d2a4-75b7-49da-a7f3-177ddfdb826f" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_99c3d2a4-75b7-49da-a7f3-177ddfdb826f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_d3358aba-80c5-484d-b2bb-2b417e76596e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_99c3d2a4-75b7-49da-a7f3-177ddfdb826f" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_d3358aba-80c5-484d-b2bb-2b417e76596e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_b1841886-f9fb-4850-81ad-204442a7a18c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_d3358aba-80c5-484d-b2bb-2b417e76596e" xlink:to="loc_us-gaap_SubsequentEventMember_b1841886-f9fb-4850-81ad-204442a7a18c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpense"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="extended" id="ie2393edd910e415c810c32c0e0471588_IncomeTaxExpense"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpenseTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended" id="i708d89c376c841fab187caccc494c514_IncomeTaxExpenseTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="extended" id="i4eaa9eacbb5e4d3694244e2198e2b02a_IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended" id="i54106370b5ab43ebbf05a629950585ba_IncomeTaxExpenseAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:href="wdc-20200403.xsd#wdc_IncomeTaxDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_ee4bde11-e04c-448e-821d-779540c2d05e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_ee4bde11-e04c-448e-821d-779540c2d05e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_96554702-f433-4611-9ce8-dbe869f53061" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_96554702-f433-4611-9ce8-dbe869f53061" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount_3aa967c8-510a-4281-8b45-6a0d9704bc52" xlink:href="wdc-20200403.xsd#wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount_3aa967c8-510a-4281-8b45-6a0d9704bc52" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount_8f99ce42-463b-410f-80b9-7084af077cdb" xlink:href="wdc-20200403.xsd#wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount_8f99ce42-463b-410f-80b9-7084af077cdb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_109165a3-d389-472d-b5aa-7afc2fac0a32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_109165a3-d389-472d-b5aa-7afc2fac0a32" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_97cad1f5-29c2-411d-813f-1b22ad182ba8" xlink:href="wdc-20200403.xsd#wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_97cad1f5-29c2-411d-813f-1b22ad182ba8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationPenaltiesAsserted_55a4b200-2431-42dc-8cf6-878aebb74f86" xlink:href="wdc-20200403.xsd#wdc_IncomeTaxExaminationPenaltiesAsserted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_IncomeTaxExaminationPenaltiesAsserted_55a4b200-2431-42dc-8cf6-878aebb74f86" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_bb8a2632-626f-4c4e-9c09-4ea7eb443c66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_bb8a2632-626f-4c4e-9c09-4ea7eb443c66" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_682d43fe-56d4-4647-83f5-0c924c1e90dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_682d43fe-56d4-4647-83f5-0c924c1e90dd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsPayable_81ef05dd-75aa-4a90-b9ef-3454b3448aee" xlink:href="wdc-20200403.xsd#wdc_UnrecognizedTaxBenefitsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_UnrecognizedTaxBenefitsPayable_81ef05dd-75aa-4a90-b9ef-3454b3448aee" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxDisclosureTable_20f7f78b-5d3b-45a2-a6e7-af7052512cd6" xlink:href="wdc-20200403.xsd#wdc_IncomeTaxDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_2a1a7cb6-71df-4921-a10e-9301d51f3c7b" xlink:to="loc_wdc_IncomeTaxDisclosureTable_20f7f78b-5d3b-45a2-a6e7-af7052512cd6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_9a391b04-8ff4-4080-81f6-aacc75483df2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_20f7f78b-5d3b-45a2-a6e7-af7052512cd6" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_9a391b04-8ff4-4080-81f6-aacc75483df2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_9a391b04-8ff4-4080-81f6-aacc75483df2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_9a391b04-8ff4-4080-81f6-aacc75483df2" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_9a391b04-8ff4-4080-81f6-aacc75483df2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_b7eb0e2e-1bb8-444d-8b97-b2c8e7e46cbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_9a391b04-8ff4-4080-81f6-aacc75483df2" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_b7eb0e2e-1bb8-444d-8b97-b2c8e7e46cbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_eeffa514-f9c9-4b62-8248-2999fc5116f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b7eb0e2e-1bb8-444d-8b97-b2c8e7e46cbc" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_eeffa514-f9c9-4b62-8248-2999fc5116f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodAxis_d384c929-a0ea-445a-9006-9c2828923112" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_20f7f78b-5d3b-45a2-a6e7-af7052512cd6" xlink:to="loc_us-gaap_TaxPeriodAxis_d384c929-a0ea-445a-9006-9c2828923112" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_d384c929-a0ea-445a-9006-9c2828923112_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_d384c929-a0ea-445a-9006-9c2828923112" xlink:to="loc_us-gaap_TaxPeriodDomain_d384c929-a0ea-445a-9006-9c2828923112_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_9193a233-3319-462c-97c4-835fa694b32c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_d384c929-a0ea-445a-9006-9c2828923112" xlink:to="loc_us-gaap_TaxPeriodDomain_9193a233-3319-462c-97c4-835fa694b32c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYear2008Through2009Member_d6ccf927-6c34-42d9-a2c9-a50ae318ce9f" xlink:href="wdc-20200403.xsd#wdc_TaxYear2008Through2009Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_9193a233-3319-462c-97c4-835fa694b32c" xlink:to="loc_wdc_TaxYear2008Through2009Member_d6ccf927-6c34-42d9-a2c9-a50ae318ce9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2010Through2012Member_d287aa79-fc0b-4f54-9c9c-ca5ab7eaca46" xlink:href="wdc-20200403.xsd#wdc_TaxYears2010Through2012Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_9193a233-3319-462c-97c4-835fa694b32c" xlink:to="loc_wdc_TaxYears2010Through2012Member_d287aa79-fc0b-4f54-9c9c-ca5ab7eaca46" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="simple" xlink:href="wdc-20200403.xsd#NetIncomeLossPerCommonShare"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="extended" id="i35deab87e8d74b4b840679dc2c6e83c5_NetIncomeLossPerCommonShare"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#NetIncomeLossPerCommonShareTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended" id="i3e1e6056040b49799fe439e6af0811b9_NetIncomeLossPerCommonShareTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended" id="i172cebecbf044661833d1a4b468c5f14_NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="simple" xlink:href="wdc-20200403.xsd#EmployeeTerminationAssetImpairmentandOtherCharges"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="extended" id="i177bfb8c0b3a487a83dd412899a5ea28_EmployeeTerminationAssetImpairmentandOtherCharges"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="simple" xlink:href="wdc-20200403.xsd#EmployeeTerminationAssetImpairmentandOtherChargesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="extended" id="icbb8dc5280d54bcebe7d88d3701a1681_EmployeeTerminationAssetImpairmentandOtherChargesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended" id="i6270e74af1de4b9984a60fb77e330e09_EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_f16e8de6-ba29-4b16-a21c-dfd73f14edbc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_9c1fd9bd-b848-4913-aad3-2f3e00a0dbb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f16e8de6-ba29-4b16-a21c-dfd73f14edbc" xlink:to="loc_us-gaap_RestructuringCharges_9c1fd9bd-b848-4913-aad3-2f3e00a0dbb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_b2912865-8ec8-41b5-8d24-409cc4419cec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f16e8de6-ba29-4b16-a21c-dfd73f14edbc" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_b2912865-8ec8-41b5-8d24-409cc4419cec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_0d2ec8f6-a0af-4f1e-b8ab-115085fbe2c4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f16e8de6-ba29-4b16-a21c-dfd73f14edbc" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_0d2ec8f6-a0af-4f1e-b8ab-115085fbe2c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_5c3f827d-8c88-4e00-9931-34a7e272240d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f16e8de6-ba29-4b16-a21c-dfd73f14edbc" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_5c3f827d-8c88-4e00-9931-34a7e272240d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_e29d4396-e7ab-4cce-9df7-f5f772eb662b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_5c3f827d-8c88-4e00-9931-34a7e272240d" xlink:to="loc_us-gaap_RestructuringPlanAxis_e29d4396-e7ab-4cce-9df7-f5f772eb662b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_e29d4396-e7ab-4cce-9df7-f5f772eb662b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_e29d4396-e7ab-4cce-9df7-f5f772eb662b" xlink:to="loc_us-gaap_RestructuringPlanDomain_e29d4396-e7ab-4cce-9df7-f5f772eb662b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_7fc771e0-f1ab-415d-8e6b-7139d41f5935" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_e29d4396-e7ab-4cce-9df7-f5f772eb662b" xlink:to="loc_us-gaap_RestructuringPlanDomain_7fc771e0-f1ab-415d-8e6b-7139d41f5935" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_3790ade0-9b02-40fa-96a4-add770b4d94a" xlink:href="wdc-20200403.xsd#wdc_ClosureofForeignManufacturingFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_7fc771e0-f1ab-415d-8e6b-7139d41f5935" xlink:to="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_3790ade0-9b02-40fa-96a4-add770b4d94a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_ec9c592b-40b2-4a03-8263-a66e2b8c1cb5" xlink:href="wdc-20200403.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_7fc771e0-f1ab-415d-8e6b-7139d41f5935" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_ec9c592b-40b2-4a03-8263-a66e2b8c1cb5" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails" xlink:type="extended" id="i3b9ec3b092c544caa9716d19b8fc765e_EmployeeTerminationAssetImpairmentandOtherChargesClosureofForeignManufacturingFacilitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_3655fc63-30d9-45e3-9790-7587c31dbff0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_6186a869-6cca-4af5-98bb-9f33f208b902" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3655fc63-30d9-45e3-9790-7587c31dbff0" xlink:to="loc_us-gaap_RestructuringReserveRollForward_6186a869-6cca-4af5-98bb-9f33f208b902" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_11dc127f-c563-48a2-b10a-e5c3a8388218" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_6186a869-6cca-4af5-98bb-9f33f208b902" xlink:to="loc_us-gaap_RestructuringReserve_11dc127f-c563-48a2-b10a-e5c3a8388218" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_86635233-1e2a-453a-a26f-cc5afec90313" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_6186a869-6cca-4af5-98bb-9f33f208b902" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_86635233-1e2a-453a-a26f-cc5afec90313" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_0476e2f0-6285-47b3-8418-f3f180b0932c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_6186a869-6cca-4af5-98bb-9f33f208b902" xlink:to="loc_us-gaap_PaymentsForRestructuring_0476e2f0-6285-47b3-8418-f3f180b0932c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_488a2cfc-d350-4dee-9a6d-54bf62772f6c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_33b16cb3-f372-4b53-a4cf-6611008fffef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3655fc63-30d9-45e3-9790-7587c31dbff0" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_33b16cb3-f372-4b53-a4cf-6611008fffef" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_33b16cb3-f372-4b53-a4cf-6611008fffef" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_4ed6183a-7a38-46b8-9fbb-e5a29a9ee40d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_b2a66ef1-0778-42c5-bb05-dc5968f3a4ea" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_4ed6183a-7a38-46b8-9fbb-e5a29a9ee40d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_a6cc08f2-a022-409d-9c8c-b14163254e15" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_4ed6183a-7a38-46b8-9fbb-e5a29a9ee40d" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_a6cc08f2-a022-409d-9c8c-b14163254e15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractTerminationMember_adece3bd-d685-4816-9b8a-bca271c1e43f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ContractTerminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_4ed6183a-7a38-46b8-9fbb-e5a29a9ee40d" xlink:to="loc_us-gaap_ContractTerminationMember_adece3bd-d685-4816-9b8a-bca271c1e43f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_a93d47c1-d067-49b6-b284-5d325c2f862a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_33b16cb3-f372-4b53-a4cf-6611008fffef" xlink:to="loc_us-gaap_RestructuringPlanAxis_a93d47c1-d067-49b6-b284-5d325c2f862a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_a93d47c1-d067-49b6-b284-5d325c2f862a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_a93d47c1-d067-49b6-b284-5d325c2f862a" xlink:to="loc_us-gaap_RestructuringPlanDomain_a93d47c1-d067-49b6-b284-5d325c2f862a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_80f34507-fffc-4f3e-aa0d-0bed6801f84c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_a93d47c1-d067-49b6-b284-5d325c2f862a" xlink:to="loc_us-gaap_RestructuringPlanDomain_80f34507-fffc-4f3e-aa0d-0bed6801f84c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_05a9a7b6-edd6-4b7a-a9ce-b8e666a20906" xlink:href="wdc-20200403.xsd#wdc_ClosureofForeignManufacturingFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_80f34507-fffc-4f3e-aa0d-0bed6801f84c" xlink:to="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_05a9a7b6-edd6-4b7a-a9ce-b8e666a20906" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20200403.xsd#EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="extended" id="i11eb0eeeb46d43abbf221bba273ed15c_EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_12c04bcd-038e-4d77-83fd-4c9707b65afe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveAcceleratedDepreciation_164554d8-c820-4b66-8235-87497596cbb8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveAcceleratedDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_12c04bcd-038e-4d77-83fd-4c9707b65afe" xlink:to="loc_us-gaap_RestructuringReserveAcceleratedDepreciation_164554d8-c820-4b66-8235-87497596cbb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_15675fec-a2bd-4edd-86f7-22b33a9c1349" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_12c04bcd-038e-4d77-83fd-4c9707b65afe" xlink:to="loc_us-gaap_RestructuringReserveRollForward_15675fec-a2bd-4edd-86f7-22b33a9c1349" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_34bcb815-0e5c-4b05-a0ab-5bb3534262ad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_15675fec-a2bd-4edd-86f7-22b33a9c1349" xlink:to="loc_us-gaap_RestructuringReserve_34bcb815-0e5c-4b05-a0ab-5bb3534262ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_90ce2da5-bd28-48c7-9848-75f0dcc5681d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_15675fec-a2bd-4edd-86f7-22b33a9c1349" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_90ce2da5-bd28-48c7-9848-75f0dcc5681d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_5f2b9f36-3364-45bd-a243-fdd80da9af7c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_15675fec-a2bd-4edd-86f7-22b33a9c1349" xlink:to="loc_us-gaap_PaymentsForRestructuring_5f2b9f36-3364-45bd-a243-fdd80da9af7c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_db228d42-40ed-45c8-84e4-c41e6390aa82" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d163d538-3451-46dd-a287-ca41179e2ae3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_12c04bcd-038e-4d77-83fd-4c9707b65afe" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d163d538-3451-46dd-a287-ca41179e2ae3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_44daa680-62eb-4ecd-8677-25534cf8e70d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d163d538-3451-46dd-a287-ca41179e2ae3" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_44daa680-62eb-4ecd-8677-25534cf8e70d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_44daa680-62eb-4ecd-8677-25534cf8e70d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_44daa680-62eb-4ecd-8677-25534cf8e70d" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_44daa680-62eb-4ecd-8677-25534cf8e70d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_d8a55899-72ea-41bf-a533-67e8d3e56f11" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_44daa680-62eb-4ecd-8677-25534cf8e70d" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_d8a55899-72ea-41bf-a533-67e8d3e56f11" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_25d513b8-4a7f-4c40-9b70-2b79e3195bc2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_d8a55899-72ea-41bf-a533-67e8d3e56f11" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_25d513b8-4a7f-4c40-9b70-2b79e3195bc2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractTerminationMember_9b124122-755e-4767-83ea-6b06d209b8b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ContractTerminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_d8a55899-72ea-41bf-a533-67e8d3e56f11" xlink:to="loc_us-gaap_ContractTerminationMember_9b124122-755e-4767-83ea-6b06d209b8b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_cb29b1cc-b8fa-410a-812b-85f4c6683484" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d163d538-3451-46dd-a287-ca41179e2ae3" xlink:to="loc_us-gaap_RestructuringPlanAxis_cb29b1cc-b8fa-410a-812b-85f4c6683484" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_cb29b1cc-b8fa-410a-812b-85f4c6683484_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_cb29b1cc-b8fa-410a-812b-85f4c6683484" xlink:to="loc_us-gaap_RestructuringPlanDomain_cb29b1cc-b8fa-410a-812b-85f4c6683484_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_c750a155-8843-46ab-899c-2f0e387a3466" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_cb29b1cc-b8fa-410a-812b-85f4c6683484" xlink:to="loc_us-gaap_RestructuringPlanDomain_c750a155-8843-46ab-899c-2f0e387a3466" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_ac641bff-3d6c-4e24-862f-b56bf17f7c75" xlink:href="wdc-20200403.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_c750a155-8843-46ab-899c-2f0e387a3466" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_ac641bff-3d6c-4e24-862f-b56bf17f7c75" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LegalProceedings" xlink:type="simple" xlink:href="wdc-20200403.xsd#LegalProceedings"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended" id="iae6efc232bcc41b0a7a2f69730e1c6e5_LegalProceedings"/>
</link:linkbase>
