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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:171fbf21-f849-4331-8f75-e01c78ec23fe,g:fe6fe59e-09bc-4f9f-9357-f3fca8d113f0-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedBalanceSheets"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_86ffbb1a-5e66-4bb3-aacd-cf15e5f92ca7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_589fc772-6376-46fc-b8f6-ea7300decf16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_86ffbb1a-5e66-4bb3-aacd-cf15e5f92ca7" xlink:to="loc_us-gaap_StatementTable_589fc772-6376-46fc-b8f6-ea7300decf16" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_ae2a5184-5986-47ac-9d2f-4f5516f2f920" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_589fc772-6376-46fc-b8f6-ea7300decf16" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_ae2a5184-5986-47ac-9d2f-4f5516f2f920" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_ae2a5184-5986-47ac-9d2f-4f5516f2f920_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_ae2a5184-5986-47ac-9d2f-4f5516f2f920" xlink:to="loc_us-gaap_RelatedPartyDomain_ae2a5184-5986-47ac-9d2f-4f5516f2f920_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_ead05cf8-25c3-4bb8-b663-1def6aa59efb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_ae2a5184-5986-47ac-9d2f-4f5516f2f920" xlink:to="loc_us-gaap_RelatedPartyDomain_ead05cf8-25c3-4bb8-b663-1def6aa59efb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonrelatedPartyMember_cbdd47fe-0c11-4053-8eff-9abfc7a247a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonrelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ead05cf8-25c3-4bb8-b663-1def6aa59efb" xlink:to="loc_us-gaap_NonrelatedPartyMember_cbdd47fe-0c11-4053-8eff-9abfc7a247a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_4b6e7864-97d4-41e3-af25-9999073bc12e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_ead05cf8-25c3-4bb8-b663-1def6aa59efb" xlink:to="loc_us-gaap_RelatedPartyMember_4b6e7864-97d4-41e3-af25-9999073bc12e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_1e0a9d0a-ffb5-4a69-b3a3-e33a27027b51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_86ffbb1a-5e66-4bb3-aacd-cf15e5f92ca7" xlink:to="loc_us-gaap_AssetsAbstract_1e0a9d0a-ffb5-4a69-b3a3-e33a27027b51" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1e0a9d0a-ffb5-4a69-b3a3-e33a27027b51" xlink:to="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_bd0672db-3187-4b55-9523-4ad7985abca9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_bd0672db-3187-4b55-9523-4ad7985abca9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_0711c1f6-e7f0-4687-a5a0-15b37d144d66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_0711c1f6-e7f0-4687-a5a0-15b37d144d66" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_2826429c-2253-493f-b182-450a87343efc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:to="loc_us-gaap_InventoryNet_2826429c-2253-493f-b182-450a87343efc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_30c62277-aac4-477d-a343-a6ab738615a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:to="loc_us-gaap_OtherAssetsCurrent_30c62277-aac4-477d-a343-a6ab738615a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4824f17f-2968-4945-a6cd-711672e3c0fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_b63345cc-3180-4b3c-96bf-6c89e6ee97df" xlink:to="loc_us-gaap_AssetsCurrent_4824f17f-2968-4945-a6cd-711672e3c0fb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1e0a9d0a-ffb5-4a69-b3a3-e33a27027b51" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_c46d5925-0718-43a1-9b7f-8a114003f46f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_c46d5925-0718-43a1-9b7f-8a114003f46f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_b289928b-64ba-4edd-bced-409fead2710e" xlink:href="wdc-20240628.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_b289928b-64ba-4edd-bced-409fead2710e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_3144b3f0-2f41-4bdc-8bd4-60c7844fafd2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:to="loc_us-gaap_Goodwill_3144b3f0-2f41-4bdc-8bd4-60c7844fafd2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3b213c81-e766-4962-89af-8692eaa9a54b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3b213c81-e766-4962-89af-8692eaa9a54b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_0215c877-8fdf-4748-bca4-8f2323c9c762" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_e9c5dcf4-0c37-4db8-b29f-7fa6f2399d65" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_0215c877-8fdf-4748-bca4-8f2323c9c762" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4d11c6bb-dac9-430f-9424-6bac1212b966" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_1e0a9d0a-ffb5-4a69-b3a3-e33a27027b51" xlink:to="loc_us-gaap_Assets_4d11c6bb-dac9-430f-9424-6bac1212b966" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_86ffbb1a-5e66-4bb3-aacd-cf15e5f92ca7" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_71f8a6f0-d699-4f93-b84f-a536915a4260" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_AccountsPayableCurrent_71f8a6f0-d699-4f93-b84f-a536915a4260" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_bf4b9a8b-c774-4c4e-b24f-f94dfb8ab29b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_bf4b9a8b-c774-4c4e-b24f-f94dfb8ab29b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_f9b68867-fb98-49e3-9d6c-755ed8c0f13a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_f9b68867-fb98-49e3-9d6c-755ed8c0f13a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3b95c6f0-2964-4331-bcd2-bf07d0d6779f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3b95c6f0-2964-4331-bcd2-bf07d0d6779f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_4457d94f-54c9-4d1c-b487-6075578d7057" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_LongTermDebtCurrent_4457d94f-54c9-4d1c-b487-6075578d7057" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_d783faa7-13b5-468b-b040-cd1a88a7c788" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_7dcc6f8d-7092-4dd0-8959-3bf4e92f0294" xlink:to="loc_us-gaap_LiabilitiesCurrent_d783faa7-13b5-468b-b040-cd1a88a7c788" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_c099a275-9379-468a-ba73-6013fddf6b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_c099a275-9379-468a-ba73-6013fddf6b7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_375b77b0-de5b-46f8-83ae-3c699cad25a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_c099a275-9379-468a-ba73-6013fddf6b7c" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_375b77b0-de5b-46f8-83ae-3c699cad25a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_12fe3339-b1c4-4d6b-b50c-c71c559093a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_c099a275-9379-468a-ba73-6013fddf6b7c" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_12fe3339-b1c4-4d6b-b50c-c71c559093a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_18bd3416-72fe-4e4d-9d71-b0ec11c9aeae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_Liabilities_18bd3416-72fe-4e4d-9d71-b0ec11c9aeae" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_53c54b7a-d463-48a5-a046-8ee804eaa46f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_CommitmentsAndContingencies_53c54b7a-d463-48a5-a046-8ee804eaa46f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_e658e2b2-6d58-476f-9864-5c3a2f09778c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_e658e2b2-6d58-476f-9864-5c3a2f09778c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a4436c59-ed2a-4908-8aa0-a647b4a2efde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:to="loc_us-gaap_CommonStockValue_a4436c59-ed2a-4908-8aa0-a647b4a2efde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_72d2bb83-1d73-4dbd-ae76-e833f2a9b776" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:to="loc_us-gaap_AdditionalPaidInCapital_72d2bb83-1d73-4dbd-ae76-e833f2a9b776" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d52386a7-23cf-4f9a-9feb-bd7410344115" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d52386a7-23cf-4f9a-9feb-bd7410344115" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cf45b3e5-b679-4308-8b2d-090c10b22142" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_cf45b3e5-b679-4308-8b2d-090c10b22142" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8a16b254-1c2a-4afb-9cba-202ce9f22f81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_72126811-3a91-4b61-bbbf-0f8397402a4d" xlink:to="loc_us-gaap_StockholdersEquity_8a16b254-1c2a-4afb-9cba-202ce9f22f81" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_4e24d36a-38fe-4339-bc27-7bd874644890" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_82fb2136-c800-4e03-bb8d-1063520aef8c" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_4e24d36a-38fe-4339-bc27-7bd874644890" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ConsolidatedStatementsofConvertiblePreferredStockandShareholdersEquity" xlink:type="simple" xlink:href="wdc-20240628.xsd#ConsolidatedStatementsofConvertiblePreferredStockandShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ConsolidatedStatementsofConvertiblePreferredStockandShareholdersEquity" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_b63e2a99-a81f-4fe0-9d17-1c0ffa312c51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_362e9912-8fc1-4625-a1dd-907ccb6768f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_b63e2a99-a81f-4fe0-9d17-1c0ffa312c51" xlink:to="loc_us-gaap_StatementTable_362e9912-8fc1-4625-a1dd-907ccb6768f0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_e4d2ebc0-df37-4c25-afae-44b7862ac424" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_362e9912-8fc1-4625-a1dd-907ccb6768f0" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_e4d2ebc0-df37-4c25-afae-44b7862ac424" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e4d2ebc0-df37-4c25-afae-44b7862ac424_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e4d2ebc0-df37-4c25-afae-44b7862ac424" xlink:to="loc_us-gaap_EquityComponentDomain_e4d2ebc0-df37-4c25-afae-44b7862ac424_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e4d2ebc0-df37-4c25-afae-44b7862ac424" xlink:to="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_9d026706-c999-4281-9256-cd055e2c9e75" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:to="loc_us-gaap_CommonStockMember_9d026706-c999-4281-9256-cd055e2c9e75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_e5078692-262e-43dd-97d2-02c2c9ed3ee7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:to="loc_us-gaap_TreasuryStockCommonMember_e5078692-262e-43dd-97d2-02c2c9ed3ee7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_be0fd33b-939f-4417-a5f2-21f5260421c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_be0fd33b-939f-4417-a5f2-21f5260421c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_459d666a-aef5-4ab2-a498-402cd8fc4b3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_459d666a-aef5-4ab2-a498-402cd8fc4b3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_731945ef-1822-41b9-8918-2a97710f50df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4c738861-2207-4d09-a47b-61a59ca82b4b" xlink:to="loc_us-gaap_RetainedEarningsMember_731945ef-1822-41b9-8918-2a97710f50df" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_05a26833-d1cf-456e-8481-2dfe6519eccf" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_362e9912-8fc1-4625-a1dd-907ccb6768f0" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_05a26833-d1cf-456e-8481-2dfe6519eccf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_05a26833-d1cf-456e-8481-2dfe6519eccf_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_05a26833-d1cf-456e-8481-2dfe6519eccf" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_05a26833-d1cf-456e-8481-2dfe6519eccf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_962262f6-cf7a-4ca7-ac83-68ea64bd3a23" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_05a26833-d1cf-456e-8481-2dfe6519eccf" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_962262f6-cf7a-4ca7-ac83-68ea64bd3a23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_70369f3e-b0e6-4511-a1fb-ccebb47b5e6e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_962262f6-cf7a-4ca7-ac83-68ea64bd3a23" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_70369f3e-b0e6-4511-a1fb-ccebb47b5e6e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInTemporaryEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_b63e2a99-a81f-4fe0-9d17-1c0ffa312c51" xlink:to="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_180d5f13-fe99-4209-9ad2-0a44b36b38f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_180d5f13-fe99-4209-9ad2-0a44b36b38f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_39bffd22-476f-47a9-b7e2-2c4a2d9959d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_39bffd22-476f-47a9-b7e2-2c4a2d9959d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquityStockIssuedDuringPeriodSharesNewIssues_6075b41c-bf31-49d6-85c2-361453966195" xlink:href="wdc-20240628.xsd#wdc_TemporaryEquityStockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_wdc_TemporaryEquityStockIssuedDuringPeriodSharesNewIssues_6075b41c-bf31-49d6-85c2-361453966195" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityStockIssuedDuringPeriodValueNewIssues_666a34d2-66e0-4908-8d22-95ae54acd1fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityStockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_us-gaap_TemporaryEquityStockIssuedDuringPeriodValueNewIssues_666a34d2-66e0-4908-8d22-95ae54acd1fb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquitySharesConversionOfConvertibleSecurities_32f1e7d1-239b-46d6-beb3-98df95547871" xlink:href="wdc-20240628.xsd#wdc_TemporaryEquitySharesConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_wdc_TemporaryEquitySharesConversionOfConvertibleSecurities_32f1e7d1-239b-46d6-beb3-98df95547871" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquityValueConversionOfConvertibleSecurities_038c4561-94db-412f-a2f9-7a3075f9a917" xlink:href="wdc-20240628.xsd#wdc_TemporaryEquityValueConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_0d4d3f1f-e4b9-450a-9ab9-d0b020bb31e4" xlink:to="loc_wdc_TemporaryEquityValueConversionOfConvertibleSecurities_038c4561-94db-412f-a2f9-7a3075f9a917" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_26705340-7511-478d-b17d-080e13db88a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_9e52fee2-e5dc-4ed7-9e1f-31f1b5ac512b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_b63e2a99-a81f-4fe0-9d17-1c0ffa312c51" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_1df3f623-0161-4d58-9a13-789adafc3352" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_1df3f623-0161-4d58-9a13-789adafc3352" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_fd4e709e-d5f2-4181-9b75-8a36776427da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_StockholdersEquity_fd4e709e-d5f2-4181-9b75-8a36776427da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_29c3b01b-9fc6-4894-b027-5ba31c84d3a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_TreasuryStockCommonShares_29c3b01b-9fc6-4894-b027-5ba31c84d3a0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_65abd04b-cea3-4d50-8829-02fb1990dbe5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_NetIncomeLoss_65abd04b-cea3-4d50-8829-02fb1990dbe5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AdjustmentsToAdditionalPaidInCapitalPurchaseOfCappedCalls_287a1eea-591c-4f71-bcee-6a108fe6eacf" xlink:href="wdc-20240628.xsd#wdc_AdjustmentsToAdditionalPaidInCapitalPurchaseOfCappedCalls"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_wdc_AdjustmentsToAdditionalPaidInCapitalPurchaseOfCappedCalls_287a1eea-591c-4f71-bcee-6a108fe6eacf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_af7d567a-720a-4157-be56-958d7e726986" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_af7d567a-720a-4157-be56-958d7e726986" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_e1193a4a-7ccd-4828-944b-9f64435b1545" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_e1193a4a-7ccd-4828-944b-9f64435b1545" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_312032e9-7254-423f-a2d0-6e757b88aab9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_312032e9-7254-423f-a2d0-6e757b88aab9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_StockIssuedDuringPeriodValueIncreaseDecreaseForEmployeeStockPurchasePlan_0cc6e1a4-7b58-4c24-b012-52faa7be77bb" xlink:href="wdc-20240628.xsd#wdc_StockIssuedDuringPeriodValueIncreaseDecreaseForEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_wdc_StockIssuedDuringPeriodValueIncreaseDecreaseForEmployeeStockPurchasePlan_0cc6e1a4-7b58-4c24-b012-52faa7be77bb" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_042989dd-96a1-414d-894c-10de56bc62a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_042989dd-96a1-414d-894c-10de56bc62a2" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_35c54b1d-862b-4a2b-abc6-f8ac388e9cdb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_35c54b1d-862b-4a2b-abc6-f8ac388e9cdb" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_84c41b8d-da06-40a8-bc03-b5d0afc84502" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_84c41b8d-da06-40a8-bc03-b5d0afc84502" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_09934756-758b-47a9-9fdf-ce872faf920c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_450a9950-387a-4e0e-ba3a-8b060597df0b" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_09934756-758b-47a9-9fdf-ce872faf920c" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_3a42e717-1e94-4ec4-9af8-39a79320fc3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2ea9891c-7d97-46b5-ac52-2247b99e25dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_8f7a1c31-f4fc-4cfd-8bea-262ba4b8dab6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockCommonShares"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#OrganizationandBasisofPresentationAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1a3d4e7b-da0a-4bdd-a15d-ef4faf90c36c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1a3d4e7b-da0a-4bdd-a15d-ef4faf90c36c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_44ef2f6c-4d27-4e69-9ce3-a1690f88881b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1a3d4e7b-da0a-4bdd-a15d-ef4faf90c36c" xlink:to="loc_srt_RangeAxis_44ef2f6c-4d27-4e69-9ce3-a1690f88881b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_44ef2f6c-4d27-4e69-9ce3-a1690f88881b_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_44ef2f6c-4d27-4e69-9ce3-a1690f88881b" xlink:to="loc_srt_RangeMember_44ef2f6c-4d27-4e69-9ce3-a1690f88881b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_396909cb-dcb2-4f70-a0c7-27c4685370ad" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_44ef2f6c-4d27-4e69-9ce3-a1690f88881b" xlink:to="loc_srt_RangeMember_396909cb-dcb2-4f70-a0c7-27c4685370ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_156f446a-76b6-4161-be9e-115476e54c86" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_396909cb-dcb2-4f70-a0c7-27c4685370ad" xlink:to="loc_srt_MinimumMember_156f446a-76b6-4161-be9e-115476e54c86" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_3253b520-8c41-4612-8c3a-597e66cc06ac" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_396909cb-dcb2-4f70-a0c7-27c4685370ad" xlink:to="loc_srt_MaximumMember_3253b520-8c41-4612-8c3a-597e66cc06ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_7d90b011-5a4c-47e6-a29c-a93ed4b21013" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1a3d4e7b-da0a-4bdd-a15d-ef4faf90c36c" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_7d90b011-5a4c-47e6-a29c-a93ed4b21013" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_7d90b011-5a4c-47e6-a29c-a93ed4b21013_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_7d90b011-5a4c-47e6-a29c-a93ed4b21013" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_7d90b011-5a4c-47e6-a29c-a93ed4b21013_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_ed85eb14-9cca-4e24-98f6-9d99e7a2852d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_7d90b011-5a4c-47e6-a29c-a93ed4b21013" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_ed85eb14-9cca-4e24-98f6-9d99e7a2852d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InProcessResearchAndDevelopmentMember_8ba6ebd0-e063-409a-af59-21fc3f3ebbb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InProcessResearchAndDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_ed85eb14-9cca-4e24-98f6-9d99e7a2852d" xlink:to="loc_us-gaap_InProcessResearchAndDevelopmentMember_8ba6ebd0-e063-409a-af59-21fc3f3ebbb9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_520394ef-72a9-46cc-90a2-e06675d16f5e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_NumberOfReportableSegments_520394ef-72a9-46cc-90a2-e06675d16f5e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_67188832-fcc5-42f3-9a48-ee349bc3c081" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_67188832-fcc5-42f3-9a48-ee349bc3c081" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_cfd166c9-dc29-48ee-bb0b-96258b2c5cb1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_cfd166c9-dc29-48ee-bb0b-96258b2c5cb1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ProductWarrantyTerm_5d122cc9-1d6d-4214-9136-2be98790ac29" xlink:href="wdc-20240628.xsd#wdc_ProductWarrantyTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_wdc_ProductWarrantyTerm_5d122cc9-1d6d-4214-9136-2be98790ac29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdvertisingExpense_169b1891-b1db-4a9d-a1b7-c880023093a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdvertisingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_AdvertisingExpense_169b1891-b1db-4a9d-a1b7-c880023093a8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_cfa288e2-5dd6-4607-a968-64ed01d832fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_4fe43908-1938-49cd-9734-b8cab390a27a" xlink:to="loc_us-gaap_DerivativeNotionalAmount_cfa288e2-5dd6-4607-a968-64ed01d832fb" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPropertyPlantandEquipmentUsefulLifeDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#OrganizationandBasisofPresentationPropertyPlantandEquipmentUsefulLifeDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPropertyPlantandEquipmentUsefulLifeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_88e68292-e990-4018-9ed4-0a9a787f4526" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_123647f9-c2c3-4efc-8dc4-5d99c431f80f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_88e68292-e990-4018-9ed4-0a9a787f4526" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_123647f9-c2c3-4efc-8dc4-5d99c431f80f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_c76efd82-0bcd-41e0-aae5-5a081b18331f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_123647f9-c2c3-4efc-8dc4-5d99c431f80f" xlink:to="loc_srt_RangeAxis_c76efd82-0bcd-41e0-aae5-5a081b18331f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c76efd82-0bcd-41e0-aae5-5a081b18331f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_c76efd82-0bcd-41e0-aae5-5a081b18331f" xlink:to="loc_srt_RangeMember_c76efd82-0bcd-41e0-aae5-5a081b18331f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b0cf8bdd-f415-44b5-9d70-408240dcb38c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_c76efd82-0bcd-41e0-aae5-5a081b18331f" xlink:to="loc_srt_RangeMember_b0cf8bdd-f415-44b5-9d70-408240dcb38c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_a679f5c6-50d7-44f9-a22a-32cd19a681bf" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b0cf8bdd-f415-44b5-9d70-408240dcb38c" xlink:to="loc_srt_MinimumMember_a679f5c6-50d7-44f9-a22a-32cd19a681bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ae9ef079-fbbc-49aa-bde4-9e64b0249b37" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b0cf8bdd-f415-44b5-9d70-408240dcb38c" xlink:to="loc_srt_MaximumMember_ae9ef079-fbbc-49aa-bde4-9e64b0249b37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_45b75ba6-162f-4f16-abd7-c0b523c3df91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_123647f9-c2c3-4efc-8dc4-5d99c431f80f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_45b75ba6-162f-4f16-abd7-c0b523c3df91" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_45b75ba6-162f-4f16-abd7-c0b523c3df91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_45b75ba6-162f-4f16-abd7-c0b523c3df91" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_45b75ba6-162f-4f16-abd7-c0b523c3df91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_137bd262-82c5-4978-9500-48457aa9c8c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_45b75ba6-162f-4f16-abd7-c0b523c3df91" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_137bd262-82c5-4978-9500-48457aa9c8c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingMember_1a446f57-b08e-40c8-9a54-dec7e789e9a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BuildingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_137bd262-82c5-4978-9500-48457aa9c8c4" xlink:to="loc_us-gaap_BuildingMember_1a446f57-b08e-40c8-9a54-dec7e789e9a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_942af22b-e48c-4cd0-b3f7-b48bb52ace3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_137bd262-82c5-4978-9500-48457aa9c8c4" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_942af22b-e48c-4cd0-b3f7-b48bb52ace3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_cbf1b0a4-826c-47f7-b14b-8d314494eb74" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_137bd262-82c5-4978-9500-48457aa9c8c4" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_cbf1b0a4-826c-47f7-b14b-8d314494eb74" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_f96f3691-48fb-4757-8850-167edf59060d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_88e68292-e990-4018-9ed4-0a9a787f4526" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_f96f3691-48fb-4757-8850-167edf59060d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskSegmentReportingInformationbySegmentDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskSegmentReportingInformationbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskSegmentReportingInformationbySegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c087faec-ceac-4f25-a157-b059f04884a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c087faec-ceac-4f25-a157-b059f04884a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_81925803-8fbb-453b-ab45-fa719a06b086" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c087faec-ceac-4f25-a157-b059f04884a8" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_81925803-8fbb-453b-ab45-fa719a06b086" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_81925803-8fbb-453b-ab45-fa719a06b086_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_81925803-8fbb-453b-ab45-fa719a06b086" xlink:to="loc_us-gaap_SegmentDomain_81925803-8fbb-453b-ab45-fa719a06b086_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_55889a5d-1740-4315-b0f3-c1f15a8040db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_81925803-8fbb-453b-ab45-fa719a06b086" xlink:to="loc_us-gaap_SegmentDomain_55889a5d-1740-4315-b0f3-c1f15a8040db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashSegmentMember_1fd2aac2-c30c-4064-9907-bf2bf726207a" xlink:href="wdc-20240628.xsd#wdc_FlashSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_55889a5d-1740-4315-b0f3-c1f15a8040db" xlink:to="loc_wdc_FlashSegmentMember_1fd2aac2-c30c-4064-9907-bf2bf726207a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_b27cc6b9-f90f-4960-b3ab-78426d8efd65" xlink:href="wdc-20240628.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_55889a5d-1740-4315-b0f3-c1f15a8040db" xlink:to="loc_wdc_HDDMember_b27cc6b9-f90f-4960-b3ab-78426d8efd65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_bc773d60-e971-4c75-a159-9421abc50e49" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c087faec-ceac-4f25-a157-b059f04884a8" xlink:to="loc_srt_ConsolidationItemsAxis_bc773d60-e971-4c75-a159-9421abc50e49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_bc773d60-e971-4c75-a159-9421abc50e49_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_bc773d60-e971-4c75-a159-9421abc50e49" xlink:to="loc_srt_ConsolidationItemsDomain_bc773d60-e971-4c75-a159-9421abc50e49_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_edf33d02-6aab-4304-8466-dc91f57a1c09" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_bc773d60-e971-4c75-a159-9421abc50e49" xlink:to="loc_srt_ConsolidationItemsDomain_edf33d02-6aab-4304-8466-dc91f57a1c09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_14fb4d0b-247d-4098-b6ed-0ba38b8bfbfa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_edf33d02-6aab-4304-8466-dc91f57a1c09" xlink:to="loc_us-gaap_OperatingSegmentsMember_14fb4d0b-247d-4098-b6ed-0ba38b8bfbfa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_ec84a75a-1f92-4231-95fc-c6378f48d472" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_edf33d02-6aab-4304-8466-dc91f57a1c09" xlink:to="loc_us-gaap_CorporateNonSegmentMember_ec84a75a-1f92-4231-95fc-c6378f48d472" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e1012677-a64c-4a48-ab5f-c2c72789b966" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e1012677-a64c-4a48-ab5f-c2c72789b966" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_91dc5f5d-7c6f-4feb-8b7f-269be60928aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_GrossProfit_91dc5f5d-7c6f-4feb-8b7f-269be60928aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_5ab83f8d-2163-40af-acb6-c5634924ff56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_ShareBasedCompensation_5ab83f8d-2163-40af-acb6-c5634924ff56" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_df1fe86e-dcdd-4f47-853d-cdb8c26e8f68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_df1fe86e-dcdd-4f47-853d-cdb8c26e8f68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RecoveryFromContaminationIncident_f208c69a-ed54-494e-a6f3-a0e0a5b62a8b" xlink:href="wdc-20240628.xsd#wdc_RecoveryFromContaminationIncident"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_wdc_RecoveryFromContaminationIncident_f208c69a-ed54-494e-a6f3-a0e0a5b62a8b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductionRelatedImpairmentsOrCharges_022b66e5-69dc-41ef-94d9-fef52b07889e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProductionRelatedImpairmentsOrCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_ProductionRelatedImpairmentsOrCharges_022b66e5-69dc-41ef-94d9-fef52b07889e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ChargesRelatedToPowerOutageIncidentAndRelatedRecovery_e74eb76b-aa29-41cf-9dce-a8bafc800fe0" xlink:href="wdc-20240628.xsd#wdc_ChargesRelatedToPowerOutageIncidentAndRelatedRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_wdc_ChargesRelatedToPowerOutageIncidentAndRelatedRecovery_e74eb76b-aa29-41cf-9dce-a8bafc800fe0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherExpenses_def956f5-8232-40aa-8776-7d7bd4df8e39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_us-gaap_OtherExpenses_def956f5-8232-40aa-8776-7d7bd4df8e39" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_38e94985-6c6e-46b7-8daa-f1998f262d1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GrossMarginPercentage_b2cfba2f-26f7-4c2a-9f89-451a1a23e5da" xlink:href="wdc-20240628.xsd#wdc_GrossMarginPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff78b314-5852-471c-baf3-5865120686c3" xlink:to="loc_wdc_GrossMarginPercentage_b2cfba2f-26f7-4c2a-9f89-451a1a23e5da" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_ba0f5a08-223b-4886-a661-c9dc1d3689d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_73072818-32bb-4f32-b2cd-e475dd307bb2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_ba0f5a08-223b-4886-a661-c9dc1d3689d6" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_73072818-32bb-4f32-b2cd-e475dd307bb2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_73072818-32bb-4f32-b2cd-e475dd307bb2" xlink:to="loc_srt_ProductOrServiceAxis_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f" xlink:to="loc_srt_ProductsAndServicesDomain_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_b3d0ae07-c1a0-4d44-9360-22431b7b0590" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_afd1ce1f-54ea-4f50-9e66-3a24fc08be4f" xlink:to="loc_srt_ProductsAndServicesDomain_b3d0ae07-c1a0-4d44-9360-22431b7b0590" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CloudMember_dc64e6d2-ac42-4a88-a9f5-108f59c08329" xlink:href="wdc-20240628.xsd#wdc_CloudMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b3d0ae07-c1a0-4d44-9360-22431b7b0590" xlink:to="loc_wdc_CloudMember_dc64e6d2-ac42-4a88-a9f5-108f59c08329" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientDevicesMember_ecc05296-7c79-4d42-8820-6bfe0bdfc6fa" xlink:href="wdc-20240628.xsd#wdc_ClientDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b3d0ae07-c1a0-4d44-9360-22431b7b0590" xlink:to="loc_wdc_ClientDevicesMember_ecc05296-7c79-4d42-8820-6bfe0bdfc6fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConsumerMember_28adee8c-fb5f-4e93-966f-af0bfef74e6a" xlink:href="wdc-20240628.xsd#wdc_ConsumerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b3d0ae07-c1a0-4d44-9360-22431b7b0590" xlink:to="loc_wdc_ConsumerMember_28adee8c-fb5f-4e93-966f-af0bfef74e6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_6effe6f2-45b9-412c-a88f-c80303d7b698" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_ba0f5a08-223b-4886-a661-c9dc1d3689d6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_6effe6f2-45b9-412c-a88f-c80303d7b698" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskRevenuebyGeographyDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskRevenuebyGeographyDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskRevenuebyGeographyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_8a5ec8e4-7b35-4d55-b72b-4a73ddcc99d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_0eb3cc93-c3ed-4b36-b6bf-d35a70f9f3f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_8a5ec8e4-7b35-4d55-b72b-4a73ddcc99d4" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_0eb3cc93-c3ed-4b36-b6bf-d35a70f9f3f3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_f6af491d-094f-468c-bd65-eeb89158b8a5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_0eb3cc93-c3ed-4b36-b6bf-d35a70f9f3f3" xlink:to="loc_srt_StatementGeographicalAxis_f6af491d-094f-468c-bd65-eeb89158b8a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_f6af491d-094f-468c-bd65-eeb89158b8a5_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_f6af491d-094f-468c-bd65-eeb89158b8a5" xlink:to="loc_srt_SegmentGeographicalDomain_f6af491d-094f-468c-bd65-eeb89158b8a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_f6af491d-094f-468c-bd65-eeb89158b8a5" xlink:to="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_4b4256d0-19cd-458b-93b2-ed305bc52d08" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_country_US_4b4256d0-19cd-458b-93b2-ed305bc52d08" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_b496eab1-3c64-45ee-851b-a8a32056ccce" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_country_CN_b496eab1-3c64-45ee-851b-a8a32056ccce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_HK_835eb2ba-5f23-4eb7-a2b1-3b89c92afc47" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_HK"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_country_HK_835eb2ba-5f23-4eb7-a2b1-3b89c92afc47" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaMember_0d0bce3d-90f8-4f36-8900-b54417b54144" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_AsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_srt_AsiaMember_0d0bce3d-90f8-4f36-8900-b54417b54144" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EMEAMember_73cc138c-8a89-41ce-8fde-ae39a30014f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_us-gaap_EMEAMember_73cc138c-8a89-41ce-8fde-ae39a30014f3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherMember_c2d45858-b99c-4eb0-8d6e-561c30ec6e18" xlink:href="wdc-20240628.xsd#wdc_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_83aff94f-cada-4c13-8d39-5efbf6244491" xlink:to="loc_wdc_OtherMember_c2d45858-b99c-4eb0-8d6e-561c30ec6e18" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5da57606-af7b-4706-8d61-d1f6e89082ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_8a5ec8e4-7b35-4d55-b72b-4a73ddcc99d4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5da57606-af7b-4706-8d61-d1f6e89082ad" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskLonglivedAssetsbyGeographyDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskLonglivedAssetsbyGeographyDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskLonglivedAssetsbyGeographyDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a3723a33-b6c4-41c3-b548-246d4d522df3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_1664132c-9a9e-437d-a40f-08585163a97e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a3723a33-b6c4-41c3-b548-246d4d522df3" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_1664132c-9a9e-437d-a40f-08585163a97e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_b548d62c-0155-4e31-bf03-991838936706" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_1664132c-9a9e-437d-a40f-08585163a97e" xlink:to="loc_srt_StatementGeographicalAxis_b548d62c-0155-4e31-bf03-991838936706" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_b548d62c-0155-4e31-bf03-991838936706_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_b548d62c-0155-4e31-bf03-991838936706" xlink:to="loc_srt_SegmentGeographicalDomain_b548d62c-0155-4e31-bf03-991838936706_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_b548d62c-0155-4e31-bf03-991838936706" xlink:to="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_83206651-58d7-492a-b511-38d3045dc300" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_country_US_83206651-58d7-492a-b511-38d3045dc300" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_MY_94b2c977-cec2-43cc-a393-295ebe184143" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_MY"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_country_MY_94b2c977-cec2-43cc-a393-295ebe184143" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_e7072cd5-7452-4f2c-967b-7b4b08a341f4" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_country_CN_e7072cd5-7452-4f2c-967b-7b4b08a341f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_TH_80bee3dd-5c1d-40be-904c-a153b1d9e1ee" xlink:href="https://xbrl.sec.gov/country/2024/country-2024.xsd#country_TH"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_country_TH_80bee3dd-5c1d-40be-904c-a153b1d9e1ee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaMember_3a69b15f-a56f-4189-848d-f539b1e7d085" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_AsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_srt_AsiaMember_3a69b15f-a56f-4189-848d-f539b1e7d085" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EMEAMember_a4e417dc-a028-468a-aa61-35d8cb7697a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EMEAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_cdeaa150-7c74-4fed-a673-bab623721ac8" xlink:to="loc_us-gaap_EMEAMember_a4e417dc-a028-468a-aa61-35d8cb7697a3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncurrentAssets_00cd42bf-28f9-42ca-abd3-c21450212436" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_a3723a33-b6c4-41c3-b548-246d4d522df3" xlink:to="loc_us-gaap_NoncurrentAssets_00cd42bf-28f9-42ca-abd3-c21450212436" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_69ee9fb3-1c50-4b85-a9f3-eece2534ea41" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_a20623e2-7e20-4058-ba8d-2933d985cc51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_69ee9fb3-1c50-4b85-a9f3-eece2534ea41" xlink:to="loc_us-gaap_ConcentrationRiskTable_a20623e2-7e20-4058-ba8d-2933d985cc51" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_a3481a6f-8ba7-47fa-af85-771d323e6158" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_a20623e2-7e20-4058-ba8d-2933d985cc51" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_a3481a6f-8ba7-47fa-af85-771d323e6158" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_a3481a6f-8ba7-47fa-af85-771d323e6158_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_a3481a6f-8ba7-47fa-af85-771d323e6158" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_a3481a6f-8ba7-47fa-af85-771d323e6158_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_6cb67fa9-c148-4234-a7fe-bd11d52ca00e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_a3481a6f-8ba7-47fa-af85-771d323e6158" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_6cb67fa9-c148-4234-a7fe-bd11d52ca00e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_ac5c8b5e-98c1-4d51-80e7-f1c9bb0f38e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_6cb67fa9-c148-4234-a7fe-bd11d52ca00e" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_ac5c8b5e-98c1-4d51-80e7-f1c9bb0f38e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_bbb7a2fe-b106-44b3-80bf-8631975f650b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_a20623e2-7e20-4058-ba8d-2933d985cc51" xlink:to="loc_srt_MajorCustomersAxis_bbb7a2fe-b106-44b3-80bf-8631975f650b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_bbb7a2fe-b106-44b3-80bf-8631975f650b_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_bbb7a2fe-b106-44b3-80bf-8631975f650b" xlink:to="loc_srt_NameOfMajorCustomerDomain_bbb7a2fe-b106-44b3-80bf-8631975f650b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_63e0b938-e8f6-4dbf-8421-5f3cb067c517" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_bbb7a2fe-b106-44b3-80bf-8631975f650b" xlink:to="loc_srt_NameOfMajorCustomerDomain_63e0b938-e8f6-4dbf-8421-5f3cb067c517" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TopTenCustomersMember_ce4e8f79-67be-4c76-abec-79efb56a638f" xlink:href="wdc-20240628.xsd#wdc_TopTenCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_63e0b938-e8f6-4dbf-8421-5f3cb067c517" xlink:to="loc_wdc_TopTenCustomersMember_ce4e8f79-67be-4c76-abec-79efb56a638f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CustomerOneMember_26028cc7-e250-479c-97b2-af20c5c5b57b" xlink:href="wdc-20240628.xsd#wdc_CustomerOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_63e0b938-e8f6-4dbf-8421-5f3cb067c517" xlink:to="loc_wdc_CustomerOneMember_26028cc7-e250-479c-97b2-af20c5c5b57b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CustomerTwoMember_a2f8e29b-c3a2-48ac-81bf-941aeb5bd6cf" xlink:href="wdc-20240628.xsd#wdc_CustomerTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_63e0b938-e8f6-4dbf-8421-5f3cb067c517" xlink:to="loc_wdc_CustomerTwoMember_a2f8e29b-c3a2-48ac-81bf-941aeb5bd6cf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_a20623e2-7e20-4058-ba8d-2933d985cc51" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_20f8afdd-cca0-4119-9a28-cd4136be8842" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdc72ef3-b33e-4ac0-b8e2-bccbc9014397" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_20f8afdd-cca0-4119-9a28-cd4136be8842" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_b11081ab-480e-4a9a-b98d-ca52f6d0e5bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_20f8afdd-cca0-4119-9a28-cd4136be8842" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_b11081ab-480e-4a9a-b98d-ca52f6d0e5bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_1c242274-78f1-4aaa-89e6-10143d04cbf5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_20f8afdd-cca0-4119-9a28-cd4136be8842" xlink:to="loc_us-gaap_AccountsReceivableMember_1c242274-78f1-4aaa-89e6-10143d04cbf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_dbbb8486-57bb-4af6-bcdb-90b88e6717c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_69ee9fb3-1c50-4b85-a9f3-eece2534ea41" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_dbbb8486-57bb-4af6-bcdb-90b88e6717c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_d4d81730-642e-424c-bb5c-aeab7aa77ffc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_69ee9fb3-1c50-4b85-a9f3-eece2534ea41" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_d4d81730-642e-424c-bb5c-aeab7aa77ffc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_92ad9115-4dbd-4582-8e40-d96a04212a01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_69ee9fb3-1c50-4b85-a9f3-eece2534ea41" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_92ad9115-4dbd-4582-8e40-d96a04212a01" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_62663d33-dd03-4aaf-ab70-d98be2e8d163" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a7d43927-2c81-441c-9d54-ac1c88d58f21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_62663d33-dd03-4aaf-ab70-d98be2e8d163" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a7d43927-2c81-441c-9d54-ac1c88d58f21" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_84db9852-3c33-450b-8a18-b500ab15b837" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a7d43927-2c81-441c-9d54-ac1c88d58f21" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_84db9852-3c33-450b-8a18-b500ab15b837" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_84db9852-3c33-450b-8a18-b500ab15b837_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_84db9852-3c33-450b-8a18-b500ab15b837" xlink:to="loc_us-gaap_SegmentDomain_84db9852-3c33-450b-8a18-b500ab15b837_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_61d53107-6a8c-45c5-a2a4-e7589616cf0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_84db9852-3c33-450b-8a18-b500ab15b837" xlink:to="loc_us-gaap_SegmentDomain_61d53107-6a8c-45c5-a2a4-e7589616cf0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashSegmentMember_c6d43e75-12c0-4885-a29f-2b38188b87f8" xlink:href="wdc-20240628.xsd#wdc_FlashSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_61d53107-6a8c-45c5-a2a4-e7589616cf0d" xlink:to="loc_wdc_FlashSegmentMember_c6d43e75-12c0-4885-a29f-2b38188b87f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_6f299dfb-9120-4e51-a245-ac97c086a16b" xlink:href="wdc-20240628.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_61d53107-6a8c-45c5-a2a4-e7589616cf0d" xlink:to="loc_wdc_HDDMember_6f299dfb-9120-4e51-a245-ac97c086a16b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_16879320-c015-4e38-ab1b-8d60bbec496d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_62663d33-dd03-4aaf-ab70-d98be2e8d163" xlink:to="loc_us-gaap_GoodwillRollForward_16879320-c015-4e38-ab1b-8d60bbec496d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_a79b2790-c806-4038-9bec-6e457b134678" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_16879320-c015-4e38-ab1b-8d60bbec496d" xlink:to="loc_us-gaap_Goodwill_a79b2790-c806-4038-9bec-6e457b134678" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_2f6c2e47-e0dc-4545-bf60-87aceeabd1ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_16879320-c015-4e38-ab1b-8d60bbec496d" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_2f6c2e47-e0dc-4545-bf60-87aceeabd1ff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_ae788a35-10b0-497a-bf8c-b25a98a053a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_cd7c6546-7060-4779-b442-08040b7b88a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_cd7c6546-7060-4779-b442-08040b7b88a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_aef7d6f9-4c65-4906-8efe-c149faf364a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_cd7c6546-7060-4779-b442-08040b7b88a3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_aef7d6f9-4c65-4906-8efe-c149faf364a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_aef7d6f9-4c65-4906-8efe-c149faf364a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_aef7d6f9-4c65-4906-8efe-c149faf364a5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_aef7d6f9-4c65-4906-8efe-c149faf364a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_29f86161-0598-4230-90ce-ce1b639ae490" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_aef7d6f9-4c65-4906-8efe-c149faf364a5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_29f86161-0598-4230-90ce-ce1b639ae490" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InProcessResearchAndDevelopmentMember_d9f02028-99c2-4de2-9a88-d1ca2f3083c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InProcessResearchAndDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_29f86161-0598-4230-90ce-ce1b639ae490" xlink:to="loc_us-gaap_InProcessResearchAndDevelopmentMember_d9f02028-99c2-4de2-9a88-d1ca2f3083c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_11171ffd-c8c9-47a6-8eea-37bf30e01923" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_29f86161-0598-4230-90ce-ce1b639ae490" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_11171ffd-c8c9-47a6-8eea-37bf30e01923" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_bd0ff6eb-4fab-42b1-89be-fb5852c37a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleAndCollectionOfReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_bd0ff6eb-4fab-42b1-89be-fb5852c37a6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeReceivablesHeldForSaleAmount_6b876222-4bd6-41c0-8672-e6698094d7a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TradeReceivablesHeldForSaleAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_TradeReceivablesHeldForSaleAmount_6b876222-4bd6-41c0-8672-e6698094d7a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_1b41dd17-4a2d-41d9-b0f2-84520fecc208" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_Depreciation_1b41dd17-4a2d-41d9-b0f2-84520fecc208" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_9aeb5996-345c-4141-a112-7ce692010196" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_9aeb5996-345c-4141-a112-7ce692010196" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NumberOfFiniteLivedIntangibleAssetsThatReachedTechnologicalFeasibility_7793dc1b-5cbb-4e91-a61e-8b6c2cce8856" xlink:href="wdc-20240628.xsd#wdc_NumberOfFiniteLivedIntangibleAssetsThatReachedTechnologicalFeasibility"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_wdc_NumberOfFiniteLivedIntangibleAssetsThatReachedTechnologicalFeasibility_7793dc1b-5cbb-4e91-a61e-8b6c2cce8856" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_a41a41a2-b000-445b-b841-548a9f7cfce1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_a41a41a2-b000-445b-b841-548a9f7cfce1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_a91cd654-a62f-4eae-a123-976005dd36ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_a91cd654-a62f-4eae-a123-976005dd36ab" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_18a06b47-d882-4eb9-86e3-b3d805d06698" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_18a06b47-d882-4eb9-86e3-b3d805d06698" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_cfe9de9a-ba6c-4d7f-8ad9-872089d8aca7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_cfe9de9a-ba6c-4d7f-8ad9-872089d8aca7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_183595d0-d441-4e7b-acc8-868eda218c99" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_183595d0-d441-4e7b-acc8-868eda218c99" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_b1552015-44d1-452b-9d09-5278853a0d0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_5005d3af-da90-4ddd-935a-ebf3141e2cbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_b1552015-44d1-452b-9d09-5278853a0d0a" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SupplementalFinancialInformationLineItems_4abdc323-ef30-4b18-8fad-0002ac351758" xlink:href="wdc-20240628.xsd#wdc_SupplementalFinancialInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SupplementalFinancialInformationTable_c9f44a97-56fe-4456-9431-c28c6992b04d" xlink:href="wdc-20240628.xsd#wdc_SupplementalFinancialInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_4abdc323-ef30-4b18-8fad-0002ac351758" xlink:to="loc_wdc_SupplementalFinancialInformationTable_c9f44a97-56fe-4456-9431-c28c6992b04d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6660b433-b610-463e-93fc-ffb5acaac854" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_SupplementalFinancialInformationTable_c9f44a97-56fe-4456-9431-c28c6992b04d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6660b433-b610-463e-93fc-ffb5acaac854" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6660b433-b610-463e-93fc-ffb5acaac854_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6660b433-b610-463e-93fc-ffb5acaac854" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6660b433-b610-463e-93fc-ffb5acaac854_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6660b433-b610-463e-93fc-ffb5acaac854" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_a1aa6a29-c74c-4a8e-a49e-14053674aa3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_us-gaap_LandMember_a1aa6a29-c74c-4a8e-a49e-14053674aa3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_983d1cce-741a-4278-8545-506b7880fbb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_983d1cce-741a-4278-8545-506b7880fbb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_75d8d86e-1e11-4cdd-8e4a-c9e66bc96640" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_75d8d86e-1e11-4cdd-8e4a-c9e66bc96640" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ComputerEquipmentandSoftwareMember_5e6380bb-500b-45e7-bf81-4bf850bd9eb1" xlink:href="wdc-20240628.xsd#wdc_ComputerEquipmentandSoftwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_wdc_ComputerEquipmentandSoftwareMember_5e6380bb-500b-45e7-bf81-4bf850bd9eb1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_a54e948a-461e-4be3-acaf-a16ec7fe5d57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_a54e948a-461e-4be3-acaf-a16ec7fe5d57" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_519fc3e1-8c5c-41ba-b9a9-4826cbed1356" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_c1ca85cb-9932-44cc-8c19-b798ba22a043" xlink:to="loc_us-gaap_ConstructionInProgressMember_519fc3e1-8c5c-41ba-b9a9-4826cbed1356" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_d61563f6-2fa7-4979-a187-d385c1479b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_SupplementalFinancialInformationLineItems_4abdc323-ef30-4b18-8fad-0002ac351758" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_d61563f6-2fa7-4979-a187-d385c1479b7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_c52094cb-766c-4ffd-b3cb-3e35f5f55190" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_d61563f6-2fa7-4979-a187-d385c1479b7b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_c52094cb-766c-4ffd-b3cb-3e35f5f55190" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_beaa92ce-2a40-47ae-aa57-40d7c9f0efe8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_d61563f6-2fa7-4979-a187-d385c1479b7b" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_beaa92ce-2a40-47ae-aa57-40d7c9f0efe8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_b1e1a5de-b21a-4d16-b25e-5eae5db3d632" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_d61563f6-2fa7-4979-a187-d385c1479b7b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_b1e1a5de-b21a-4d16-b25e-5eae5db3d632" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_97a36537-0476-4698-ae4b-a0b8fc635100" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_d81a4883-ec5a-46a7-be33-305e14bcaac7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_97a36537-0476-4698-ae4b-a0b8fc635100" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_d81a4883-ec5a-46a7-be33-305e14bcaac7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_1d2a5c62-fbd1-4e20-920b-25bbaf269226" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_d81a4883-ec5a-46a7-be33-305e14bcaac7" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_1d2a5c62-fbd1-4e20-920b-25bbaf269226" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1d2a5c62-fbd1-4e20-920b-25bbaf269226_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1d2a5c62-fbd1-4e20-920b-25bbaf269226" xlink:to="loc_us-gaap_EquityComponentDomain_1d2a5c62-fbd1-4e20-920b-25bbaf269226_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_1d2a5c62-fbd1-4e20-920b-25bbaf269226" xlink:to="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_37550b78-a8e4-4eb8-bbb0-654ef7314323" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_37550b78-a8e4-4eb8-bbb0-654ef7314323" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_67adf98d-6664-4ab9-8786-3f324d6743ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_67adf98d-6664-4ab9-8786-3f324d6743ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_e09c5eb5-097e-4a63-8afd-750928158b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_e09c5eb5-097e-4a63-8afd-750928158b7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_05a6b87f-660e-46cc-81f0-52f124ba394f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_bd0c84c2-26c8-47a1-94d9-a10760c24497" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_05a6b87f-660e-46cc-81f0-52f124ba394f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:href="wdc-20240628.xsd#wdc_AccumulatedOtherComprehensiveIncomeLossRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_97a36537-0476-4698-ae4b-a0b8fc635100" xlink:to="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d8dfe00a-61d7-4ad5-a233-75a108eeb80d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:to="loc_us-gaap_StockholdersEquity_d8dfe00a-61d7-4ad5-a233-75a108eeb80d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_7d208587-9e4e-4abf-a0b1-50b0b96d8d3b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_7d208587-9e4e-4abf-a0b1-50b0b96d8d3b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_d847fe61-c6d3-4350-8c1a-ba4b42afa867" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_d847fe61-c6d3-4350-8c1a-ba4b42afa867" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_7bdd5962-89bf-47cd-a269-083c6c4d6f3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_7bdd5962-89bf-47cd-a269-083c6c4d6f3d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_37622299-f9b7-4bce-840e-f77857a0aa87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_AccumulatedOtherComprehensiveIncomeLossRollForward_bfe04662-048a-4e96-bad7-6cea9191533a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_37622299-f9b7-4bce-840e-f77857a0aa87" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_cd896a98-1c5d-49f1-a39c-220fb4e541ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20240628.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ebb1b59-17b9-4e04-82a8-88db9f8aa693" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ebb1b59-17b9-4e04-82a8-88db9f8aa693" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_c598fcd8-b1c6-442c-9cfb-89f12990cc1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_c598fcd8-b1c6-442c-9cfb-89f12990cc1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_c598fcd8-b1c6-442c-9cfb-89f12990cc1d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_c598fcd8-b1c6-442c-9cfb-89f12990cc1d" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_c598fcd8-b1c6-442c-9cfb-89f12990cc1d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_1f9e7e3c-b995-447b-aa2b-4d4559361984" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_c598fcd8-b1c6-442c-9cfb-89f12990cc1d" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_1f9e7e3c-b995-447b-aa2b-4d4559361984" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_73d245de-a9a1-484b-bd49-031bfd21960c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_1f9e7e3c-b995-447b-aa2b-4d4559361984" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_73d245de-a9a1-484b-bd49-031bfd21960c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_4c29c568-23cc-433d-84d5-e88eca8d3f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_4c29c568-23cc-433d-84d5-e88eca8d3f8f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_4c29c568-23cc-433d-84d5-e88eca8d3f8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_4c29c568-23cc-433d-84d5-e88eca8d3f8f" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_4c29c568-23cc-433d-84d5-e88eca8d3f8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_71352196-b314-4264-9710-f437695eba4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_4c29c568-23cc-433d-84d5-e88eca8d3f8f" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_71352196-b314-4264-9710-f437695eba4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_15d38b1a-6b13-46c2-84b7-3a5c0819a2f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_71352196-b314-4264-9710-f437695eba4b" xlink:to="loc_us-gaap_MoneyMarketFundsMember_15d38b1a-6b13-46c2-84b7-3a5c0819a2f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_7929fa2a-2af0-4691-af44-9c3f5ac655c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_71352196-b314-4264-9710-f437695eba4b" xlink:to="loc_us-gaap_ForeignExchangeContractMember_7929fa2a-2af0-4691-af44-9c3f5ac655c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_88c7e35d-fc58-4794-bcfb-6534f7fe62ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_88c7e35d-fc58-4794-bcfb-6534f7fe62ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_88c7e35d-fc58-4794-bcfb-6534f7fe62ec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_88c7e35d-fc58-4794-bcfb-6534f7fe62ec" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_88c7e35d-fc58-4794-bcfb-6534f7fe62ec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b303fb50-ff20-4942-9457-ce44eeaefdcb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_88c7e35d-fc58-4794-bcfb-6534f7fe62ec" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b303fb50-ff20-4942-9457-ce44eeaefdcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_9ba13558-3498-420d-90c5-2a3fe1be6f14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_b303fb50-ff20-4942-9457-ce44eeaefdcb" xlink:to="loc_us-gaap_ForeignExchangeContractMember_9ba13558-3498-420d-90c5-2a3fe1be6f14" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a33cead8-90c3-41de-b3a7-482ac3c19815" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_454b4fef-4a36-431e-9bcf-7fc923e7ef69" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a33cead8-90c3-41de-b3a7-482ac3c19815" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a33cead8-90c3-41de-b3a7-482ac3c19815_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a33cead8-90c3-41de-b3a7-482ac3c19815" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a33cead8-90c3-41de-b3a7-482ac3c19815_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_035307a1-ccf7-4f82-b0cc-34db0d4c0e96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a33cead8-90c3-41de-b3a7-482ac3c19815" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_035307a1-ccf7-4f82-b0cc-34db0d4c0e96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_bdfef3fd-7c5b-4465-9741-1383c525a9e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_035307a1-ccf7-4f82-b0cc-34db0d4c0e96" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_bdfef3fd-7c5b-4465-9741-1383c525a9e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_91259d22-43b0-4989-be39-a199dba477dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_035307a1-ccf7-4f82-b0cc-34db0d4c0e96" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_91259d22-43b0-4989-be39-a199dba477dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_ba3253e5-94cf-45bf-bd7b-78be675f02bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_035307a1-ccf7-4f82-b0cc-34db0d4c0e96" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_ba3253e5-94cf-45bf-bd7b-78be675f02bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_56ebb5b7-1365-4d20-b4fc-d02c28d5ea85" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ebb1b59-17b9-4e04-82a8-88db9f8aa693" xlink:to="loc_us-gaap_AssetsAbstract_56ebb5b7-1365-4d20-b4fc-d02c28d5ea85" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_78e31047-8271-44d7-ac6d-2c8252c6a011" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_56ebb5b7-1365-4d20-b4fc-d02c28d5ea85" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_78e31047-8271-44d7-ac6d-2c8252c6a011" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_8d0f16fc-7999-45df-bc35-527e80f505c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_56ebb5b7-1365-4d20-b4fc-d02c28d5ea85" xlink:to="loc_us-gaap_DerivativeAssets_8d0f16fc-7999-45df-bc35-527e80f505c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_1d65da24-5af0-4dc2-8a58-71510d23b5a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_56ebb5b7-1365-4d20-b4fc-d02c28d5ea85" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_1d65da24-5af0-4dc2-8a58-71510d23b5a0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_486c38f3-2f10-4f27-907a-4c8587348a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_5ebb1b59-17b9-4e04-82a8-88db9f8aa693" xlink:to="loc_us-gaap_LiabilitiesAbstract_486c38f3-2f10-4f27-907a-4c8587348a0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_8bded63a-c1ad-4b6a-bed3-c4c6cd7ae5d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_486c38f3-2f10-4f27-907a-4c8587348a0c" xlink:to="loc_us-gaap_DerivativeLiabilities_8bded63a-c1ad-4b6a-bed3-c4c6cd7ae5d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_5f3365a9-2bc9-43db-9c24-0ed2c307e613" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_486c38f3-2f10-4f27-907a-4c8587348a0c" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_5f3365a9-2bc9-43db-9c24-0ed2c307e613" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_3d32477a-8245-4808-a8fa-7650f05f244b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3d32477a-8245-4808-a8fa-7650f05f244b" xlink:to="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6ad17bd3-ad0c-4c18-9c11-10d749f552b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6ad17bd3-ad0c-4c18-9c11-10d749f552b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6ad17bd3-ad0c-4c18-9c11-10d749f552b5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6ad17bd3-ad0c-4c18-9c11-10d749f552b5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6ad17bd3-ad0c-4c18-9c11-10d749f552b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d993bf88-b695-439e-aa78-95a6e1dbe969" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6ad17bd3-ad0c-4c18-9c11-10d749f552b5" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d993bf88-b695-439e-aa78-95a6e1dbe969" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_506d0538-ac10-414c-b95d-321567928212" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d993bf88-b695-439e-aa78-95a6e1dbe969" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_506d0538-ac10-414c-b95d-321567928212" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_14e41801-265d-4788-8b0a-4038978b09c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_14e41801-265d-4788-8b0a-4038978b09c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_14e41801-265d-4788-8b0a-4038978b09c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_14e41801-265d-4788-8b0a-4038978b09c3" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_14e41801-265d-4788-8b0a-4038978b09c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_9d169e00-55e1-4df8-b9d2-cf856803fc10" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_14e41801-265d-4788-8b0a-4038978b09c3" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_9d169e00-55e1-4df8-b9d2-cf856803fc10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ff1dfcd0-e5b0-4f4a-9707-ca8367832bcb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_9d169e00-55e1-4df8-b9d2-cf856803fc10" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ff1dfcd0-e5b0-4f4a-9707-ca8367832bcb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_4a0ad4f6-1595-488e-a9e3-1d516329f422" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ff1dfcd0-e5b0-4f4a-9707-ca8367832bcb" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_4a0ad4f6-1595-488e-a9e3-1d516329f422" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_eb08231b-0165-479a-b46b-08c3f8b058d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ff1dfcd0-e5b0-4f4a-9707-ca8367832bcb" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_eb08231b-0165-479a-b46b-08c3f8b058d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_1289326f-1564-4165-892d-b735ab7182a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:to="loc_us-gaap_DebtInstrumentAxis_1289326f-1564-4165-892d-b735ab7182a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1289326f-1564-4165-892d-b735ab7182a5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_1289326f-1564-4165-892d-b735ab7182a5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1289326f-1564-4165-892d-b735ab7182a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_1289326f-1564-4165-892d-b735ab7182a5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_b0b8b7e6-8a74-412b-afac-5eff9724e427" xlink:href="wdc-20240628.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_b0b8b7e6-8a74-412b-afac-5eff9724e427" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleNotesDue20283.00Member_e5747b8a-8161-4a3f-b441-c895f551e3f9" xlink:href="wdc-20240628.xsd#wdc_ConvertibleNotesDue20283.00Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_ConvertibleNotesDue20283.00Member_e5747b8a-8161-4a3f-b441-c895f551e3f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_ca27e81c-383f-49f9-b71c-f630d76a0dfe" xlink:href="wdc-20240628.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_ca27e81c-383f-49f9-b71c-f630d76a0dfe" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_db486d0a-ecd8-4aa4-b72d-4eaee6b009cd" xlink:href="wdc-20240628.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_TermLoanA2Member_db486d0a-ecd8-4aa4-b72d-4eaee6b009cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_98df1956-71f0-4b0d-bc3b-7d3c0cfd12b5" xlink:href="wdc-20240628.xsd#wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_98df1956-71f0-4b0d-bc3b-7d3c0cfd12b5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember_7bfcae98-2239-43c3-9a5e-6d9c323de9ac" xlink:href="wdc-20240628.xsd#wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_82b623d5-b46b-4d92-9d58-c653cfd0e908" xlink:to="loc_wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember_7bfcae98-2239-43c3-9a5e-6d9c323de9ac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a5217094-d382-44a9-bf65-d85351fe64a5" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_858d6868-acf6-4904-8ec9-3ad7b6ab41d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8b6cc993-8bba-4fd3-bfa0-ae670fb4abd7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_858d6868-acf6-4904-8ec9-3ad7b6ab41d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_46cb1804-4e38-4650-a968-05ee9b701e68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_858d6868-acf6-4904-8ec9-3ad7b6ab41d3" xlink:to="loc_us-gaap_ConvertibleDebtMember_46cb1804-4e38-4650-a968-05ee9b701e68" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_061ba2ad-2bc3-41b3-8db2-682607263255" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3d32477a-8245-4808-a8fa-7650f05f244b" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_061ba2ad-2bc3-41b3-8db2-682607263255" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_7c90c0f4-db5f-4fa4-9c1a-eac8cb2387c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3d32477a-8245-4808-a8fa-7650f05f244b" xlink:to="loc_us-gaap_LongTermDebtFairValue_7c90c0f4-db5f-4fa4-9c1a-eac8cb2387c9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#DerivativeInstrumentsandHedgingActivitiesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivitiesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_f0c51859-0fea-47ac-ad91-dafcfaa4e2ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_ce57a92b-0006-42de-aafc-8e21450082e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_f0c51859-0fea-47ac-ad91-dafcfaa4e2ea" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_ce57a92b-0006-42de-aafc-8e21450082e0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_28f557ff-55e9-4cb2-9f5e-b849727b0226" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_ce57a92b-0006-42de-aafc-8e21450082e0" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_28f557ff-55e9-4cb2-9f5e-b849727b0226" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_28f557ff-55e9-4cb2-9f5e-b849727b0226_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_28f557ff-55e9-4cb2-9f5e-b849727b0226" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_28f557ff-55e9-4cb2-9f5e-b849727b0226_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_a8386ecf-7e70-4b2b-ae0c-f0d994d1e109" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_28f557ff-55e9-4cb2-9f5e-b849727b0226" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_a8386ecf-7e70-4b2b-ae0c-f0d994d1e109" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_a8a76ef3-29e3-4cff-b3a1-1d029ca0e804" xlink:href="wdc-20240628.xsd#wdc_ForeignExchangeForwardContractsDesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a8386ecf-7e70-4b2b-ae0c-f0d994d1e109" xlink:to="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_a8a76ef3-29e3-4cff-b3a1-1d029ca0e804" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_c8924c51-9c40-4a15-b007-d1ee3b49f5b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_f0c51859-0fea-47ac-ad91-dafcfaa4e2ea" xlink:to="loc_us-gaap_DerivativeTermOfContract_c8924c51-9c40-4a15-b007-d1ee3b49f5b4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#DebtScheduleofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_3c219ee5-3104-40d5-aa16-f425a026df2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_DebtInstrumentTable_3c219ee5-3104-40d5-aa16-f425a026df2b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b2775bff-1a18-4323-84e7-6dc9caeb2821" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3c219ee5-3104-40d5-aa16-f425a026df2b" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b2775bff-1a18-4323-84e7-6dc9caeb2821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b2775bff-1a18-4323-84e7-6dc9caeb2821_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b2775bff-1a18-4323-84e7-6dc9caeb2821" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b2775bff-1a18-4323-84e7-6dc9caeb2821_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_4307e602-e08b-47ae-957d-521e429d7775" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b2775bff-1a18-4323-84e7-6dc9caeb2821" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4307e602-e08b-47ae-957d-521e429d7775" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_6f5fc5d1-5f5e-477b-a205-bc1361d661f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_4307e602-e08b-47ae-957d-521e429d7775" xlink:to="loc_us-gaap_ConvertibleDebtMember_6f5fc5d1-5f5e-477b-a205-bc1361d661f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_7536f921-02c8-498c-8f6d-03ac30c6f743" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3c219ee5-3104-40d5-aa16-f425a026df2b" xlink:to="loc_us-gaap_DebtInstrumentAxis_7536f921-02c8-498c-8f6d-03ac30c6f743" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7536f921-02c8-498c-8f6d-03ac30c6f743_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_7536f921-02c8-498c-8f6d-03ac30c6f743" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7536f921-02c8-498c-8f6d-03ac30c6f743_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_7536f921-02c8-498c-8f6d-03ac30c6f743" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_2e244215-d839-4c9d-9d39-d264fe868188" xlink:href="wdc-20240628.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_2e244215-d839-4c9d-9d39-d264fe868188" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleNotesDue20283.00Member_1f824382-a147-4a41-947d-b274edfbe31d" xlink:href="wdc-20240628.xsd#wdc_ConvertibleNotesDue20283.00Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_ConvertibleNotesDue20283.00Member_1f824382-a147-4a41-947d-b274edfbe31d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_58550651-d665-488f-adae-54c003bd5c9f" xlink:href="wdc-20240628.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_58550651-d665-488f-adae-54c003bd5c9f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_4dbbb5ba-7f3b-477b-9235-75baaa7781a1" xlink:href="wdc-20240628.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_TermLoanA2Member_4dbbb5ba-7f3b-477b-9235-75baaa7781a1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_50593465-2cc9-4ce4-ae11-b059cf279c74" xlink:href="wdc-20240628.xsd#wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_50593465-2cc9-4ce4-ae11-b059cf279c74" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember_815ddbc4-25bc-4714-be1b-5c43b90abcf1" xlink:href="wdc-20240628.xsd#wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b75cf1ff-5d92-4fd1-b593-ae0cf71b6711" xlink:to="loc_wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember_815ddbc4-25bc-4714-be1b-5c43b90abcf1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6704ca7d-155f-4dd1-8488-1b0fa909abeb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6704ca7d-155f-4dd1-8488-1b0fa909abeb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_a96f78e0-6780-42d4-b5b5-e0d9d49d5935" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_a96f78e0-6780-42d4-b5b5-e0d9d49d5935" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_82d88300-b5a4-4171-ba23-2431f9373b0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_82d88300-b5a4-4171-ba23-2431f9373b0f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_8d4c7a23-2953-40bf-8dda-ef78e060ba9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_LongTermDebt_8d4c7a23-2953-40bf-8dda-ef78e060ba9b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_aa20ca96-13b1-49bb-b85f-f60db539feb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_LongTermDebtCurrent_aa20ca96-13b1-49bb-b85f-f60db539feb5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_4b0461c0-ad86-465e-9557-a28e8139453f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7e3353fb-abfb-4fe8-b057-b0984daf0f8f" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_4b0461c0-ad86-465e-9557-a28e8139453f" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#DebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_512d6ff3-5f3c-407c-8201-365b7b160a32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_us-gaap_DebtInstrumentAxis_512d6ff3-5f3c-407c-8201-365b7b160a32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_512d6ff3-5f3c-407c-8201-365b7b160a32_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_512d6ff3-5f3c-407c-8201-365b7b160a32" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_512d6ff3-5f3c-407c-8201-365b7b160a32_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_512d6ff3-5f3c-407c-8201-365b7b160a32" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember_cfdd1eb1-30ff-4e4f-b1e9-eb1e677f799a" xlink:href="wdc-20240628.xsd#wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember_cfdd1eb1-30ff-4e4f-b1e9-eb1e677f799a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_cda346e6-e940-4868-b25b-620ba20d6207" xlink:href="wdc-20240628.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_cda346e6-e940-4868-b25b-620ba20d6207" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_f579e5b9-8eb4-4b17-9ec1-467af032ba2c" xlink:href="wdc-20240628.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_f579e5b9-8eb4-4b17-9ec1-467af032ba2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_50a48c34-da6f-423a-9708-f92996f87886" xlink:href="wdc-20240628.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_TermLoanA2Member_50a48c34-da6f-423a-9708-f92996f87886" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RevolvingCreditFacility2027Member_f6444f00-f8af-49de-b667-935c9f91136a" xlink:href="wdc-20240628.xsd#wdc_RevolvingCreditFacility2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_RevolvingCreditFacility2027Member_f6444f00-f8af-49de-b667-935c9f91136a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_05de530b-d3ac-4cff-8491-937ac4d91571" xlink:href="wdc-20240628.xsd#wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember_05de530b-d3ac-4cff-8491-937ac4d91571" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointHundredPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_a30573c8-198b-4143-8c00-5d079df5911b" xlink:href="wdc-20240628.xsd#wdc_ThreePointHundredPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_wdc_ThreePointHundredPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_a30573c8-198b-4143-8c00-5d079df5911b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DelayedDrawTermLoanMember_d891218d-2c21-455b-9748-542624ed88ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DelayedDrawTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_685a396c-9d05-405a-aad6-43fb0143f997" xlink:to="loc_us-gaap_DelayedDrawTermLoanMember_d891218d-2c21-455b-9748-542624ed88ce" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b544f4a1-e3b3-4077-961a-c53b19327087" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b544f4a1-e3b3-4077-961a-c53b19327087" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b544f4a1-e3b3-4077-961a-c53b19327087_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b544f4a1-e3b3-4077-961a-c53b19327087" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b544f4a1-e3b3-4077-961a-c53b19327087_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3173c0a8-8ffd-4311-b378-5529ff56780b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b544f4a1-e3b3-4077-961a-c53b19327087" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3173c0a8-8ffd-4311-b378-5529ff56780b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_ab1c440f-82b4-40b2-b05c-c73125c42378" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3173c0a8-8ffd-4311-b378-5529ff56780b" xlink:to="loc_us-gaap_ConvertibleDebtMember_ab1c440f-82b4-40b2-b05c-c73125c42378" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_8ed9b208-d39e-4613-9c0e-53e3bff7cac9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3173c0a8-8ffd-4311-b378-5529ff56780b" xlink:to="loc_us-gaap_SeniorNotesMember_8ed9b208-d39e-4613-9c0e-53e3bff7cac9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_96355432-64e4-49c4-bd70-ec85a0f9f97d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_us-gaap_CreditFacilityAxis_96355432-64e4-49c4-bd70-ec85a0f9f97d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_96355432-64e4-49c4-bd70-ec85a0f9f97d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_96355432-64e4-49c4-bd70-ec85a0f9f97d" xlink:to="loc_us-gaap_CreditFacilityDomain_96355432-64e4-49c4-bd70-ec85a0f9f97d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_9ef217ea-8fac-4fee-9a35-66fe519af0d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_96355432-64e4-49c4-bd70-ec85a0f9f97d" xlink:to="loc_us-gaap_CreditFacilityDomain_9ef217ea-8fac-4fee-9a35-66fe519af0d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_bc8105b1-953e-47f8-a9c4-0fdf991323b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_9ef217ea-8fac-4fee-9a35-66fe519af0d5" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_bc8105b1-953e-47f8-a9c4-0fdf991323b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StandbyLettersOfCreditMember_f9f84d17-f6c6-436f-9c99-a828371a7a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StandbyLettersOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_9ef217ea-8fac-4fee-9a35-66fe519af0d5" xlink:to="loc_us-gaap_StandbyLettersOfCreditMember_f9f84d17-f6c6-436f-9c99-a828371a7a1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_eaae8b93-fae3-49c5-b68d-572edf3cdd50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_us-gaap_VariableRateAxis_eaae8b93-fae3-49c5-b68d-572edf3cdd50" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_eaae8b93-fae3-49c5-b68d-572edf3cdd50_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_eaae8b93-fae3-49c5-b68d-572edf3cdd50" xlink:to="loc_us-gaap_VariableRateDomain_eaae8b93-fae3-49c5-b68d-572edf3cdd50_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_e7d43db1-9a0d-4bfb-8d09-d683d87bd976" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_eaae8b93-fae3-49c5-b68d-572edf3cdd50" xlink:to="loc_us-gaap_VariableRateDomain_e7d43db1-9a0d-4bfb-8d09-d683d87bd976" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_8a5a3f8a-a541-4684-81a8-0a69f7d08802" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e7d43db1-9a0d-4bfb-8d09-d683d87bd976" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_8a5a3f8a-a541-4684-81a8-0a69f7d08802" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_8240a757-ad71-47b3-9073-652a9f63fecd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_e7d43db1-9a0d-4bfb-8d09-d683d87bd976" xlink:to="loc_us-gaap_BaseRateMember_8240a757-ad71-47b3-9073-652a9f63fecd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_54c0853a-0f49-4f12-98b7-1fc2be768a2f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_srt_RangeAxis_54c0853a-0f49-4f12-98b7-1fc2be768a2f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_54c0853a-0f49-4f12-98b7-1fc2be768a2f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_54c0853a-0f49-4f12-98b7-1fc2be768a2f" xlink:to="loc_srt_RangeMember_54c0853a-0f49-4f12-98b7-1fc2be768a2f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_89382579-3be9-4ceb-b912-5bc960b5f1a5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_54c0853a-0f49-4f12-98b7-1fc2be768a2f" xlink:to="loc_srt_RangeMember_89382579-3be9-4ceb-b912-5bc960b5f1a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_89984ee4-6d79-4649-b4a0-cf50affb1d82" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_89382579-3be9-4ceb-b912-5bc960b5f1a5" xlink:to="loc_srt_MinimumMember_89984ee4-6d79-4649-b4a0-cf50affb1d82" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e7caa98f-4b14-4517-a3cb-320da168f745" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_89382579-3be9-4ceb-b912-5bc960b5f1a5" xlink:to="loc_srt_MaximumMember_e7caa98f-4b14-4517-a3cb-320da168f745" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1da84f64-312b-4e8d-939e-5dd0f99c711a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_98a838e2-a5ec-42eb-88f1-263b2e8a0f01" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1da84f64-312b-4e8d-939e-5dd0f99c711a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1da84f64-312b-4e8d-939e-5dd0f99c711a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1da84f64-312b-4e8d-939e-5dd0f99c711a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_1da84f64-312b-4e8d-939e-5dd0f99c711a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_851adf67-fc95-4719-b837-7ebaa7f95df8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_1da84f64-312b-4e8d-939e-5dd0f99c711a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_851adf67-fc95-4719-b837-7ebaa7f95df8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtSecuritiesMember_dbe14b4d-50d0-4817-95d3-42a9b6fae25d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_851adf67-fc95-4719-b837-7ebaa7f95df8" xlink:to="loc_us-gaap_ConvertibleDebtSecuritiesMember_dbe14b4d-50d0-4817-95d3-42a9b6fae25d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_e2d30337-c99a-4629-8016-a979b5458c27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_e2d30337-c99a-4629-8016-a979b5458c27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_39692ab5-87b7-489c-a70a-e2d39e8dc9b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_39692ab5-87b7-489c-a70a-e2d39e8dc9b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_ebe6a0ac-5f73-425a-a2ab-7f858f285789" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_ebe6a0ac-5f73-425a-a2ab-7f858f285789" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_e5c337c0-37bc-4d16-a0c2-89458859e977" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_e5c337c0-37bc-4d16-a0c2-89458859e977" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_9f1af513-d3f0-4cd7-a63c-e444d95c0e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_9f1af513-d3f0-4cd7-a63c-e444d95c0e0f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_83261a04-9aea-4ac5-9acf-305eb4003797" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_83261a04-9aea-4ac5-9acf-305eb4003797" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_8a8da1f4-31ee-4daa-a7e6-39d732edebf7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_8a8da1f4-31ee-4daa-a7e6-39d732edebf7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_51ec9b1b-45f5-45ae-bc9d-68e4c4e68601" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_51ec9b1b-45f5-45ae-bc9d-68e4c4e68601" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_a541b6d0-874f-4789-92aa-58d66c2adb46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnamortizedDebtIssuanceExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_a541b6d0-874f-4789-92aa-58d66c2adb46" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_051eef37-abd0-4bf0-af9c-551b49fbde4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_InterestExpenseDebt_051eef37-abd0-4bf0-af9c-551b49fbde4d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_7513a108-a57f-47dd-8675-bd7b671101cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_7513a108-a57f-47dd-8675-bd7b671101cf" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_3da80051-1a38-499e-8f29-7136db4819ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_3da80051-1a38-499e-8f29-7136db4819ac" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativePriceRiskOptionStrikePrice_fc9e32a3-3344-4dfc-8fcf-9d6d48f7c19e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativePriceRiskOptionStrikePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DerivativePriceRiskOptionStrikePrice_fc9e32a3-3344-4dfc-8fcf-9d6d48f7c19e" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCapPrice_8b9b63dd-1207-44a9-9289-8b7515c0dc0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeCapPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DerivativeCapPrice_8b9b63dd-1207-44a9-9289-8b7515c0dc0d" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_918149b2-27ef-44aa-9495-972f950531bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_918149b2-27ef-44aa-9495-972f950531bf" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentInvestingActivities_4448b375-0d48-46de-ba8d-4e3201f8d197" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForDerivativeInstrumentInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentInvestingActivities_4448b375-0d48-46de-ba8d-4e3201f8d197" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_c0260054-fa93-4ea1-a5ad-b21c40e5bbb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_c0260054-fa93-4ea1-a5ad-b21c40e5bbb5" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_bf3fedb7-23a9-4b09-b058-422839227224" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_bf3fedb7-23a9-4b09-b058-422839227224" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantMinimumLiquidityAmount_244bc1b2-168c-4957-8d33-26a2225f0239" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantMinimumLiquidityAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_wdc_DebtInstrumentCovenantMinimumLiquidityAmount_244bc1b2-168c-4957-8d33-26a2225f0239" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_ace52f4a-b8d9-408f-9018-243b659ad75c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_ace52f4a-b8d9-408f-9018-243b659ad75c" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_228f2d7b-0258-4a0a-b9e3-fb3a0decfb44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_228f2d7b-0258-4a0a-b9e3-fb3a0decfb44" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_1d44b6a2-116d-411a-8249-4fb170b92b0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentPeriodicPaymentPrincipal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_1d44b6a2-116d-411a-8249-4fb170b92b0a" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_a43d6dbb-0ebf-41f2-99f7-4408d6f36098" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_a43d6dbb-0ebf-41f2-99f7-4408d6f36098" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_30f8880c-40ef-44c5-84ee-bceece3dfe5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_30f8880c-40ef-44c5-84ee-bceece3dfe5a" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_ce98de42-8c61-4a35-8e9f-0fb400b974f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b7ef95c-f22d-424e-9619-acf0b4bd0755" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_ce98de42-8c61-4a35-8e9f-0fb400b974f7" xlink:type="arc" order="24"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofLeverageRatiosDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#DebtScheduleofLeverageRatiosDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtScheduleofLeverageRatiosDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_80db35db-6125-459a-85a9-fe39dca382b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_38209d05-2a2d-48be-a18c-8a526d6aff92" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_80db35db-6125-459a-85a9-fe39dca382b7" xlink:to="loc_us-gaap_DebtInstrumentTable_38209d05-2a2d-48be-a18c-8a526d6aff92" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_76c5fc00-8aff-4577-ac68-4795d1c00ece" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_38209d05-2a2d-48be-a18c-8a526d6aff92" xlink:to="loc_us-gaap_CreditFacilityAxis_76c5fc00-8aff-4577-ac68-4795d1c00ece" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_76c5fc00-8aff-4577-ac68-4795d1c00ece_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_76c5fc00-8aff-4577-ac68-4795d1c00ece" xlink:to="loc_us-gaap_CreditFacilityDomain_76c5fc00-8aff-4577-ac68-4795d1c00ece_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_c1f8def7-a436-4db3-b0c5-a69a82b9750e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_76c5fc00-8aff-4577-ac68-4795d1c00ece" xlink:to="loc_us-gaap_CreditFacilityDomain_c1f8def7-a436-4db3-b0c5-a69a82b9750e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_441ca045-95eb-401e-9015-7836dbfb9bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_c1f8def7-a436-4db3-b0c5-a69a82b9750e" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_441ca045-95eb-401e-9015-7836dbfb9bbf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodAxis_9c6312a2-6151-4215-b1ad-d089bc29bdc0" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_38209d05-2a2d-48be-a18c-8a526d6aff92" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodAxis_9c6312a2-6151-4215-b1ad-d089bc29bdc0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodDomain_9c6312a2-6151-4215-b1ad-d089bc29bdc0_default" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodAxis_9c6312a2-6151-4215-b1ad-d089bc29bdc0" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodDomain_9c6312a2-6151-4215-b1ad-d089bc29bdc0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodAxis_9c6312a2-6151-4215-b1ad-d089bc29bdc0" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodFiveMember_078cf0db-88d5-4cc1-9471-b0dad4368a26" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodFiveMember_078cf0db-88d5-4cc1-9471-b0dad4368a26" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodSixMember_3cfbf163-7077-405a-a512-517bcdff20db" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodSixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodSixMember_3cfbf163-7077-405a-a512-517bcdff20db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodSevenMember_7d89890c-85db-4fce-8ac7-2fd404808b48" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodSevenMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodSevenMember_7d89890c-85db-4fce-8ac7-2fd404808b48" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodEightMember_cbd4202a-4c71-4fb1-abd7-a6c22ea774db" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodEightMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodEightMember_cbd4202a-4c71-4fb1-abd7-a6c22ea774db" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodNineMember_a009289f-4ccb-4250-8bab-7bd89f437dc2" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodNineMember_a009289f-4ccb-4250-8bab-7bd89f437dc2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantPeriodTenMember_c83bc19b-2232-4b8b-8d3e-89f7d21c258e" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantPeriodTenMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DebtInstrumentCovenantPeriodDomain_7e8df416-8178-4a5e-81d6-be7773635d73" xlink:to="loc_wdc_DebtInstrumentCovenantPeriodTenMember_c83bc19b-2232-4b8b-8d3e-89f7d21c258e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DebtInstrumentCovenantLeverageRatioMaximum_0d4680e6-1eda-4c01-aa6f-b9e23e3bd995" xlink:href="wdc-20240628.xsd#wdc_DebtInstrumentCovenantLeverageRatioMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_80db35db-6125-459a-85a9-fe39dca382b7" xlink:to="loc_wdc_DebtInstrumentCovenantLeverageRatioMaximum_0d4680e6-1eda-4c01-aa6f-b9e23e3bd995" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3fce66cf-1624-452d-ab36-2969ccf5385c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3fce66cf-1624-452d-ab36-2969ccf5385c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_98bc60c2-535b-4222-84da-6e38acba64e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3fce66cf-1624-452d-ab36-2969ccf5385c" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_98bc60c2-535b-4222-84da-6e38acba64e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_98bc60c2-535b-4222-84da-6e38acba64e0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_98bc60c2-535b-4222-84da-6e38acba64e0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_98bc60c2-535b-4222-84da-6e38acba64e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_deb87dce-7455-4463-b9bd-95406361e37e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_98bc60c2-535b-4222-84da-6e38acba64e0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_deb87dce-7455-4463-b9bd-95406361e37e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_f2bd7e79-94d6-46ed-8d0e-bdf756f18fa5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_deb87dce-7455-4463-b9bd-95406361e37e" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_f2bd7e79-94d6-46ed-8d0e-bdf756f18fa5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3fce66cf-1624-452d-ab36-2969ccf5385c" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_073e6998-c196-4870-b696-79750cebf384" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_f4fafc66-7e57-4a6e-8548-ed0c5e03e2eb" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_073e6998-c196-4870-b696-79750cebf384" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDebtSecurityMember_cf86c335-0c23-4847-ab0b-a427a95dd871" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDebtSecurityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_073e6998-c196-4870-b696-79750cebf384" xlink:to="loc_us-gaap_DefinedBenefitPlanDebtSecurityMember_cf86c335-0c23-4847-ab0b-a427a95dd871" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_74392f4d-3983-4e31-bb4e-28584611a111" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_073e6998-c196-4870-b696-79750cebf384" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_74392f4d-3983-4e31-bb4e-28584611a111" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DefinedBenefitPlanOtherAssetsMember_87eae5f0-a356-4fad-98c1-7cf5aa31b7b2" xlink:href="wdc-20240628.xsd#wdc_DefinedBenefitPlanOtherAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_073e6998-c196-4870-b696-79750cebf384" xlink:to="loc_wdc_DefinedBenefitPlanOtherAssetsMember_87eae5f0-a356-4fad-98c1-7cf5aa31b7b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationAxis_42b728a9-c47f-4a9f-93c2-10778a58e457" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3fce66cf-1624-452d-ab36-2969ccf5385c" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationAxis_42b728a9-c47f-4a9f-93c2-10778a58e457" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_42b728a9-c47f-4a9f-93c2-10778a58e457_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_42b728a9-c47f-4a9f-93c2-10778a58e457" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_42b728a9-c47f-4a9f-93c2-10778a58e457_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_29912f88-28b3-4a43-8845-0cebecec8982" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_42b728a9-c47f-4a9f-93c2-10778a58e457" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_29912f88-28b3-4a43-8845-0cebecec8982" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignPlanMember_28224b65-4619-449b-b6d5-99824012c81e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_29912f88-28b3-4a43-8845-0cebecec8982" xlink:to="loc_us-gaap_ForeignPlanMember_28224b65-4619-449b-b6d5-99824012c81e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_07247cf9-dd19-47e0-b19a-485219236580" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_07247cf9-dd19-47e0-b19a-485219236580" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_59d62926-d43b-4cdf-bc50-d2165d058583" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_59d62926-d43b-4cdf-bc50-d2165d058583" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_62faa0ac-113a-4be6-8893-e8865c6ffb17" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_62faa0ac-113a-4be6-8893-e8865c6ffb17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PriorServiceCreditsForDefinedBenefitPensionPlansIncludedInAccumulatedOtherComprehensiveIncomeAtBalanceSheetDate_6b17f62d-7936-4ce4-b374-fa834db00ad5" xlink:href="wdc-20240628.xsd#wdc_PriorServiceCreditsForDefinedBenefitPensionPlansIncludedInAccumulatedOtherComprehensiveIncomeAtBalanceSheetDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_wdc_PriorServiceCreditsForDefinedBenefitPensionPlansIncludedInAccumulatedOtherComprehensiveIncomeAtBalanceSheetDate_6b17f62d-7936-4ce4-b374-fa834db00ad5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_b79e755d-ce5a-4f86-b94b-1d8c0b184fd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_b79e755d-ce5a-4f86-b94b-1d8c0b184fd4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DefinedBenefitPlanEstimatedAnnualBenefitsPaymentPeriod_2d94aa26-f147-42cb-922e-c1f0976bea4b" xlink:href="wdc-20240628.xsd#wdc_DefinedBenefitPlanEstimatedAnnualBenefitsPaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_02a255a5-e54b-407c-a8b1-46dfef764b66" xlink:to="loc_wdc_DefinedBenefitPlanEstimatedAnnualBenefitsPaymentPeriod_2d94aa26-f147-42cb-922e-c1f0976bea4b" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_4fc45921-ecc9-4739-8475-d2e5a98da21f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_70f2a89b-1e79-4e78-befc-bfde49de2c2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_4fc45921-ecc9-4739-8475-d2e5a98da21f" xlink:to="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_70f2a89b-1e79-4e78-befc-bfde49de2c2f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationAxis_296ac162-e58c-4994-a5c7-223d06512849" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_70f2a89b-1e79-4e78-befc-bfde49de2c2f" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationAxis_296ac162-e58c-4994-a5c7-223d06512849" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_296ac162-e58c-4994-a5c7-223d06512849_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_296ac162-e58c-4994-a5c7-223d06512849" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_296ac162-e58c-4994-a5c7-223d06512849_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_95566106-dee1-4b6f-9b19-f0b022732cd9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_296ac162-e58c-4994-a5c7-223d06512849" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_95566106-dee1-4b6f-9b19-f0b022732cd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignPlanMember_00586e99-3dff-4ab9-8f1b-0ee08832a4a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_95566106-dee1-4b6f-9b19-f0b022732cd9" xlink:to="loc_us-gaap_ForeignPlanMember_00586e99-3dff-4ab9-8f1b-0ee08832a4a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_f084adb5-8d6a-41a4-81eb-2da542d2d1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_70f2a89b-1e79-4e78-befc-bfde49de2c2f" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_f084adb5-8d6a-41a4-81eb-2da542d2d1a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_f084adb5-8d6a-41a4-81eb-2da542d2d1a9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f084adb5-8d6a-41a4-81eb-2da542d2d1a9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_f084adb5-8d6a-41a4-81eb-2da542d2d1a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_28ad596f-d27b-4ef8-b7ee-6a9f2b8efc62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_f084adb5-8d6a-41a4-81eb-2da542d2d1a9" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_28ad596f-d27b-4ef8-b7ee-6a9f2b8efc62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_e65f922a-33cb-4a9a-8873-5b48414fbad1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_28ad596f-d27b-4ef8-b7ee-6a9f2b8efc62" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_e65f922a-33cb-4a9a-8873-5b48414fbad1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_4fc45921-ecc9-4739-8475-d2e5a98da21f" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_ede21845-af05-4f52-bdc2-e705a40ee57b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_ede21845-af05-4f52-bdc2-e705a40ee57b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_8570ff2a-54ae-4a7b-82fc-0d4488098d08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_8570ff2a-54ae-4a7b-82fc-0d4488098d08" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_8dcd3177-74ae-4b49-a646-2cbb1c550b70" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_8dcd3177-74ae-4b49-a646-2cbb1c550b70" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAmendments_d4e6d27d-261c-4e40-9531-3420e8ab8f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanPlanAmendments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAmendments_d4e6d27d-261c-4e40-9531-3420e8ab8f37" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_f9114636-198d-437b-9487-a451cfe9345a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_f9114636-198d-437b-9487-a451cfe9345a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_f21f8f30-3baf-4dba-8bc7-35569dff0eb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_f21f8f30-3baf-4dba-8bc7-35569dff0eb8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_7b4a150a-0ce4-404c-a3f3-af844357d3b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanSettlementsBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_7b4a150a-0ce4-404c-a3f3-af844357d3b7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation_e810a559-fafc-4f5d-8978-ab3d5703a21c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_8a529928-da60-4a4e-b031-64a6b28ffae5" xlink:to="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation_e810a559-fafc-4f5d-8978-ab3d5703a21c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_ec633fd9-2a9b-487a-8c8c-60b52df8a4a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_4fc45921-ecc9-4739-8475-d2e5a98da21f" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_5fab6952-565d-4347-9dad-99a8db7cc932" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_5fab6952-565d-4347-9dad-99a8db7cc932" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_e9d01b93-7168-49eb-b40c-8f0d096c67ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_e9d01b93-7168-49eb-b40c-8f0d096c67ad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5f114f42-9caa-4b18-b219-1dc4a57ebfd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5f114f42-9caa-4b18-b219-1dc4a57ebfd7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_0f3843c9-e51b-45a3-a2dc-6de902bf0d57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_0f3843c9-e51b-45a3-a2dc-6de902bf0d57" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsForeignCurrencyTranslationGainLoss_656df085-138a-46e3-ad00-b29e35d27abc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanPlanAssetsForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_8d57cc52-7fe5-497d-a75c-3f85c221547d" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsForeignCurrencyTranslationGainLoss_656df085-138a-46e3-ad00-b29e35d27abc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_9a25c987-0596-413b-a297-72718a08df96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_b6659308-8c1f-45e5-b8d9-e5f274a4bfab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_4fc45921-ecc9-4739-8475-d2e5a98da21f" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_b6659308-8c1f-45e5-b8d9-e5f274a4bfab" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e35b16ed-ab47-4dfc-a6b7-d07d4b0fafb7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_56bf8a09-5cff-4599-80eb-43cfc3c0ab83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e35b16ed-ab47-4dfc-a6b7-d07d4b0fafb7" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_56bf8a09-5cff-4599-80eb-43cfc3c0ab83" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationAxis_1a4eb79a-0f3d-4526-a107-9c59cd30f835" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_56bf8a09-5cff-4599-80eb-43cfc3c0ab83" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationAxis_1a4eb79a-0f3d-4526-a107-9c59cd30f835" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_1a4eb79a-0f3d-4526-a107-9c59cd30f835_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_1a4eb79a-0f3d-4526-a107-9c59cd30f835" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_1a4eb79a-0f3d-4526-a107-9c59cd30f835_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_e2f270dd-0f5c-4dcd-8abc-150c515fdc2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_1a4eb79a-0f3d-4526-a107-9c59cd30f835" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_e2f270dd-0f5c-4dcd-8abc-150c515fdc2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignPlanMember_592c68c1-d081-4f5c-828b-19fb6af2340f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_e2f270dd-0f5c-4dcd-8abc-150c515fdc2f" xlink:to="loc_us-gaap_ForeignPlanMember_592c68c1-d081-4f5c-828b-19fb6af2340f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_86a69b52-1244-4432-ae03-de963952b0e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e35b16ed-ab47-4dfc-a6b7-d07d4b0fafb7" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_86a69b52-1244-4432-ae03-de963952b0e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_9d1dc565-9a2b-4321-b434-da66b7abf888" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e35b16ed-ab47-4dfc-a6b7-d07d4b0fafb7" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_9d1dc565-9a2b-4321-b434-da66b7abf888" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8164203f-e6a8-47ed-828d-0d76d97ad6ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2109459-5125-46f1-8243-ecb8051a0f9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8164203f-e6a8-47ed-828d-0d76d97ad6ed" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2109459-5125-46f1-8243-ecb8051a0f9d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationAxis_504e75f6-11f2-4ba2-a79e-60d06af5834a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a2109459-5125-46f1-8243-ecb8051a0f9d" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationAxis_504e75f6-11f2-4ba2-a79e-60d06af5834a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_504e75f6-11f2-4ba2-a79e-60d06af5834a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_504e75f6-11f2-4ba2-a79e-60d06af5834a" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_504e75f6-11f2-4ba2-a79e-60d06af5834a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanSponsorLocationDomain_c5048726-9fb2-47f4-8299-9cacef3faa21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanSponsorLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationAxis_504e75f6-11f2-4ba2-a79e-60d06af5834a" xlink:to="loc_us-gaap_RetirementPlanSponsorLocationDomain_c5048726-9fb2-47f4-8299-9cacef3faa21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignPlanMember_3b31954c-1811-4d24-8f26-8246435ed066" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanSponsorLocationDomain_c5048726-9fb2-47f4-8299-9cacef3faa21" xlink:to="loc_us-gaap_ForeignPlanMember_3b31954c-1811-4d24-8f26-8246435ed066" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_1a8db392-7983-47ab-90c1-d6e166084174" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8164203f-e6a8-47ed-828d-0d76d97ad6ed" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_1a8db392-7983-47ab-90c1-d6e166084174" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_a58f1258-c3f7-4923-b80d-eb2f412de96e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8164203f-e6a8-47ed-828d-0d76d97ad6ed" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_a58f1258-c3f7-4923-b80d-eb2f412de96e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_744eedac-10da-46c5-a7e2-b57ca0e13c4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8164203f-e6a8-47ed-828d-0d76d97ad6ed" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_744eedac-10da-46c5-a7e2-b57ca0e13c4e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#PensionandOtherPostRetirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e03744d3-4ffb-4cf6-9a68-e84382e2edf1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_63d04dfd-bd2f-42c1-ba6e-fe534c813a6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e03744d3-4ffb-4cf6-9a68-e84382e2edf1" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_63d04dfd-bd2f-42c1-ba6e-fe534c813a6e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_63d04dfd-bd2f-42c1-ba6e-fe534c813a6e" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_8b4f24d6-5c2a-4bd4-b9f8-434951b6e168" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DefinedBenefitPlanEquityCommingledMutualFundsMember_2ded5fad-5b25-4a8a-9cb2-af36c282c1c0" xlink:href="wdc-20240628.xsd#wdc_DefinedBenefitPlanEquityCommingledMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:to="loc_wdc_DefinedBenefitPlanEquityCommingledMutualFundsMember_2ded5fad-5b25-4a8a-9cb2-af36c282c1c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DefinedBenefitPlanFixedIncomeCommingledMutualFundsMember_a36770ea-11dd-44aa-bdf1-aba5c4d007f4" xlink:href="wdc-20240628.xsd#wdc_DefinedBenefitPlanFixedIncomeCommingledMutualFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:to="loc_wdc_DefinedBenefitPlanFixedIncomeCommingledMutualFundsMember_a36770ea-11dd-44aa-bdf1-aba5c4d007f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NetPlanAssetsSubjectToLevelingMember_ea3bea56-4f1e-40ad-8f5a-56a32bb90c40" xlink:href="wdc-20240628.xsd#wdc_NetPlanAssetsSubjectToLevelingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:to="loc_wdc_NetPlanAssetsSubjectToLevelingMember_ea3bea56-4f1e-40ad-8f5a-56a32bb90c40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RealEstateInvestmentTrustMember_a0bbbc59-1fe6-48e9-a245-d11bc08c431c" xlink:href="wdc-20240628.xsd#wdc_RealEstateInvestmentTrustMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_2d1241e5-2e23-4c5c-9410-20130a1db7d4" xlink:to="loc_wdc_RealEstateInvestmentTrustMember_a0bbbc59-1fe6-48e9-a245-d11bc08c431c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_c0287263-7cc6-4087-929f-136d61220582" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_63d04dfd-bd2f-42c1-ba6e-fe534c813a6e" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_c0287263-7cc6-4087-929f-136d61220582" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_c0287263-7cc6-4087-929f-136d61220582_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_c0287263-7cc6-4087-929f-136d61220582" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_c0287263-7cc6-4087-929f-136d61220582_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_c0287263-7cc6-4087-929f-136d61220582" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_fa8800de-4950-42eb-a028-652a8ba1a011" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_fa8800de-4950-42eb-a028-652a8ba1a011" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_78420d2e-1e39-4bf6-b21e-cdae55e4ee02" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_78420d2e-1e39-4bf6-b21e-cdae55e4ee02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_4007aeff-d87b-403c-8206-17d89897fdb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_4007aeff-d87b-403c-8206-17d89897fdb4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_84c5f9c4-86cd-48a3-9005-70af92f2852c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b2ae7d0c-5b67-406c-8d38-dcff3a287df8" xlink:to="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_84c5f9c4-86cd-48a3-9005-70af92f2852c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_ceea3543-7add-461a-a34d-460aa49a0846" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e03744d3-4ffb-4cf6-9a68-e84382e2edf1" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_ceea3543-7add-461a-a34d-460aa49a0846" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DefinedBenefitPlanPlanAssetsAmountIncludingAssetsSubjectToLeveling_5631244c-f8df-48e8-bedd-c6c73d1e1f8a" xlink:href="wdc-20240628.xsd#wdc_DefinedBenefitPlanPlanAssetsAmountIncludingAssetsSubjectToLeveling"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e03744d3-4ffb-4cf6-9a68-e84382e2edf1" xlink:to="loc_wdc_DefinedBenefitPlanPlanAssetsAmountIncludingAssetsSubjectToLeveling_5631244c-f8df-48e8-bedd-c6c73d1e1f8a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_22f0840b-f3ed-46a0-bcd0-4d90414f9305" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:href="wdc-20240628.xsd#wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_22f0840b-f3ed-46a0-bcd0-4d90414f9305" xlink:to="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_fea9f504-c2a1-4b75-85b7-4aa3ac4fc526" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_KioxiaCorporationMember_0f918232-3d29-4f3e-97c6-03ec13096571" xlink:href="wdc-20240628.xsd#wdc_KioxiaCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:to="loc_wdc_KioxiaCorporationMember_0f918232-3d29-4f3e-97c6-03ec13096571" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashVenturesMember_c19d28a7-e58e-46e4-b24f-3b958cd4e860" xlink:href="wdc-20240628.xsd#wdc_FlashVenturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:to="loc_wdc_FlashVenturesMember_c19d28a7-e58e-46e4-b24f-3b958cd4e860" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_K1K2AndY7FacilitiesMember_886f97ea-6b47-40d1-88c6-233ad0167f06" xlink:href="wdc-20240628.xsd#wdc_K1K2AndY7FacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:to="loc_wdc_K1K2AndY7FacilitiesMember_886f97ea-6b47-40d1-88c6-233ad0167f06" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_2757c399-1006-41a1-9a63-50f20e1d972a" xlink:href="wdc-20240628.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_d1828c00-8499-425c-8171-e6a7445d6742" xlink:to="loc_wdc_UnisVentureMember_2757c399-1006-41a1-9a63-50f20e1d972a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_dei_LegalEntityAxis_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865" xlink:to="loc_dei_EntityDomain_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_bdfac5fc-6c77-4f2d-b8a5-ae5d3670bf55" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_b9d3c9a5-4d78-4f8e-89c1-c43584d5a865" xlink:to="loc_dei_EntityDomain_bdfac5fc-6c77-4f2d-b8a5-ae5d3670bf55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_KioxiaCorporationMember_9121aa35-c877-4123-b0b0-8647b2dd750b" xlink:href="wdc-20240628.xsd#wdc_KioxiaCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_bdfac5fc-6c77-4f2d-b8a5-ae5d3670bf55" xlink:to="loc_wdc_KioxiaCorporationMember_9121aa35-c877-4123-b0b0-8647b2dd750b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnissoftWuxiGroupCoLtd.Member_db18e951-b501-4857-8029-f1715c12636a" xlink:href="wdc-20240628.xsd#wdc_UnissoftWuxiGroupCoLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_bdfac5fc-6c77-4f2d-b8a5-ae5d3670bf55" xlink:to="loc_wdc_UnissoftWuxiGroupCoLtd.Member_db18e951-b501-4857-8029-f1715c12636a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_b87fbad3-2c67-4e83-a557-ef8bbc014482" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_us-gaap_OtherCommitmentsAxis_b87fbad3-2c67-4e83-a557-ef8bbc014482" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_b87fbad3-2c67-4e83-a557-ef8bbc014482_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_b87fbad3-2c67-4e83-a557-ef8bbc014482" xlink:to="loc_us-gaap_OtherCommitmentsDomain_b87fbad3-2c67-4e83-a557-ef8bbc014482_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_b2387e89-a624-4b58-96dd-a74dd6e11cd5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_b87fbad3-2c67-4e83-a557-ef8bbc014482" xlink:to="loc_us-gaap_OtherCommitmentsDomain_b2387e89-a624-4b58-96dd-a74dd6e11cd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FutureBuildingDepreciationPaymentsMember_d341a41e-7bf7-4c00-8559-2c4f976fbefd" xlink:href="wdc-20240628.xsd#wdc_FutureBuildingDepreciationPaymentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_b2387e89-a624-4b58-96dd-a74dd6e11cd5" xlink:to="loc_wdc_FutureBuildingDepreciationPaymentsMember_d341a41e-7bf7-4c00-8559-2c4f976fbefd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_63afd10c-94b9-4d1a-a8c3-788ee92a8d96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_63afd10c-94b9-4d1a-a8c3-788ee92a8d96" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_63afd10c-94b9-4d1a-a8c3-788ee92a8d96_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_63afd10c-94b9-4d1a-a8c3-788ee92a8d96" xlink:to="loc_us-gaap_RelatedPartyDomain_63afd10c-94b9-4d1a-a8c3-788ee92a8d96_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_a7ed65d1-be09-4c77-b237-8e506ab3d2ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_63afd10c-94b9-4d1a-a8c3-788ee92a8d96" xlink:to="loc_us-gaap_RelatedPartyDomain_a7ed65d1-be09-4c77-b237-8e506ab3d2ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_db7f546b-b15d-4854-86e1-e98d8c0da185" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_a7ed65d1-be09-4c77-b237-8e506ab3d2ab" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_db7f546b-b15d-4854-86e1-e98d8c0da185" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameAxis_c18f8617-d73b-4561-b23a-848cca908305" xlink:href="wdc-20240628.xsd#wdc_EquityMethodInvestorNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_wdc_EquityMethodInvestorNameAxis_c18f8617-d73b-4561-b23a-848cca908305" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_c18f8617-d73b-4561-b23a-848cca908305_default" xlink:href="wdc-20240628.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_c18f8617-d73b-4561-b23a-848cca908305" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_c18f8617-d73b-4561-b23a-848cca908305_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_5ed886c6-aa8a-4621-bdd3-44722ebfbb6d" xlink:href="wdc-20240628.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_c18f8617-d73b-4561-b23a-848cca908305" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_5ed886c6-aa8a-4621-bdd3-44722ebfbb6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_WesternDigitalCorpMember_d90691f0-717c-4c6d-9d95-65bb95ee9ff9" xlink:href="wdc-20240628.xsd#wdc_WesternDigitalCorpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EquityMethodInvestorNameDomain_5ed886c6-aa8a-4621-bdd3-44722ebfbb6d" xlink:to="loc_wdc_WesternDigitalCorpMember_d90691f0-717c-4c6d-9d95-65bb95ee9ff9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_a2106078-d88d-4018-b6ee-5ec9daba8fb1" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_srt_RangeAxis_a2106078-d88d-4018-b6ee-5ec9daba8fb1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a2106078-d88d-4018-b6ee-5ec9daba8fb1_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_a2106078-d88d-4018-b6ee-5ec9daba8fb1" xlink:to="loc_srt_RangeMember_a2106078-d88d-4018-b6ee-5ec9daba8fb1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_feae25e8-4216-46f3-9bb3-df15417293ad" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_a2106078-d88d-4018-b6ee-5ec9daba8fb1" xlink:to="loc_srt_RangeMember_feae25e8-4216-46f3-9bb3-df15417293ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_98963094-f12b-4c10-a814-211d883542c6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_feae25e8-4216-46f3-9bb3-df15417293ad" xlink:to="loc_srt_MinimumMember_98963094-f12b-4c10-a814-211d883542c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_40f58e2f-a64f-4c00-bb4a-693262b7f102" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_feae25e8-4216-46f3-9bb3-df15417293ad" xlink:to="loc_srt_MaximumMember_40f58e2f-a64f-4c00-bb4a-693262b7f102" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fb0125df-235f-4803-9b66-3f9b5016b9c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_a8589a6e-2ff2-48eb-96ea-f2b1ea2f456b" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fb0125df-235f-4803-9b66-3f9b5016b9c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_e315066e-f7f2-431a-bb46-7d2254e05535" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fb0125df-235f-4803-9b66-3f9b5016b9c6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_e315066e-f7f2-431a-bb46-7d2254e05535" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AccountsReceivableBenchmarkMember_41e9d546-31f9-4669-a9f5-f4f8efd84c1e" xlink:href="wdc-20240628.xsd#wdc_AccountsReceivableBenchmarkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fb0125df-235f-4803-9b66-3f9b5016b9c6" xlink:to="loc_wdc_AccountsReceivableBenchmarkMember_41e9d546-31f9-4669-a9f5-f4f8efd84c1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_59e9817c-4ede-4577-bb48-dad9c657d870" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable_e054551e-c6ad-44e3-909e-a5d90984d9a7" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_59e9817c-4ede-4577-bb48-dad9c657d870" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_59e9817c-4ede-4577-bb48-dad9c657d870_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_59e9817c-4ede-4577-bb48-dad9c657d870" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_59e9817c-4ede-4577-bb48-dad9c657d870_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_2cdf27da-644f-43f1-966a-34dd238b5798" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_59e9817c-4ede-4577-bb48-dad9c657d870" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_2cdf27da-644f-43f1-966a-34dd238b5798" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_46cc79c6-0aa7-465c-abf4-4d385772328a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_2cdf27da-644f-43f1-966a-34dd238b5798" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_46cc79c6-0aa7-465c-abf4-4d385772328a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_22f0840b-f3ed-46a0-bcd0-4d90414f9305" xlink:to="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NumberOfLegalEntities_54b6a06d-6247-4ff6-8e14-90440c3b9230" xlink:href="wdc-20240628.xsd#wdc_NumberOfLegalEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_NumberOfLegalEntities_54b6a06d-6247-4ff6-8e14-90440c3b9230" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_02554a32-8196-4c93-9f05-f5ca48adec4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_02554a32-8196-4c93-9f05-f5ca48adec4e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_567fc7b4-b0be-4023-8357-59de071e2307" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitment_567fc7b4-b0be-4023-8357-59de071e2307" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_54e9f197-b236-46cd-bf34-8a5f42c1b339" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyExchangeRateTranslation1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_54e9f197-b236-46cd-bf34-8a5f42c1b339" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_c3d2097a-0ed2-4372-9701-9daa23aa0258" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitmentDueInNextTwelveMonths_c3d2097a-0ed2-4372-9701-9daa23aa0258" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInSecondYear_701002f0-6623-4d91-af1d-69a81ac127da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInSecondYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitmentDueInSecondYear_701002f0-6623-4d91-af1d-69a81ac127da" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInThirdYear_898595b1-b102-4db2-8ab5-6468fc9c87fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInThirdYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitmentDueInThirdYear_898595b1-b102-4db2-8ab5-6468fc9c87fe" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFourthYear_b2572d58-7588-4fd1-ae9b-10e283cd17a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFourthYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitmentDueInFourthYear_b2572d58-7588-4fd1-ae9b-10e283cd17a6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentDueInFifthYear_697f68fb-368e-4f12-9dfb-ebbba0712abc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentDueInFifthYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_OtherCommitmentDueInFifthYear_697f68fb-368e-4f12-9dfb-ebbba0712abc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_b027a66b-254a-4dcc-a9bf-dced0241a634" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_b027a66b-254a-4dcc-a9bf-dced0241a634" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_ae1c0b00-87f1-439e-87d1-600017765884" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_ae1c0b00-87f1-439e-87d1-600017765884" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_e237361f-5312-49d4-a583-bdf88b48eb68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_AccountsPayableCurrent_e237361f-5312-49d4-a583-bdf88b48eb68" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees_49a2a833-8e2a-4f76-88c5-67cdb313c5b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees_49a2a833-8e2a-4f76-88c5-67cdb313c5b4" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_InvestmentFundingCommitments_92b74753-cad7-47c0-ac69-767e2712b6e5" xlink:href="wdc-20240628.xsd#wdc_InvestmentFundingCommitments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_InvestmentFundingCommitments_92b74753-cad7-47c0-ac69-767e2712b6e5" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ManufacturingCapacityPercentOperating_3962d5e0-ba8d-4a11-9eb0-33c247b84f79" xlink:href="wdc-20240628.xsd#wdc_ManufacturingCapacityPercentOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_ManufacturingCapacityPercentOperating_3962d5e0-ba8d-4a11-9eb0-33c247b84f79" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_d91b37d6-08a9-43fc-b356-1837aec1fbf0" xlink:href="wdc-20240628.xsd#wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_d91b37d6-08a9-43fc-b356-1837aec1fbf0" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfUnexpectedPowerOutageIncident_a1bdf5b7-99ea-4da5-8536-42ebd1319677" xlink:href="wdc-20240628.xsd#wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfUnexpectedPowerOutageIncident"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfUnexpectedPowerOutageIncident_a1bdf5b7-99ea-4da5-8536-42ebd1319677" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InsuranceRecoveries_72a1ad43-459e-46db-af7b-3fa39cb7c493" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InsuranceRecoveries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_InsuranceRecoveries_72a1ad43-459e-46db-af7b-3fa39cb7c493" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PartnersOwnershipInVentureBusiness_c922eac1-801c-44c2-afbc-b1ac49f0ae13" xlink:href="wdc-20240628.xsd#wdc_PartnersOwnershipInVentureBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_wdc_PartnersOwnershipInVentureBusiness_c922eac1-801c-44c2-afbc-b1ac49f0ae13" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_df2af66a-30c9-49fe-bfdf-63c364212df5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionsAbstract_45437ff0-30d0-4559-9cca-49b40f41afdd" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_df2af66a-30c9-49fe-bfdf-63c364212df5" xlink:type="arc" order="20"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_18c067cc-deb7-4dbf-b61a-a800205f2108" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_15c91020-2216-46f7-b0d8-5298aaa82f81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_18c067cc-deb7-4dbf-b61a-a800205f2108" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_15c91020-2216-46f7-b0d8-5298aaa82f81" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6a9243b3-8cb1-4b16-88ad-201583fe3efa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_15c91020-2216-46f7-b0d8-5298aaa82f81" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6a9243b3-8cb1-4b16-88ad-201583fe3efa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_6a9243b3-8cb1-4b16-88ad-201583fe3efa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6a9243b3-8cb1-4b16-88ad-201583fe3efa" xlink:to="loc_us-gaap_RelatedPartyDomain_6a9243b3-8cb1-4b16-88ad-201583fe3efa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_0afc9e0d-4b6b-4fc8-a7db-2d5408847863" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_6a9243b3-8cb1-4b16-88ad-201583fe3efa" xlink:to="loc_us-gaap_RelatedPartyDomain_0afc9e0d-4b6b-4fc8-a7db-2d5408847863" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_bd3d9ae4-50fe-40dd-b95e-c5aa3e34f744" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_0afc9e0d-4b6b-4fc8-a7db-2d5408847863" xlink:to="loc_us-gaap_RelatedPartyMember_bd3d9ae4-50fe-40dd-b95e-c5aa3e34f744" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_9b7b8030-f417-4c5f-9b19-45010e191107" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_15c91020-2216-46f7-b0d8-5298aaa82f81" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_9b7b8030-f417-4c5f-9b19-45010e191107" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_9b7b8030-f417-4c5f-9b19-45010e191107_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_9b7b8030-f417-4c5f-9b19-45010e191107" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_9b7b8030-f417-4c5f-9b19-45010e191107_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_9b7b8030-f417-4c5f-9b19-45010e191107" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashPartnersLtdMember_511892e9-db1d-4a05-ac6c-e93a5c185b1a" xlink:href="wdc-20240628.xsd#wdc_FlashPartnersLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:to="loc_wdc_FlashPartnersLtdMember_511892e9-db1d-4a05-ac6c-e93a5c185b1a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashAllianceLtdMember_30f83d3d-9434-42ca-8c97-d1e364889e99" xlink:href="wdc-20240628.xsd#wdc_FlashAllianceLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:to="loc_wdc_FlashAllianceLtdMember_30f83d3d-9434-42ca-8c97-d1e364889e99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashForwardLtdMember_a56b2fac-c096-4eca-99eb-b422180dec7a" xlink:href="wdc-20240628.xsd#wdc_FlashForwardLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:to="loc_wdc_FlashForwardLtdMember_a56b2fac-c096-4eca-99eb-b422180dec7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_4c3c4d89-36ab-4714-8bed-0f7bb0e15c29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_6121372c-c858-4923-b2d2-447779a69125" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_4c3c4d89-36ab-4714-8bed-0f7bb0e15c29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_c291d4b4-184e-4dd7-91db-1b8b65b7d525" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_18c067cc-deb7-4dbf-b61a-a800205f2108" xlink:to="loc_us-gaap_NotesReceivableNet_c291d4b4-184e-4dd7-91db-1b8b65b7d525" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_18e97755-3504-4cfd-b674-55e647a64eda" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_18c067cc-deb7-4dbf-b61a-a800205f2108" xlink:to="loc_us-gaap_Investments_18e97755-3504-4cfd-b674-55e647a64eda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_cd4341e6-4b04-4e53-b2b2-18ffd9b5ea4b" xlink:href="wdc-20240628.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_18c067cc-deb7-4dbf-b61a-a800205f2108" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_cd4341e6-4b04-4e53-b2b2-18ffd9b5ea4b" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_15753087-d84a-4e79-a7fe-3d109eca4c50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_771fc330-2b33-48a7-b197-1c9d64472e51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_15753087-d84a-4e79-a7fe-3d109eca4c50" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_771fc330-2b33-48a7-b197-1c9d64472e51" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BalanceSheetInformationAxis_9d311cb9-696d-40c1-9dce-016dcc569da0" xlink:href="wdc-20240628.xsd#wdc_BalanceSheetInformationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_771fc330-2b33-48a7-b197-1c9d64472e51" xlink:to="loc_wdc_BalanceSheetInformationAxis_9d311cb9-696d-40c1-9dce-016dcc569da0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_9d311cb9-696d-40c1-9dce-016dcc569da0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_9d311cb9-696d-40c1-9dce-016dcc569da0" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9d311cb9-696d-40c1-9dce-016dcc569da0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_9d311cb9-696d-40c1-9dce-016dcc569da0" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableMember_bfce89f1-450b-4978-9735-b413f069f57a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:to="loc_us-gaap_NotesReceivableMember_bfce89f1-450b-4978-9735-b413f069f57a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentsMember_5a923b2c-d23e-44e1-b6ab-1557254888a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:to="loc_us-gaap_EquityMethodInvestmentsMember_5a923b2c-d23e-44e1-b6ab-1557254888a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_e9f38241-afda-4d2b-88b5-f59765de1ea0" xlink:href="wdc-20240628.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_e9f38241-afda-4d2b-88b5-f59765de1ea0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_0642aa9b-e169-4d2d-ba13-4c0e482f1b8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_a1084086-2dc1-46bd-bc64-2434df1ed5a4" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_0642aa9b-e169-4d2d-ba13-4c0e482f1b8d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_3122a422-6e4f-48de-aba1-3d4adc2e2f86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_771fc330-2b33-48a7-b197-1c9d64472e51" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_3122a422-6e4f-48de-aba1-3d4adc2e2f86" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_3122a422-6e4f-48de-aba1-3d4adc2e2f86_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_3122a422-6e4f-48de-aba1-3d4adc2e2f86" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_3122a422-6e4f-48de-aba1-3d4adc2e2f86_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_8d706d38-a3cd-4b3b-ae28-1aa72412ad18" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_3122a422-6e4f-48de-aba1-3d4adc2e2f86" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_8d706d38-a3cd-4b3b-ae28-1aa72412ad18" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_63f7e534-076d-4d2d-9173-4d7b6f1b1cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_8d706d38-a3cd-4b3b-ae28-1aa72412ad18" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_63f7e534-076d-4d2d-9173-4d7b6f1b1cb3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_7ca2c888-f4db-43a7-b93d-879b4b1a7421" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_15753087-d84a-4e79-a7fe-3d109eca4c50" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_7ca2c888-f4db-43a7-b93d-879b4b1a7421" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_faa25539-ab79-49ef-8d34-c8aca1625b8c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_15753087-d84a-4e79-a7fe-3d109eca4c50" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_faa25539-ab79-49ef-8d34-c8aca1625b8c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_9f29ed6d-41a9-41e2-bc7e-3481f09aae1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_15753087-d84a-4e79-a7fe-3d109eca4c50" xlink:to="loc_us-gaap_InventoryGross_9f29ed6d-41a9-41e2-bc7e-3481f09aae1f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_7c2de5df-a89f-4c9b-8e23-3799e2a432d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_a02db95b-f4aa-499a-a4d1-4529d33ee76a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_7c2de5df-a89f-4c9b-8e23-3799e2a432d5" xlink:to="loc_us-gaap_LossContingenciesTable_a02db95b-f4aa-499a-a4d1-4529d33ee76a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BalanceSheetInformationAxis_4818f0fd-0897-4ad1-a9b2-63158b4fb179" xlink:href="wdc-20240628.xsd#wdc_BalanceSheetInformationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_a02db95b-f4aa-499a-a4d1-4529d33ee76a" xlink:to="loc_wdc_BalanceSheetInformationAxis_4818f0fd-0897-4ad1-a9b2-63158b4fb179" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4818f0fd-0897-4ad1-a9b2-63158b4fb179_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_BalanceSheetInformationAxis_4818f0fd-0897-4ad1-a9b2-63158b4fb179" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4818f0fd-0897-4ad1-a9b2-63158b4fb179_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_21086043-2c32-4fbc-a105-6ba26896147a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_BalanceSheetInformationAxis_4818f0fd-0897-4ad1-a9b2-63158b4fb179" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_21086043-2c32-4fbc-a105-6ba26896147a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_5175a574-e88a-4c94-b2f6-10beed55f96b" xlink:href="wdc-20240628.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_21086043-2c32-4fbc-a105-6ba26896147a" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_5175a574-e88a-4c94-b2f6-10beed55f96b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_44296104-93bc-4f0e-9c9e-e41062a39811" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_a02db95b-f4aa-499a-a4d1-4529d33ee76a" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_44296104-93bc-4f0e-9c9e-e41062a39811" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_44296104-93bc-4f0e-9c9e-e41062a39811_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_44296104-93bc-4f0e-9c9e-e41062a39811" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_44296104-93bc-4f0e-9c9e-e41062a39811_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_5241d4e0-97f9-449c-bd2f-ed37e3749bbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_44296104-93bc-4f0e-9c9e-e41062a39811" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_5241d4e0-97f9-449c-bd2f-ed37e3749bbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_4da856c6-4c38-4e4b-aa95-1f1478e2f00b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_5241d4e0-97f9-449c-bd2f-ed37e3749bbe" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_4da856c6-4c38-4e4b-aa95-1f1478e2f00b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_df0062fa-a05e-4f97-8010-f1f6c7465896" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7c2de5df-a89f-4c9b-8e23-3799e2a432d5" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_df0062fa-a05e-4f97-8010-f1f6c7465896" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_8056fb68-63b2-4ac4-a2e3-77450927d3b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_8056fb68-63b2-4ac4-a2e3-77450927d3b2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3a1f6c65-ed82-4f1a-aa23-64f73cbab130" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_8056fb68-63b2-4ac4-a2e3-77450927d3b2" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3a1f6c65-ed82-4f1a-aa23-64f73cbab130" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_3a1f6c65-ed82-4f1a-aa23-64f73cbab130_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3a1f6c65-ed82-4f1a-aa23-64f73cbab130" xlink:to="loc_us-gaap_RelatedPartyDomain_3a1f6c65-ed82-4f1a-aa23-64f73cbab130_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_cf34cfc1-c2a8-4c6d-8cfd-40b475b5067b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_3a1f6c65-ed82-4f1a-aa23-64f73cbab130" xlink:to="loc_us-gaap_RelatedPartyDomain_cf34cfc1-c2a8-4c6d-8cfd-40b475b5067b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_c93455e1-c269-4145-a95c-f8d2bdf858a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_cf34cfc1-c2a8-4c6d-8cfd-40b475b5067b" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_c93455e1-c269-4145-a95c-f8d2bdf858a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_054a2b6b-f463-417d-b2c4-f79a279bcfa0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_8056fb68-63b2-4ac4-a2e3-77450927d3b2" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_054a2b6b-f463-417d-b2c4-f79a279bcfa0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_054a2b6b-f463-417d-b2c4-f79a279bcfa0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_054a2b6b-f463-417d-b2c4-f79a279bcfa0" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_054a2b6b-f463-417d-b2c4-f79a279bcfa0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_753bd1e9-aa7f-4333-885a-0b6afc4d7e84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_054a2b6b-f463-417d-b2c4-f79a279bcfa0" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_753bd1e9-aa7f-4333-885a-0b6afc4d7e84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentOfPrincipalAmortizationMember_a4d57304-c342-4263-bbfa-700deb5386a4" xlink:href="wdc-20240628.xsd#wdc_PaymentOfPrincipalAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_753bd1e9-aa7f-4333-885a-0b6afc4d7e84" xlink:to="loc_wdc_PaymentOfPrincipalAmortizationMember_a4d57304-c342-4263-bbfa-700deb5386a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseOptionExercisePriceMember_2d2cb156-f2ee-4c4e-b294-4004136ebbc4" xlink:href="wdc-20240628.xsd#wdc_PurchaseOptionExercisePriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_753bd1e9-aa7f-4333-885a-0b6afc4d7e84" xlink:to="loc_wdc_PurchaseOptionExercisePriceMember_2d2cb156-f2ee-4c4e-b294-4004136ebbc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_8267e9d3-1ace-43e5-9ece-3dfdd6e87137" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_8267e9d3-1ace-43e5-9ece-3dfdd6e87137" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_237b5e0d-b647-443a-a4ae-454942d6bc3e" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_237b5e0d-b647-443a-a4ae-454942d6bc3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_0343486e-bff2-48d2-8d15-f36b1b407a17" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_0343486e-bff2-48d2-8d15-f36b1b407a17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63884c33-4a8b-4232-9b08-862b67c0a795" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63884c33-4a8b-4232-9b08-862b67c0a795" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter_4e61b7bd-8bcc-4dca-98ed-a3034bfdb7b2" xlink:href="wdc-20240628.xsd#wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter_4e61b7bd-8bcc-4dca-98ed-a3034bfdb7b2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_d9592079-cb2a-4135-979c-67d2c1947aa0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_36c19a05-b632-487d-bb8a-d03e50b00c26" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_d9592079-cb2a-4135-979c-67d2c1947aa0" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#LeasesandOtherCommitmentsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleLeasebackTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionTable_7fce817b-4fce-4595-8622-2ace576fdbf7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleLeasebackTransactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_us-gaap_SaleLeasebackTransactionTable_7fce817b-4fce-4595-8622-2ace576fdbf7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermAxis_1950ae2e-58fb-40e4-aac6-bbd676b3842d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseContractualTermAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_7fce817b-4fce-4595-8622-2ace576fdbf7" xlink:to="loc_us-gaap_LeaseContractualTermAxis_1950ae2e-58fb-40e4-aac6-bbd676b3842d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_1950ae2e-58fb-40e4-aac6-bbd676b3842d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LeaseContractualTermAxis_1950ae2e-58fb-40e4-aac6-bbd676b3842d" xlink:to="loc_us-gaap_LeaseContractualTermDomain_1950ae2e-58fb-40e4-aac6-bbd676b3842d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_1e7c3b0e-389c-464a-853d-a0bbef0a027a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LeaseContractualTermAxis_1950ae2e-58fb-40e4-aac6-bbd676b3842d" xlink:to="loc_us-gaap_LeaseContractualTermDomain_1e7c3b0e-389c-464a-853d-a0bbef0a027a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThroughJanuary12039Member_0536e2ea-d833-434b-88e6-1ae47b4fba37" xlink:href="wdc-20240628.xsd#wdc_ThroughJanuary12039Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_1e7c3b0e-389c-464a-853d-a0bbef0a027a" xlink:to="loc_wdc_ThroughJanuary12039Member_0536e2ea-d833-434b-88e6-1ae47b4fba37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThroughDecember2057Member_587ed0e7-5583-4c6c-af23-c340956c02fb" xlink:href="wdc-20240628.xsd#wdc_ThroughDecember2057Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_1e7c3b0e-389c-464a-853d-a0bbef0a027a" xlink:to="loc_wdc_ThroughDecember2057Member_587ed0e7-5583-4c6c-af23-c340956c02fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionNetCashProceeds_8abed4bf-2d42-4a25-ac95-77c404e4d6a8" xlink:href="wdc-20240628.xsd#wdc_SaleLeasebackTransactionNetCashProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_wdc_SaleLeasebackTransactionNetCashProceeds_8abed4bf-2d42-4a25-ac95-77c404e4d6a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f39828ac-d989-4f72-992d-0f6ea3cbb269" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f39828ac-d989-4f72-992d-0f6ea3cbb269" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionAnnualLeaseRate_4813d54d-0e7f-4ee7-89c5-3c19bacb4ce5" xlink:href="wdc-20240628.xsd#wdc_SaleLeasebackTransactionAnnualLeaseRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_wdc_SaleLeasebackTransactionAnnualLeaseRate_4813d54d-0e7f-4ee7-89c5-3c19bacb4ce5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionIncreasePercentage_4f066bc8-0bf3-4f19-aebc-2fcec919bd36" xlink:href="wdc-20240628.xsd#wdc_SaleLeasebackTransactionIncreasePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_wdc_SaleLeasebackTransactionIncreasePercentage_4f066bc8-0bf3-4f19-aebc-2fcec919bd36" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionNumberOfRenewalOptions_f66ba32a-7474-4094-b9cc-291ea8009f6c" xlink:href="wdc-20240628.xsd#wdc_SaleLeasebackTransactionNumberOfRenewalOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_wdc_SaleLeasebackTransactionNumberOfRenewalOptions_f66ba32a-7474-4094-b9cc-291ea8009f6c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionRenewalOptionsTerm_47ecbc90-aef8-48bd-98f6-f28d8d41df93" xlink:href="wdc-20240628.xsd#wdc_SaleLeasebackTransactionRenewalOptionsTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_1cabc529-dbb3-4e48-9318-1702bf71a1dc" xlink:to="loc_wdc_SaleLeasebackTransactionRenewalOptionsTerm_47ecbc90-aef8-48bd-98f6-f28d8d41df93" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/WesternDigitalCorporation401kPlanAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#WesternDigitalCorporation401kPlanAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/WesternDigitalCorporation401kPlanAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_df6d6962-ceff-487c-afbf-6c9fcb3f8c49" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_df6d6962-ceff-487c-afbf-6c9fcb3f8c49" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxScenarioAxis_a170ca4e-8dc7-477e-a9f8-f266059b7617" xlink:href="wdc-20240628.xsd#wdc_TaxScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_df6d6962-ceff-487c-afbf-6c9fcb3f8c49" xlink:to="loc_wdc_TaxScenarioAxis_a170ca4e-8dc7-477e-a9f8-f266059b7617" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxScenarioDomain_a170ca4e-8dc7-477e-a9f8-f266059b7617_default" xlink:href="wdc-20240628.xsd#wdc_TaxScenarioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_TaxScenarioAxis_a170ca4e-8dc7-477e-a9f8-f266059b7617" xlink:to="loc_wdc_TaxScenarioDomain_a170ca4e-8dc7-477e-a9f8-f266059b7617_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxScenarioDomain_69326c5b-a127-47f0-85ad-7e5af14b1dd1" xlink:href="wdc-20240628.xsd#wdc_TaxScenarioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_TaxScenarioAxis_a170ca4e-8dc7-477e-a9f8-f266059b7617" xlink:to="loc_wdc_TaxScenarioDomain_69326c5b-a127-47f0-85ad-7e5af14b1dd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreTaxMember_15126ed6-0da4-4a75-a91f-e484622b2944" xlink:href="wdc-20240628.xsd#wdc_PreTaxMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_TaxScenarioDomain_69326c5b-a127-47f0-85ad-7e5af14b1dd1" xlink:to="loc_wdc_PreTaxMember_15126ed6-0da4-4a75-a91f-e484622b2944" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreTaxCatchUpMember_b7a26460-f19a-4ded-8cef-6e69862c00d8" xlink:href="wdc-20240628.xsd#wdc_PreTaxCatchUpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_TaxScenarioDomain_69326c5b-a127-47f0-85ad-7e5af14b1dd1" xlink:to="loc_wdc_PreTaxCatchUpMember_b7a26460-f19a-4ded-8cef-6e69862c00d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_8f0bea1e-0cb8-4366-8b08-edacef856af4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:to="loc_us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent_8f0bea1e-0cb8-4366-8b08-edacef856af4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_5278b36c-37a3-4a7b-a522-66f99e851a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch_5278b36c-37a3-4a7b-a522-66f99e851a2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_7d44ee3d-f746-4ec1-8d16-48352486ff94" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent_7d44ee3d-f746-4ec1-8d16-48352486ff94" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_3cf4f1c6-e1df-4286-9901-3b85de2a73e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_eb50398e-3f8e-4cd6-8365-f2445ff92c2a" xlink:to="loc_us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount_3cf4f1c6-e1df-4286-9901-3b85de2a73e2" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStock2021LongTermIncentivePlanandESPPDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStock2021LongTermIncentivePlanandESPPDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStock2021LongTermIncentivePlanandESPPDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ae766e54-62e6-4872-8136-93e4f45cb771" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ae766e54-62e6-4872-8136-93e4f45cb771" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ae766e54-62e6-4872-8136-93e4f45cb771" xlink:to="loc_srt_RangeAxis_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c" xlink:to="loc_srt_RangeMember_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c78f4ef6-d645-4e3b-8437-fbf24822f852" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_5c9bd9a3-ce03-49fc-8b6d-f264c3770c4c" xlink:to="loc_srt_RangeMember_c78f4ef6-d645-4e3b-8437-fbf24822f852" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_a6ae2072-4c61-4e44-86a7-9abea150319f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c78f4ef6-d645-4e3b-8437-fbf24822f852" xlink:to="loc_srt_MinimumMember_a6ae2072-4c61-4e44-86a7-9abea150319f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e9545242-4466-40c9-927d-479cfa5c6723" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c78f4ef6-d645-4e3b-8437-fbf24822f852" xlink:to="loc_srt_MaximumMember_e9545242-4466-40c9-927d-479cfa5c6723" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ae766e54-62e6-4872-8136-93e4f45cb771" xlink:to="loc_us-gaap_AwardTypeAxis_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_675b7281-c2b0-4e3f-965d-8fb6256b23e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_54b3f1c2-bc77-4e8d-94d9-34a18a053f2b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_675b7281-c2b0-4e3f-965d-8fb6256b23e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_a21b876d-d154-45a1-bbd2-2a40a6167940" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_675b7281-c2b0-4e3f-965d-8fb6256b23e6" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_a21b876d-d154-45a1-bbd2-2a40a6167940" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_d873a37f-1b1c-4fe2-ab92-105ce0be0b82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_675b7281-c2b0-4e3f-965d-8fb6256b23e6" xlink:to="loc_us-gaap_EmployeeStockMember_d873a37f-1b1c-4fe2-ab92-105ce0be0b82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_aa7ead39-5de8-455e-bffe-cafa649e9da4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ae766e54-62e6-4872-8136-93e4f45cb771" xlink:to="loc_us-gaap_PlanNameAxis_aa7ead39-5de8-455e-bffe-cafa649e9da4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_aa7ead39-5de8-455e-bffe-cafa649e9da4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_aa7ead39-5de8-455e-bffe-cafa649e9da4" xlink:to="loc_us-gaap_PlanNameDomain_aa7ead39-5de8-455e-bffe-cafa649e9da4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_90c2ba74-029d-4a45-9aab-0d37fa691071" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_aa7ead39-5de8-455e-bffe-cafa649e9da4" xlink:to="loc_us-gaap_PlanNameDomain_90c2ba74-029d-4a45-9aab-0d37fa691071" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_A2021LongTermIncentivePlanMember_d5081225-28a3-426f-a75f-a624441e82f9" xlink:href="wdc-20240628.xsd#wdc_A2021LongTermIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_90c2ba74-029d-4a45-9aab-0d37fa691071" xlink:to="loc_wdc_A2021LongTermIncentivePlanMember_d5081225-28a3-426f-a75f-a624441e82f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_8d8fad84-c466-4c9f-9bdf-38acc9143fb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_8d8fad84-c466-4c9f-9bdf-38acc9143fb4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_12f6d2e6-8ae9-4c6e-85b5-bad191d4621e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_12f6d2e6-8ae9-4c6e-85b5-bad191d4621e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_df8bc7e2-d06e-4ef4-b64b-66f906fed6e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_df8bc7e2-d06e-4ef4-b64b-66f906fed6e5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_cad791be-c0fe-476b-9439-ec03103077a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_cad791be-c0fe-476b-9439-ec03103077a8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_e2bceec7-a403-406d-83d0-f638a9aa81f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_85e3336d-6e2d-4b25-8240-e81028eb5786" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_85e3336d-6e2d-4b25-8240-e81028eb5786" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_fd316808-a7f1-4180-96f2-28c6ffac951b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_fd316808-a7f1-4180-96f2-28c6ffac951b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfOfferingPeriods_c71007a9-2550-40ef-a55e-1b56122b76d3" xlink:href="wdc-20240628.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfOfferingPeriods"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfOfferingPeriods_c71007a9-2550-40ef-a55e-1b56122b76d3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardConsecutiveOfferingPeriod_4d7318c0-1569-4526-816b-1e56b25fe698" xlink:href="wdc-20240628.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardConsecutiveOfferingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardConsecutiveOfferingPeriod_4d7318c0-1569-4526-816b-1e56b25fe698" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfPurchasePeriods_a7f48a74-e99a-4433-922d-f11715df4ac6" xlink:href="wdc-20240628.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfPurchasePeriods"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfPurchasePeriods_a7f48a74-e99a-4433-922d-f11715df4ac6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_c1adb462-ce07-4dd8-8210-09a855db7e71" xlink:href="wdc-20240628.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod_c1adb462-ce07-4dd8-8210-09a855db7e71" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_521f42ee-7d5b-4a6f-87c6-7eb53f19a192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_521f42ee-7d5b-4a6f-87c6-7eb53f19a192" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_b9b36ebb-dcc1-40d5-b7e9-1c64f25c86b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_48ac72d9-c06a-4a6e-9477-6d04cbb41948" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_b9b36ebb-dcc1-40d5-b7e9-1c64f25c86b3" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_299830bc-6565-4032-8528-739cf6df383a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6e680a14-7d28-460c-9b1d-73e835a58aff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_299830bc-6565-4032-8528-739cf6df383a" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6e680a14-7d28-460c-9b1d-73e835a58aff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_3ddae5f0-0097-464d-8f82-2dd993e69e65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6e680a14-7d28-460c-9b1d-73e835a58aff" xlink:to="loc_us-gaap_AwardTypeAxis_3ddae5f0-0097-464d-8f82-2dd993e69e65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3ddae5f0-0097-464d-8f82-2dd993e69e65_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3ddae5f0-0097-464d-8f82-2dd993e69e65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3ddae5f0-0097-464d-8f82-2dd993e69e65_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3489741c-3d47-4e96-b365-5081f46d44d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3ddae5f0-0097-464d-8f82-2dd993e69e65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3489741c-3d47-4e96-b365-5081f46d44d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_dba58e4d-8222-4252-b3f2-f18742d34896" xlink:href="wdc-20240628.xsd#wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3489741c-3d47-4e96-b365-5081f46d44d4" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_dba58e4d-8222-4252-b3f2-f18742d34896" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_0cccb8fa-ca92-4e5b-91b3-5eae1cdcfc3c" xlink:href="wdc-20240628.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3489741c-3d47-4e96-b365-5081f46d44d4" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_0cccb8fa-ca92-4e5b-91b3-5eae1cdcfc3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_18dbed01-b55a-47b7-ae41-ef7fbeb91902" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6e680a14-7d28-460c-9b1d-73e835a58aff" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_18dbed01-b55a-47b7-ae41-ef7fbeb91902" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_18dbed01-b55a-47b7-ae41-ef7fbeb91902_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_18dbed01-b55a-47b7-ae41-ef7fbeb91902" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_18dbed01-b55a-47b7-ae41-ef7fbeb91902_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_4671ecb6-17ec-4b76-aa40-2e404c120472" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_18dbed01-b55a-47b7-ae41-ef7fbeb91902" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_4671ecb6-17ec-4b76-aa40-2e404c120472" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_ae66419d-7a57-441c-bdd5-448504db3bf6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_4671ecb6-17ec-4b76-aa40-2e404c120472" xlink:to="loc_us-gaap_CostOfSalesMember_ae66419d-7a57-441c-bdd5-448504db3bf6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_b08dfe30-ddc5-4b07-a32e-125078bf2f3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_4671ecb6-17ec-4b76-aa40-2e404c120472" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_b08dfe30-ddc5-4b07-a32e-125078bf2f3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_779c8d20-33ec-4702-8a86-e43d2a8cfb0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_4671ecb6-17ec-4b76-aa40-2e404c120472" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_779c8d20-33ec-4702-8a86-e43d2a8cfb0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_7ce07f91-2632-4009-b141-a7173d75e6f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_299830bc-6565-4032-8528-739cf6df383a" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_7ce07f91-2632-4009-b141-a7173d75e6f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_cc0bdc83-afe0-46d0-b8ac-5e85468c1812" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_299830bc-6565-4032-8528-739cf6df383a" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_cc0bdc83-afe0-46d0-b8ac-5e85468c1812" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_637f7280-f4c7-499a-86ff-00fd8fa8c6d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_299830bc-6565-4032-8528-739cf6df383a" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_637f7280-f4c7-499a-86ff-00fd8fa8c6d5" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_d11e22d9-f742-4f5b-bee0-957ea2ea867d" xlink:href="wdc-20240628.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_115d6dce-cd2b-46a1-b467-1f0ae1e6d10a" xlink:href="wdc-20240628.xsd#wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_d11e22d9-f742-4f5b-bee0-957ea2ea867d" xlink:to="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_115d6dce-cd2b-46a1-b467-1f0ae1e6d10a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_1d167b65-e5f4-4439-9b3c-ac90cf16ea84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable_115d6dce-cd2b-46a1-b467-1f0ae1e6d10a" xlink:to="loc_us-gaap_AwardTypeAxis_1d167b65-e5f4-4439-9b3c-ac90cf16ea84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1d167b65-e5f4-4439-9b3c-ac90cf16ea84_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1d167b65-e5f4-4439-9b3c-ac90cf16ea84" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1d167b65-e5f4-4439-9b3c-ac90cf16ea84_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_423009de-8436-4688-975a-852137b85c27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1d167b65-e5f4-4439-9b3c-ac90cf16ea84" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_423009de-8436-4688-975a-852137b85c27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_665bb2ac-0957-4d7e-bb72-beea6ad910a4" xlink:href="wdc-20240628.xsd#wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_423009de-8436-4688-975a-852137b85c27" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_665bb2ac-0957-4d7e-bb72-beea6ad910a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_f3164c15-fc36-4530-89d7-35d9e58c9e72" xlink:href="wdc-20240628.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_423009de-8436-4688-975a-852137b85c27" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_f3164c15-fc36-4530-89d7-35d9e58c9e72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_7686c320-c336-4453-8c8f-1bc8eb47a866" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_d11e22d9-f742-4f5b-bee0-957ea2ea867d" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_7686c320-c336-4453-8c8f-1bc8eb47a866" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_e1be2fef-0ad2-426c-ae21-680253f06430" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems_d11e22d9-f742-4f5b-bee0-957ea2ea867d" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_e1be2fef-0ad2-426c-ae21-680253f06430" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4f83568b-a695-4bf8-8bc3-90295eef3453" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4664a3de-8520-4927-a3ff-e75458855aac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4f83568b-a695-4bf8-8bc3-90295eef3453" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4664a3de-8520-4927-a3ff-e75458855aac" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_fde4c7fc-8357-4251-86f0-cb5985e9855d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_4664a3de-8520-4927-a3ff-e75458855aac" xlink:to="loc_us-gaap_AwardTypeAxis_fde4c7fc-8357-4251-86f0-cb5985e9855d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fde4c7fc-8357-4251-86f0-cb5985e9855d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_fde4c7fc-8357-4251-86f0-cb5985e9855d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fde4c7fc-8357-4251-86f0-cb5985e9855d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6476c0fc-8fb3-4c9a-9723-bdfba849a3c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_fde4c7fc-8357-4251-86f0-cb5985e9855d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6476c0fc-8fb3-4c9a-9723-bdfba849a3c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_3d12cc6d-63a8-4811-b2c3-1c9ae0373d20" xlink:href="wdc-20240628.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_6476c0fc-8fb3-4c9a-9723-bdfba849a3c5" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_3d12cc6d-63a8-4811-b2c3-1c9ae0373d20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4f83568b-a695-4bf8-8bc3-90295eef3453" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8efcfe6a-c6da-4100-ae87-ecd2c4fed2e1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_8efcfe6a-c6da-4100-ae87-ecd2c4fed2e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_e210dfc0-426a-4720-86e5-9be4df477801" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_e210dfc0-426a-4720-86e5-9be4df477801" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_f4286bbc-a3f5-440d-abe1-fd7efdd1e48f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_f4286bbc-a3f5-440d-abe1-fd7efdd1e48f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_73bbc9ac-aeff-42a9-8093-3c9ca0c8681c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_41628989-789f-491f-938a-5c8b4e39052c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_73bbc9ac-aeff-42a9-8093-3c9ca0c8681c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_23bd67b2-1b1b-4de7-84f0-95dfd784457d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4f83568b-a695-4bf8-8bc3-90295eef3453" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_3556bfca-aaea-46cf-837c-35b511cfee79" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_3556bfca-aaea-46cf-837c-35b511cfee79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_d28e3404-3a79-4c65-8f79-8c9eb7d0d1d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_d28e3404-3a79-4c65-8f79-8c9eb7d0d1d5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_1ed5f83f-4f32-41e8-8535-37499a3f2f45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_1ed5f83f-4f32-41e8-8535-37499a3f2f45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_f98b67d7-c9eb-4bfd-9fdf-853981b0f9f2" xlink:href="wdc-20240628.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_69b54562-574d-4425-a9d3-0d2ff1a395de" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_f98b67d7-c9eb-4bfd-9fdf-853981b0f9f2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_2257553f-d98b-4230-ac05-5b775264bd7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_2ab41000-a85f-40ef-af9c-8bc847e844e2" xlink:href="wdc-20240628.xsd#wdc_AggregateValueOfRestrictedStockAwardsVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4f83568b-a695-4bf8-8bc3-90295eef3453" xlink:to="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_2ab41000-a85f-40ef-af9c-8bc847e844e2" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5bf5f026-fb2b-4c1b-a322-7601b6cb5709" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5bf5f026-fb2b-4c1b-a322-7601b6cb5709" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_5637430a-2983-43ee-bf6a-9290bd5ffcb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5bf5f026-fb2b-4c1b-a322-7601b6cb5709" xlink:to="loc_us-gaap_AwardTypeAxis_5637430a-2983-43ee-bf6a-9290bd5ffcb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5637430a-2983-43ee-bf6a-9290bd5ffcb4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5637430a-2983-43ee-bf6a-9290bd5ffcb4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5637430a-2983-43ee-bf6a-9290bd5ffcb4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_32527d97-1251-4010-a9f6-3570cd05f6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5637430a-2983-43ee-bf6a-9290bd5ffcb4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_32527d97-1251-4010-a9f6-3570cd05f6d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_b5591cec-753e-4e0c-a6fc-42001aaaf457" xlink:href="wdc-20240628.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_32527d97-1251-4010-a9f6-3570cd05f6d1" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_b5591cec-753e-4e0c-a6fc-42001aaaf457" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_c9dfa6cd-63e0-4aa4-9892-010562c222b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_c9dfa6cd-63e0-4aa4-9892-010562c222b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_f6471132-fba9-4580-8d6e-9786ffd5f222" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_f6471132-fba9-4580-8d6e-9786ffd5f222" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_06f354b4-93c1-41c6-aeba-20434ee387fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_06f354b4-93c1-41c6-aeba-20434ee387fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_4a0af24f-2bcf-4e63-aeeb-965144744d88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_4a0af24f-2bcf-4e63-aeeb-965144744d88" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_a21b0df0-b635-4fd5-9fbc-1adae9ccf8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_2bd70ca2-0416-420a-997a-4b8a543bd8ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_a21b0df0-b635-4fd5-9fbc-1adae9ccf8c8" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_833d86f0-36b8-4203-90be-16ac858813bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:to="loc_us-gaap_StatementClassOfStockAxis_833d86f0-36b8-4203-90be-16ac858813bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_833d86f0-36b8-4203-90be-16ac858813bf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_833d86f0-36b8-4203-90be-16ac858813bf" xlink:to="loc_us-gaap_ClassOfStockDomain_833d86f0-36b8-4203-90be-16ac858813bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_59753eae-4e5c-440b-ad1a-60795988bc45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_833d86f0-36b8-4203-90be-16ac858813bf" xlink:to="loc_us-gaap_ClassOfStockDomain_59753eae-4e5c-440b-ad1a-60795988bc45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_515e2afc-87f0-4552-b6be-d906b6e8d45f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_59753eae-4e5c-440b-ad1a-60795988bc45" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_515e2afc-87f0-4552-b6be-d906b6e8d45f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertiblePreferredStockMember_1db3c4fc-9bfd-4398-9a89-531a05007613" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertiblePreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_59753eae-4e5c-440b-ad1a-60795988bc45" xlink:to="loc_us-gaap_ConvertiblePreferredStockMember_1db3c4fc-9bfd-4398-9a89-531a05007613" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_1721da29-0368-489e-b443-8f859be20031" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_1721da29-0368-489e-b443-8f859be20031" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_1721da29-0368-489e-b443-8f859be20031_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_1721da29-0368-489e-b443-8f859be20031" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_1721da29-0368-489e-b443-8f859be20031_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_96ff77f6-20bd-44b0-97f3-d58cad0cc3cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_1721da29-0368-489e-b443-8f859be20031" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_96ff77f6-20bd-44b0-97f3-d58cad0cc3cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrivatePlacementMember_4d44a721-1418-4a3a-a8bd-d69d34db2a25" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrivatePlacementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_96ff77f6-20bd-44b0-97f3-d58cad0cc3cd" xlink:to="loc_us-gaap_PrivatePlacementMember_4d44a721-1418-4a3a-a8bd-d69d34db2a25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:to="loc_srt_RangeAxis_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff" xlink:to="loc_srt_RangeMember_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b19b264a-f95c-40b6-a470-a6c42c88429b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_8f4ebbf0-35b0-42e7-bda5-1d0c752e33ff" xlink:to="loc_srt_RangeMember_b19b264a-f95c-40b6-a470-a6c42c88429b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_51b9e92b-eb69-403d-a252-6b051605cd46" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b19b264a-f95c-40b6-a470-a6c42c88429b" xlink:to="loc_srt_MaximumMember_51b9e92b-eb69-403d-a252-6b051605cd46" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_42085b2c-cabd-40d9-bd38-b2bcabefb5b4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b19b264a-f95c-40b6-a470-a6c42c88429b" xlink:to="loc_srt_MinimumMember_42085b2c-cabd-40d9-bd38-b2bcabefb5b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateAxis_59867e78-4043-49a2-bf27-da3778f94235" xlink:href="wdc-20240628.xsd#wdc_DividendRateDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:to="loc_wdc_DividendRateDateAxis_59867e78-4043-49a2-bf27-da3778f94235" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateDomain_59867e78-4043-49a2-bf27-da3778f94235_default" xlink:href="wdc-20240628.xsd#wdc_DividendRateDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_DividendRateDateAxis_59867e78-4043-49a2-bf27-da3778f94235" xlink:to="loc_wdc_DividendRateDateDomain_59867e78-4043-49a2-bf27-da3778f94235_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateDomain_dccd32c4-2c75-4767-b0d6-88c8a2f07273" xlink:href="wdc-20240628.xsd#wdc_DividendRateDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_DividendRateDateAxis_59867e78-4043-49a2-bf27-da3778f94235" xlink:to="loc_wdc_DividendRateDateDomain_dccd32c4-2c75-4767-b0d6-88c8a2f07273" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_January312030Member_1954666b-7aae-485d-bd7b-f7fceab69ae6" xlink:href="wdc-20240628.xsd#wdc_January312030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DividendRateDateDomain_dccd32c4-2c75-4767-b0d6-88c8a2f07273" xlink:to="loc_wdc_January312030Member_1954666b-7aae-485d-bd7b-f7fceab69ae6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_January312033Member_429cd75e-53ab-41ad-a027-889b4856102a" xlink:href="wdc-20240628.xsd#wdc_January312033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DividendRateDateDomain_dccd32c4-2c75-4767-b0d6-88c8a2f07273" xlink:to="loc_wdc_January312033Member_429cd75e-53ab-41ad-a027-889b4856102a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_da6e2b50-d48c-46c9-a743-53da47afe704" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90ca2794-ca2c-4e83-a2a1-33db816a5f54" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_da6e2b50-d48c-46c9-a743-53da47afe704" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_da6e2b50-d48c-46c9-a743-53da47afe704_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_da6e2b50-d48c-46c9-a743-53da47afe704" xlink:to="loc_us-gaap_EquityComponentDomain_da6e2b50-d48c-46c9-a743-53da47afe704_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_af07e8d8-f9f0-41c6-baf6-9be0e88c0ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_da6e2b50-d48c-46c9-a743-53da47afe704" xlink:to="loc_us-gaap_EquityComponentDomain_af07e8d8-f9f0-41c6-baf6-9be0e88c0ae9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_842c1427-d850-4413-a9ef-3a01fa18d2bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_af07e8d8-f9f0-41c6-baf6-9be0e88c0ae9" xlink:to="loc_us-gaap_CommonStockMember_842c1427-d850-4413-a9ef-3a01fa18d2bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_15802219-33a7-4505-bfda-212237510b1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_15802219-33a7-4505-bfda-212237510b1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_bf0c5ef8-6a1a-478f-8f27-93673377f7ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_bf0c5ef8-6a1a-478f-8f27-93673377f7ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPrivatePlacement_ee6e97f6-a697-47bc-9fd7-f5fa4b814df5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfPrivatePlacement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPrivatePlacement_ee6e97f6-a697-47bc-9fd7-f5fa4b814df5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_50bc7e97-5bbb-4b6f-ae5c-a574c25fa852" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_50bc7e97-5bbb-4b6f-ae5c-a574c25fa852" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquitySharesConversionOfConvertibleSecurities_671b2021-fe97-428e-a685-3a01a86b7607" xlink:href="wdc-20240628.xsd#wdc_TemporaryEquitySharesConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_TemporaryEquitySharesConversionOfConvertibleSecurities_671b2021-fe97-428e-a685-3a01a86b7607" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_b08540b9-a726-46d4-b974-b106b884ba3a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_b08540b9-a726-46d4-b974-b106b884ba3a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_cdc6954b-b871-4b61-ba5d-591c3ebf69d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_cdc6954b-b871-4b61-ba5d-591c3ebf69d7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquityPreferredStockDividendRatePercentage_2cba3089-61f2-4ca7-ad96-f2aebb4f0f32" xlink:href="wdc-20240628.xsd#wdc_TemporaryEquityPreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_TemporaryEquityPreferredStockDividendRatePercentage_2cba3089-61f2-4ca7-ad96-f2aebb4f0f32" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockAmountOfPreferredDividendsInArrears_1a925787-79f1-4555-9908-1e008d2b2ca7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockAmountOfPreferredDividendsInArrears"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_PreferredStockAmountOfPreferredDividendsInArrears_1a925787-79f1-4555-9908-1e008d2b2ca7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeDividends_f301944a-70bf-424e-a73a-f833727d1c72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CumulativeDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_CumulativeDividends_f301944a-70bf-424e-a73a-f833727d1c72" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CumulativeDividendsUnpaidAndUndeclaredAmountIncludedInAggregateLiquidationPreference_40bff168-ec5e-42a8-bc8d-99262a046c41" xlink:href="wdc-20240628.xsd#wdc_CumulativeDividendsUnpaidAndUndeclaredAmountIncludedInAggregateLiquidationPreference"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_CumulativeDividendsUnpaidAndUndeclaredAmountIncludedInAggregateLiquidationPreference_40bff168-ec5e-42a8-bc8d-99262a046c41" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockConvertibleConversionPrice_d6063d71-5aa8-4313-826e-265e22279b53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockConvertibleConversionPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_PreferredStockConvertibleConversionPrice_d6063d71-5aa8-4313-826e-265e22279b53" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockConvertibleConversionRatio_10a9a699-9263-463b-bdd3-4ffb25aeab76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockConvertibleConversionRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_PreferredStockConvertibleConversionRatio_10a9a699-9263-463b-bdd3-4ffb25aeab76" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreferredStockConvertibleConversionPricePercentage_28712640-9c24-4e59-819d-728a93747718" xlink:href="wdc-20240628.xsd#wdc_PreferredStockConvertibleConversionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_PreferredStockConvertibleConversionPricePercentage_28712640-9c24-4e59-819d-728a93747718" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreferredStockConvertibleThresholdConsecutiveTradingDays_0b22a543-b892-4c0b-9e3e-b5278858aeec" xlink:href="wdc-20240628.xsd#wdc_PreferredStockConvertibleThresholdConsecutiveTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_PreferredStockConvertibleThresholdConsecutiveTradingDays_0b22a543-b892-4c0b-9e3e-b5278858aeec" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreferredStockOutstandingPotentialConvertible_584d83b6-d75d-4748-8ecb-50c7fe18aace" xlink:href="wdc-20240628.xsd#wdc_PreferredStockOutstandingPotentialConvertible"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_PreferredStockOutstandingPotentialConvertible_584d83b6-d75d-4748-8ecb-50c7fe18aace" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PreferredStockRedemptionAccumulatedStatedValuePercentage_e90b734c-531e-4863-bc8e-bddb071d6372" xlink:href="wdc-20240628.xsd#wdc_PreferredStockRedemptionAccumulatedStatedValuePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_wdc_PreferredStockRedemptionAccumulatedStatedValuePercentage_e90b734c-531e-4863-bc8e-bddb071d6372" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityLiquidationPreference_65de40af-bcd3-45c9-b2e0-1637470c6096" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityLiquidationPreference"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9adb7c4d-d946-423e-b0be-471f1a838423" xlink:to="loc_us-gaap_TemporaryEquityLiquidationPreference_65de40af-bcd3-45c9-b2e0-1637470c6096" xlink:type="arc" order="17"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#ShareholdersEquityandConvertiblePreferredStockStockReservedforIssuanceDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockReservedforIssuanceDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_baaea50a-7e48-432c-ab98-5486bc2ffb9e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_a97b269d-347d-4905-b8e2-ee8fb9358ab1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_baaea50a-7e48-432c-ab98-5486bc2ffb9e" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_a97b269d-347d-4905-b8e2-ee8fb9358ab1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_07189071-f319-4463-b9ab-439ce0b7e1ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_a97b269d-347d-4905-b8e2-ee8fb9358ab1" xlink:to="loc_us-gaap_AwardTypeAxis_07189071-f319-4463-b9ab-439ce0b7e1ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07189071-f319-4463-b9ab-439ce0b7e1ed_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_07189071-f319-4463-b9ab-439ce0b7e1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07189071-f319-4463-b9ab-439ce0b7e1ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_07189071-f319-4463-b9ab-439ce0b7e1ed" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_dedea4ad-81ef-4758-bcee-26fbe1d7cef1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:to="loc_us-gaap_ConvertibleDebtMember_dedea4ad-81ef-4758-bcee-26fbe1d7cef1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OutstandingAwardsAndSharesAvailableForAwardMember_9e37d867-91f1-4ef5-b95a-fdd64b9862f3" xlink:href="wdc-20240628.xsd#wdc_OutstandingAwardsAndSharesAvailableForAwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:to="loc_wdc_OutstandingAwardsAndSharesAvailableForAwardMember_9e37d867-91f1-4ef5-b95a-fdd64b9862f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertiblePreferredStockMember_0a331944-0bb8-49ce-8d16-7ad9f0429cab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertiblePreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:to="loc_us-gaap_ConvertiblePreferredStockMember_0a331944-0bb8-49ce-8d16-7ad9f0429cab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_e70bc0de-3356-4238-98a5-9415de15a214" xlink:href="wdc-20240628.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_572085c5-5e05-4eab-8790-45c3c87f9f86" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_e70bc0de-3356-4238-98a5-9415de15a214" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_4bd2855f-9ffb-4203-a3fb-de35d0ab9d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_baaea50a-7e48-432c-ab98-5486bc2ffb9e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_4bd2855f-9ffb-4203-a3fb-de35d0ab9d8c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:href="wdc-20240628.xsd#wdc_IncomeTaxDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxDisclosureTable_40f74928-cc7b-4ba8-b882-0e263ea33c4a" xlink:href="wdc-20240628.xsd#wdc_IncomeTaxDisclosureTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_wdc_IncomeTaxDisclosureTable_40f74928-cc7b-4ba8-b882-0e263ea33c4a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_d1aaf41a-2288-4a01-be7a-d7c3e816e85d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_40f74928-cc7b-4ba8-b882-0e263ea33c4a" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_d1aaf41a-2288-4a01-be7a-d7c3e816e85d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_d1aaf41a-2288-4a01-be7a-d7c3e816e85d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_d1aaf41a-2288-4a01-be7a-d7c3e816e85d" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_d1aaf41a-2288-4a01-be7a-d7c3e816e85d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_e8819e75-40ae-4d4a-a7de-8b86485ec3bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_d1aaf41a-2288-4a01-be7a-d7c3e816e85d" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_e8819e75-40ae-4d4a-a7de-8b86485ec3bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_41be003a-6bbf-4763-b81d-491b39729b3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DomesticCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_e8819e75-40ae-4d4a-a7de-8b86485ec3bf" xlink:to="loc_us-gaap_DomesticCountryMember_41be003a-6bbf-4763-b81d-491b39729b3c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_ee356624-33e4-440d-97eb-990a8dcdeba0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_e8819e75-40ae-4d4a-a7de-8b86485ec3bf" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_ee356624-33e4-440d-97eb-990a8dcdeba0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0286db55-22ba-4129-925c-b13f533d66d7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_40f74928-cc7b-4ba8-b882-0e263ea33c4a" xlink:to="loc_srt_RangeAxis_0286db55-22ba-4129-925c-b13f533d66d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0286db55-22ba-4129-925c-b13f533d66d7_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0286db55-22ba-4129-925c-b13f533d66d7" xlink:to="loc_srt_RangeMember_0286db55-22ba-4129-925c-b13f533d66d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a3f869f2-3ef1-4119-989e-df8fecdab611" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0286db55-22ba-4129-925c-b13f533d66d7" xlink:to="loc_srt_RangeMember_a3f869f2-3ef1-4119-989e-df8fecdab611" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_0f21bf7c-6877-47a5-8b5f-32edc0527654" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a3f869f2-3ef1-4119-989e-df8fecdab611" xlink:to="loc_srt_MinimumMember_0f21bf7c-6877-47a5-8b5f-32edc0527654" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_94a9e699-4e9e-4084-a1bf-f8789baba5b5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a3f869f2-3ef1-4119-989e-df8fecdab611" xlink:to="loc_srt_MaximumMember_94a9e699-4e9e-4084-a1bf-f8789baba5b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodAxis_34b687a1-8734-40c5-b237-4bc2ff2a5864" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_wdc_IncomeTaxDisclosureTable_40f74928-cc7b-4ba8-b882-0e263ea33c4a" xlink:to="loc_us-gaap_TaxPeriodAxis_34b687a1-8734-40c5-b237-4bc2ff2a5864" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_34b687a1-8734-40c5-b237-4bc2ff2a5864_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_34b687a1-8734-40c5-b237-4bc2ff2a5864" xlink:to="loc_us-gaap_TaxPeriodDomain_34b687a1-8734-40c5-b237-4bc2ff2a5864_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_5c702025-6643-4a53-ac0f-f701005e5f88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_34b687a1-8734-40c5-b237-4bc2ff2a5864" xlink:to="loc_us-gaap_TaxPeriodDomain_5c702025-6643-4a53-ac0f-f701005e5f88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2008Through2012Member_a940fa7d-15b7-4fcf-a942-da3cad956533" xlink:href="wdc-20240628.xsd#wdc_TaxYears2008Through2012Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_5c702025-6643-4a53-ac0f-f701005e5f88" xlink:to="loc_wdc_TaxYears2008Through2012Member_a940fa7d-15b7-4fcf-a942-da3cad956533" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2013Through2015Member_e268336c-c7ed-4983-bc63-c252d1ed7eee" xlink:href="wdc-20240628.xsd#wdc_TaxYears2013Through2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_5c702025-6643-4a53-ac0f-f701005e5f88" xlink:to="loc_wdc_TaxYears2013Through2015Member_e268336c-c7ed-4983-bc63-c252d1ed7eee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2008Through2015Member_f689a721-6b7b-489c-90b7-f3970acb6379" xlink:href="wdc-20240628.xsd#wdc_TaxYears2008Through2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_5c702025-6643-4a53-ac0f-f701005e5f88" xlink:to="loc_wdc_TaxYears2008Through2015Member_f689a721-6b7b-489c-90b7-f3970acb6379" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxHolidayAggregateDollarAmount_8c5bd386-3eb3-4d90-9884-14761d4d11c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxHolidayAggregateDollarAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_IncomeTaxHolidayAggregateDollarAmount_8c5bd386-3eb3-4d90-9884-14761d4d11c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxHolidayIncomeTaxBenefitsPerShare_51e4c111-858d-40d6-bb72-7de5d216d3c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxHolidayIncomeTaxBenefitsPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_IncomeTaxHolidayIncomeTaxBenefitsPerShare_51e4c111-858d-40d6-bb72-7de5d216d3c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsValuationAllowance_a15b3b13-6155-40a7-bb0a-65629e742056" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLossCarryforwardsValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_OperatingLossCarryforwardsValuationAllowance_a15b3b13-6155-40a7-bb0a-65629e742056" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardValuationAllowance_5e34d59a-6d47-4d53-bd5a-54c286056dd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_TaxCreditCarryforwardValuationAllowance_5e34d59a-6d47-4d53-bd5a-54c286056dd4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_e6fdf15c-e507-4578-b0ed-4acc239b6f0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_e6fdf15c-e507-4578-b0ed-4acc239b6f0f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_1ae8ff98-6778-4acc-b282-28ac7a883ee4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_1ae8ff98-6778-4acc-b282-28ac7a883ee4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsIncludingAccruedInterestAndPenalties_afe198a8-49ce-4172-8da5-66d04df185d9" xlink:href="wdc-20240628.xsd#wdc_UnrecognizedTaxBenefitsIncludingAccruedInterestAndPenalties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_wdc_UnrecognizedTaxBenefitsIncludingAccruedInterestAndPenalties_afe198a8-49ce-4172-8da5-66d04df185d9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_fe089c27-e792-4f82-82e8-13bf001b6c79" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_TaxesPayableCurrent_fe089c27-e792-4f82-82e8-13bf001b6c79" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationPenaltiesExpense_761b537d-7277-45bf-a16e-d4a61798b8ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExaminationPenaltiesExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_IncomeTaxExaminationPenaltiesExpense_761b537d-7277-45bf-a16e-d4a61798b8ec" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationInterestExpense_44d41fcf-dd0f-45c9-9dd7-6f7bf03b1eac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExaminationInterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_us-gaap_IncomeTaxExaminationInterestExpense_44d41fcf-dd0f-45c9-9dd7-6f7bf03b1eac" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_83385311-ddc2-475c-8852-33b610028ea5" xlink:href="wdc-20240628.xsd#wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_83385311-ddc2-475c-8852-33b610028ea5" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability_e79729d5-c760-4d91-8efb-d09939513286" xlink:href="wdc-20240628.xsd#wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_IncomeTaxDisclosureLineItems_c777b977-3922-41ec-979f-62285c745bff" xlink:to="loc_wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability_e79729d5-c760-4d91-8efb-d09939513286" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseNOLCarryforwardDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#IncomeTaxExpenseNOLCarryforwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseNOLCarryforwardDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_784d0f32-cb0a-4794-8053-94b66e0e16df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLossCarryforwardsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsTable_a1c86fd0-2054-4f64-a463-3addf179f974" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLossCarryforwardsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_784d0f32-cb0a-4794-8053-94b66e0e16df" xlink:to="loc_us-gaap_OperatingLossCarryforwardsTable_a1c86fd0-2054-4f64-a463-3addf179f974" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_609c53b1-2597-4f73-881e-a16a89d75651" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_a1c86fd0-2054-4f64-a463-3addf179f974" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_609c53b1-2597-4f73-881e-a16a89d75651" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_609c53b1-2597-4f73-881e-a16a89d75651_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_609c53b1-2597-4f73-881e-a16a89d75651" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_609c53b1-2597-4f73-881e-a16a89d75651_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_c294a232-90e3-4673-8790-4b5d6e3147e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_609c53b1-2597-4f73-881e-a16a89d75651" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_c294a232-90e3-4673-8790-4b5d6e3147e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DomesticTaxAuthorityPre2017ActGenerationMember_d66dc6ae-b578-46d5-aa22-7dcf940669c1" xlink:href="wdc-20240628.xsd#wdc_DomesticTaxAuthorityPre2017ActGenerationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_c294a232-90e3-4673-8790-4b5d6e3147e2" xlink:to="loc_wdc_DomesticTaxAuthorityPre2017ActGenerationMember_d66dc6ae-b578-46d5-aa22-7dcf940669c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_ec1540ac-ecf9-4acb-a7fc-420f0d6f5b53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_c294a232-90e3-4673-8790-4b5d6e3147e2" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_ec1540ac-ecf9-4acb-a7fc-420f0d6f5b53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_88ef7768-6503-44a7-a3f8-1e4f0d5c93f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DomesticCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_c294a232-90e3-4673-8790-4b5d6e3147e2" xlink:to="loc_us-gaap_DomesticCountryMember_88ef7768-6503-44a7-a3f8-1e4f0d5c93f2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_b4826897-0e24-4c2d-9029-7d2c283ae6b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OperatingLossCarryforwardsTable_a1c86fd0-2054-4f64-a463-3addf179f974" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_b4826897-0e24-4c2d-9029-7d2c283ae6b8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_b4826897-0e24-4c2d-9029-7d2c283ae6b8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_b4826897-0e24-4c2d-9029-7d2c283ae6b8" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_b4826897-0e24-4c2d-9029-7d2c283ae6b8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_b4826897-0e24-4c2d-9029-7d2c283ae6b8" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdministrationOfTheTreasuryBelgiumMember_bad86748-a181-4b32-92e2-e3f77388aae3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdministrationOfTheTreasuryBelgiumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:to="loc_us-gaap_AdministrationOfTheTreasuryBelgiumMember_bad86748-a181-4b32-92e2-e3f77388aae3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxAuthorityMalaysiaMember_cb883fca-8fe0-4ef0-bfaf-2ee5efe6780d" xlink:href="wdc-20240628.xsd#wdc_TaxAuthorityMalaysiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:to="loc_wdc_TaxAuthorityMalaysiaMember_cb883fca-8fe0-4ef0-bfaf-2ee5efe6780d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NationalTaxAgencyJapanMember_46bd4896-edbe-426b-88c7-882e2e7b3dd2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NationalTaxAgencyJapanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:to="loc_us-gaap_NationalTaxAgencyJapanMember_46bd4896-edbe-426b-88c7-882e2e7b3dd2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAdministrationOfTaxationChinaMember_0131cdce-e275-45ef-bac5-30dbda4c3d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StateAdministrationOfTaxationChinaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:to="loc_us-gaap_StateAdministrationOfTaxationChinaMember_0131cdce-e275-45ef-bac5-30dbda4c3d5b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxAuthoritySpainMember_5716a9d9-adfb-47c1-b2e4-118eeca07e20" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxAuthoritySpainMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_b9fe7024-20d8-4aab-9c06-09ba08a70346" xlink:to="loc_us-gaap_TaxAuthoritySpainMember_5716a9d9-adfb-47c1-b2e4-118eeca07e20" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_5d012513-1485-4db5-bf6c-ace399ddd359" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_784d0f32-cb0a-4794-8053-94b66e0e16df" xlink:to="loc_us-gaap_OperatingLossCarryforwards_5d012513-1485-4db5-bf6c-ace399ddd359" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAmount_b36492ae-65e8-4a0e-a764-a92ec243b860" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxCreditCarryforwardAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_784d0f32-cb0a-4794-8053-94b66e0e16df" xlink:to="loc_us-gaap_TaxCreditCarryforwardAmount_b36492ae-65e8-4a0e-a764-a92ec243b860" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8237f274-1bb8-453a-b5c5-7a0f1d34586e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8237f274-1bb8-453a-b5c5-7a0f1d34586e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8237f274-1bb8-453a-b5c5-7a0f1d34586e" xlink:to="loc_us-gaap_RestructuringPlanAxis_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc" xlink:to="loc_us-gaap_RestructuringPlanDomain_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_16e7a2b5-8ea5-4318-b0a7-26d7a1b04694" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_4eb7a1d1-dd4d-4151-84fd-15672b8d24cc" xlink:to="loc_us-gaap_RestructuringPlanDomain_16e7a2b5-8ea5-4318-b0a7-26d7a1b04694" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_a9bb773c-c8b7-421d-a2d6-6383d1bf0e2f" xlink:href="wdc-20240628.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_16e7a2b5-8ea5-4318-b0a7-26d7a1b04694" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_a9bb773c-c8b7-421d-a2d6-6383d1bf0e2f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_8f67b9d5-da0e-4207-88f2-8a09a28b0aae" xlink:href="wdc-20240628.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_8f67b9d5-da0e-4207-88f2-8a09a28b0aae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_71b8147f-8254-46bb-a1d3-528e3f4b7cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_AssetImpairmentCharges_71b8147f-8254-46bb-a1d3-528e3f4b7cf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_8ed476a9-41c6-4ca3-9000-913386c30d19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_8ed476a9-41c6-4ca3-9000-913386c30d19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_2a9c43c1-be1c-4daf-852b-ea23692e77f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossOnContractTermination"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_LossOnContractTermination_2a9c43c1-be1c-4daf-852b-ea23692e77f6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f5ac4d0d-7119-48d1-8b6f-76ccc76e531d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_f5ac4d0d-7119-48d1-8b6f-76ccc76e531d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_28fdb0e3-281a-477c-88fb-2d30418e4b53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_595f0c06-cb2d-4e9a-a6df-6986b0e28f06" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_28fdb0e3-281a-477c-88fb-2d30418e4b53" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_d4a57d98-b5e7-4068-8aa1-15b06ab8afe3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d9807e9-94f6-4b96-8846-35afab5bdaa4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_d4a57d98-b5e7-4068-8aa1-15b06ab8afe3" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d9807e9-94f6-4b96-8846-35afab5bdaa4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_66689bf7-29ba-4771-89dd-5151eda2c3c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d9807e9-94f6-4b96-8846-35afab5bdaa4" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_66689bf7-29ba-4771-89dd-5151eda2c3c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_66689bf7-29ba-4771-89dd-5151eda2c3c9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_66689bf7-29ba-4771-89dd-5151eda2c3c9" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_66689bf7-29ba-4771-89dd-5151eda2c3c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_230cecc5-1ce8-4365-9849-f8cecc3de38f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_66689bf7-29ba-4771-89dd-5151eda2c3c9" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_230cecc5-1ce8-4365-9849-f8cecc3de38f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_6e56df20-100d-411d-9be0-eacdca19f232" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OneTimeTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_230cecc5-1ce8-4365-9849-f8cecc3de38f" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_6e56df20-100d-411d-9be0-eacdca19f232" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractTerminationMember_5403a8b7-7ad3-4613-bb71-440bfcc9675d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractTerminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_230cecc5-1ce8-4365-9849-f8cecc3de38f" xlink:to="loc_us-gaap_ContractTerminationMember_5403a8b7-7ad3-4613-bb71-440bfcc9675d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d9807e9-94f6-4b96-8846-35afab5bdaa4" xlink:to="loc_us-gaap_RestructuringPlanAxis_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60" xlink:to="loc_us-gaap_RestructuringPlanDomain_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_44e96896-f367-4910-9dac-e08f5c28e79f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_3d8f1087-a9f8-4912-a0a5-b87c8c3c7b60" xlink:to="loc_us-gaap_RestructuringPlanDomain_44e96896-f367-4910-9dac-e08f5c28e79f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_eae81ec9-b621-48a2-9efc-0e4de7684db3" xlink:href="wdc-20240628.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_44e96896-f367-4910-9dac-e08f5c28e79f" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_eae81ec9-b621-48a2-9efc-0e4de7684db3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_1913f125-8c76-4dde-8dfc-ae8f1e641741" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_d4a57d98-b5e7-4068-8aa1-15b06ab8afe3" xlink:to="loc_us-gaap_RestructuringReserveRollForward_1913f125-8c76-4dde-8dfc-ae8f1e641741" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_5ea5a994-de85-4bde-9d39-475d6f8f65ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_1913f125-8c76-4dde-8dfc-ae8f1e641741" xlink:to="loc_us-gaap_RestructuringReserve_5ea5a994-de85-4bde-9d39-475d6f8f65ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_dc83d411-126b-48fd-9543-93d1c9035b2c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_1913f125-8c76-4dde-8dfc-ae8f1e641741" xlink:to="loc_us-gaap_RestructuringCharges_dc83d411-126b-48fd-9543-93d1c9035b2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_60ac469e-c2f7-490e-a115-47d8b42669ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_1913f125-8c76-4dde-8dfc-ae8f1e641741" xlink:to="loc_us-gaap_PaymentsForRestructuring_60ac469e-c2f7-490e-a115-47d8b42669ee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_f8d6d7bc-95b3-41a1-9e11-b4be4ffc5d17" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringReserve"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplierFinanceProgramDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#SupplierFinanceProgramDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplierFinanceProgramDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramLineItems_9df370ca-b361-452a-a9ac-e5407ccd9f56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplierFinanceProgramLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramTable_3a4a36f4-77d0-4e19-8522-b91eff4a23fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplierFinanceProgramTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9df370ca-b361-452a-a9ac-e5407ccd9f56" xlink:to="loc_us-gaap_SupplierFinanceProgramTable_3a4a36f4-77d0-4e19-8522-b91eff4a23fc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_55bef885-9fa4-4b0c-b53b-b5b283bc1076" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SupplierFinanceProgramTable_3a4a36f4-77d0-4e19-8522-b91eff4a23fc" xlink:to="loc_srt_RangeAxis_55bef885-9fa4-4b0c-b53b-b5b283bc1076" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_55bef885-9fa4-4b0c-b53b-b5b283bc1076_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_55bef885-9fa4-4b0c-b53b-b5b283bc1076" xlink:to="loc_srt_RangeMember_55bef885-9fa4-4b0c-b53b-b5b283bc1076_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f8156088-0416-41ef-bdaf-660eb8d30d2e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_55bef885-9fa4-4b0c-b53b-b5b283bc1076" xlink:to="loc_srt_RangeMember_f8156088-0416-41ef-bdaf-660eb8d30d2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e8d1635b-f56c-42b1-b689-ad1ec2751c38" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f8156088-0416-41ef-bdaf-660eb8d30d2e" xlink:to="loc_srt_MinimumMember_e8d1635b-f56c-42b1-b689-ad1ec2751c38" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_263fba5b-6f87-433c-88e2-c3a0d785b0e8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f8156088-0416-41ef-bdaf-660eb8d30d2e" xlink:to="loc_srt_MaximumMember_263fba5b-6f87-433c-88e2-c3a0d785b0e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramPaymentTimingPeriod_96542400-a1db-4a97-b6c9-9b27e4559404" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplierFinanceProgramPaymentTimingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9df370ca-b361-452a-a9ac-e5407ccd9f56" xlink:to="loc_us-gaap_SupplierFinanceProgramPaymentTimingPeriod_96542400-a1db-4a97-b6c9-9b27e4559404" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramObligationCurrent_0aaed8be-24b6-4cde-9fe6-4ebde1b6e12d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplierFinanceProgramObligationCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9df370ca-b361-452a-a9ac-e5407ccd9f56" xlink:to="loc_us-gaap_SupplierFinanceProgramObligationCurrent_0aaed8be-24b6-4cde-9fe6-4ebde1b6e12d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramObligationCurrentStatementOfFinancialPositionExtensibleEnumeration_f4c436a5-f698-4649-a761-a1ae72c21292" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplierFinanceProgramObligationCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9df370ca-b361-452a-a9ac-e5407ccd9f56" xlink:to="loc_us-gaap_SupplierFinanceProgramObligationCurrentStatementOfFinancialPositionExtensibleEnumeration_f4c436a5-f698-4649-a761-a1ae72c21292" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LegalProceedingsAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#LegalProceedingsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LegalProceedingsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_68abbd27-77d3-499a-99ed-8ad031b75146" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:to="loc_srt_LitigationCaseAxis_68abbd27-77d3-499a-99ed-8ad031b75146" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_68abbd27-77d3-499a-99ed-8ad031b75146_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_68abbd27-77d3-499a-99ed-8ad031b75146" xlink:to="loc_srt_LitigationCaseTypeDomain_68abbd27-77d3-499a-99ed-8ad031b75146_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_05c1fd0d-caaa-4054-a224-21a158441873" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_68abbd27-77d3-499a-99ed-8ad031b75146" xlink:to="loc_srt_LitigationCaseTypeDomain_05c1fd0d-caaa-4054-a224-21a158441873" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IntellectualPropertyLitigationMember_a9947f4c-5195-4542-b0f4-c2e661e95e69" xlink:href="wdc-20240628.xsd#wdc_IntellectualPropertyLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_05c1fd0d-caaa-4054-a224-21a158441873" xlink:to="loc_wdc_IntellectualPropertyLitigationMember_a9947f4c-5195-4542-b0f4-c2e661e95e69" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusAxis_bc36cb43-dcc8-4530-b74a-497019975ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:to="loc_us-gaap_LitigationStatusAxis_bc36cb43-dcc8-4530-b74a-497019975ad2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusDomain_bc36cb43-dcc8-4530-b74a-497019975ad2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationStatusAxis_bc36cb43-dcc8-4530-b74a-497019975ad2" xlink:to="loc_us-gaap_LitigationStatusDomain_bc36cb43-dcc8-4530-b74a-497019975ad2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationStatusDomain_9ce7b5ee-bf5d-4253-b321-9bd754b69aa3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationStatusAxis_bc36cb43-dcc8-4530-b74a-497019975ad2" xlink:to="loc_us-gaap_LitigationStatusDomain_9ce7b5ee-bf5d-4253-b321-9bd754b69aa3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PendingLitigationMember_37aac08c-de25-410a-8d8c-302018f0d7bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PendingLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LitigationStatusDomain_9ce7b5ee-bf5d-4253-b321-9bd754b69aa3" xlink:to="loc_us-gaap_PendingLitigationMember_37aac08c-de25-410a-8d8c-302018f0d7bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_cb6a627c-1bfd-46e2-8bea-f3c84b097da7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_6a0597c1-0e5d-432c-b4ba-b8cfff2428ba" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_cb6a627c-1bfd-46e2-8bea-f3c84b097da7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_0b1da18b-8fa2-46f8-ae4d-4eea6c66aaa2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_cb6a627c-1bfd-46e2-8bea-f3c84b097da7" xlink:to="loc_us-gaap_SubsequentEventMember_0b1da18b-8fa2-46f8-ae4d-4eea6c66aaa2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_26c5dbd1-4846-443d-86f7-c3139ff0efd8" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_794e70fa-0b76-41e1-8b20-32dc82b7bde2" xlink:to="loc_dei_LegalEntityAxis_26c5dbd1-4846-443d-86f7-c3139ff0efd8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_26c5dbd1-4846-443d-86f7-c3139ff0efd8_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_26c5dbd1-4846-443d-86f7-c3139ff0efd8" xlink:to="loc_dei_EntityDomain_26c5dbd1-4846-443d-86f7-c3139ff0efd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_e8dbc5ec-515a-4f2b-8dbd-2640726465ec" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_26c5dbd1-4846-443d-86f7-c3139ff0efd8" xlink:to="loc_dei_EntityDomain_e8dbc5ec-515a-4f2b-8dbd-2640726465ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_MRTechnologiesGmbHMember_c01e13bc-e95a-4fe6-816b-2a7651433d32" xlink:href="wdc-20240628.xsd#wdc_MRTechnologiesGmbHMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_e8dbc5ec-515a-4f2b-8dbd-2640726465ec" xlink:to="loc_wdc_MRTechnologiesGmbHMember_c01e13bc-e95a-4fe6-816b-2a7651433d32" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyPatentsAllegedlyInfringedNumber_9e27110d-79bd-45cb-89fe-af8e6ba25c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyPatentsAllegedlyInfringedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LossContingencyPatentsAllegedlyInfringedNumber_9e27110d-79bd-45cb-89fe-af8e6ba25c4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementAmountAwardedToOtherParty_38ff028b-26e1-47d7-8e6f-65e78e2bb0a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationSettlementAmountAwardedToOtherParty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LitigationSettlementAmountAwardedToOtherParty_38ff028b-26e1-47d7-8e6f-65e78e2bb0a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_2daf1ee2-d04d-49e4-9f13-724d06be47a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyDamagesSoughtValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_2daf1ee2-d04d-49e4-9f13-724d06be47a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualCarryingValueCurrent_25854567-8055-47b7-af2f-46e79ef7ece7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyAccrualCarryingValueCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LossContingencyAccrualCarryingValueCurrent_25854567-8055-47b7-af2f-46e79ef7ece7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementLoss_1ca45da2-bb36-4dec-b8b2-e2368133802f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationSettlementLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_LitigationSettlementLoss_1ca45da2-bb36-4dec-b8b2-e2368133802f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedPatentsGross_ae3f2970-31d3-4279-b402-23c0b8c50d52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedPatentsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_d78a95cd-3de1-4a1b-b55d-1c1752330be0" xlink:to="loc_us-gaap_FiniteLivedPatentsGross_ae3f2970-31d3-4279-b402-23c0b8c50d52" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofOperationsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofOperationsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofOperationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_b5cb4fa8-52f6-4fb5-b6f9-fde7674c35ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b1cf990f-8948-4247-9d0e-f80c1c4b6c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_b5cb4fa8-52f6-4fb5-b6f9-fde7674c35ad" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b1cf990f-8948-4247-9d0e-f80c1c4b6c5e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_3382d8d1-92c9-4c99-8aef-7d1efb390eb6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b1cf990f-8948-4247-9d0e-f80c1c4b6c5e" xlink:to="loc_srt_RestatementAxis_3382d8d1-92c9-4c99-8aef-7d1efb390eb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_3382d8d1-92c9-4c99-8aef-7d1efb390eb6_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_3382d8d1-92c9-4c99-8aef-7d1efb390eb6" xlink:to="loc_srt_RestatementDomain_3382d8d1-92c9-4c99-8aef-7d1efb390eb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_4fcd5043-564d-4008-840d-253d4a9042f0" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_3382d8d1-92c9-4c99-8aef-7d1efb390eb6" xlink:to="loc_srt_RestatementDomain_4fcd5043-564d-4008-840d-253d4a9042f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_d815bfa4-cc5d-4011-ad1d-550dadedcb78" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioPreviouslyReportedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_4fcd5043-564d-4008-840d-253d4a9042f0" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_d815bfa4-cc5d-4011-ad1d-550dadedcb78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_f32addac-a702-4b60-885d-57ddc5d845ee" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_4fcd5043-564d-4008-840d-253d4a9042f0" xlink:to="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_f32addac-a702-4b60-885d-57ddc5d845ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_b5cb4fa8-52f6-4fb5-b6f9-fde7674c35ad" xlink:to="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_51175935-9f1c-4242-9248-afa89cf0b7b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_OperatingIncomeLoss_51175935-9f1c-4242-9248-afa89cf0b7b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_018d9b3e-02c9-46fd-94c8-e25f0341733c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:to="loc_us-gaap_InvestmentIncomeInterest_018d9b3e-02c9-46fd-94c8-e25f0341733c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_7b3e41a1-523f-4f28-9296-0e69e35387f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:to="loc_us-gaap_InterestExpense_7b3e41a1-523f-4f28-9296-0e69e35387f2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_e5493cf3-4775-42a3-8bf5-77a04b102c4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_e5493cf3-4775-42a3-8bf5-77a04b102c4c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_25de9a1b-0b87-4cad-b6ae-1dcacfd8f238" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NonoperatingIncomeExpenseAbstract_1ffe160e-13a2-44c9-9222-55495295bfc1" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_25de9a1b-0b87-4cad-b6ae-1dcacfd8f238" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a82a5784-565f-43e2-a18f-00fd5e12da84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a82a5784-565f-43e2-a18f-00fd5e12da84" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_ff65a9a2-f579-42e0-8c9d-9bb53b97d4d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_ff65a9a2-f579-42e0-8c9d-9bb53b97d4d7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e0a80855-cfe2-4866-b0ba-094b8e8851fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_NetIncomeLoss_e0a80855-cfe2-4866-b0ba-094b8e8851fc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_a10d4b14-b3a1-4f6f-88e8-5ae21f2b7c9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_a10d4b14-b3a1-4f6f-88e8-5ae21f2b7c9d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c56d5ef8-419a-4480-a4d9-7fe42de53084" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c56d5ef8-419a-4480-a4d9-7fe42de53084" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_530e8549-371f-4b8e-ac95-415525c1e629" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract_f2383027-429b-41b3-ad53-b734f43d594a" xlink:to="loc_us-gaap_EarningsPerShareAbstract_530e8549-371f-4b8e-ac95-415525c1e629" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_b1fb54b9-7ae9-4fdd-801d-efd0ba90615e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_530e8549-371f-4b8e-ac95-415525c1e629" xlink:to="loc_us-gaap_EarningsPerShareBasic_b1fb54b9-7ae9-4fdd-801d-efd0ba90615e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_f103db15-2c05-4e15-89db-c30ddd401e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_530e8549-371f-4b8e-ac95-415525c1e629" xlink:to="loc_us-gaap_EarningsPerShareDiluted_f103db15-2c05-4e15-89db-c30ddd401e5d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofComprehensiveLossDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofComprehensiveLossDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b5367bdf-c939-4ef6-b3a1-3c45b7dad268" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b5367bdf-c939-4ef6-b3a1-3c45b7dad268" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_d5af6f00-729d-4c69-b27b-32c7e8abbb8b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_b5367bdf-c939-4ef6-b3a1-3c45b7dad268" xlink:to="loc_srt_RestatementAxis_d5af6f00-729d-4c69-b27b-32c7e8abbb8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_d5af6f00-729d-4c69-b27b-32c7e8abbb8b_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_d5af6f00-729d-4c69-b27b-32c7e8abbb8b" xlink:to="loc_srt_RestatementDomain_d5af6f00-729d-4c69-b27b-32c7e8abbb8b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_7e50a8aa-6d5c-4864-b1b8-3a845cb63e22" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_d5af6f00-729d-4c69-b27b-32c7e8abbb8b" xlink:to="loc_srt_RestatementDomain_7e50a8aa-6d5c-4864-b1b8-3a845cb63e22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_e92f1926-e5b2-469b-9859-a5e93ed4f86a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioPreviouslyReportedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_7e50a8aa-6d5c-4864-b1b8-3a845cb63e22" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_e92f1926-e5b2-469b-9859-a5e93ed4f86a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_b2b01c12-f25d-429b-9ffb-4659906142aa" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_7e50a8aa-6d5c-4864-b1b8-3a845cb63e22" xlink:to="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_b2b01c12-f25d-429b-9ffb-4659906142aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_35f1b072-fc61-46eb-bebd-f5e291cd0665" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_NetIncomeLoss_35f1b072-fc61-46eb-bebd-f5e291cd0665" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f2726983-d455-4763-95ab-f36dd325ec81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f2726983-d455-4763-95ab-f36dd325ec81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_d9eb04e6-031a-4227-87f6-89805667eb00" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_d9eb04e6-031a-4227-87f6-89805667eb00" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_6f39a348-d564-4c1f-88d9-9bb769c9fff6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_6f39a348-d564-4c1f-88d9-9bb769c9fff6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_e4f5260a-a7c8-48c8-8358-2a3f7503e506" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_5092bf99-ccd9-4596-8506-23c322aa3467" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_e4f5260a-a7c8-48c8-8358-2a3f7503e506" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2953a2af-6187-4140-af90-63563e533e43" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_2953a2af-6187-4140-af90-63563e533e43" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0026a24a-1b85-4142-b86b-53a609813c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_0026a24a-1b85-4142-b86b-53a609813c1a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_022e2213-32f0-42ef-b721-eac989dfb3aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e9c86be8-39d2-4680-8e3c-fa75e0be23d2" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_022e2213-32f0-42ef-b721-eac989dfb3aa" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofCashFlowsDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofCashFlowsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_a4b2a002-f1ca-47be-8c33-2318a7bf75c4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1c235ef0-e2ae-4745-a678-bd10bbcc5c3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_a4b2a002-f1ca-47be-8c33-2318a7bf75c4" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1c235ef0-e2ae-4745-a678-bd10bbcc5c3c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_50a838f2-0df6-4761-910d-bd1b945fedc9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_1c235ef0-e2ae-4745-a678-bd10bbcc5c3c" xlink:to="loc_srt_RestatementAxis_50a838f2-0df6-4761-910d-bd1b945fedc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_50a838f2-0df6-4761-910d-bd1b945fedc9_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_50a838f2-0df6-4761-910d-bd1b945fedc9" xlink:to="loc_srt_RestatementDomain_50a838f2-0df6-4761-910d-bd1b945fedc9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_030588f9-d1d9-4251-a277-0f95eb358ed5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_50a838f2-0df6-4761-910d-bd1b945fedc9" xlink:to="loc_srt_RestatementDomain_030588f9-d1d9-4251-a277-0f95eb358ed5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_7ed86a17-13d2-46ad-87da-b2fff04a172c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioPreviouslyReportedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_030588f9-d1d9-4251-a277-0f95eb358ed5" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_7ed86a17-13d2-46ad-87da-b2fff04a172c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_12bb1c71-231c-41e9-abe2-93323a0d46c3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_030588f9-d1d9-4251-a277-0f95eb358ed5" xlink:to="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_12bb1c71-231c-41e9-abe2-93323a0d46c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_a4b2a002-f1ca-47be-8c33-2318a7bf75c4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_61059f3f-6594-404b-a906-26ebabb53f5e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:to="loc_us-gaap_NetIncomeLoss_61059f3f-6594-404b-a906-26ebabb53f5e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_ff0be102-7b27-4086-be08-4c2ccc85a6f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_ff0be102-7b27-4086-be08-4c2ccc85a6f3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_8e7239f2-2e18-47e6-b534-5415ae5896a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_8e7239f2-2e18-47e6-b534-5415ae5896a3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_31337c3d-7451-4535-9658-5b957e0e0715" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_31337c3d-7451-4535-9658-5b957e0e0715" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1776a8f2-bd74-444a-88a6-f5d1360db14f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_17c3341f-5dfd-4494-b93a-0408687ee8f0" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1776a8f2-bd74-444a-88a6-f5d1360db14f" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofShareholdersEquityDetails" xlink:type="simple" xlink:href="wdc-20240628.xsd#RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofShareholdersEquityDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofShareholdersEquityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_22528f9a-c158-4598-8db0-cc5f8f8387dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_047efd23-e6ee-4dac-b35f-7bea50cac932" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_22528f9a-c158-4598-8db0-cc5f8f8387dd" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_047efd23-e6ee-4dac-b35f-7bea50cac932" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementAxis_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_047efd23-e6ee-4dac-b35f-7bea50cac932" xlink:to="loc_srt_RestatementAxis_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4" xlink:to="loc_srt_RestatementDomain_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RestatementDomain_79e60f08-f8ab-41dc-814f-6a6732805f9a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RestatementDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_6165c5aa-9fb2-49aa-ba9a-b3271789b4c4" xlink:to="loc_srt_RestatementDomain_79e60f08-f8ab-41dc-814f-6a6732805f9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioPreviouslyReportedMember_ea151878-f90a-4fa4-8993-a872d1a1b5ed" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioPreviouslyReportedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_79e60f08-f8ab-41dc-814f-6a6732805f9a" xlink:to="loc_srt_ScenarioPreviouslyReportedMember_ea151878-f90a-4fa4-8993-a872d1a1b5ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_866086d1-dd96-4f05-83b4-85a82bec117e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RestatementDomain_79e60f08-f8ab-41dc-814f-6a6732805f9a" xlink:to="loc_srt_RevisionOfPriorPeriodErrorCorrectionAdjustmentMember_866086d1-dd96-4f05-83b4-85a82bec117e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_047efd23-e6ee-4dac-b35f-7bea50cac932" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d" xlink:to="loc_us-gaap_EquityComponentDomain_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_412f3bbc-5d91-42eb-8d4a-bb50661db917" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4ebedaf6-4d33-40e7-b567-adcc10a9cc0d" xlink:to="loc_us-gaap_EquityComponentDomain_412f3bbc-5d91-42eb-8d4a-bb50661db917" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_4030e761-fff0-4cb5-9d6c-94cf80549c56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_412f3bbc-5d91-42eb-8d4a-bb50661db917" xlink:to="loc_us-gaap_RetainedEarningsMember_4030e761-fff0-4cb5-9d6c-94cf80549c56" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_1352fe37-007c-444d-8853-ec51c37e9d72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_412f3bbc-5d91-42eb-8d4a-bb50661db917" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_1352fe37-007c-444d-8853-ec51c37e9d72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_497f8990-bcaf-490f-ba6a-53c3a0ae1296" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_22528f9a-c158-4598-8db0-cc5f8f8387dd" xlink:to="loc_us-gaap_StockholdersEquity_497f8990-bcaf-490f-ba6a-53c3a0ae1296" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_993bd0dd-e669-4a3a-b315-c156aed38932" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_22528f9a-c158-4598-8db0-cc5f8f8387dd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_993bd0dd-e669-4a3a-b315-c156aed38932" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#AwardTypeOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_EmployeeStockMember" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_4cf3fe86-77d1-46f3-85a0-12297e462c86" xlink:href="wdc-20240628.xsd#wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_4cf3fe86-77d1-46f3-85a0-12297e462c86" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_29f52417-09c8-4e1b-8d5c-1acc5ce5fa94" xlink:href="wdc-20240628.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_29f52417-09c8-4e1b-8d5c-1acc5ce5fa94" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_819f1aa2-dc2e-4e9f-a345-93ca00de502f" xlink:href="wdc-20240628.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_819f1aa2-dc2e-4e9f-a345-93ca00de502f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_ConvertibleDebtMember" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OutstandingAwardsAndSharesAvailableForAwardMember_da0332b2-013d-4c42-bd5b-9bc1a89f71a7" xlink:href="wdc-20240628.xsd#wdc_OutstandingAwardsAndSharesAvailableForAwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_wdc_OutstandingAwardsAndSharesAvailableForAwardMember_da0332b2-013d-4c42-bd5b-9bc1a89f71a7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertiblePreferredStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertiblePreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_ConvertiblePreferredStockMember" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_KimberlyE.AlexyMember_d2e67b5d-f58a-4f7d-b996-c1d6ad481b1f" xlink:href="wdc-20240628.xsd#wdc_KimberlyE.AlexyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wdc_KimberlyE.AlexyMember_d2e67b5d-f58a-4f7d-b996-c1d6ad481b1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_MatthewE.MassengillMember_a0a43bc8-4e0e-4a34-8b4f-0d205e7597bb" xlink:href="wdc-20240628.xsd#wdc_MatthewE.MassengillMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wdc_MatthewE.MassengillMember_a0a43bc8-4e0e-4a34-8b4f-0d205e7597bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DavidGoeckelerMember_2495f1e9-53fb-4b1f-b1b3-e2ef25532f5c" xlink:href="wdc-20240628.xsd#wdc_DavidGoeckelerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_wdc_DavidGoeckelerMember_2495f1e9-53fb-4b1f-b1b3-e2ef25532f5c" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_AccountsPayableCurrent" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_OtherAssetsNoncurrent" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationAssetImpairmentAndOtherCharges_e1cbd730-e7ab-4644-8c80-837bd85b3f91" xlink:href="wdc-20240628.xsd#wdc_EmployeeTerminationAssetImpairmentAndOtherCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract" xlink:to="loc_wdc_EmployeeTerminationAssetImpairmentAndOtherCharges_e1cbd730-e7ab-4644-8c80-837bd85b3f91" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
