<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:href="wdc-20200103.xsd#CondensedConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:href="wdc-20200103.xsd#CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:href="wdc-20200103.xsd#CondensedConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:href="wdc-20200103.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsOfOperations" xlink:href="wdc-20200103.xsd#CondensedConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CondensedConsolidatedStatementsOfShareholdersEquity" xlink:href="wdc-20200103.xsd#CondensedConsolidatedStatementsOfShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/CoverPage" xlink:href="wdc-20200103.xsd#CoverPage" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/Debt" xlink:href="wdc-20200103.xsd#Debt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#DebtAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleOfDebtDetails" xlink:href="wdc-20200103.xsd#DebtScheduleOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/DebtTables" xlink:href="wdc-20200103.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsAndHedgingActivities" xlink:href="wdc-20200103.xsd#DerivativesInstrumentsAndHedgingActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsAndHedgingActivitiesAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#DerivativesInstrumentsAndHedgingActivitiesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherCharges" xlink:href="wdc-20200103.xsd#EmployeeTerminationAssetImpairmentAndOtherCharges" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesBusinessRealignmentActivitiesDetails" xlink:href="wdc-20200103.xsd#EmployeeTerminationAssetImpairmentAndOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesClosureOfForeignManufacturingFacilitiesDetails" xlink:href="wdc-20200103.xsd#EmployeeTerminationAssetImpairmentAndOtherChargesClosureOfForeignManufacturingFacilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesExpenseRecognitionDetails" xlink:href="wdc-20200103.xsd#EmployeeTerminationAssetImpairmentAndOtherChargesExpenseRecognitionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesTables" xlink:href="wdc-20200103.xsd#EmployeeTerminationAssetImpairmentAndOtherChargesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsAndInvestments" xlink:href="wdc-20200103.xsd#FairValueMeasurementsAndInvestments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsDebtInstrumentFairValueDetails" xlink:href="wdc-20200103.xsd#FairValueMeasurementsAndInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:href="wdc-20200103.xsd#FairValueMeasurementsAndInvestmentsFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsTables" xlink:href="wdc-20200103.xsd#FairValueMeasurementsAndInvestmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpense" xlink:href="wdc-20200103.xsd#IncomeTaxExpense" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:href="wdc-20200103.xsd#IncomeTaxExpenseTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseAndEffectiveTaxRateDetails" xlink:href="wdc-20200103.xsd#IncomeTaxExpenseTaxExpenseAndEffectiveTaxRateDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesAndOtherCommitments" xlink:href="wdc-20200103.xsd#LeasesAndOtherCommitments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesAndOtherCommitmentsLongTermCommitmentsDetails" xlink:href="wdc-20200103.xsd#LeasesAndOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesAndOtherCommitmentsSupplementalBalanceSheetDetails" xlink:href="wdc-20200103.xsd#LeasesAndOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesAndOtherCommitmentsSupplementalCashFlowDetails" xlink:href="wdc-20200103.xsd#LeasesAndOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesAndOtherCommitmentsTables" xlink:href="wdc-20200103.xsd#LeasesAndOtherCommitmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/LegalProceedings" xlink:href="wdc-20200103.xsd#LegalProceedings" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:href="wdc-20200103.xsd#NetIncomeLossPerCommonShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:href="wdc-20200103.xsd#NetIncomeLossPerCommonShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationAndBasisOfPresentation" xlink:href="wdc-20200103.xsd#OrganizationAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationAndBasisOfPresentationPolicies" xlink:href="wdc-20200103.xsd#OrganizationAndBasisOfPresentationPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlans" xlink:href="wdc-20200103.xsd#PensionsAndOtherPostRetirementBenefitPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#PensionsAndOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansObligationsAndFundedStatusDetails" xlink:href="wdc-20200103.xsd#PensionsAndOtherPostRetirementBenefitPlansObligationsAndFundedStatusDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansTables" xlink:href="wdc-20200103.xsd#PensionsAndOtherPostRetirementBenefitPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedOnConsolidatedBalanceSheetsDetails" xlink:href="wdc-20200103.xsd#PensionsAndOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedOnConsolidatedBalanceSheetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RecentlyAccountingPronouncements" xlink:href="wdc-20200103.xsd#RecentlyAccountingPronouncements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingencies" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesEquityInvestmentsDetails" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesEquityInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesJointVentureLeaseAmountsDetails" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesJvLeaseGuaranteesDetails" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesJvLeaseGuaranteesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesMaximumLossExposureDetails" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesMaximumLossExposureDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesTables" xlink:href="wdc-20200103.xsd#RelatedPartiesAndRelatedCommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/Revenues" xlink:href="wdc-20200103.xsd#Revenues" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#RevenuesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesDisaggregationOfRevenueDetails" xlink:href="wdc-20200103.xsd#RevenuesDisaggregationOfRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:href="wdc-20200103.xsd#RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesTables" xlink:href="wdc-20200103.xsd#RevenuesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiaries" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiaries" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesBalanceSheetDetails" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesBalanceSheetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfCashFlowsDetails" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfCashFlowsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfComprehensiveIncomeLossDetails" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfComprehensiveIncomeLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfOperationsDetails" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesTables" xlink:href="wdc-20200103.xsd#SeparateFinancialInformationOfGuarantorSubsidiariesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:href="wdc-20200103.xsd#ShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityDividendsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityStockOptionActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityTables" xlink:href="wdc-20200103.xsd#ShareholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedShareBasedCompensationDetails" xlink:href="wdc-20200103.xsd#ShareholdersEquityUnrecognizedShareBasedCompensationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementData" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantAndEquipmentDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataPropertyPlantAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:href="wdc-20200103.xsd#SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLoss" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsOfOperations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/CondensedConsolidatedStatementsOfShareholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_98AFEEE965B5571A9AB8E722D4B611B0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_DE3053803FD3167C46B2E722D4B42B0F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_98AFEEE965B5571A9AB8E722D4B611B0" xlink:to="loc_us-gaap_StatementTable_DE3053803FD3167C46B2E722D4B42B0F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_1FB27363517F3A7FAB7DE722D4B4F924" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_DE3053803FD3167C46B2E722D4B42B0F" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_1FB27363517F3A7FAB7DE722D4B4F924" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1FB27363517F3A7FAB7DE722D4B4F924" xlink:to="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1FB27363517F3A7FAB7DE722D4B4F924" xlink:to="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_5E7D678529A3B86634C6E722D4B55D30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:to="loc_us-gaap_CommonStockMember_5E7D678529A3B86634C6E722D4B55D30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_D95F05334A369B23D504E722D4B5C332" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:to="loc_us-gaap_TreasuryStockMember_D95F05334A369B23D504E722D4B5C332" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_733EFAD17934FF955561E722D4B552E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_733EFAD17934FF955561E722D4B552E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_65B8D6B185E535DC83DDE722D4B5BD2B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_65B8D6B185E535DC83DDE722D4B5BD2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_1A4886FE5D4A4773FF81E722D4B5BBCE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_2470EFB9E9BF62E17490E722D4B4A1FE" xlink:to="loc_us-gaap_RetainedEarningsMember_1A4886FE5D4A4773FF81E722D4B5BBCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_98AFEEE965B5571A9AB8E722D4B611B0" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_AD9578A27C7053EBA427E722D4B691CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_StockholdersEquity_AD9578A27C7053EBA427E722D4B691CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesIssued" xlink:label="loc_us-gaap_SharesIssued_2BDC281FA59CC04BE72CE722D4B6143E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_SharesIssued_2BDC281FA59CC04BE72CE722D4B6143E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_A80B76E733A74008BC9BE722D4B6C76B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_NetIncomeLoss_A80B76E733A74008BC9BE722D4B6C76B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_3EDDE9D4082FED623E30E722D4B7DB5F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_3EDDE9D4082FED623E30E722D4B7DB5F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_B470BB9FE5C84691484AE722D4B7C579" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_B470BB9FE5C84691484AE722D4B7C579" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_2130A27F1C6C7F310C65E722D4B738FE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_2130A27F1C6C7F310C65E722D4B738FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_E049A1BD81E260783393E722D4B7C83E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_E049A1BD81E260783393E722D4B7C83E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_8D78C0365FC426867475E722D4B77BDF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_8D78C0365FC426867475E722D4B77BDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_4B74151C0F285F7C305FE722D4B74273" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_4B74151C0F285F7C305FE722D4B74273" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_DividendsDeclared" xlink:label="loc_wdc_DividendsDeclared_87FB0ECF62DA626EAE98E722D4B75F76" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_wdc_DividendsDeclared_87FB0ECF62DA626EAE98E722D4B75F76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_3D68499F911A4770B3CEE722D4B835BD" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_3D68499F911A4770B3CEE722D4B835BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_C4BC27AAD3EDFA886C13E722D4B8D638" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_C4BC27AAD3EDFA886C13E722D4B8D638" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax_3BE83FC0B50A74EE8D73E722D4B87997" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_10A7D0E2164E5C8F63B0E722D4B6055C" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetofTax_3BE83FC0B50A74EE8D73E722D4B87997" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/Debt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5169A277A869AEE8C4FD1C09B3AA6CA1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_FAEB2BB279E18D8E42E31C09B3A82FDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5169A277A869AEE8C4FD1C09B3AA6CA1" xlink:to="loc_us-gaap_DebtInstrumentTable_FAEB2BB279E18D8E42E31C09B3A82FDF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_9F78BFEEDD89184790BC1C09B3A80902" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_FAEB2BB279E18D8E42E31C09B3A82FDF" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_9F78BFEEDD89184790BC1C09B3A80902" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6FC519C1002C9CA16CFE1C09B3A90B12_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_9F78BFEEDD89184790BC1C09B3A80902" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6FC519C1002C9CA16CFE1C09B3A90B12_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6FC519C1002C9CA16CFE1C09B3A90B12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_9F78BFEEDD89184790BC1C09B3A80902" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6FC519C1002C9CA16CFE1C09B3A90B12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_CFD5FBC54EB3CD1B82B51C09B3A9062D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6FC519C1002C9CA16CFE1C09B3A90B12" xlink:to="loc_us-gaap_SubsequentEventMember_CFD5FBC54EB3CD1B82B51C09B3A9062D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_E48781FF90BBB872792E1C09B3A9724D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_FAEB2BB279E18D8E42E31C09B3A82FDF" xlink:to="loc_us-gaap_DebtInstrumentAxis_E48781FF90BBB872792E1C09B3A9724D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5D791308C1A32C6A6B9D1C09B3A98E0F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_E48781FF90BBB872792E1C09B3A9724D" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5D791308C1A32C6A6B9D1C09B3A98E0F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5D791308C1A32C6A6B9D1C09B3A98E0F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_E48781FF90BBB872792E1C09B3A9724D" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5D791308C1A32C6A6B9D1C09B3A98E0F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_U.S.TermLoanB4Member" xlink:label="loc_wdc_U.S.TermLoanB4Member_9CB995178E6ACD09194D1C09B3AA72DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5D791308C1A32C6A6B9D1C09B3A98E0F" xlink:to="loc_wdc_U.S.TermLoanB4Member_9CB995178E6ACD09194D1C09B3AA72DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_77170C66D599C7B9E7481C09B3AA8EA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5169A277A869AEE8C4FD1C09B3AA6CA1" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_77170C66D599C7B9E7481C09B3AA8EA7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtScheduleOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_86C57284BAAF793AD5C2208212D59027" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_DebtInstrumentTable_86C57284BAAF793AD5C2208212D59027" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_E21B21577E4A49E5CDF1208212D57132" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_86C57284BAAF793AD5C2208212D59027" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_E21B21577E4A49E5CDF1208212D57132" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_AA8F3CBEB0E68F3B16D1208212D6D493_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_E21B21577E4A49E5CDF1208212D57132" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_AA8F3CBEB0E68F3B16D1208212D6D493_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_AA8F3CBEB0E68F3B16D1208212D6D493" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_E21B21577E4A49E5CDF1208212D57132" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_AA8F3CBEB0E68F3B16D1208212D6D493" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleDebtMember" xlink:label="loc_us-gaap_ConvertibleDebtMember_8773DC0510A15A450034208212D62DA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_AA8F3CBEB0E68F3B16D1208212D6D493" xlink:to="loc_us-gaap_ConvertibleDebtMember_8773DC0510A15A450034208212D62DA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_DBFF92222C6582460326208212D7F468" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_86C57284BAAF793AD5C2208212D59027" xlink:to="loc_us-gaap_DebtInstrumentAxis_DBFF92222C6582460326208212D7F468" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_DBFF92222C6582460326208212D7F468" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_DBFF92222C6582460326208212D7F468" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_DDC37E05190D909DAC9D208212D70A3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_DDC37E05190D909DAC9D208212D70A3C" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TermLoanA1Member" xlink:label="loc_wdc_TermLoanA1Member_0886C49733749D5E17B5208212D707C0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:to="loc_wdc_TermLoanA1Member_0886C49733749D5E17B5208212D707C0" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_U.S.TermLoanB4Member" xlink:label="loc_wdc_U.S.TermLoanB4Member_C2EFF24BA655282ECBE4208212D8860B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:to="loc_wdc_U.S.TermLoanB4Member_C2EFF24BA655282ECBE4208212D8860B" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_9D9AFF12812B05402C91208212D811D2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_9D9AFF12812B05402C91208212D811D2" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_FEAE4391B8A534099362208212D8EBDE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_D5AD4EBC1AE083BF13F5208212D7CD61" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_FEAE4391B8A534099362208212D8EBDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_47CBAE857A94F7BF76CD208212D8788F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_47CBAE857A94F7BF76CD208212D8788F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_9990F41CBD9C207A5377208212D9E884" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_9990F41CBD9C207A5377208212D9E884" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_D0B58BE4D68D610118DB208212D9E48B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_D0B58BE4D68D610118DB208212D9E48B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_E25B1B0239E830138D39208212D995C1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_LongTermDebt_E25B1B0239E830138D39208212D995C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_D55F4FE1F932EE810F07208212D91C4D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_LongTermDebtCurrent_D55F4FE1F932EE810F07208212D91C4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_8FFE218AFEA740C542EC208212D91F40" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_CE6502E5559D308AA9C7208212D80DC7" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_8FFE218AFEA740C542EC208212D91F40" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsAndHedgingActivities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsAndHedgingActivitiesAdditionalInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherCharges" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_456AA9BBDE9B1478AD9CEC76E6EE7C90" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_177CC81F67750A81F169EC76E6EC054F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_456AA9BBDE9B1478AD9CEC76E6EE7C90" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_177CC81F67750A81F169EC76E6EC054F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_C71D1EEAC6AA6F2C0C02EC76E6EC0187" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_177CC81F67750A81F169EC76E6EC054F" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_C71D1EEAC6AA6F2C0C02EC76E6EC0187" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_C71D1EEAC6AA6F2C0C02EC76E6EC0187" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_C71D1EEAC6AA6F2C0C02EC76E6EC0187" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_D0FAEAF173D006D3337CEC76E6ED78EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_D0FAEAF173D006D3337CEC76E6ED78EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ContractTerminationMember" xlink:label="loc_us-gaap_ContractTerminationMember_22F94363E3D8622328B6EC76E6EDB634" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_63D224DD5186D19B48ECEC76E6ECD2B5" xlink:to="loc_us-gaap_ContractTerminationMember_22F94363E3D8622328B6EC76E6EDB634" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_6F995638193AC6CCE6B3EC76E6ED75F5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_177CC81F67750A81F169EC76E6EC054F" xlink:to="loc_us-gaap_RestructuringPlanAxis_6F995638193AC6CCE6B3EC76E6ED75F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_9AC0ECA704C594FFACA7EC76E6EDC80F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_6F995638193AC6CCE6B3EC76E6ED75F5" xlink:to="loc_us-gaap_RestructuringPlanDomain_9AC0ECA704C594FFACA7EC76E6EDC80F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_9AC0ECA704C594FFACA7EC76E6EDC80F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_6F995638193AC6CCE6B3EC76E6ED75F5" xlink:to="loc_us-gaap_RestructuringPlanDomain_9AC0ECA704C594FFACA7EC76E6EDC80F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_BusinessRealignmentActivitiesMember" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_CE3565DAB980E9AA2BFDEC76E6EEE760" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_9AC0ECA704C594FFACA7EC76E6EDC80F" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_CE3565DAB980E9AA2BFDEC76E6EEE760" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveAcceleratedDepreciation" xlink:label="loc_us-gaap_RestructuringReserveAcceleratedDepreciation_706F12E610AA7DA360EFEC7734E8B8F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_456AA9BBDE9B1478AD9CEC76E6EE7C90" xlink:to="loc_us-gaap_RestructuringReserveAcceleratedDepreciation_706F12E610AA7DA360EFEC7734E8B8F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveRollForward" xlink:label="loc_us-gaap_RestructuringReserveRollForward_D468018F0DB1E761B42EEC76E6EEA756" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_456AA9BBDE9B1478AD9CEC76E6EE7C90" xlink:to="loc_us-gaap_RestructuringReserveRollForward_D468018F0DB1E761B42EEC76E6EEA756" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="loc_us-gaap_RestructuringReserve_029228DA7F03EB971C07EC76E6EE84FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_D468018F0DB1E761B42EEC76E6EEA756" xlink:to="loc_us-gaap_RestructuringReserve_029228DA7F03EB971C07EC76E6EE84FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_113BC3F754CB16339C5CEC76E6EE746B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_D468018F0DB1E761B42EEC76E6EEA756" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_113BC3F754CB16339C5CEC76E6EE746B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRestructuring" xlink:label="loc_us-gaap_PaymentsForRestructuring_3E3A9A18AC4F2196F8BCEC76E6EF7FAB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_D468018F0DB1E761B42EEC76E6EEA756" xlink:to="loc_us-gaap_PaymentsForRestructuring_3E3A9A18AC4F2196F8BCEC76E6EF7FAB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesClosureOfForeignManufacturingFacilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_A3B777676093803D938BE722D2385303" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_705ADD0585D063459795E722D2293EC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_A3B777676093803D938BE722D2385303" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_705ADD0585D063459795E722D2293EC4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_42F9B8A3420DFB90C38EE722D2296DF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_705ADD0585D063459795E722D2293EC4" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_42F9B8A3420DFB90C38EE722D2296DF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_42F9B8A3420DFB90C38EE722D2296DF9" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_42F9B8A3420DFB90C38EE722D2296DF9" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_B8B301BE5092668FC0A5E722D229ADFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_B8B301BE5092668FC0A5E722D229ADFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ContractTerminationMember" xlink:label="loc_us-gaap_ContractTerminationMember_0E0875F66EAD9A86B5F4E722D229E067" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_19D5BAE808CFA297098BE722D229A2AA" xlink:to="loc_us-gaap_ContractTerminationMember_0E0875F66EAD9A86B5F4E722D229E067" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_3AF20E0576AF24F0A43BE722D229ECB5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_705ADD0585D063459795E722D2293EC4" xlink:to="loc_us-gaap_RestructuringPlanAxis_3AF20E0576AF24F0A43BE722D229ECB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_151E6DB536F1E7375BE1E722D2295694_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_3AF20E0576AF24F0A43BE722D229ECB5" xlink:to="loc_us-gaap_RestructuringPlanDomain_151E6DB536F1E7375BE1E722D2295694_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_151E6DB536F1E7375BE1E722D2295694" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_3AF20E0576AF24F0A43BE722D229ECB5" xlink:to="loc_us-gaap_RestructuringPlanDomain_151E6DB536F1E7375BE1E722D2295694" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ClosureofForeignManufacturingFacilitiesMember" xlink:label="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_68CFA7D1F192E8FC6D44E722D2293851" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_151E6DB536F1E7375BE1E722D2295694" xlink:to="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_68CFA7D1F192E8FC6D44E722D2293851" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveRollForward" xlink:label="loc_us-gaap_RestructuringReserveRollForward_03C14482D3EE0B184C43E722D238DD4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_A3B777676093803D938BE722D2385303" xlink:to="loc_us-gaap_RestructuringReserveRollForward_03C14482D3EE0B184C43E722D238DD4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="loc_us-gaap_RestructuringReserve_57FA3BA3B9CA544F417DE722D238E991" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_03C14482D3EE0B184C43E722D238DD4D" xlink:to="loc_us-gaap_RestructuringReserve_57FA3BA3B9CA544F417DE722D238E991" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_06DBA96F813E3515EBFBE722D2387AE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_03C14482D3EE0B184C43E722D238DD4D" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_06DBA96F813E3515EBFBE722D2387AE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRestructuring" xlink:label="loc_us-gaap_PaymentsForRestructuring_B044CA8C10B069E059F5E722D238FD20" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_03C14482D3EE0B184C43E722D238DD4D" xlink:to="loc_us-gaap_PaymentsForRestructuring_B044CA8C10B069E059F5E722D238FD20" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_28F210092420033E6E98F6BC6162DBC8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_9B5B2A13938ACE81B4DBF6BC6160B8BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_28F210092420033E6E98F6BC6162DBC8" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_9B5B2A13938ACE81B4DBF6BC6160B8BE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_E00DE3FE54C02BFDB466F6BC61606D98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_9B5B2A13938ACE81B4DBF6BC6160B8BE" xlink:to="loc_us-gaap_RestructuringPlanAxis_E00DE3FE54C02BFDB466F6BC61606D98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_E00DE3FE54C02BFDB466F6BC61606D98" xlink:to="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_E00DE3FE54C02BFDB466F6BC61606D98" xlink:to="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ClosureofForeignManufacturingFacilitiesMember" xlink:label="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_20C49A95458A5F7E24BAF6BC61611D71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A" xlink:to="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_20C49A95458A5F7E24BAF6BC61611D71" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_BusinessRealignmentActivitiesMember" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_84301ACB7D37E41AF13EF6BC61619852" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_A1D5A795EB494C263FE3F6BC6161ED4A" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_84301ACB7D37E41AF13EF6BC61619852" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_9569700D64D274B54F2DF6BC616279F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_28F210092420033E6E98F6BC6162DBC8" xlink:to="loc_us-gaap_RestructuringCharges_9569700D64D274B54F2DF6BC616279F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_AE800D2C008D57090E12F6CD5CCDC95E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_28F210092420033E6E98F6BC6162DBC8" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_AE800D2C008D57090E12F6CD5CCDC95E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_8BB2842B318312F26092F6BC6162F1B0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_28F210092420033E6E98F6BC6162DBC8" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_8BB2842B318312F26092F6BC6162F1B0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentAndOtherChargesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsAndInvestments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsDebtInstrumentFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_8CF5BC4544E1FD59E5911C09B3E49EF9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_5560E3CEED64D4EC4AAA1C09B3E068A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_8CF5BC4544E1FD59E5911C09B3E49EF9" xlink:to="loc_us-gaap_DebtInstrumentTable_5560E3CEED64D4EC4AAA1C09B3E068A8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B01F6542B373ADB179D91C09B3E065A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5560E3CEED64D4EC4AAA1C09B3E068A8" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B01F6542B373ADB179D91C09B3E065A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D6572CE7FDF49E19DF881C09B3E105FB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B01F6542B373ADB179D91C09B3E065A6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D6572CE7FDF49E19DF881C09B3E105FB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D6572CE7FDF49E19DF881C09B3E105FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B01F6542B373ADB179D91C09B3E065A6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D6572CE7FDF49E19DF881C09B3E105FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_61490FE47481B92983501C09B3E19C9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D6572CE7FDF49E19DF881C09B3E105FB" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_61490FE47481B92983501C09B3E19C9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_209A1AEF4C0CEC2C33221C09B3E1DAFF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5560E3CEED64D4EC4AAA1C09B3E068A8" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_209A1AEF4C0CEC2C33221C09B3E1DAFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_38ABB67F20A67022436B1C09B3E17A1C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_209A1AEF4C0CEC2C33221C09B3E1DAFF" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_38ABB67F20A67022436B1C09B3E17A1C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_2046B4B4FCE7B05195261C09B3E124A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_209A1AEF4C0CEC2C33221C09B3E1DAFF" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_2046B4B4FCE7B05195261C09B3E124A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_38ABB67F20A67022436B1C09B3E17A1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_2046B4B4FCE7B05195261C09B3E124A7" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_38ABB67F20A67022436B1C09B3E17A1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_B0C83E447CD0FCD46DF71C09B3E26A04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_38ABB67F20A67022436B1C09B3E17A1C" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_B0C83E447CD0FCD46DF71C09B3E26A04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_05FAD4A63E7F8CBF4F571C09B3E25303" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_2046B4B4FCE7B05195261C09B3E124A7" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_05FAD4A63E7F8CBF4F571C09B3E25303" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_7663E8352A110B37261E1C09B3E202F8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5560E3CEED64D4EC4AAA1C09B3E068A8" xlink:to="loc_us-gaap_DebtInstrumentAxis_7663E8352A110B37261E1C09B3E202F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_7663E8352A110B37261E1C09B3E202F8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_7663E8352A110B37261E1C09B3E202F8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_1AF3FF21A7592556EA321C09B3E3727D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_1AF3FF21A7592556EA321C09B3E3727D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TermLoanA1Member" xlink:label="loc_wdc_TermLoanA1Member_7AD8A3D4DCBBE441D2461C09B3E36C1B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:to="loc_wdc_TermLoanA1Member_7AD8A3D4DCBBE441D2461C09B3E36C1B" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_U.S.TermLoanB4Member" xlink:label="loc_wdc_U.S.TermLoanB4Member_696011B2135F091C7E4D1C09B3E3A363" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:to="loc_wdc_U.S.TermLoanB4Member_696011B2135F091C7E4D1C09B3E3A363" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_767E7C03AB05D710566D1C09B3E358DA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_767E7C03AB05D710566D1C09B3E358DA" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_6332B0FF623C22BDB9311C09B3E4CCA9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_3B7E6B5797DE938C76701C09B3E32B09" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_6332B0FF623C22BDB9311C09B3E4CCA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5770998372F9D824BE011C09B3E4F209" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_8CF5BC4544E1FD59E5911C09B3E49EF9" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5770998372F9D824BE011C09B3E4F209" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_A456D94834006EAB7D511C09B3E45B11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_8CF5BC4544E1FD59E5911C09B3E49EF9" xlink:to="loc_us-gaap_LongTermDebtFairValue_A456D94834006EAB7D511C09B3E45B11" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_76507D6B0D49D084148C0CB393A83478" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5A2DB2638E5F2CCE421B0CB3939D863D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_76507D6B0D49D084148C0CB393A83478" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5A2DB2638E5F2CCE421B0CB3939D863D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_9286C12A326163A2FEF20CB3939E45C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5A2DB2638E5F2CCE421B0CB3939D863D" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_9286C12A326163A2FEF20CB3939E45C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA3680C5639B1D0B3BC10CB3939EE757_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_9286C12A326163A2FEF20CB3939E45C1" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA3680C5639B1D0B3BC10CB3939EE757_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA3680C5639B1D0B3BC10CB3939EE757" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_9286C12A326163A2FEF20CB3939E45C1" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA3680C5639B1D0B3BC10CB3939EE757" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_88F566C4F25F1428EF820CB3939ED228" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_AA3680C5639B1D0B3BC10CB3939EE757" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_88F566C4F25F1428EF820CB3939ED228" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_6E355F2623BFF5A20E960CB3939F717E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5A2DB2638E5F2CCE421B0CB3939D863D" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_6E355F2623BFF5A20E960CB3939F717E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_6E355F2623BFF5A20E960CB3939F717E" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_6E355F2623BFF5A20E960CB3939F717E" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MoneyMarketFundsMember" xlink:label="loc_us-gaap_MoneyMarketFundsMember_306D30BC98DA30AAEEE10CB3939F61FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:to="loc_us-gaap_MoneyMarketFundsMember_306D30BC98DA30AAEEE10CB3939F61FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CertificatesOfDepositMember" xlink:label="loc_us-gaap_CertificatesOfDepositMember_7DD6308863E55CD757D00CB393A66274" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:to="loc_us-gaap_CertificatesOfDepositMember_7DD6308863E55CD757D00CB393A66274" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_74EDE7620EE422AE27820CB393A72959" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:to="loc_us-gaap_ForeignExchangeContractMember_74EDE7620EE422AE27820CB393A72959" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_427205CEB3296E9AA35C0CB393A7A6AA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_E5D5A20C10A10D1A027A0CB3939F1B61" xlink:to="loc_us-gaap_InterestRateSwapMember_427205CEB3296E9AA35C0CB393A7A6AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43A6C2A64869B4F66DD40CB393A7C273" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_5A2DB2638E5F2CCE421B0CB3939D863D" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43A6C2A64869B4F66DD40CB393A7C273" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43A6C2A64869B4F66DD40CB393A7C273" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_43A6C2A64869B4F66DD40CB393A7C273" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_27DC89D1089BE0C518E10CB393A73A32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_27DC89D1089BE0C518E10CB393A73A32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_D07EDE5BF19ABEA6EE6A0CB393A8AC51" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_D07EDE5BF19ABEA6EE6A0CB393A8AC51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_9854B62262999E46C5440CB393A8C7D9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_9E11CD9D7793AB6E23CB0CB393A7FED7" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_9854B62262999E46C5440CB393A8C7D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_7E2E78E35F89933C01A20CB393A89C96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_76507D6B0D49D084148C0CB393A83478" xlink:to="loc_us-gaap_AssetsAbstract_7E2E78E35F89933C01A20CB393A89C96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_F445E7008D1C09EA54AD0CB393A92891" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7E2E78E35F89933C01A20CB393A89C96" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_F445E7008D1C09EA54AD0CB393A92891" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_75AAA6DFEF6AE469B79B0CB393A91BE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7E2E78E35F89933C01A20CB393A89C96" xlink:to="loc_us-gaap_DerivativeAssets_75AAA6DFEF6AE469B79B0CB393A91BE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_C8FEEA30DC2BCEDBE46C0CB393A920F9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7E2E78E35F89933C01A20CB393A89C96" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_C8FEEA30DC2BCEDBE46C0CB393A920F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_37A170EB797BF66A9C800CB393A9DDF9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_76507D6B0D49D084148C0CB393A83478" xlink:to="loc_us-gaap_LiabilitiesAbstract_37A170EB797BF66A9C800CB393A9DDF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_31C064F6B2635C072A7C0CB393AA7514" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_37A170EB797BF66A9C800CB393A9DDF9" xlink:to="loc_us-gaap_DerivativeLiabilities_31C064F6B2635C072A7C0CB393AA7514" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_86D370F2415CDD50EAA60CB393AAFCC8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_37A170EB797BF66A9C800CB393A9DDF9" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_86D370F2415CDD50EAA60CB393AAFCC8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsAndInvestmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IncomeTaxDisclosureLineItems" xlink:label="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:type="locator" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IncomeTaxDisclosureTable" xlink:label="loc_wdc_IncomeTaxDisclosureTable_B979EB4C1FA0F2B2B73C1FDD54ADD99D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_wdc_IncomeTaxDisclosureTable_B979EB4C1FA0F2B2B73C1FDD54ADD99D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_862C1AB9725A4178D3C91FDD54ADF85A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_B979EB4C1FA0F2B2B73C1FDD54ADD99D" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_862C1AB9725A4178D3C91FDD54ADF85A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_D0C11FDFB686F07438161FDD54AEFE51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_862C1AB9725A4178D3C91FDD54ADF85A" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_D0C11FDFB686F07438161FDD54AEFE51_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_D0C11FDFB686F07438161FDD54AEFE51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_862C1AB9725A4178D3C91FDD54ADF85A" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_D0C11FDFB686F07438161FDD54AEFE51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_AB0C2BA3412CCB5020791FDD54AE6A6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_D0C11FDFB686F07438161FDD54AEFE51" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_AB0C2BA3412CCB5020791FDD54AE6A6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_922E6C02BE2F669E37AE1FDD54AE7DDC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_B979EB4C1FA0F2B2B73C1FDD54ADD99D" xlink:to="loc_us-gaap_TaxPeriodAxis_922E6C02BE2F669E37AE1FDD54AE7DDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_922E6C02BE2F669E37AE1FDD54AE7DDC" xlink:to="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_922E6C02BE2F669E37AE1FDD54AE7DDC" xlink:to="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TaxYear2008Through2009Member" xlink:label="loc_wdc_TaxYear2008Through2009Member_1696571276BB46E166D21FDD54AF1001" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A" xlink:to="loc_wdc_TaxYear2008Through2009Member_1696571276BB46E166D21FDD54AF1001" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TaxYears2010Through2012Member" xlink:label="loc_wdc_TaxYears2010Through2012Member_32F633242579A34776E91FDD54AF28AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_EB66042C4BAC43257A471FDD54AE669A" xlink:to="loc_wdc_TaxYears2010Through2012Member_32F633242579A34776E91FDD54AF28AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_9101942677A8F67BFE091FDD54AF1F14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_9101942677A8F67BFE091FDD54AF1F14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_24AA1523EEB2A132EB881FDD54B029AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_24AA1523EEB2A132EB881FDD54B029AF" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount" xlink:label="loc_wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount_51B291E4E52338981B621FDD54B072DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_wdc_TaxCutsAndJobsActOf2017ChangeInTaxRateIncomeTaxExpenseBenefitIncompleteAccountingProvisionalAmount_51B291E4E52338981B621FDD54B072DB" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount" xlink:label="loc_wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount_86D74024C91AEBB2A85A1FDD54B08FD4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_wdc_TaxCutsandJobsActof2017TransitionTaxforAccumulatedForeignEarningsLiabilityIncompleteAccountingProvisionalAmount_86D74024C91AEBB2A85A1FDD54B08FD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss" xlink:label="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_51635ADB26958A15DFF11FDD54B037EB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_51635ADB26958A15DFF11FDD54B037EB" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments" xlink:label="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_676F1105BA3EAA71B26B1FDD54B0639F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_676F1105BA3EAA71B26B1FDD54B0639F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_ED0EB0F81EFF65689DBE1FDD54B0098D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_ED0EB0F81EFF65689DBE1FDD54B0098D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_0377D4E5FE08E7E262F71FDD54B0CCCF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_0377D4E5FE08E7E262F71FDD54B0CCCF" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_UnrecognizedTaxBenefitsPayable" xlink:label="loc_wdc_UnrecognizedTaxBenefitsPayable_68B92E01B91C563DB71D1FDD54B1726F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_1CA6D1DB7CBFE01283411FDD54AFC938" xlink:to="loc_wdc_UnrecognizedTaxBenefitsPayable_68B92E01B91C563DB71D1FDD54B1726F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseAndEffectiveTaxRateDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesAndOtherCommitments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesAndOtherCommitmentsLongTermCommitmentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesAndOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesAndOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesAndOtherCommitmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationAndBasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationAndBasisOfPresentationPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlans" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansObligationsAndFundedStatusDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsAndOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedOnConsolidatedBalanceSheetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncements" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/RecentlyAccountingPronouncementsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_31AF62750D2206E1D4C320CE83CB0EC7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_81DC36F339C8CB00A6F020CE83C90B5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_31AF62750D2206E1D4C320CE83CB0EC7" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_81DC36F339C8CB00A6F020CE83C90B5B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9AD97B0E39118F8E20F220CE83CAED5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_81DC36F339C8CB00A6F020CE83C90B5B" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9AD97B0E39118F8E20F220CE83CAED5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_874C62E499D5C7B7F4C220CE83CA0250_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9AD97B0E39118F8E20F220CE83CAED5C" xlink:to="loc_us-gaap_TypeOfAdoptionMember_874C62E499D5C7B7F4C220CE83CA0250_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_874C62E499D5C7B7F4C220CE83CA0250" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_9AD97B0E39118F8E20F220CE83CAED5C" xlink:to="loc_us-gaap_TypeOfAdoptionMember_874C62E499D5C7B7F4C220CE83CA0250" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_CA264D96589EDE77E93D20CE83CADAE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_874C62E499D5C7B7F4C220CE83CA0250" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_CA264D96589EDE77E93D20CE83CADAE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_1EF74607ECD2851BA8F220CE83CBFDEA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_31AF62750D2206E1D4C320CE83CB0EC7" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_1EF74607ECD2851BA8F220CE83CBFDEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_A3CFF3508C7A2ACAC46B20CF8AC21AF2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_31AF62750D2206E1D4C320CE83CB0EC7" xlink:to="loc_us-gaap_OperatingLeaseLiability_A3CFF3508C7A2ACAC46B20CF8AC21AF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_1DE2BF03A22C56754D6420CE83CC6569" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_31AF62750D2206E1D4C320CE83CB0EC7" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_1DE2BF03A22C56754D6420CE83CC6569" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_6F706D0C57F87587558D2086A11DFBFB" xlink:type="locator" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable" xlink:label="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_6F706D0C57F87587558D2086A11DFBFB" xlink:to="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_49909DAF0AA30431419B2086A1160898" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_49909DAF0AA30431419B2086A1160898" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_049EE0DBB042E087D1F62086A11780A7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_49909DAF0AA30431419B2086A1160898" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_049EE0DBB042E087D1F62086A11780A7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_049EE0DBB042E087D1F62086A11780A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_49909DAF0AA30431419B2086A1160898" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_049EE0DBB042E087D1F62086A11780A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_3FB34E216CB94380C1F92086A1178A29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_049EE0DBB042E087D1F62086A11780A7" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_3FB34E216CB94380C1F92086A1178A29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsAxis" xlink:label="loc_us-gaap_OtherCommitmentsAxis_5351692A7B217F19D7AD2086A117FE7F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_us-gaap_OtherCommitmentsAxis_5351692A7B217F19D7AD2086A117FE7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_578B26D57CCA54468DBD2086A1182531_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_5351692A7B217F19D7AD2086A117FE7F" xlink:to="loc_us-gaap_OtherCommitmentsDomain_578B26D57CCA54468DBD2086A1182531_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitmentsDomain" xlink:label="loc_us-gaap_OtherCommitmentsDomain_578B26D57CCA54468DBD2086A1182531" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_5351692A7B217F19D7AD2086A117FE7F" xlink:to="loc_us-gaap_OtherCommitmentsDomain_578B26D57CCA54468DBD2086A1182531" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_PrepaymentsOfFutureDepreciationMember" xlink:label="loc_wdc_PrepaymentsOfFutureDepreciationMember_489E78F0463AED87F7A42086A118F5C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_578B26D57CCA54468DBD2086A1182531" xlink:to="loc_wdc_PrepaymentsOfFutureDepreciationMember_489E78F0463AED87F7A42086A118F5C6" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_432DE764CE804E93FE812086A118F10E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_dei_LegalEntityAxis_432DE764CE804E93FE812086A118F10E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_FA19A173836FAAC67C362086A118E7C0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_432DE764CE804E93FE812086A118F10E" xlink:to="loc_dei_EntityDomain_FA19A173836FAAC67C362086A118E7C0_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_FA19A173836FAAC67C362086A118E7C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_432DE764CE804E93FE812086A118F10E" xlink:to="loc_dei_EntityDomain_FA19A173836FAAC67C362086A118E7C0" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_UnissoftWuxiGroupCoLtd.Member" xlink:label="loc_wdc_UnissoftWuxiGroupCoLtd.Member_451D7FD0923ED382A10A2086A118DBC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_FA19A173836FAAC67C362086A118E7C0" xlink:to="loc_wdc_UnissoftWuxiGroupCoLtd.Member_451D7FD0923ED382A10A2086A118DBC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_61E7049E782C79A334072086A11938E1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_61E7049E782C79A334072086A11938E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_61E7049E782C79A334072086A11938E1" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_61E7049E782C79A334072086A11938E1" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FlashVenturesMember" xlink:label="loc_wdc_FlashVenturesMember_71E74CC21E6146FB72D82086A119C0A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985" xlink:to="loc_wdc_FlashVenturesMember_71E74CC21E6146FB72D82086A119C0A8" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_UnisVentureMember" xlink:label="loc_wdc_UnisVentureMember_34C61E5B842D35DC49212086A11A3700" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_C1B741C22C271D53EE342086A119C985" xlink:to="loc_wdc_UnisVentureMember_34C61E5B842D35DC49212086A11A3700" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_254119E74460F695EFB32086A11A5590" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_254119E74460F695EFB32086A11A5590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_46E03245FB2BE227395E2086A11A6244_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_254119E74460F695EFB32086A11A5590" xlink:to="loc_us-gaap_RelatedPartyDomain_46E03245FB2BE227395E2086A11A6244_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_46E03245FB2BE227395E2086A11A6244" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_254119E74460F695EFB32086A11A5590" xlink:to="loc_us-gaap_RelatedPartyDomain_46E03245FB2BE227395E2086A11A6244" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_144009C5A005908EA5132086A11AA17C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_46E03245FB2BE227395E2086A11A6244" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_144009C5A005908EA5132086A11AA17C" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EquityMethodInvestorNameAxis" xlink:label="loc_wdc_EquityMethodInvestorNameAxis_D8E7ACD3260AB9472ADA2086A11A654C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_wdc_EquityMethodInvestorNameAxis_D8E7ACD3260AB9472ADA2086A11A654C" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EquityMethodInvestorNameDomain" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_053EC12AE18B7E6DB6812086A11B09A0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_D8E7ACD3260AB9472ADA2086A11A654C" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_053EC12AE18B7E6DB6812086A11B09A0_default" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EquityMethodInvestorNameDomain" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_053EC12AE18B7E6DB6812086A11B09A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_D8E7ACD3260AB9472ADA2086A11A654C" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_053EC12AE18B7E6DB6812086A11B09A0" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_WesternDigitalCorpMember" xlink:label="loc_wdc_WesternDigitalCorpMember_2EF8C4E4F86A2CD0C7352086A11BDD25" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EquityMethodInvestorNameDomain_053EC12AE18B7E6DB6812086A11B09A0" xlink:to="loc_wdc_WesternDigitalCorpMember_2EF8C4E4F86A2CD0C7352086A11BDD25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_63F3B8DBDC09804349C52086A11B79DC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_srt_RangeAxis_63F3B8DBDC09804349C52086A11B79DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_63F3B8DBDC09804349C52086A11B79DC" xlink:to="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_63F3B8DBDC09804349C52086A11B79DC" xlink:to="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_EAFF7B7D15EC928A043B2086A11CF9AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73" xlink:to="loc_srt_MinimumMember_EAFF7B7D15EC928A043B2086A11CF9AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_7C67106A289A62F159702086A11C1A94" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7C97CF72867DCAAF5C432086A11B7C73" xlink:to="loc_srt_MaximumMember_7C67106A289A62F159702086A11C1A94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_D0FD0BFC564EFDEAE00A2086A11C6D58" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_543D0E487DD67E2003402086A11673E3" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_D0FD0BFC564EFDEAE00A2086A11C6D58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_155BBF31F67F8A40C8AF2086A11CD7E2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D0FD0BFC564EFDEAE00A2086A11C6D58" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_155BBF31F67F8A40C8AF2086A11CD7E2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_155BBF31F67F8A40C8AF2086A11CD7E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_D0FD0BFC564EFDEAE00A2086A11C6D58" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_155BBF31F67F8A40C8AF2086A11CD7E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProductConcentrationRiskMember" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_EC61AFB1924D170338652086A11DFB39" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_155BBF31F67F8A40C8AF2086A11CD7E2" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_EC61AFB1924D170338652086A11DFB39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsAbstract" xlink:label="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_6F706D0C57F87587558D2086A11DFBFB" xlink:to="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_37DDB8C3A3D88552D8A02086A11D0D2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_37DDB8C3A3D88552D8A02086A11D0D2E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_728FE8567ED720C1817A2086A11D7816" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_728FE8567ED720C1817A2086A11D7816" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_InvestmentFundingCommitments" xlink:label="loc_wdc_InvestmentFundingCommitments_892400CB514D65A8E5D12086A11E49EE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_wdc_InvestmentFundingCommitments_892400CB514D65A8E5D12086A11E49EE" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction" xlink:label="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_051BCF5E7C945DB6E9EC2086A11E3824" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_051BCF5E7C945DB6E9EC2086A11E3824" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCommitment" xlink:label="loc_us-gaap_OtherCommitment_4E7725B8015A3178AB7B2086A11E9D51" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_us-gaap_OtherCommitment_4E7725B8015A3178AB7B2086A11E9D51" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OtherCommitmentPeriod" xlink:label="loc_wdc_OtherCommitmentPeriod_AE12331FED15502371832087CDC159F1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_wdc_OtherCommitmentPeriod_AE12331FED15502371832087CDC159F1" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OtherCommitmentRemainingCommittedPrepayments" xlink:label="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_76E2D9093674D74346B52086A11E76BF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_76E2D9093674D74346B52086A11E76BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_1A5F1EFB148D3E9D91572086A11E8915" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_1A5F1EFB148D3E9D91572086A11E8915" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_PartnersOwnershipInVentureBusiness" xlink:label="loc_wdc_PartnersOwnershipInVentureBusiness_E63101D6CF37ED4EB4422086A11EA960" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_wdc_PartnersOwnershipInVentureBusiness_E63101D6CF37ED4EB4422086A11EA960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_37F8C103A8DC51C471322086A11FC548" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_040AF2AF51355EA080392086A11DF811" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_37F8C103A8DC51C471322086A11FC548" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesEquityInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_595CDDE42D85305CA29482C0E4C03B03" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3BEAA2EAD42512A93CC482C0E4BFA333" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_595CDDE42D85305CA29482C0E4C03B03" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3BEAA2EAD42512A93CC482C0E4BFA333" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_7EE8E2B9F4CFEFCA75A382C0E4BF64D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_3BEAA2EAD42512A93CC482C0E4BFA333" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_7EE8E2B9F4CFEFCA75A382C0E4BF64D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_7EE8E2B9F4CFEFCA75A382C0E4BF64D8" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_7EE8E2B9F4CFEFCA75A382C0E4BF64D8" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FlashPartnersLtdMember" xlink:label="loc_wdc_FlashPartnersLtdMember_BE078D6F8E6655FF70C082C0E4C03286" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:to="loc_wdc_FlashPartnersLtdMember_BE078D6F8E6655FF70C082C0E4C03286" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FlashAllianceLtdMember" xlink:label="loc_wdc_FlashAllianceLtdMember_54E7B6E0D93ED86A160082C0E4C04F45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:to="loc_wdc_FlashAllianceLtdMember_54E7B6E0D93ED86A160082C0E4C04F45" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FlashForwardLtdMember" xlink:label="loc_wdc_FlashForwardLtdMember_A8F9B966EACB7564356582C0E4C01C7B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:to="loc_wdc_FlashForwardLtdMember_A8F9B966EACB7564356582C0E4C01C7B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_504177A969F70E66386282C0E4C0CEDF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_94D6AD308BC9C1F4A7AB82C0E4BFBE4D" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_504177A969F70E66386282C0E4C0CEDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableRelatedParties" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_2A272E0665FE42F7E33A82C0E4C082D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_595CDDE42D85305CA29482C0E4C03B03" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_2A272E0665FE42F7E33A82C0E4C082D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments" xlink:label="loc_us-gaap_Investments_2B2152CC413415A39DA082C0E4C15E71" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_595CDDE42D85305CA29482C0E4C03B03" xlink:to="loc_us-gaap_Investments_2B2152CC413415A39DA082C0E4C15E71" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_B33818213BA3082A4C5882C0E4C17287" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_595CDDE42D85305CA29482C0E4C03B03" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_B33818213BA3082A4C5882C0E4C17287" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_CD4BEAE39FD63A98B7D5A4EEEE868FC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_CD4BEAE39FD63A98B7D5A4EEEE868FC5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_B08200FEEF6EF132C61AA4EEEE87ABC7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_CD4BEAE39FD63A98B7D5A4EEEE868FC5" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_B08200FEEF6EF132C61AA4EEEE87ABC7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_59D3B7224C69B9E5E311A4EEEE87A1F4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_B08200FEEF6EF132C61AA4EEEE87ABC7" xlink:to="loc_us-gaap_RelatedPartyDomain_59D3B7224C69B9E5E311A4EEEE87A1F4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_59D3B7224C69B9E5E311A4EEEE87A1F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_B08200FEEF6EF132C61AA4EEEE87ABC7" xlink:to="loc_us-gaap_RelatedPartyDomain_59D3B7224C69B9E5E311A4EEEE87A1F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_8D4850358C76DC71BE21A4EEEE87B513" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_59D3B7224C69B9E5E311A4EEEE87A1F4" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_8D4850358C76DC71BE21A4EEEE87B513" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_4B3FBA03BAB785ED0F91A4EEEE8779CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_CD4BEAE39FD63A98B7D5A4EEEE868FC5" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_4B3FBA03BAB785ED0F91A4EEEE8779CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_4B3FBA03BAB785ED0F91A4EEEE8779CA" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_4B3FBA03BAB785ED0F91A4EEEE8779CA" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_PaymentOfPrincipalAmortizationMember" xlink:label="loc_wdc_PaymentOfPrincipalAmortizationMember_8FCCB75B5A74718970F7A4EEEE887A7C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15" xlink:to="loc_wdc_PaymentOfPrincipalAmortizationMember_8FCCB75B5A74718970F7A4EEEE887A7C" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_PurchaseOptionExercisePriceMember" xlink:label="loc_wdc_PurchaseOptionExercisePriceMember_C69AD0346E4E12C1FEFAA4EEEE88221F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_6C28FB92552968AE55B7A4EEEE889B15" xlink:to="loc_wdc_PurchaseOptionExercisePriceMember_C69AD0346E4E12C1FEFAA4EEEE88221F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_A07BA73E77145FED349DA4EEEE883C9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_A07BA73E77145FED349DA4EEEE883C9D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_D3238F9106A9E7158E04A4EEEE896F70" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_D3238F9106A9E7158E04A4EEEE896F70" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_33989F8DC0F4250E17C6A4EEEE8961DE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_33989F8DC0F4250E17C6A4EEEE8961DE" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_91FFDB1707DAD2930991A4EEEE8999B1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_91FFDB1707DAD2930991A4EEEE8999B1" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_D3C45A42E68347AD5531A4EEEE895F2D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_D3C45A42E68347AD5531A4EEEE895F2D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_1651223AA4356D7C12F9A4EEEE8908E7" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_1651223AA4356D7C12F9A4EEEE8908E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_EFC7F2FACD37F9E27327A4EEEE899B01" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_C313D2BE542040158786A4EEEE883100" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_EFC7F2FACD37F9E27327A4EEEE899B01" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesJvLeaseGuaranteesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_1F0F590DE7ED5674AD73623FF58EC1E8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_D12119D4CDDB5DFAABA32E3DA62A7727" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_1F0F590DE7ED5674AD73623FF58EC1E8" xlink:to="loc_us-gaap_LossContingenciesTable_D12119D4CDDB5DFAABA32E3DA62A7727" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_BalanceSheetInformationAxis" xlink:label="loc_wdc_BalanceSheetInformationAxis_60C8C92448BE5AF1AA60AF236385954C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_D12119D4CDDB5DFAABA32E3DA62A7727" xlink:to="loc_wdc_BalanceSheetInformationAxis_60C8C92448BE5AF1AA60AF236385954C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_41397F8F52A825ACCE7D23AB86F1F02A_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_60C8C92448BE5AF1AA60AF236385954C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_41397F8F52A825ACCE7D23AB86F1F02A_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_EDB1613CB25851468368676D8D61EFCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_60C8C92448BE5AF1AA60AF236385954C" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_EDB1613CB25851468368676D8D61EFCE" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OffBalanceSheetGuaranteeMember" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_EE1CDBBC49F95C409E80F6D59DE62011" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_EDB1613CB25851468368676D8D61EFCE" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_EE1CDBBC49F95C409E80F6D59DE62011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_15D8C550EF165E7AA5239EC229EFC5D2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_D12119D4CDDB5DFAABA32E3DA62A7727" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_15D8C550EF165E7AA5239EC229EFC5D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_CF4B5FFED1EE6E8F865223AB86F23909_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_15D8C550EF165E7AA5239EC229EFC5D2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_CF4B5FFED1EE6E8F865223AB86F23909_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_0EAF9D5D9F8B5F0B8B987F1EC869AA2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_15D8C550EF165E7AA5239EC229EFC5D2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_0EAF9D5D9F8B5F0B8B987F1EC869AA2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_D96BC2E4C4EF5114BAA6CD2D28D8BAC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_0EAF9D5D9F8B5F0B8B987F1EC869AA2A" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_D96BC2E4C4EF5114BAA6CD2D28D8BAC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_BC33D4F9150758DCBEAE5227FD2320F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_1F0F590DE7ED5674AD73623FF58EC1E8" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_BC33D4F9150758DCBEAE5227FD2320F6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesMaximumLossExposureDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsLineItems" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_5BB3265E78185AA9A654BB124E2639A2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_A0BA195D30C65130BC7B69A79F7B807F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_5BB3265E78185AA9A654BB124E2639A2" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_A0BA195D30C65130BC7B69A79F7B807F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_BalanceSheetInformationAxis" xlink:label="loc_wdc_BalanceSheetInformationAxis_566133F910A75BEA82735582D2812FE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_A0BA195D30C65130BC7B69A79F7B807F" xlink:to="loc_wdc_BalanceSheetInformationAxis_566133F910A75BEA82735582D2812FE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_60461D11B0B389A73B8123AB81C9409F_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_566133F910A75BEA82735582D2812FE1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_60461D11B0B389A73B8123AB81C9409F_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_566133F910A75BEA82735582D2812FE1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableMember" xlink:label="loc_us-gaap_NotesReceivableMember_B4C326F554F5517CB8DA90E29A979C96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:to="loc_us-gaap_NotesReceivableMember_B4C326F554F5517CB8DA90E29A979C96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentsMember" xlink:label="loc_us-gaap_EquityMethodInvestmentsMember_3D1347A3ABBC56F3883402AF814D1DC6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:to="loc_us-gaap_EquityMethodInvestmentsMember_3D1347A3ABBC56F3883402AF814D1DC6" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OffBalanceSheetGuaranteeMember" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_E984A4CDD8FE59A3ABD77FC387A3088A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_E984A4CDD8FE59A3ABD77FC387A3088A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_C2CA9EAA732F5BABB164A206E3D4D3B8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5D05449418A852BBAB43F40BFA2A07FE" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_C2CA9EAA732F5BABB164A206E3D4D3B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_4C80202EF0185FCB9EFD72E99E68124D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_A0BA195D30C65130BC7B69A79F7B807F" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_4C80202EF0185FCB9EFD72E99E68124D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_78DB3FD46487DDEC2CA923AB81CA2FFF_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_4C80202EF0185FCB9EFD72E99E68124D" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_78DB3FD46487DDEC2CA923AB81CA2FFF_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_5A683B709586547C893BDA8E0C94B71A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_4C80202EF0185FCB9EFD72E99E68124D" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_5A683B709586547C893BDA8E0C94B71A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvesteeMember" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_EE815EF04D4D5D79980EF458682F6C70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_5A683B709586547C893BDA8E0C94B71A" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_EE815EF04D4D5D79980EF458682F6C70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_0A9FAADA5F4452D6BA709D50D37C94B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_5BB3265E78185AA9A654BB124E2639A2" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_0A9FAADA5F4452D6BA709D50D37C94B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_01385F103C3E5A1C89478B08F3CE7FD5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_5BB3265E78185AA9A654BB124E2639A2" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_01385F103C3E5A1C89478B08F3CE7FD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryGross" xlink:label="loc_us-gaap_InventoryGross_46DF068333D0576CB2040FC97A6DCDB0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_5BB3265E78185AA9A654BB124E2639A2" xlink:to="loc_us-gaap_InventoryGross_46DF068333D0576CB2040FC97A6DCDB0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesAndRelatedCommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/Revenues" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_C9FE3B7C5D351BBCF02220800E6E8048" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_2F758DCCE82D1B00896120800E6CE280" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_C9FE3B7C5D351BBCF02220800E6E8048" xlink:to="loc_us-gaap_ConcentrationRiskTable_2F758DCCE82D1B00896120800E6CE280" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0F9206B139E0BA23DA0A20800E6C6CB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2F758DCCE82D1B00896120800E6CE280" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0F9206B139E0BA23DA0A20800E6C6CB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B5DF4DF3A74F975C99F20800E6C7F26_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0F9206B139E0BA23DA0A20800E6C6CB8" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B5DF4DF3A74F975C99F20800E6C7F26_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B5DF4DF3A74F975C99F20800E6C7F26" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_0F9206B139E0BA23DA0A20800E6C6CB8" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B5DF4DF3A74F975C99F20800E6C7F26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_B76B9D7CD6DD60A103F520800E6C4663" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B5DF4DF3A74F975C99F20800E6C7F26" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_B76B9D7CD6DD60A103F520800E6C4663" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_BA1738A1B9D59D0EC3FE20800E6D77A4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2F758DCCE82D1B00896120800E6CE280" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_BA1738A1B9D59D0EC3FE20800E6D77A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_69F0FC531E5936348D1C20800E6D21D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_BA1738A1B9D59D0EC3FE20800E6D77A4" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_69F0FC531E5936348D1C20800E6D21D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_69F0FC531E5936348D1C20800E6D21D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_BA1738A1B9D59D0EC3FE20800E6D77A4" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_69F0FC531E5936348D1C20800E6D21D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_6086AF7906C5BB5ECA3820800E6DFDA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_69F0FC531E5936348D1C20800E6D21D4" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_6086AF7906C5BB5ECA3820800E6DFDA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srt_MajorCustomersAxis_0A388E0FD5C5188BC4B820800E6EEB9C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_2F758DCCE82D1B00896120800E6CE280" xlink:to="loc_srt_MajorCustomersAxis_0A388E0FD5C5188BC4B820800E6EEB9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_E13E390AFC462A643FF820800E6E42C9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_0A388E0FD5C5188BC4B820800E6EEB9C" xlink:to="loc_srt_NameOfMajorCustomerDomain_E13E390AFC462A643FF820800E6E42C9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_E13E390AFC462A643FF820800E6E42C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_0A388E0FD5C5188BC4B820800E6EEB9C" xlink:to="loc_srt_NameOfMajorCustomerDomain_E13E390AFC462A643FF820800E6E42C9" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TopTenCustomersMember" xlink:label="loc_wdc_TopTenCustomersMember_DF542D03F5168EB8898120800E6E38CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_E13E390AFC462A643FF820800E6E42C9" xlink:to="loc_wdc_TopTenCustomersMember_DF542D03F5168EB8898120800E6E38CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_DC177EFAC62F4BBF277820800E6ED89A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_C9FE3B7C5D351BBCF02220800E6E8048" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_DC177EFAC62F4BBF277820800E6ED89A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_978D6D62CE3AEB4B4E8120800E6F79E3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_C9FE3B7C5D351BBCF02220800E6E8048" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_978D6D62CE3AEB4B4E8120800E6F79E3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesDisaggregationOfRevenueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_FD33FB1EC654A7962D0DF6BC62F03F2E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_D58B9F8ED5A6445BC04EF6BC62EDEFAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_FD33FB1EC654A7962D0DF6BC62F03F2E" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_D58B9F8ED5A6445BC04EF6BC62EDEFAF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FormFactorAxis" xlink:label="loc_wdc_FormFactorAxis_57BAC2301E4A920A2FEEF6BC62ED379F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_D58B9F8ED5A6445BC04EF6BC62EDEFAF" xlink:to="loc_wdc_FormFactorAxis_57BAC2301E4A920A2FEEF6BC62ED379F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FormFactorDomain" xlink:label="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_FormFactorAxis_57BAC2301E4A920A2FEEF6BC62ED379F" xlink:to="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F_default" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FormFactorDomain" xlink:label="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_FormFactorAxis_57BAC2301E4A920A2FEEF6BC62ED379F" xlink:to="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_HDDMember" xlink:label="loc_wdc_HDDMember_16414AD196526214B021F6BC62EECB27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F" xlink:to="loc_wdc_HDDMember_16414AD196526214B021F6BC62EECB27" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FlashbasedMember" xlink:label="loc_wdc_FlashbasedMember_CC414837AF0EC2E25E47F6BC62EE859A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_D811AFDFDD7A569ADED6F6BC62EE8A8F" xlink:to="loc_wdc_FlashbasedMember_CC414837AF0EC2E25E47F6BC62EE859A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_AC77C015BE19482F43F0F6BC62EE1769" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_D58B9F8ED5A6445BC04EF6BC62EDEFAF" xlink:to="loc_srt_ProductOrServiceAxis_AC77C015BE19482F43F0F6BC62EE1769" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_AC77C015BE19482F43F0F6BC62EE1769" xlink:to="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_AC77C015BE19482F43F0F6BC62EE1769" xlink:to="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ClientDevicesMember" xlink:label="loc_wdc_ClientDevicesMember_A067662EA4829AA558EBF6BC62EFA25A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6" xlink:to="loc_wdc_ClientDevicesMember_A067662EA4829AA558EBF6BC62EFA25A" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_DataCenterDevicesSolutionsMember" xlink:label="loc_wdc_DataCenterDevicesSolutionsMember_E2660E4CFEDDB1FEB6F9F6BC62EFE306" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6" xlink:to="loc_wdc_DataCenterDevicesSolutionsMember_E2660E4CFEDDB1FEB6F9F6BC62EFE306" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ClientSolutionsMember" xlink:label="loc_wdc_ClientSolutionsMember_4A78473B2482C3BBA4EAF6BC62EFF752" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_B6540B7E4F8C2BAFB3ACF6BC62EE1DB6" xlink:to="loc_wdc_ClientSolutionsMember_4A78473B2482C3BBA4EAF6BC62EFF752" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_1BD1B52649412D78B8BBF6BC62EF4DFC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_D58B9F8ED5A6445BC04EF6BC62EDEFAF" xlink:to="loc_srt_StatementGeographicalAxis_1BD1B52649412D78B8BBF6BC62EF4DFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_1BD1B52649412D78B8BBF6BC62EF4DFC" xlink:to="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_1BD1B52649412D78B8BBF6BC62EF4DFC" xlink:to="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_AmericasMember" xlink:label="loc_srt_AmericasMember_378D3D53E1E4E9B63F17F6BC62F07B4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532" xlink:to="loc_srt_AmericasMember_378D3D53E1E4E9B63F17F6BC62F07B4D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EuropeMiddleEastAndAfricaMember" xlink:label="loc_wdc_EuropeMiddleEastAndAfricaMember_C64307901E4E57939B51F6BC62F06BA3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532" xlink:to="loc_wdc_EuropeMiddleEastAndAfricaMember_C64307901E4E57939B51F6BC62F06BA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_AsiaMember" xlink:label="loc_srt_AsiaMember_F55B531A4E408CE4C7CAF6BC62F02FF7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83180B4C2524798F5666F6BC62EF8532" xlink:to="loc_srt_AsiaMember_F55B531A4E408CE4C7CAF6BC62F02FF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_A7C0D0C9875F9318BE54F6BC62F0D165" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_FD33FB1EC654A7962D0DF6BC62F03F2E" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_A7C0D0C9875F9318BE54F6BC62F0D165" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_E5A0296232ADF5F543B720800CCE8131" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_EF3D9294C966A117576F20800CCEA309" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_E5A0296232ADF5F543B720800CCE8131" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_EF3D9294C966A117576F20800CCEA309" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_5245F6D01190B28B963220800CCE134E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_EF3D9294C966A117576F20800CCEA309" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_5245F6D01190B28B963220800CCE134E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_17BCDB72ABE083CF789D20800CCF1A57" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_E5A0296232ADF5F543B720800CCE8131" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_17BCDB72ABE083CF789D20800CCF1A57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_F0560E7DB5ECEB14C06720800CCF9624" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_E5A0296232ADF5F543B720800CCE8131" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_F0560E7DB5ECEB14C06720800CCF9624" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiaries" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_581681ADE8484B7DAFC51C09B2240033" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_E4C8687FA9CC821014441C09B2230383" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_581681ADE8484B7DAFC51C09B2240033" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_E4C8687FA9CC821014441C09B2230383" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_72C2E355FCAFE6DB61841C09B223CAB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_E4C8687FA9CC821014441C09B2230383" xlink:to="loc_us-gaap_DebtInstrumentAxis_72C2E355FCAFE6DB61841C09B223CAB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_45D3F3D11CA4C97C233B1C09B2234578_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_72C2E355FCAFE6DB61841C09B223CAB6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_45D3F3D11CA4C97C233B1C09B2234578_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_45D3F3D11CA4C97C233B1C09B2234578" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_72C2E355FCAFE6DB61841C09B223CAB6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_45D3F3D11CA4C97C233B1C09B2234578" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_2124C784E9C8282328391C09B224E0D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_45D3F3D11CA4C97C233B1C09B2234578" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_2124C784E9C8282328391C09B224E0D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_E7D811D6E60BF1BFE6371C09B225E591" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_581681ADE8484B7DAFC51C09B2240033" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_E7D811D6E60BF1BFE6371C09B225E591" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesBalanceSheetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedBalanceSheetStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_6E95C119D99253EF87D24616EAA69381" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedBalanceSheetStatementTable" xlink:label="loc_srt_CondensedBalanceSheetStatementTable_3F233EC7D9B451E5A0B5444E3B533E96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_6E95C119D99253EF87D24616EAA69381" xlink:to="loc_srt_CondensedBalanceSheetStatementTable_3F233EC7D9B451E5A0B5444E3B533E96" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_30D89C21C54F516E9A5CCC3B9E9214A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedBalanceSheetStatementTable_3F233EC7D9B451E5A0B5444E3B533E96" xlink:to="loc_srt_ConsolidationItemsAxis_30D89C21C54F516E9A5CCC3B9E9214A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_80E2D89F0BD15D6EE148420C4C6CDE05_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_30D89C21C54F516E9A5CCC3B9E9214A5" xlink:to="loc_srt_ConsolidationItemsDomain_80E2D89F0BD15D6EE148420C4C6CDE05_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_3280E0A3188A59B5841BECD868D08673" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_30D89C21C54F516E9A5CCC3B9E9214A5" xlink:to="loc_srt_ConsolidationItemsDomain_3280E0A3188A59B5841BECD868D08673" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationEliminationsMember" xlink:label="loc_srt_ConsolidationEliminationsMember_350BCCF889845BB1919246546F4E0DE8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3280E0A3188A59B5841BECD868D08673" xlink:to="loc_srt_ConsolidationEliminationsMember_350BCCF889845BB1919246546F4E0DE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_8FE95DE69A0B50F9A4159BE8B6E70CE6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedBalanceSheetStatementTable_3F233EC7D9B451E5A0B5444E3B533E96" xlink:to="loc_srt_ConsolidatedEntitiesAxis_8FE95DE69A0B50F9A4159BE8B6E70CE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_720775CC53EEDED5CFCD420C4C6EE696_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_8FE95DE69A0B50F9A4159BE8B6E70CE6" xlink:to="loc_srt_ConsolidatedEntitiesDomain_720775CC53EEDED5CFCD420C4C6EE696_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_9698F416521253AC8D655425F0D109EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_8FE95DE69A0B50F9A4159BE8B6E70CE6" xlink:to="loc_srt_ConsolidatedEntitiesDomain_9698F416521253AC8D655425F0D109EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_62DCDFF7FB4750A7A55E2DCE9329F733" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9698F416521253AC8D655425F0D109EA" xlink:to="loc_srt_ParentCompanyMember_62DCDFF7FB4750A7A55E2DCE9329F733" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_GuarantorSubsidiariesMember" xlink:label="loc_srt_GuarantorSubsidiariesMember_848786E104275EF6836814CB1F8ADFAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9698F416521253AC8D655425F0D109EA" xlink:to="loc_srt_GuarantorSubsidiariesMember_848786E104275EF6836814CB1F8ADFAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NonGuarantorSubsidiariesMember" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_386956D0D37A5506B594D6BFD5D05725" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9698F416521253AC8D655425F0D109EA" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_386956D0D37A5506B594D6BFD5D05725" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_E42F9C4783925D61B7B8A47898942BD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_6E95C119D99253EF87D24616EAA69381" xlink:to="loc_us-gaap_AssetsAbstract_E42F9C4783925D61B7B8A47898942BD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_E42F9C4783925D61B7B8A47898942BD8" xlink:to="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_939D719A29115475AE45E1FDEADB06E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_939D719A29115475AE45E1FDEADB06E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_7A55FA5D947A5B19B7D2A7321CE45DA2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_7A55FA5D947A5B19B7D2A7321CE45DA2" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IntercompanyReceivableNetCurrent" xlink:label="loc_wdc_IntercompanyReceivableNetCurrent_9340ED20B08A52CF8BF65F87B9D80D25" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_wdc_IntercompanyReceivableNetCurrent_9340ED20B08A52CF8BF65F87B9D80D25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_C56A9B6725D956C5B48EDF3F3ED10221" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_InventoryNet_C56A9B6725D956C5B48EDF3F3ED10221" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueFromAffiliateCurrent" xlink:label="loc_us-gaap_DueFromAffiliateCurrent_ABBFB3F5F6A45F0AAD440A27EAA98902" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_DueFromAffiliateCurrent_ABBFB3F5F6A45F0AAD440A27EAA98902" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaap_OtherAssetsCurrent_042AAA99F89B5A1F98DDB70946125933" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_OtherAssetsCurrent_042AAA99F89B5A1F98DDB70946125933" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_55D0B5BD5E5C57C7A1B45DE8D0949F87" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B7664F6DC22E5FEFAE579630F94F6A34" xlink:to="loc_us-gaap_AssetsCurrent_55D0B5BD5E5C57C7A1B45DE8D0949F87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_E42F9C4783925D61B7B8A47898942BD8" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_985ADFDC871A5E6EA7DC75FB7CC5324B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_985ADFDC871A5E6EA7DC75FB7CC5324B" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_20D20FB8830853AC8A3A3A63C9DE0CAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_20D20FB8830853AC8A3A3A63C9DE0CAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_321113AD713A54278F37D1E6F7F7D484" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_Goodwill_321113AD713A54278F37D1E6F7F7D484" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_C1ABF72FD0205E88BB2B9E9F0F28863D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_C1ABF72FD0205E88BB2B9E9F0F28863D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_1F7DDCEB95B15E1F89579E4FC35E7E2C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_1F7DDCEB95B15E1F89579E4FC35E7E2C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueFromAffiliateNoncurrent" xlink:label="loc_us-gaap_DueFromAffiliateNoncurrent_71508AF53D1053ADAB4B5AB009312DCA" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_DueFromAffiliateNoncurrent_71508AF53D1053ADAB4B5AB009312DCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_3AFDA8A4C3CD5275986CD2196FC9DDE4" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_898360A58A0E5A0289DB2F5CB59442D5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_3AFDA8A4C3CD5275986CD2196FC9DDE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_476106904DED5D138F50B42C97A50276" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_E42F9C4783925D61B7B8A47898942BD8" xlink:to="loc_us-gaap_Assets_476106904DED5D138F50B42C97A50276" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_F6770E8F46DB5C44810D9BD4C11EFC63" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_6E95C119D99253EF87D24616EAA69381" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_F6770E8F46DB5C44810D9BD4C11EFC63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_03A1F492657A5AECA7EB0917D453D2CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_F6770E8F46DB5C44810D9BD4C11EFC63" xlink:to="loc_us-gaap_LiabilitiesAbstract_03A1F492657A5AECA7EB0917D453D2CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_03A1F492657A5AECA7EB0917D453D2CE" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_FD0340CEF043509E9B1FDA078FB0F03A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_AccountsPayableCurrent_FD0340CEF043509E9B1FDA078FB0F03A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_5BAEACF07B155D39BFB17EBF1686F64A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_5BAEACF07B155D39BFB17EBF1686F64A" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IntercompanyPayableCurrent" xlink:label="loc_wdc_IntercompanyPayableCurrent_E2F4CFB5FC56536EB449078D7D1A8B0D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_wdc_IntercompanyPayableCurrent_E2F4CFB5FC56536EB449078D7D1A8B0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_12BEBEE699505960810803DADDAEE482" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_12BEBEE699505960810803DADDAEE482" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_0D3AAFF915C4562591915B456A962F0C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_0D3AAFF915C4562591915B456A962F0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueToAffiliateCurrent" xlink:label="loc_us-gaap_DueToAffiliateCurrent_29104C3A10AB51338832199F5628EC7A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_DueToAffiliateCurrent_29104C3A10AB51338832199F5628EC7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_EDD6E23D30145E2BAA305A6B9E0C0053" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_LongTermDebtCurrent_EDD6E23D30145E2BAA305A6B9E0C0053" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_61C1C87A250C589AAEA2A4F642D31FB8" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_6D25B95DE14D586EA8A9DDADDD2E287F" xlink:to="loc_us-gaap_LiabilitiesCurrent_61C1C87A250C589AAEA2A4F642D31FB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_1CA9C8BC30C15FEF9E69EB8962E1AF82" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_03A1F492657A5AECA7EB0917D453D2CE" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_1CA9C8BC30C15FEF9E69EB8962E1AF82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_A52E8FC8351A52B6B2B6C207988AF092" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_1CA9C8BC30C15FEF9E69EB8962E1AF82" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_A52E8FC8351A52B6B2B6C207988AF092" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueToAffiliateNoncurrent" xlink:label="loc_us-gaap_DueToAffiliateNoncurrent_007E7A7414705B46B01F9ACB32EC9B55" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_1CA9C8BC30C15FEF9E69EB8962E1AF82" xlink:to="loc_us-gaap_DueToAffiliateNoncurrent_007E7A7414705B46B01F9ACB32EC9B55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_0CE897A740B85F08969482231CEFABE6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_1CA9C8BC30C15FEF9E69EB8962E1AF82" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_0CE897A740B85F08969482231CEFABE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_BA5CE835D8E55EC1A06E6DB6C7554675" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_03A1F492657A5AECA7EB0917D453D2CE" xlink:to="loc_us-gaap_Liabilities_BA5CE835D8E55EC1A06E6DB6C7554675" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaap_StockholdersEquityAbstract_A2B4F06033A1597382BA762B33F29FBF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_F6770E8F46DB5C44810D9BD4C11EFC63" xlink:to="loc_us-gaap_StockholdersEquityAbstract_A2B4F06033A1597382BA762B33F29FBF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_43E9C78B1870572D988B6D0CA69A7F41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_A2B4F06033A1597382BA762B33F29FBF" xlink:to="loc_us-gaap_StockholdersEquity_43E9C78B1870572D988B6D0CA69A7F41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_64D73C78417D52AB8C84E2F68E533209" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_F6770E8F46DB5C44810D9BD4C11EFC63" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_64D73C78417D52AB8C84E2F68E533209" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedCashFlowStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedCashFlowStatementTable" xlink:label="loc_srt_CondensedCashFlowStatementTable_2936DB0A6C554D392BF6102A0DD265F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_srt_CondensedCashFlowStatementTable_2936DB0A6C554D392BF6102A0DD265F9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_282268E96ACB2F8E172E102A0DD2EE66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedCashFlowStatementTable_2936DB0A6C554D392BF6102A0DD265F9" xlink:to="loc_srt_ConsolidationItemsAxis_282268E96ACB2F8E172E102A0DD2EE66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_18FD75A31DDDFAAD360E102A0DD28E3B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_282268E96ACB2F8E172E102A0DD2EE66" xlink:to="loc_srt_ConsolidationItemsDomain_18FD75A31DDDFAAD360E102A0DD28E3B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_18FD75A31DDDFAAD360E102A0DD28E3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_282268E96ACB2F8E172E102A0DD2EE66" xlink:to="loc_srt_ConsolidationItemsDomain_18FD75A31DDDFAAD360E102A0DD28E3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationEliminationsMember" xlink:label="loc_srt_ConsolidationEliminationsMember_7455B9E9938EE92C58E6102A0DD3740A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_18FD75A31DDDFAAD360E102A0DD28E3B" xlink:to="loc_srt_ConsolidationEliminationsMember_7455B9E9938EE92C58E6102A0DD3740A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_39C4990DD7DCC2746030102A0DD34CA9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedCashFlowStatementTable_2936DB0A6C554D392BF6102A0DD265F9" xlink:to="loc_srt_ConsolidatedEntitiesAxis_39C4990DD7DCC2746030102A0DD34CA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_39C4990DD7DCC2746030102A0DD34CA9" xlink:to="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_39C4990DD7DCC2746030102A0DD34CA9" xlink:to="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_7ACB10E669EE128716DE102A0DD37CC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2" xlink:to="loc_srt_ParentCompanyMember_7ACB10E669EE128716DE102A0DD37CC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_GuarantorSubsidiariesMember" xlink:label="loc_srt_GuarantorSubsidiariesMember_FE48ECBDD5CA0EA0D5B8102A0DD49F8A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2" xlink:to="loc_srt_GuarantorSubsidiariesMember_FE48ECBDD5CA0EA0D5B8102A0DD49F8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NonGuarantorSubsidiariesMember" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_01E246DC97D1621A6AD9102A0DD40CE8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_DF74FADECBA3A70E0075102A0DD3BDD2" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_01E246DC97D1621A6AD9102A0DD40CE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A64C1756F5D1D5463A25102A0DD490E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A64C1756F5D1D5463A25102A0DD490E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0C09C99C740D12F0D4B5102A0DD4FE4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A64C1756F5D1D5463A25102A0DD490E2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0C09C99C740D12F0D4B5102A0DD4FE4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_3A932ACE1E1223AA927B102A0DD59FC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_3A932ACE1E1223AA927B102A0DD59FC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_FAFE322CB924133FCA53102A0DD5ECB0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_FAFE322CB924133FCA53102A0DD5ECB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_99254437D24118C605F5102A0DD5CF9A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_99254437D24118C605F5102A0DD5CF9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_440A02C672B36A2CF451102A0DD66073" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_440A02C672B36A2CF451102A0DD66073" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_2F6A7B4ED5BF7808BF95102A0DD611D4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_2F6A7B4ED5BF7808BF95102A0DD611D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities" xlink:label="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_97B735F6C2C617DDA993102A0DD6502C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_ProceedsFromSaleOfHeldToMaturitySecurities_97B735F6C2C617DDA993102A0DD6502C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_08EE929B6D9A65DDD098102A0DD67E49" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_08EE929B6D9A65DDD098102A0DD67E49" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_PaymentsForLongTermLoansForRelatedParties" xlink:label="loc_wdc_PaymentsForLongTermLoansForRelatedParties_7F753878A731762EFE41102A0DD69FA3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_wdc_PaymentsForLongTermLoansForRelatedParties_7F753878A731762EFE41102A0DD69FA3" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ProceedsFromLongTermLoansForRelatedParties" xlink:label="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_3F5C4E3456859BF01C17102A0DD69721" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_wdc_ProceedsFromLongTermLoansForRelatedParties_3F5C4E3456859BF01C17102A0DD69721" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_6EB1F90D8F7F81ED9E86102A0DD6377F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_6EB1F90D8F7F81ED9E86102A0DD6377F" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_Intercompanyloanstofromconsolidatedsubsidiaries" xlink:label="loc_wdc_Intercompanyloanstofromconsolidatedsubsidiaries_9137ABE512A6575AFF51102A0DD7CE76" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_wdc_Intercompanyloanstofromconsolidatedsubsidiaries_9137ABE512A6575AFF51102A0DD7CE76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions" xlink:label="loc_us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions_9F788CA1A940E8592EF5102A0DD79501" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions_9F788CA1A940E8592EF5102A0DD79501" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_BECDAC1D87311F95B79D102A0DD73368" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_0E492382C653B0D13F6E102A0DD54D2A" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_BECDAC1D87311F95B79D102A0DD73368" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_A401AB7C664CAED23052102A0DD7B495" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_A401AB7C664CAED23052102A0DD7B495" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans" xlink:label="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_F5E08C17BAA566429A67102A0DD80B85" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans_F5E08C17BAA566429A67102A0DD80B85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_6C1CA9FD93D705C3E6FC102A0DD8EB2F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_6C1CA9FD93D705C3E6FC102A0DD8EB2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaap_PaymentsOfDividends_59C5811A6F66FCEE884B102A0DD83001" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_PaymentsOfDividends_59C5811A6F66FCEE884B102A0DD83001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_B10CFA35A53F20DE78AE102A0DD874E9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_B10CFA35A53F20DE78AE102A0DD874E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_164E334B0A20099428A1102A0DD86B7C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfLinesOfCredit_164E334B0A20099428A1102A0DD86B7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromContributionsFromParent" xlink:label="loc_us-gaap_ProceedsFromContributionsFromParent_4F4F21CE0441515967A0102A0DD94257" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_ProceedsFromContributionsFromParent_4F4F21CE0441515967A0102A0DD94257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_B2BC3AF80B8C97F3544F102A0DD982EF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_B2BC3AF80B8C97F3544F102A0DD982EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_A7437863521E980AAFC3102A0DD9300F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_01E62A9860BF6E96C44F102A0DD71160" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_A7437863521E980AAFC3102A0DD9300F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1C2455837153914DE450102A0DD9AB40" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1C2455837153914DE450102A0DD9AB40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_59BB7CA2B1C831383A17102A0DD9222F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_59BB7CA2B1C831383A17102A0DD9222F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_E41A72D928A2C04F0770102A0DD92449" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedCashFlowStatementsCaptionsLineItems_13C3510D5B21C4401F0B102A0DD4ABE4" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_E41A72D928A2C04F0770102A0DD92449" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedStatementOfIncomeCaptionsLineItems" xlink:label="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedStatementOfComprehensiveIncomeTable" xlink:label="loc_srt_CondensedStatementOfComprehensiveIncomeTable_60E00C5056CB880690E8E722D1674095" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_srt_CondensedStatementOfComprehensiveIncomeTable_60E00C5056CB880690E8E722D1674095" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_FE3331ACE3A0D4F9F070E722D167681D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedStatementOfComprehensiveIncomeTable_60E00C5056CB880690E8E722D1674095" xlink:to="loc_srt_ConsolidationItemsAxis_FE3331ACE3A0D4F9F070E722D167681D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A5CEC1E680C6A5DEF733E722D16734E7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_FE3331ACE3A0D4F9F070E722D167681D" xlink:to="loc_srt_ConsolidationItemsDomain_A5CEC1E680C6A5DEF733E722D16734E7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A5CEC1E680C6A5DEF733E722D16734E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_FE3331ACE3A0D4F9F070E722D167681D" xlink:to="loc_srt_ConsolidationItemsDomain_A5CEC1E680C6A5DEF733E722D16734E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationEliminationsMember" xlink:label="loc_srt_ConsolidationEliminationsMember_4C1CF29E55489251E2A0E722D16794C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_A5CEC1E680C6A5DEF733E722D16734E7" xlink:to="loc_srt_ConsolidationEliminationsMember_4C1CF29E55489251E2A0E722D16794C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_7D7325B41CB277CC9569E722D167011F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedStatementOfComprehensiveIncomeTable_60E00C5056CB880690E8E722D1674095" xlink:to="loc_srt_ConsolidatedEntitiesAxis_7D7325B41CB277CC9569E722D167011F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_7D7325B41CB277CC9569E722D167011F" xlink:to="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_7D7325B41CB277CC9569E722D167011F" xlink:to="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_75FF9E85C83372D79E31E722D167F815" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C" xlink:to="loc_srt_ParentCompanyMember_75FF9E85C83372D79E31E722D167F815" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_GuarantorSubsidiariesMember" xlink:label="loc_srt_GuarantorSubsidiariesMember_C57F67E1284194FD983AE722D16774E8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C" xlink:to="loc_srt_GuarantorSubsidiariesMember_C57F67E1284194FD983AE722D16774E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NonGuarantorSubsidiariesMember" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_6473C98291BE6F81479BE722D167B842" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_B4BDA42AE7674BECB920E722D167CC6C" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_6473C98291BE6F81479BE722D167B842" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_225C58C19115898CE17AE722D167210E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_NetIncomeLoss_225C58C19115898CE17AE722D167210E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_D04426B84BFB4BBAB890E722D167294D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_D04426B84BFB4BBAB890E722D167294D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_15EA98D850D38A639B20E722D167796D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_15EA98D850D38A639B20E722D167796D" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax" xlink:label="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_2554F99F75F6FD42DA9DE722D1676C72" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_wdc_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodAndAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsAndTax_2554F99F75F6FD42DA9DE722D1676C72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_5D7C33249CC3DBF3E2B6E722D167C785" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_5D7C33249CC3DBF3E2B6E722D167C785" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_9B2EFB60AB725545B14FE722D167781A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTax_9B2EFB60AB725545B14FE722D167781A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_B45AFC929E4645B4A858E722D1678298" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_B45AFC929E4645B4A858E722D1678298" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_6FB65DEA51922D7B28A9E722D167C0B7" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedStatementOfIncomeCaptionsLineItems_4880D03CD318858FEF44E722D167DA30" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_6FB65DEA51922D7B28A9E722D167C0B7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesStatementOfOperationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedIncomeStatementsCaptionsLineItems" xlink:label="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CondensedIncomeStatementTable" xlink:label="loc_srt_CondensedIncomeStatementTable_D4CAA4F2896FF3E796B8C39085D1FBA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_srt_CondensedIncomeStatementTable_D4CAA4F2896FF3E796B8C39085D1FBA4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_A5C0CB8AF5A3AADFCC39C39085D2F2AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedIncomeStatementTable_D4CAA4F2896FF3E796B8C39085D1FBA4" xlink:to="loc_srt_ConsolidationItemsAxis_A5C0CB8AF5A3AADFCC39C39085D2F2AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_59DF014DCDD974F6D910C39085D2E502_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_A5C0CB8AF5A3AADFCC39C39085D2F2AD" xlink:to="loc_srt_ConsolidationItemsDomain_59DF014DCDD974F6D910C39085D2E502_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_59DF014DCDD974F6D910C39085D2E502" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_A5C0CB8AF5A3AADFCC39C39085D2F2AD" xlink:to="loc_srt_ConsolidationItemsDomain_59DF014DCDD974F6D910C39085D2E502" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationEliminationsMember" xlink:label="loc_srt_ConsolidationEliminationsMember_E7D0EA4B399CDB2E1C4FC39085D29977" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_59DF014DCDD974F6D910C39085D2E502" xlink:to="loc_srt_ConsolidationEliminationsMember_E7D0EA4B399CDB2E1C4FC39085D29977" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_60B5CD70DD4535C1999FC39085D369A1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedIncomeStatementTable_D4CAA4F2896FF3E796B8C39085D1FBA4" xlink:to="loc_srt_ConsolidatedEntitiesAxis_60B5CD70DD4535C1999FC39085D369A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_60B5CD70DD4535C1999FC39085D369A1" xlink:to="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_60B5CD70DD4535C1999FC39085D369A1" xlink:to="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_ED921FE49A1032AF1915C39085D31C3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0" xlink:to="loc_srt_ParentCompanyMember_ED921FE49A1032AF1915C39085D31C3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_GuarantorSubsidiariesMember" xlink:label="loc_srt_GuarantorSubsidiariesMember_13F7C4843D5649194EAEC39085D3B866" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0" xlink:to="loc_srt_GuarantorSubsidiariesMember_13F7C4843D5649194EAEC39085D3B866" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NonGuarantorSubsidiariesMember" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_287A91BE833DAA14247FC39085D4A8C6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_2F5C1917466EEBC9217DC39085D35AE0" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_287A91BE833DAA14247FC39085D4A8C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_C2F66C9BF898F8B7CF3EC39085D43EC8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_C2F66C9BF898F8B7CF3EC39085D43EC8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_D9D7636A47D40D3EFDD4C39085D42A73" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_D9D7636A47D40D3EFDD4C39085D42A73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_BEB1E91DB3B95CC4540BC39085D47819" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_GrossProfit_BEB1E91DB3B95CC4540BC39085D47819" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_92A2288E9DA6079665E3C39085D5D007" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost_92A2288E9DA6079665E3C39085D5D007" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_E6EF8A2843F5F54B2A81C39085D5D1FA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_E6EF8A2843F5F54B2A81C39085D5D1FA" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_Intercompanyoperatingexpenseincome" xlink:label="loc_wdc_Intercompanyoperatingexpenseincome_105079D2B5DAF881E9F0C39085D5267A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:to="loc_wdc_Intercompanyoperatingexpenseincome_105079D2B5DAF881E9F0C39085D5267A" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_Employeeterminationassetimpairmentandothercharges" xlink:label="loc_wdc_Employeeterminationassetimpairmentandothercharges_F6D055CFEC9B4C60CC20C39085D538DC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:to="loc_wdc_Employeeterminationassetimpairmentandothercharges_F6D055CFEC9B4C60CC20C39085D538DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_7250C345D2B948F248A3C39085D5A91C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_5549FDD49AFDF5959F0CC39085D5A914" xlink:to="loc_us-gaap_OperatingExpenses_7250C345D2B948F248A3C39085D5A91C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_5774575126F08AAFA2C4C39085D6948D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_OperatingIncomeLoss_5774575126F08AAFA2C4C39085D6948D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_9DCC04E406873C864BE9C39085D66560" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_InvestmentIncomeInterest_9DCC04E406873C864BE9C39085D66560" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_87DA9B273217D449FD30C39085D64788" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_InterestExpense_87DA9B273217D449FD30C39085D64788" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_56B9F9629FB58DD920B9C39085D68604" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_56B9F9629FB58DD920B9C39085D68604" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_50DD762CE804F7662736C39085D6DCBB" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_50DD762CE804F7662736C39085D6DCBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_A48D2336D69727AF80BDC39085D653B9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_A48D2336D69727AF80BDC39085D653B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_F8F4249556C9BE7E0618C39085D71EA6" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_F8F4249556C9BE7E0618C39085D71EA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_71A20616446C62BF9A93C39085D73DAA" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_71A20616446C62BF9A93C39085D73DAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_0C81D1EBB9BFDF76B201C39085D7B8FF" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedIncomeStatementsCaptionsLineItems_1ED51B337F42887BCC81C39085D4B6F2" xlink:to="loc_us-gaap_NetIncomeLoss_0C81D1EBB9BFDF76B201C39085D7B8FF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SeparateFinancialInformationOfGuarantorSubsidiariesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityDividendsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_8A485398101D129A0423A54F2E913F1C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_2C59E8B571A7D6561A7CA54F2E8FC6F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_8A485398101D129A0423A54F2E913F1C" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_2C59E8B571A7D6561A7CA54F2E8FC6F8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_8DE03A3D957887F72041A54FEB76CA35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_2C59E8B571A7D6561A7CA54F2E8FC6F8" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_8DE03A3D957887F72041A54FEB76CA35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_305B998FF7F7765A1A43A54FEB78C65C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8DE03A3D957887F72041A54FEB76CA35" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_305B998FF7F7765A1A43A54FEB78C65C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_305B998FF7F7765A1A43A54FEB78C65C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8DE03A3D957887F72041A54FEB76CA35" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_305B998FF7F7765A1A43A54FEB78C65C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_1DE4C603BDF715E847ACA550022E4672" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_305B998FF7F7765A1A43A54FEB78C65C" xlink:to="loc_us-gaap_SubsequentEventMember_1DE4C603BDF715E847ACA550022E4672" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_C91F195AEADBB1937903A53D981AB2A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8A485398101D129A0423A54F2E913F1C" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_C91F195AEADBB1937903A53D981AB2A3" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_DividendsDeclared" xlink:label="loc_wdc_DividendsDeclared_77A84C8D2E8CCF755305A53D981B56D4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8A485398101D129A0423A54F2E913F1C" xlink:to="loc_wdc_DividendsDeclared_77A84C8D2E8CCF755305A53D981B56D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaap_PaymentsOfDividends_F7D530B759782BA14077A53D981B9087" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_8A485398101D129A0423A54F2E913F1C" xlink:to="loc_us-gaap_PaymentsOfDividends_F7D530B759782BA14077A53D981B9087" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_25DEC61CC8CB53A5BAA2978221128159" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3C364451C16D58E7A410B642C790E1BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_25DEC61CC8CB53A5BAA2978221128159" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3C364451C16D58E7A410B642C790E1BB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_46925166785359949E711E14DCF8E1B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3C364451C16D58E7A410B642C790E1BB" xlink:to="loc_us-gaap_AwardTypeAxis_46925166785359949E711E14DCF8E1B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8F8B4926D9D0A2BE345A3C46E089E47E_37E3044E8EB554439FDA639084D827D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_46925166785359949E711E14DCF8E1B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8F8B4926D9D0A2BE345A3C46E089E47E_37E3044E8EB554439FDA639084D827D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AAFB03B2A841591190B4B168AB73A421" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_46925166785359949E711E14DCF8E1B7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AAFB03B2A841591190B4B168AB73A421" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_062015F66E925E65BADF6B361830CBDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AAFB03B2A841591190B4B168AB73A421" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_062015F66E925E65BADF6B361830CBDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_25DEC61CC8CB53A5BAA2978221128159" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_4C89A3F65D0A5DE7B5ECB072AFD48F17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_4C89A3F65D0A5DE7B5ECB072AFD48F17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_075B323312ED5E8D93BEF7D94695FA4B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_075B323312ED5E8D93BEF7D94695FA4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_18CB408A0D025A31A0A3BFA593AC3705" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_18CB408A0D025A31A0A3BFA593AC3705" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_31472DDFD944585DAB11FF62351385FA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_7848A195A1465FD8AB96076EC79AAA20" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_31472DDFD944585DAB11FF62351385FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_25DEC61CC8CB53A5BAA2978221128159" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_0221B89C901C55849F155DE99152437E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_0221B89C901C55849F155DE99152437E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E13308FB1C3056E48977654EE42ECB47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E13308FB1C3056E48977654EE42ECB47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_9CD77B3F1F4D5A269E3CDEDD6B395482" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_9CD77B3F1F4D5A269E3CDEDD6B395482" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_13961BEEE43055A6B9ADFDAC70F4D691" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_0A776B3C3B45559B81F1CC2E4D727EE5" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_13961BEEE43055A6B9ADFDAC70F4D691" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_AggregateValueOfRestrictedStockAwardsVested" xlink:label="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_4A858D9A391C548096B2ECF3B96D7EE6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_25DEC61CC8CB53A5BAA2978221128159" xlink:to="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_4A858D9A391C548096B2ECF3B96D7EE6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_F3DE9AF2DEC68E1EA67A83FA91B4E0DE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_B415869CF83883B1EB9383FA91B38225" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_F3DE9AF2DEC68E1EA67A83FA91B4E0DE" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_B415869CF83883B1EB9383FA91B38225" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_F3770F823793B5C1BBC283FA91B326F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_B415869CF83883B1EB9383FA91B38225" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_F3770F823793B5C1BBC283FA91B326F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_F3770F823793B5C1BBC283FA91B326F5" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_F3770F823793B5C1BBC283FA91B326F5" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member" xlink:label="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_9B93C0A09CD742FA6D9783FA91B4CB24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31" xlink:to="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_9B93C0A09CD742FA6D9783FA91B4CB24" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ShareRepurchaseProgramMember" xlink:label="loc_wdc_ShareRepurchaseProgramMember_8FAC35C368F5507AF13383FA91B4F207" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_BB015DEC596AD20F08E383FA91B3AD31" xlink:to="loc_wdc_ShareRepurchaseProgramMember_8FAC35C368F5507AF13383FA91B4F207" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_9AE0BB6CD03B086835FC83FA91B4C92F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_F3DE9AF2DEC68E1EA67A83FA91B4E0DE" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_9AE0BB6CD03B086835FC83FA91B4C92F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_4E76E1D8B9C6B9D4612D83FA91B5CCF9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_F3DE9AF2DEC68E1EA67A83FA91B4E0DE" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_4E76E1D8B9C6B9D4612D83FA91B5CCF9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9814D5E1C5456851097AF6BC61F156CC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AB4001AAF582247D2BC8F6BC61EED392" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9814D5E1C5456851097AF6BC61F156CC" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AB4001AAF582247D2BC8F6BC61EED392" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_24D916E809B94FEE853DF6BC61EFDA1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AB4001AAF582247D2BC8F6BC61EED392" xlink:to="loc_us-gaap_AwardTypeAxis_24D916E809B94FEE853DF6BC61EFDA1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_24D916E809B94FEE853DF6BC61EFDA1C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_24D916E809B94FEE853DF6BC61EFDA1C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_17972881F54584F6C043F6BC61EF193C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0" xlink:to="loc_us-gaap_EmployeeStockOptionMember_17972881F54584F6C043F6BC61EF193C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_29BBCB11912BAD065CC0F6BC61EF26E7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_29BBCB11912BAD065CC0F6BC61EF26E7" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EmployeeStockPurchasePlanMember" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_6E235C5B8B25F5C1130BF6BC61F0EC17" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_DFCE3E28E4CD2A598708F6BC61EF6DA0" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_6E235C5B8B25F5C1130BF6BC61F0EC17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_A65A4EB830052FD2ACC7F6BC61F01F65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_AB4001AAF582247D2BC8F6BC61EED392" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_A65A4EB830052FD2ACC7F6BC61F01F65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_A65A4EB830052FD2ACC7F6BC61F01F65" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_A65A4EB830052FD2ACC7F6BC61F01F65" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_0D90125617DCD1FA096CF6BC61F0F22F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC" xlink:to="loc_us-gaap_CostOfSalesMember_0D90125617DCD1FA096CF6BC61F0F22F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_7FAE1653F853860FC7C6F6BC61F001B7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_7FAE1653F853860FC7C6F6BC61F001B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_E11FB7F536A51A4144FEF6BC61F111CA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_0A42A7E1ED255DBF4F1AF6BC61F03DDC" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_E11FB7F536A51A4144FEF6BC61F111CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_77853DCC133DBA40BEFDF6BC61F109F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9814D5E1C5456851097AF6BC61F156CC" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_77853DCC133DBA40BEFDF6BC61F109F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_58D1B94B11325C65EE29F6BC61F154D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9814D5E1C5456851097AF6BC61F156CC" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_58D1B94B11325C65EE29F6BC61F154D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_2456689E1743AB98BEB5F6BC61F1E772" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9814D5E1C5456851097AF6BC61F156CC" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_2456689E1743AB98BEB5F6BC61F1E772" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityUnrecognizedShareBasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_B398027873A68C3421A9A53D98350E7C" xlink:type="locator" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_D58680D13C764D77389FA53D98348CF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_B398027873A68C3421A9A53D98350E7C" xlink:to="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_D58680D13C764D77389FA53D98348CF9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_DC2E22034F32CB7F708AA53D98348849" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_D58680D13C764D77389FA53D98348CF9" xlink:to="loc_us-gaap_AwardTypeAxis_DC2E22034F32CB7F708AA53D98348849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_DC2E22034F32CB7F708AA53D98348849" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_DC2E22034F32CB7F708AA53D98348849" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_3839782270EC6A1C2829A53D9835B9A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4" xlink:to="loc_us-gaap_EmployeeStockOptionMember_3839782270EC6A1C2829A53D9835B9A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_92B68B082A0C8DE6D23CA53D9835B606" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_92B68B082A0C8DE6D23CA53D9835B606" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_EmployeeStockPurchasePlanMember" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_4B8222D3E3A2AC261EB9A53D98350D0E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_334B3C123515CF1BE2A7A53D9834C9D4" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_4B8222D3E3A2AC261EB9A53D98350D0E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_A8DD1EB172B799F4D821A53D9836FCDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_B398027873A68C3421A9A53D98350E7C" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_A8DD1EB172B799F4D821A53D9836FCDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_AE333C37D073605B5BABA53D9836FAB2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_B398027873A68C3421A9A53D98350E7C" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_AE333C37D073605B5BABA53D9836FAB2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_6432002E155628C8722FA4EEEF2FE057" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_605886E21CE99AF8F321A4EEEF2D39EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_6432002E155628C8722FA4EEEF2FE057" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_605886E21CE99AF8F321A4EEEF2D39EC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_09B70243B10E3CF6C660A4EEEF2E7C86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_605886E21CE99AF8F321A4EEEF2D39EC" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_09B70243B10E3CF6C660A4EEEF2E7C86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_09B70243B10E3CF6C660A4EEEF2E7C86" xlink:to="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_09B70243B10E3CF6C660A4EEEF2E7C86" xlink:to="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_1AD5968FBECA07FB6BC9A4EEEF2EB177" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_1AD5968FBECA07FB6BC9A4EEEF2EB177" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_604A888519C10CABFB5DA4EEEF2EA4DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_604A888519C10CABFB5DA4EEEF2EA4DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_4EDED28B621F920F9E37A4EEEF2FE4AE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_4EDED28B621F920F9E37A4EEEF2FE4AE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_A2A89FBF2F2798AED582A4EEEF2F4775" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9C5E229C60EE921781ECA4EEEF2EEC90" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_A2A89FBF2F2798AED582A4EEEF2F4775" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_AccumulatedOtherComprehensiveIncomeLossRollForward" xlink:label="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_6432002E155628C8722FA4EEEF2FE057" xlink:to="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_749C24EC67FB3557E8C5A4EEEF2F31E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:to="loc_us-gaap_StockholdersEquity_749C24EC67FB3557E8C5A4EEEF2F31E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_D5A7BDD36A65E2ED25B5A4EEEF307F8C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_D5A7BDD36A65E2ED25B5A4EEEF307F8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_05CFCE9DDA9712E6D6AFA4EEEF307921" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_05CFCE9DDA9712E6D6AFA4EEEF307921" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_658D2141BBD9A4608A0FA4EEEF307008" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_658D2141BBD9A4608A0FA4EEEF307008" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9859936C816C2F14C273A4EEEF303F0F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_9C376F2511E2E2E70211A4EEEF2F7892" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9859936C816C2F14C273A4EEEF303F0F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_D78BB2F6B00A9C59DC6C1013E16A5C47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_D78BB2F6B00A9C59DC6C1013E16A5C47" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86C1310BB61855429CE91013E16BB7B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_D78BB2F6B00A9C59DC6C1013E16A5C47" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86C1310BB61855429CE91013E16BB7B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_BE866864A2749EFA91951013E16BABC4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86C1310BB61855429CE91013E16BB7B6" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_BE866864A2749EFA91951013E16BABC4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_BE866864A2749EFA91951013E16BABC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86C1310BB61855429CE91013E16BB7B6" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_BE866864A2749EFA91951013E16BABC4" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_IntelliFlashMember" xlink:label="loc_wdc_IntelliFlashMember_6096DBCA2280CEE87C4E1013E16B7668" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_BE866864A2749EFA91951013E16BABC4" xlink:to="loc_wdc_IntelliFlashMember_6096DBCA2280CEE87C4E1013E16B7668" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_05CBA8B6B4B5139CC70B1013E16CD96D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_D78BB2F6B00A9C59DC6C1013E16A5C47" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_05CBA8B6B4B5139CC70B1013E16CD96D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_45DBF35E826BFF0FD46B1013E16CC462_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_05CBA8B6B4B5139CC70B1013E16CD96D" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_45DBF35E826BFF0FD46B1013E16CC462_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_45DBF35E826BFF0FD46B1013E16CC462" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_05CBA8B6B4B5139CC70B1013E16CD96D" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_45DBF35E826BFF0FD46B1013E16CC462" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember" xlink:label="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_90FE8BA9083AD03D26AF1013E16C2F96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_45DBF35E826BFF0FD46B1013E16CC462" xlink:to="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_90FE8BA9083AD03D26AF1013E16C2F96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_1175471D7FD4EBC96BF61013E16CF1BC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_D78BB2F6B00A9C59DC6C1013E16A5C47" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_1175471D7FD4EBC96BF61013E16CF1BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReceivableTypeDomain" xlink:label="loc_us-gaap_ReceivableTypeDomain_96FAB598B77BA9AEA83B1013E16C5C43_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_1175471D7FD4EBC96BF61013E16CF1BC" xlink:to="loc_us-gaap_ReceivableTypeDomain_96FAB598B77BA9AEA83B1013E16C5C43_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReceivableTypeDomain" xlink:label="loc_us-gaap_ReceivableTypeDomain_96FAB598B77BA9AEA83B1013E16C5C43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_1175471D7FD4EBC96BF61013E16CF1BC" xlink:to="loc_us-gaap_ReceivableTypeDomain_96FAB598B77BA9AEA83B1013E16C5C43" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_FactoredReceivablesMember" xlink:label="loc_wdc_FactoredReceivablesMember_675ED8A90BE6FC90AB671013E16DDF08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_96FAB598B77BA9AEA83B1013E16C5C43" xlink:to="loc_wdc_FactoredReceivablesMember_675ED8A90BE6FC90AB671013E16DDF08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfReceivables" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_A917532B7FE4A637AD0F1013E16D2041" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_A917532B7FE4A637AD0F1013E16D2041" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="loc_us-gaap_NotesReceivableNet_FCD858FBDAFAC190CDEA1013E16D96BE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_NotesReceivableNet_FCD858FBDAFAC190CDEA1013E16D96BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_E35CB0C2E58CF2CA419B1013E16E82B8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_E35CB0C2E58CF2CA419B1013E16E82B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherIntangibleAssetsNet" xlink:label="loc_us-gaap_OtherIntangibleAssetsNet_94CFE230295E1ACE14611013E16ECD2C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_OtherIntangibleAssetsNet_94CFE230295E1ACE14611013E16ECD2C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_E236CE597232B53157531013E16EC059" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_E236CE597232B53157531013E16EC059" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_444A95103A4C4444496D1013E16ECFB4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_444A95103A4C4444496D1013E16ECFB4" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod" xlink:label="loc_wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod_AF485EFD8C0F101590F01015658EDF34" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_wdc_ProceedsFromDivestitureOfBusinessesCollectionPeriod_AF485EFD8C0F101590F01015658EDF34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnSaleOfBusiness" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_8025792E2C95677BCF331013E16E5D0A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_BBDCE2D95CD2CD8C473A1013E16D3D23" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_8025792E2C95677BCF331013E16E5D0A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="wdc-20200103.xsd#wdc_SupplementalFinancialInformationLineItems" xlink:label="loc_wdc_SupplementalFinancialInformationLineItems_1BC6617F02F78CFD679D1A6F25C16F91" xlink:type="locator" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_SupplementalFinancialInformationTable" xlink:label="loc_wdc_SupplementalFinancialInformationTable_EFDC8D9DBA3422B29D901A6F25BFCEA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_1BC6617F02F78CFD679D1A6F25C16F91" xlink:to="loc_wdc_SupplementalFinancialInformationTable_EFDC8D9DBA3422B29D901A6F25BFCEA7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_677BA6AB71D4BFAB1B481A6F25C0643D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_SupplementalFinancialInformationTable_EFDC8D9DBA3422B29D901A6F25BFCEA7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_677BA6AB71D4BFAB1B481A6F25C0643D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_677BA6AB71D4BFAB1B481A6F25C0643D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_677BA6AB71D4BFAB1B481A6F25C0643D" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaap_LandMember_FD707252F358E1C926C71A6F25C09C82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_us-gaap_LandMember_FD707252F358E1C926C71A6F25C09C82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_89BD9E0C92E97B4A02091A6F25C03E8C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_89BD9E0C92E97B4A02091A6F25C03E8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_C4FDA2CA74FBE7B28A1D1A6F25C1C731" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_C4FDA2CA74FBE7B28A1D1A6F25C1C731" xlink:type="arc" />
    <link:loc xlink:href="wdc-20200103.xsd#wdc_ComputerEquipmentandSoftwareMember" xlink:label="loc_wdc_ComputerEquipmentandSoftwareMember_6129E117303BA3478FC41A6F25C17D7C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_wdc_ComputerEquipmentandSoftwareMember_6129E117303BA3478FC41A6F25C17D7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_F891D992A0572ECB18741A6F25C1E561" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_F891D992A0572ECB18741A6F25C1E561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_6C6A2F30FFBF54013C791A6F25C14188" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_2FFEC8F5A9C240AC4E7E1A6F25C0FABE" xlink:to="loc_us-gaap_ConstructionInProgressMember_6C6A2F30FFBF54013C791A6F25C14188" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_B1AB369AB40BCFEE54101A6F25C1FDB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_1BC6617F02F78CFD679D1A6F25C16F91" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_B1AB369AB40BCFEE54101A6F25C1FDB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_1DB2B94815F81621ADE01A6F25C28FF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_B1AB369AB40BCFEE54101A6F25C1FDB4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_1DB2B94815F81621ADE01A6F25C28FF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_4B22864409AECB3460081A6F25C2CEA5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_B1AB369AB40BCFEE54101A6F25C1FDB4" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_4B22864409AECB3460081A6F25C2CEA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_0416AB7689C048F843041A6F25C2D309" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_B1AB369AB40BCFEE54101A6F25C1FDB4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_0416AB7689C048F843041A6F25C2D309" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="extended" />
</link:linkbase>
