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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:cbf02cd0-7281-4262-b4e6-698d9c405de4,g:e2d5bcde-fd2e-4dbc-98ef-34e9bdbcf39a-->
<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/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="wdc-20230929.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_23279bce-c7c0-4be4-a112-8ec12ad2dddb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_85c171c4-43c2-4ae4-9af4-a5a6d932952d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_23279bce-c7c0-4be4-a112-8ec12ad2dddb" xlink:to="loc_us-gaap_AssetsAbstract_85c171c4-43c2-4ae4-9af4-a5a6d932952d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_85c171c4-43c2-4ae4-9af4-a5a6d932952d" xlink:to="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_04bf1709-b32c-4a0b-8c80-e2f371413da2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_04bf1709-b32c-4a0b-8c80-e2f371413da2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a5a899b4-bd53-4055-9b4b-817d8485a217" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a5a899b4-bd53-4055-9b4b-817d8485a217" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_17cfa44a-b86a-45e7-89bf-7b22982fb049" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:to="loc_us-gaap_InventoryNet_17cfa44a-b86a-45e7-89bf-7b22982fb049" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_2eb9299a-762b-4825-bb06-86eef5002122" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:to="loc_us-gaap_OtherAssetsCurrent_2eb9299a-762b-4825-bb06-86eef5002122" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_6f899773-a67b-4f1a-863d-4db1aad87022" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_193f26ae-eb84-4a82-8141-1aa910eee8ed" xlink:to="loc_us-gaap_AssetsCurrent_6f899773-a67b-4f1a-863d-4db1aad87022" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_85c171c4-43c2-4ae4-9af4-a5a6d932952d" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_bd8d1332-dcb1-49d3-b80c-c93e302ab51b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_bd8d1332-dcb1-49d3-b80c-c93e302ab51b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_60a6d3c2-4666-4152-8a45-654570e3c1cd" xlink:href="wdc-20230929.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_60a6d3c2-4666-4152-8a45-654570e3c1cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_57a3c243-3d2e-4694-b13b-e9ba182637d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:to="loc_us-gaap_Goodwill_57a3c243-3d2e-4694-b13b-e9ba182637d4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_b2fd462b-3362-4e1c-8949-e50a1a964161" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_b2fd462b-3362-4e1c-8949-e50a1a964161" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_73982016-b1c3-4ab6-acf8-51f4437c70f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_96cbdb96-1716-4894-8be3-f1fa00417c2b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_73982016-b1c3-4ab6-acf8-51f4437c70f7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_16bb7ac5-8fa7-446a-a249-0c7dc0c276ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_85c171c4-43c2-4ae4-9af4-a5a6d932952d" xlink:to="loc_us-gaap_Assets_16bb7ac5-8fa7-446a-a249-0c7dc0c276ed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6f07b9c5-df7e-41d0-bd3a-7047f313b8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_23279bce-c7c0-4be4-a112-8ec12ad2dddb" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6f07b9c5-df7e-41d0-bd3a-7047f313b8c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6f07b9c5-df7e-41d0-bd3a-7047f313b8c8" xlink:to="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_dc35f460-8d99-4f6b-8614-3c1d6f61d218" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_AccountsPayableCurrent_dc35f460-8d99-4f6b-8614-3c1d6f61d218" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_f7dd7b34-a26b-47fb-8ef4-e90645129ba4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_f7dd7b34-a26b-47fb-8ef4-e90645129ba4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_6281cad2-f859-41d9-b127-8aaa1eec209f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_6281cad2-f859-41d9-b127-8aaa1eec209f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_dd20c021-e245-4a8f-b3ff-06e6e1fee10a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_dd20c021-e245-4a8f-b3ff-06e6e1fee10a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_470cd2a7-882e-4559-a0db-479497075cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_LongTermDebtCurrent_470cd2a7-882e-4559-a0db-479497075cb3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_cd2f7d08-9caa-4eab-812a-49c8a6fa1d01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_807f9dd1-40e8-434d-9025-2f42bdd09624" xlink:to="loc_us-gaap_LiabilitiesCurrent_cd2f7d08-9caa-4eab-812a-49c8a6fa1d01" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_4ce7738e-6e9d-4796-b808-e8e1a166292c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_4ce7738e-6e9d-4796-b808-e8e1a166292c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_7b63c661-d642-4d22-ac09-8a25a25c52a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_4ce7738e-6e9d-4796-b808-e8e1a166292c" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_7b63c661-d642-4d22-ac09-8a25a25c52a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_d1841c43-0617-441f-9f19-72633c988eeb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_4ce7738e-6e9d-4796-b808-e8e1a166292c" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_d1841c43-0617-441f-9f19-72633c988eeb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_795d0f9f-2ba2-4a67-a13e-6a931ba160e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_Liabilities_795d0f9f-2ba2-4a67-a13e-6a931ba160e9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_518bf39e-ee74-475c-98d0-067222ecbf64" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_CommitmentsAndContingencies_518bf39e-ee74-475c-98d0-067222ecbf64" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_d058b3ea-ebef-49e4-8f2b-e83be1fbf83b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_d058b3ea-ebef-49e4-8f2b-e83be1fbf83b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_cc52fdbc-30d8-49d2-9e0d-e1a6ff19bea8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:to="loc_us-gaap_CommonStockValue_cc52fdbc-30d8-49d2-9e0d-e1a6ff19bea8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_11c839a6-b48c-4ef4-b010-9096de5e8624" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:to="loc_us-gaap_AdditionalPaidInCapital_11c839a6-b48c-4ef4-b010-9096de5e8624" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_1bc02f13-833b-438f-83d1-947942d691c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_1bc02f13-833b-438f-83d1-947942d691c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e892641e-caa5-4795-a38b-505c767a104a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_3d76eaf7-457b-415c-a787-90fac1a3e58d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e892641e-caa5-4795-a38b-505c767a104a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8af75b9e-7d0c-4e2a-96d5-589815431c40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f3464100-60cc-4370-ac97-e5b3c336fccb" xlink:to="loc_us-gaap_StockholdersEquity_8af75b9e-7d0c-4e2a-96d5-589815431c40" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_74777305-7830-414c-84db-6b947079c74e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_23279bce-c7c0-4be4-a112-8ec12ad2dddb" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_74777305-7830-414c-84db-6b947079c74e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_bf95bf8e-a849-4e1c-b88d-830cbe5a3586" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_23279bce-c7c0-4be4-a112-8ec12ad2dddb" xlink:to="loc_us-gaap_StatementTable_bf95bf8e-a849-4e1c-b88d-830cbe5a3586" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_bf95bf8e-a849-4e1c-b88d-830cbe5a3586" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22" xlink:to="loc_us-gaap_RelatedPartyDomain_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_71326418-1ce8-459e-9fc8-5aacd0c2ec46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_fe7845ff-d3f2-421f-b2b4-14eaa04e6f22" xlink:to="loc_us-gaap_RelatedPartyDomain_71326418-1ce8-459e-9fc8-5aacd0c2ec46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonrelatedPartyMember_be72fb48-dbc0-4297-babe-51db8e678aed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonrelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_71326418-1ce8-459e-9fc8-5aacd0c2ec46" xlink:to="loc_us-gaap_NonrelatedPartyMember_be72fb48-dbc0-4297-babe-51db8e678aed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_2a7b3483-3f69-4e9e-9efd-c0a775a40a53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_71326418-1ce8-459e-9fc8-5aacd0c2ec46" xlink:to="loc_us-gaap_RelatedPartyMember_2a7b3483-3f69-4e9e-9efd-c0a775a40a53" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCONVERTIBLEPREFRREDSTOCKANDSHAREHOLDERSEQUITY" xlink:type="simple" xlink:href="wdc-20230929.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCONVERTIBLEPREFRREDSTOCKANDSHAREHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCONVERTIBLEPREFRREDSTOCKANDSHAREHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_0f59e325-2332-4b1a-a441-ae50e7bc7327" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_68ba3449-7d1d-4bbf-a7ee-64e120b0a84b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInTemporaryEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_0f59e325-2332-4b1a-a441-ae50e7bc7327" xlink:to="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_68ba3449-7d1d-4bbf-a7ee-64e120b0a84b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_b223cd04-638a-468d-8530-2804ea1fac38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_68ba3449-7d1d-4bbf-a7ee-64e120b0a84b" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_b223cd04-638a-468d-8530-2804ea1fac38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_ac014f01-671d-47af-bc03-9f18781be24c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInTemporaryEquityRollForward_68ba3449-7d1d-4bbf-a7ee-64e120b0a84b" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_ac014f01-671d-47af-bc03-9f18781be24c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_411dcb47-967e-4352-b83e-93113c119e78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests_d82cdeb4-1e41-4424-94d0-3f4b45938338" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_0f59e325-2332-4b1a-a441-ae50e7bc7327" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_0ecf1012-ad8f-4083-b9ac-239dcea1eec2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_0ecf1012-ad8f-4083-b9ac-239dcea1eec2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2e6d79cb-2690-4fcf-9223-904c456b2fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_StockholdersEquity_2e6d79cb-2690-4fcf-9223-904c456b2fc6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f6bda218-418a-4146-b4c4-f42160d8cea0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_NetIncomeLoss_f6bda218-418a-4146-b4c4-f42160d8cea0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_8afad502-2571-4b94-8373-d0f9fee990e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_8afad502-2571-4b94-8373-d0f9fee990e3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_290a6c3b-db64-4638-9661-22feacd00413" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_290a6c3b-db64-4638-9661-22feacd00413" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_fba28e2d-4351-432f-9ac2-324131a9f8da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_fba28e2d-4351-432f-9ac2-324131a9f8da" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_f25c2cf7-1679-4a10-b919-f314d54704aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_f25c2cf7-1679-4a10-b919-f314d54704aa" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_f314134f-dc03-49ca-823e-f93be5a1b289" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_dc7420e9-8f21-4a0c-b012-1b6ccbd038f6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_f314134f-dc03-49ca-823e-f93be5a1b289" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_77b04de6-1ff8-48b3-aef2-848b6bb7fff8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_440daed3-8a83-4972-be95-e7cdc9c73dca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_68f859e3-55f2-4e3b-a438-7518fc1cfdd6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_0f59e325-2332-4b1a-a441-ae50e7bc7327" xlink:to="loc_us-gaap_StatementTable_68f859e3-55f2-4e3b-a438-7518fc1cfdd6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_7bffe5e0-405a-405a-b697-43dee86b67b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_68f859e3-55f2-4e3b-a438-7518fc1cfdd6" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_7bffe5e0-405a-405a-b697-43dee86b67b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_7bffe5e0-405a-405a-b697-43dee86b67b6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7bffe5e0-405a-405a-b697-43dee86b67b6" xlink:to="loc_us-gaap_EquityComponentDomain_7bffe5e0-405a-405a-b697-43dee86b67b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_7bffe5e0-405a-405a-b697-43dee86b67b6" xlink:to="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_bf4e199a-29c3-4497-94cc-5bc576fa9a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:to="loc_us-gaap_CommonStockMember_bf4e199a-29c3-4497-94cc-5bc576fa9a5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_7a30e16d-7f8d-487d-9ce2-a005760627f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_7a30e16d-7f8d-487d-9ce2-a005760627f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_5caa8705-a6e7-4b0b-a8f8-6a4396733c6f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_5caa8705-a6e7-4b0b-a8f8-6a4396733c6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_71b9870c-e4bd-4e1b-aa3d-3cc541abce19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_39cb7821-a9aa-4b35-bab0-b6daede1b7ae" xlink:to="loc_us-gaap_RetainedEarningsMember_71b9870c-e4bd-4e1b-aa3d-3cc541abce19" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_1c92283a-3360-4154-aa5e-fda3415b2015" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_68f859e3-55f2-4e3b-a438-7518fc1cfdd6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_1c92283a-3360-4154-aa5e-fda3415b2015" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_1c92283a-3360-4154-aa5e-fda3415b2015_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_1c92283a-3360-4154-aa5e-fda3415b2015" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_1c92283a-3360-4154-aa5e-fda3415b2015_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_64d3ff6e-e92f-47fe-a6af-8595296869d2" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_1c92283a-3360-4154-aa5e-fda3415b2015" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_64d3ff6e-e92f-47fe-a6af-8595296869d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b91d2ad7-33cc-42cf-b337-677cc6b3bc7f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_64d3ff6e-e92f-47fe-a6af-8595296869d2" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_b91d2ad7-33cc-42cf-b337-677cc6b3bc7f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#BusinessSegmentsGeographicInformationandConcentrationsofRiskDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f93c6c0e-37e3-4be7-8311-81820e0009ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f93c6c0e-37e3-4be7-8311-81820e0009ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_3e208db9-69f8-4d5b-bb7e-192b4daa04c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_us-gaap_GrossProfit_3e208db9-69f8-4d5b-bb7e-192b4daa04c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_52e4bcd2-492a-4fa7-88c3-8de204052d10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_us-gaap_ShareBasedCompensation_52e4bcd2-492a-4fa7-88c3-8de204052d10" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_3f4d61d3-ea98-4837-89e2-85c7f971bb06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_3f4d61d3-ea98-4837-89e2-85c7f971bb06" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_b4cf0994-80e9-478b-821f-d63153f0c4a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GrossMarginPercentage_bfcd59e1-f5a5-41d2-b982-14db15941e0a" xlink:href="wdc-20230929.xsd#wdc_GrossMarginPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_wdc_GrossMarginPercentage_bfcd59e1-f5a5-41d2-b982-14db15941e0a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e5c32c07-2c3f-466c-ab21-aaa6966dda38" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3135716a-9321-4f8a-be03-5ba2e766a7ae" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e5c32c07-2c3f-466c-ab21-aaa6966dda38" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_bc29b850-52ef-492b-b301-d48cf6ba23ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e5c32c07-2c3f-466c-ab21-aaa6966dda38" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_bc29b850-52ef-492b-b301-d48cf6ba23ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_bc29b850-52ef-492b-b301-d48cf6ba23ee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_bc29b850-52ef-492b-b301-d48cf6ba23ee" xlink:to="loc_us-gaap_SegmentDomain_bc29b850-52ef-492b-b301-d48cf6ba23ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_97041f1e-8694-4ef5-a2ba-7d7c8879022b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_bc29b850-52ef-492b-b301-d48cf6ba23ee" xlink:to="loc_us-gaap_SegmentDomain_97041f1e-8694-4ef5-a2ba-7d7c8879022b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashSegmentMember_f5ebfe24-9944-48bb-bf76-9a2ccc5362d2" xlink:href="wdc-20230929.xsd#wdc_FlashSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_97041f1e-8694-4ef5-a2ba-7d7c8879022b" xlink:to="loc_wdc_FlashSegmentMember_f5ebfe24-9944-48bb-bf76-9a2ccc5362d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_9cedd3c6-49bb-4054-8704-cedae329af9f" xlink:href="wdc-20230929.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_97041f1e-8694-4ef5-a2ba-7d7c8879022b" xlink:to="loc_wdc_HDDMember_9cedd3c6-49bb-4054-8704-cedae329af9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_2d25506f-2831-4539-9e54-33d1422176ad" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e5c32c07-2c3f-466c-ab21-aaa6966dda38" xlink:to="loc_srt_ConsolidationItemsAxis_2d25506f-2831-4539-9e54-33d1422176ad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_2d25506f-2831-4539-9e54-33d1422176ad_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_2d25506f-2831-4539-9e54-33d1422176ad" xlink:to="loc_srt_ConsolidationItemsDomain_2d25506f-2831-4539-9e54-33d1422176ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_9efcd28f-ab79-49b8-aa7a-f2b92222d5fb" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_2d25506f-2831-4539-9e54-33d1422176ad" xlink:to="loc_srt_ConsolidationItemsDomain_9efcd28f-ab79-49b8-aa7a-f2b92222d5fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_9cfcb76d-3d32-4a0b-a03f-3784689ac336" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9efcd28f-ab79-49b8-aa7a-f2b92222d5fb" xlink:to="loc_us-gaap_OperatingSegmentsMember_9cfcb76d-3d32-4a0b-a03f-3784689ac336" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_bea63a3d-bda2-4965-8238-8d2a9486e59b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9efcd28f-ab79-49b8-aa7a-f2b92222d5fb" xlink:to="loc_us-gaap_CorporateNonSegmentMember_bea63a3d-bda2-4965-8238-8d2a9486e59b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20230929.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_d9f0db1a-a728-4d05-aaa8-cf742621b5e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e891c71a-b27c-4b19-b387-a13be9495448" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_d9f0db1a-a728-4d05-aaa8-cf742621b5e2" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_e891c71a-b27c-4b19-b387-a13be9495448" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_5ee0141b-3b56-423a-9166-d39596bc999a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_d9f0db1a-a728-4d05-aaa8-cf742621b5e2" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_5ee0141b-3b56-423a-9166-d39596bc999a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_269e6579-84e2-4727-82f1-0d1eafdbc20e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_5ee0141b-3b56-423a-9166-d39596bc999a" xlink:to="loc_srt_ProductOrServiceAxis_269e6579-84e2-4727-82f1-0d1eafdbc20e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_269e6579-84e2-4727-82f1-0d1eafdbc20e_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_269e6579-84e2-4727-82f1-0d1eafdbc20e" xlink:to="loc_srt_ProductsAndServicesDomain_269e6579-84e2-4727-82f1-0d1eafdbc20e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_95c1f66a-2b6d-461e-b50b-94b56e99e9d2" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_269e6579-84e2-4727-82f1-0d1eafdbc20e" xlink:to="loc_srt_ProductsAndServicesDomain_95c1f66a-2b6d-461e-b50b-94b56e99e9d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CloudMember_653d4aed-59d5-41bc-b0c6-3d0c40fda8be" xlink:href="wdc-20230929.xsd#wdc_CloudMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_95c1f66a-2b6d-461e-b50b-94b56e99e9d2" xlink:to="loc_wdc_CloudMember_653d4aed-59d5-41bc-b0c6-3d0c40fda8be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientDevicesMember_45fe19b8-88a0-4383-a987-15db91db2c9a" xlink:href="wdc-20230929.xsd#wdc_ClientDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_95c1f66a-2b6d-461e-b50b-94b56e99e9d2" xlink:to="loc_wdc_ClientDevicesMember_45fe19b8-88a0-4383-a987-15db91db2c9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConsumerMember_7891ee73-d842-4fac-b50a-c23ddf8969df" xlink:href="wdc-20230929.xsd#wdc_ConsumerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_95c1f66a-2b6d-461e-b50b-94b56e99e9d2" xlink:to="loc_wdc_ConsumerMember_7891ee73-d842-4fac-b50a-c23ddf8969df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_8a5845c4-851d-4e57-8ca1-b3da0700ba79" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_5ee0141b-3b56-423a-9166-d39596bc999a" xlink:to="loc_srt_StatementGeographicalAxis_8a5845c4-851d-4e57-8ca1-b3da0700ba79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_8a5845c4-851d-4e57-8ca1-b3da0700ba79_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_8a5845c4-851d-4e57-8ca1-b3da0700ba79" xlink:to="loc_srt_SegmentGeographicalDomain_8a5845c4-851d-4e57-8ca1-b3da0700ba79_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a7b9cf26-a74f-40f8-8775-c5ab90a89b45" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_8a5845c4-851d-4e57-8ca1-b3da0700ba79" xlink:to="loc_srt_SegmentGeographicalDomain_a7b9cf26-a74f-40f8-8775-c5ab90a89b45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaMember_a5cc732a-2626-4533-be6e-b47bea3b333b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_AsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a7b9cf26-a74f-40f8-8775-c5ab90a89b45" xlink:to="loc_srt_AsiaMember_a5cc732a-2626-4533-be6e-b47bea3b333b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AmericasMember_ef825134-3b3c-481b-af0d-1e7f467a3a6a" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_AmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a7b9cf26-a74f-40f8-8775-c5ab90a89b45" xlink:to="loc_srt_AmericasMember_ef825134-3b3c-481b-af0d-1e7f467a3a6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EuropeMiddleEastAndAfricaMember_e7df0eff-38a3-464e-b57a-9b9573894381" xlink:href="wdc-20230929.xsd#wdc_EuropeMiddleEastAndAfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a7b9cf26-a74f-40f8-8775-c5ab90a89b45" xlink:to="loc_wdc_EuropeMiddleEastAndAfricaMember_e7df0eff-38a3-464e-b57a-9b9573894381" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20230929.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_39453cf5-f537-406c-9248-bbc744a85e76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_c7fe3b4d-d7d9-4711-8244-f8c90c8bc46a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_39453cf5-f537-406c-9248-bbc744a85e76" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_c7fe3b4d-d7d9-4711-8244-f8c90c8bc46a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_39453cf5-f537-406c-9248-bbc744a85e76" xlink:to="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_141b858d-306a-498e-b6bb-57dbfc7ef88b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_141b858d-306a-498e-b6bb-57dbfc7ef88b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_141b858d-306a-498e-b6bb-57dbfc7ef88b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_141b858d-306a-498e-b6bb-57dbfc7ef88b" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_141b858d-306a-498e-b6bb-57dbfc7ef88b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_00a2c544-fac2-4d17-adae-0f9cdba02bea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_141b858d-306a-498e-b6bb-57dbfc7ef88b" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_00a2c544-fac2-4d17-adae-0f9cdba02bea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_e43ddc7e-ea67-4aa5-86b7-3e5b9a9c45e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_00a2c544-fac2-4d17-adae-0f9cdba02bea" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_e43ddc7e-ea67-4aa5-86b7-3e5b9a9c45e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_170d3539-76de-48e0-8676-0a1ca3477aca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_170d3539-76de-48e0-8676-0a1ca3477aca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_170d3539-76de-48e0-8676-0a1ca3477aca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_170d3539-76de-48e0-8676-0a1ca3477aca" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_170d3539-76de-48e0-8676-0a1ca3477aca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_c0e8a39b-5651-4e6c-8ed7-e4bf8f58f327" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_170d3539-76de-48e0-8676-0a1ca3477aca" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_c0e8a39b-5651-4e6c-8ed7-e4bf8f58f327" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_44173880-cc86-4705-8e2a-b1ab7c16f5f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_c0e8a39b-5651-4e6c-8ed7-e4bf8f58f327" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_44173880-cc86-4705-8e2a-b1ab7c16f5f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_b407113a-fae3-46ed-b6b5-b31d8830af34" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:to="loc_srt_MajorCustomersAxis_b407113a-fae3-46ed-b6b5-b31d8830af34" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_b407113a-fae3-46ed-b6b5-b31d8830af34_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_b407113a-fae3-46ed-b6b5-b31d8830af34" xlink:to="loc_srt_NameOfMajorCustomerDomain_b407113a-fae3-46ed-b6b5-b31d8830af34_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_6c4f45a5-d63e-4231-88cf-a80e33767ae9" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_b407113a-fae3-46ed-b6b5-b31d8830af34" xlink:to="loc_srt_NameOfMajorCustomerDomain_6c4f45a5-d63e-4231-88cf-a80e33767ae9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TopTenCustomersMember_ba76663f-46aa-4a62-a5d7-147c8211dd34" xlink:href="wdc-20230929.xsd#wdc_TopTenCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_6c4f45a5-d63e-4231-88cf-a80e33767ae9" xlink:to="loc_wdc_TopTenCustomersMember_ba76663f-46aa-4a62-a5d7-147c8211dd34" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_54f78e36-d91d-4dbe-a161-a9749bb97f7a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_250dd9e6-d831-46ca-9081-9a67ca56d584" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_54f78e36-d91d-4dbe-a161-a9749bb97f7a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_54f78e36-d91d-4dbe-a161-a9749bb97f7a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_54f78e36-d91d-4dbe-a161-a9749bb97f7a" xlink:to="loc_us-gaap_SegmentDomain_54f78e36-d91d-4dbe-a161-a9749bb97f7a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0a0942cc-7c32-4ee7-861d-7854b9f74cab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_54f78e36-d91d-4dbe-a161-a9749bb97f7a" xlink:to="loc_us-gaap_SegmentDomain_0a0942cc-7c32-4ee7-861d-7854b9f74cab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashSegmentMember_4c25f917-0e27-4fc0-aa6f-e4f2236fc7f3" xlink:href="wdc-20230929.xsd#wdc_FlashSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0a0942cc-7c32-4ee7-861d-7854b9f74cab" xlink:to="loc_wdc_FlashSegmentMember_4c25f917-0e27-4fc0-aa6f-e4f2236fc7f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_863cb682-4d11-42ff-bc36-adeddcd77b1d" xlink:href="wdc-20230929.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0a0942cc-7c32-4ee7-861d-7854b9f74cab" xlink:to="loc_wdc_HDDMember_863cb682-4d11-42ff-bc36-adeddcd77b1d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails" xlink:type="simple" xlink:href="wdc-20230929.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_035bef59-22b1-4dc9-863f-05a63d5380c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_93733579-0113-48dd-a279-ce9441f1ea54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_035bef59-22b1-4dc9-863f-05a63d5380c9" xlink:to="loc_us-gaap_GoodwillRollForward_93733579-0113-48dd-a279-ce9441f1ea54" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0ae4f37a-9cd3-43a1-8680-bbc143d1b565" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_93733579-0113-48dd-a279-ce9441f1ea54" xlink:to="loc_us-gaap_Goodwill_0ae4f37a-9cd3-43a1-8680-bbc143d1b565" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_e6e62da2-673a-4c4a-8ef3-c93782610df2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_93733579-0113-48dd-a279-ce9441f1ea54" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_e6e62da2-673a-4c4a-8ef3-c93782610df2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_2ef483f7-1c6c-47fc-8101-fdac73ef7845" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c26220fe-fbe3-4f73-889d-cf2f49366f74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_035bef59-22b1-4dc9-863f-05a63d5380c9" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c26220fe-fbe3-4f73-889d-cf2f49366f74" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c26220fe-fbe3-4f73-889d-cf2f49366f74" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3" xlink:to="loc_us-gaap_SegmentDomain_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f1121f6c-e94c-4238-a5a8-ab2c2bd15e26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5c7f5675-e8e4-4f14-ba2e-5b138df9f3c3" xlink:to="loc_us-gaap_SegmentDomain_f1121f6c-e94c-4238-a5a8-ab2c2bd15e26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashSegmentMember_b22d68c2-2660-48f8-9254-62f9ae3d12e0" xlink:href="wdc-20230929.xsd#wdc_FlashSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f1121f6c-e94c-4238-a5a8-ab2c2bd15e26" xlink:to="loc_wdc_FlashSegmentMember_b22d68c2-2660-48f8-9254-62f9ae3d12e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_2e90351e-63a6-4745-946c-bb9b3c7cfaca" xlink:href="wdc-20230929.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f1121f6c-e94c-4238-a5a8-ab2c2bd15e26" xlink:to="loc_wdc_HDDMember_2e90351e-63a6-4745-946c-bb9b3c7cfaca" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_44f0591f-63fb-4631-9c1a-ca6d4dd84fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_41db4831-95e0-4af3-a48e-540009d62879" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_44f0591f-63fb-4631-9c1a-ca6d4dd84fe4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_41db4831-95e0-4af3-a48e-540009d62879" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_67a868bf-fd47-47aa-a652-666ae520db69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_41db4831-95e0-4af3-a48e-540009d62879" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_67a868bf-fd47-47aa-a652-666ae520db69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_87634579-3bbd-4d3f-a540-f24abffd0216" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_41db4831-95e0-4af3-a48e-540009d62879" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_87634579-3bbd-4d3f-a540-f24abffd0216" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_e64fc543-7f4e-4a5b-8041-4bead914739a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_41db4831-95e0-4af3-a48e-540009d62879" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_e64fc543-7f4e-4a5b-8041-4bead914739a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_a75b88d3-58ec-4c1c-81f9-ccaec5cd7724" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_44f0591f-63fb-4631-9c1a-ca6d4dd84fe4" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_a75b88d3-58ec-4c1c-81f9-ccaec5cd7724" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_52a419d9-abeb-4cca-a65d-a487fb940741" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_a75b88d3-58ec-4c1c-81f9-ccaec5cd7724" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_52a419d9-abeb-4cca-a65d-a487fb940741" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_52a419d9-abeb-4cca-a65d-a487fb940741_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_52a419d9-abeb-4cca-a65d-a487fb940741" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_52a419d9-abeb-4cca-a65d-a487fb940741_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_52a419d9-abeb-4cca-a65d-a487fb940741" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_2204cef4-c819-45b8-86f6-70dc0f939d70" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_us-gaap_LandMember_2204cef4-c819-45b8-86f6-70dc0f939d70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_3cf8030e-195e-4426-8b31-8488264e9da9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_3cf8030e-195e-4426-8b31-8488264e9da9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_721831f2-10ef-4ccd-a03d-54726b9c02bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_721831f2-10ef-4ccd-a03d-54726b9c02bc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ComputerEquipmentandSoftwareMember_4eee3c91-89e7-4cfa-bffa-04df6596f162" xlink:href="wdc-20230929.xsd#wdc_ComputerEquipmentandSoftwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_wdc_ComputerEquipmentandSoftwareMember_4eee3c91-89e7-4cfa-bffa-04df6596f162" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_c63afcb3-0a48-4028-9d58-006504df3290" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_c63afcb3-0a48-4028-9d58-006504df3290" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_2aa6396b-2b68-4367-a280-3e3624321022" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_bbc60604-8806-43cf-80a2-ceaf22c75dcb" xlink:to="loc_us-gaap_ConstructionInProgressMember_2aa6396b-2b68-4367-a280-3e3624321022" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" xlink:type="simple" xlink:href="wdc-20230929.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_44690008-c004-45bd-843d-87e9dace7012" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_44690008-c004-45bd-843d-87e9dace7012" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_84d3e5f3-dc09-4bd3-b1d7-8b9531086404" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:to="loc_us-gaap_StockholdersEquity_84d3e5f3-dc09-4bd3-b1d7-8b9531086404" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_1c674640-3afb-40c8-bde6-33ae7f71d6c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_1c674640-3afb-40c8-bde6-33ae7f71d6c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_065bfa8c-cfa5-49ee-91f5-9704cea72a33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_065bfa8c-cfa5-49ee-91f5-9704cea72a33" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_0cec4db7-b661-481d-a730-fed13288e8c5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_0cec4db7-b661-481d-a730-fed13288e8c5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_273a33da-2426-4b5f-8b89-c670ec6ecbef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_08bb35c1-d942-466b-9484-2dea50304570" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_273a33da-2426-4b5f-8b89-c670ec6ecbef" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_20f34657-4317-48e6-914b-2d3e827a7b88" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_fd7a6470-c57d-4dbd-b78c-0f41a114ed85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_44690008-c004-45bd-843d-87e9dace7012" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_fd7a6470-c57d-4dbd-b78c-0f41a114ed85" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_8dc01702-84a1-4c17-b1da-63a8e137aca0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_fd7a6470-c57d-4dbd-b78c-0f41a114ed85" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_8dc01702-84a1-4c17-b1da-63a8e137aca0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_8dc01702-84a1-4c17-b1da-63a8e137aca0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8dc01702-84a1-4c17-b1da-63a8e137aca0" xlink:to="loc_us-gaap_EquityComponentDomain_8dc01702-84a1-4c17-b1da-63a8e137aca0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8dc01702-84a1-4c17-b1da-63a8e137aca0" xlink:to="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_01a909dc-b078-477f-adba-2e8f4410b78d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_01a909dc-b078-477f-adba-2e8f4410b78d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_de58a5a8-4bb2-4f97-9db3-409272a2c2a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_de58a5a8-4bb2-4f97-9db3-409272a2c2a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_b144f2b6-ee45-4de8-b2e9-b29e7578e07a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_b144f2b6-ee45-4de8-b2e9-b29e7578e07a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_99956561-f62c-4f98-abf5-1e8c53e5b8e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b6e04181-c81b-498e-8e52-28f4df93758b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_99956561-f62c-4f98-abf5-1e8c53e5b8e5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_94fbed84-8ee1-4ce9-90f3-36649bd36405" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_8901af3d-3be3-4fcf-8d06-3e113291ebe1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_94fbed84-8ee1-4ce9-90f3-36649bd36405" xlink:to="loc_us-gaap_AssetsAbstract_8901af3d-3be3-4fcf-8d06-3e113291ebe1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5f56e025-998d-42a1-b014-95f39530216e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8901af3d-3be3-4fcf-8d06-3e113291ebe1" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5f56e025-998d-42a1-b014-95f39530216e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_e8d20135-5c5a-4d63-83f6-1dab77426a19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8901af3d-3be3-4fcf-8d06-3e113291ebe1" xlink:to="loc_us-gaap_DerivativeAssets_e8d20135-5c5a-4d63-83f6-1dab77426a19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_7dcb3fdb-80bb-4f7b-b105-8fe70efa3784" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8901af3d-3be3-4fcf-8d06-3e113291ebe1" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_7dcb3fdb-80bb-4f7b-b105-8fe70efa3784" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_f53928a8-6f47-4e2e-855c-52554551bfae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_94fbed84-8ee1-4ce9-90f3-36649bd36405" xlink:to="loc_us-gaap_LiabilitiesAbstract_f53928a8-6f47-4e2e-855c-52554551bfae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_839bfaad-5585-4caa-a8d0-f5b6642800b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f53928a8-6f47-4e2e-855c-52554551bfae" xlink:to="loc_us-gaap_DerivativeLiabilities_839bfaad-5585-4caa-a8d0-f5b6642800b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_774d8796-58c0-49e5-90fc-8d238ff8e9f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_f53928a8-6f47-4e2e-855c-52554551bfae" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_774d8796-58c0-49e5-90fc-8d238ff8e9f2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_94fbed84-8ee1-4ce9-90f3-36649bd36405" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_e55cd31c-c0f3-445d-aad2-5bb80adeb304" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a1eeebb5-ad21-4bba-b7c5-4cb7aa45d21d" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_e55cd31c-c0f3-445d-aad2-5bb80adeb304" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_d7bfdc1c-898e-46c5-91ee-5e52977b1647" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_e55cd31c-c0f3-445d-aad2-5bb80adeb304" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_d7bfdc1c-898e-46c5-91ee-5e52977b1647" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28219c03-cb5d-42ce-a3dc-b61dc4082707" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28219c03-cb5d-42ce-a3dc-b61dc4082707" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_28219c03-cb5d-42ce-a3dc-b61dc4082707_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28219c03-cb5d-42ce-a3dc-b61dc4082707" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_28219c03-cb5d-42ce-a3dc-b61dc4082707_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7cffae2d-fd08-4af0-bafa-e00f04c22de1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_28219c03-cb5d-42ce-a3dc-b61dc4082707" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7cffae2d-fd08-4af0-bafa-e00f04c22de1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_04e18a70-2511-4651-a7cc-fb0c31714a60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7cffae2d-fd08-4af0-bafa-e00f04c22de1" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_04e18a70-2511-4651-a7cc-fb0c31714a60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2e5dd347-4ec7-4b6f-8202-551c456aaed0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7cffae2d-fd08-4af0-bafa-e00f04c22de1" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2e5dd347-4ec7-4b6f-8202-551c456aaed0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_554c5cf6-f42f-45c3-a671-12e1daa9c30f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7cffae2d-fd08-4af0-bafa-e00f04c22de1" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_554c5cf6-f42f-45c3-a671-12e1daa9c30f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_f329ed24-60b5-4ecc-8bd7-e6acfdb1f677" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_79fdd8d3-9b3e-4a04-88c7-19305e1d8d11" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_f329ed24-60b5-4ecc-8bd7-e6acfdb1f677" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_6e80aaba-5a94-4473-8844-5f350b33d503" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_f329ed24-60b5-4ecc-8bd7-e6acfdb1f677" xlink:to="loc_us-gaap_MoneyMarketFundsMember_6e80aaba-5a94-4473-8844-5f350b33d503" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_93b261ac-fbcb-4cc0-a16b-2e21157fbcad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_f329ed24-60b5-4ecc-8bd7-e6acfdb1f677" xlink:to="loc_us-gaap_ForeignExchangeContractMember_93b261ac-fbcb-4cc0-a16b-2e21157fbcad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_4e756c78-923d-4625-b325-d19a802623a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_c01c9bff-1873-4716-bd1a-2632da11c069" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_4e756c78-923d-4625-b325-d19a802623a3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_4e756c78-923d-4625-b325-d19a802623a3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_4e756c78-923d-4625-b325-d19a802623a3" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_4e756c78-923d-4625-b325-d19a802623a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_a179d529-4e29-4491-9a15-9ccef5897b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_4e756c78-923d-4625-b325-d19a802623a3" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_a179d529-4e29-4491-9a15-9ccef5897b1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_49405967-46b8-4306-8cef-1b4a0bb93b93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_a179d529-4e29-4491-9a15-9ccef5897b1a" xlink:to="loc_us-gaap_ForeignExchangeContractMember_49405967-46b8-4306-8cef-1b4a0bb93b93" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20230929.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_a3e49a7e-a9e1-401c-a955-cd0b2db08fe6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_12991b3c-b763-4926-9737-a917d4ce7e03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a3e49a7e-a9e1-401c-a955-cd0b2db08fe6" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_12991b3c-b763-4926-9737-a917d4ce7e03" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_16f8c0b4-d0f4-41f4-9708-79bedb5f197a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a3e49a7e-a9e1-401c-a955-cd0b2db08fe6" xlink:to="loc_us-gaap_LongTermDebtFairValue_16f8c0b4-d0f4-41f4-9708-79bedb5f197a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_a3e49a7e-a9e1-401c-a955-cd0b2db08fe6" xlink:to="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cc553fdb-35fa-41e4-8b52-7c89189372b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cc553fdb-35fa-41e4-8b52-7c89189372b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_cc553fdb-35fa-41e4-8b52-7c89189372b9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cc553fdb-35fa-41e4-8b52-7c89189372b9" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_cc553fdb-35fa-41e4-8b52-7c89189372b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3157fbf9-c712-439c-b5d1-5b040a0b1872" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_cc553fdb-35fa-41e4-8b52-7c89189372b9" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3157fbf9-c712-439c-b5d1-5b040a0b1872" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_f88b215e-b250-42c8-aaa6-af8900a60498" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_3157fbf9-c712-439c-b5d1-5b040a0b1872" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_f88b215e-b250-42c8-aaa6-af8900a60498" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_ee51a34d-f840-4c2a-b9d4-a93cb4729056" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_ee51a34d-f840-4c2a-b9d4-a93cb4729056" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ee51a34d-f840-4c2a-b9d4-a93cb4729056_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_ee51a34d-f840-4c2a-b9d4-a93cb4729056" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_ee51a34d-f840-4c2a-b9d4-a93cb4729056_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63719fbc-2b62-4f0c-832b-6bf5c560edf1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_ee51a34d-f840-4c2a-b9d4-a93cb4729056" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63719fbc-2b62-4f0c-832b-6bf5c560edf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f3d3b68a-dcac-4af6-9b95-bd8c3bf6db14" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63719fbc-2b62-4f0c-832b-6bf5c560edf1" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f3d3b68a-dcac-4af6-9b95-bd8c3bf6db14" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_ea456e59-a31a-4e4c-8264-7472b50bcd9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f3d3b68a-dcac-4af6-9b95-bd8c3bf6db14" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_ea456e59-a31a-4e4c-8264-7472b50bcd9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_c0894754-3ba7-496d-af89-6ded3fff35f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f3d3b68a-dcac-4af6-9b95-bd8c3bf6db14" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_c0894754-3ba7-496d-af89-6ded3fff35f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:to="loc_us-gaap_DebtInstrumentAxis_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_4dca8228-bf7c-4e68-b015-2eaf7aaa49e5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_dbf1cb0b-4bc0-48b6-bce9-a1dbd7fd3b28" xlink:href="wdc-20230929.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_dbf1cb0b-4bc0-48b6-bce9-a1dbd7fd3b28" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DelayedDrawTermLoanMember_950de190-2c01-40e3-b0e6-1aab347bc558" xlink:href="wdc-20230929.xsd#wdc_DelayedDrawTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_DelayedDrawTermLoanMember_950de190-2c01-40e3-b0e6-1aab347bc558" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_755427c9-a72c-4f8a-9bee-92944731b497" xlink:href="wdc-20230929.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_755427c9-a72c-4f8a-9bee-92944731b497" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_12ea39ac-58dc-44f4-8c06-05dced230e19" xlink:href="wdc-20230929.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_TermLoanA2Member_12ea39ac-58dc-44f4-8c06-05dced230e19" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember_8824b98d-9f8b-4932-a5da-d5ec002de371" xlink:href="wdc-20230929.xsd#wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember_8824b98d-9f8b-4932-a5da-d5ec002de371" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_0e665b35-90a6-4a6b-ae92-18b83ed3205b" xlink:href="wdc-20230929.xsd#wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_86d7d38b-9137-467a-8654-4cbe0b14bc98" xlink:to="loc_wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_0e665b35-90a6-4a6b-ae92-18b83ed3205b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_6a2921b5-6114-4c08-83e4-f37529351f2d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ebec1c0-1469-407a-96b9-42c5788de608" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6a2921b5-6114-4c08-83e4-f37529351f2d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6a2921b5-6114-4c08-83e4-f37529351f2d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6a2921b5-6114-4c08-83e4-f37529351f2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6a2921b5-6114-4c08-83e4-f37529351f2d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_626bdbf1-7070-4351-8ead-42a06590f5c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6a2921b5-6114-4c08-83e4-f37529351f2d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_626bdbf1-7070-4351-8ead-42a06590f5c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_acfb3b97-a1f9-4230-877f-f54bc5d03f4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_626bdbf1-7070-4351-8ead-42a06590f5c8" xlink:to="loc_us-gaap_ConvertibleDebtMember_acfb3b97-a1f9-4230-877f-f54bc5d03f4d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivitiesDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#DerivativeInstrumentsandHedgingActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_61e21312-5004-4de8-aadf-f6a8289453c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_8e7a0fa5-3dea-43ca-b7fb-7626f1673bb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_61e21312-5004-4de8-aadf-f6a8289453c2" xlink:to="loc_us-gaap_DerivativeTermOfContract_8e7a0fa5-3dea-43ca-b7fb-7626f1673bb0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_b99a904d-401a-42e4-b2c9-a52f12eee812" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_61e21312-5004-4de8-aadf-f6a8289453c2" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_b99a904d-401a-42e4-b2c9-a52f12eee812" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_b99a904d-401a-42e4-b2c9-a52f12eee812" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8b2151c5-7818-421e-b195-906315f91384" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_b5fdbb08-4fbb-49ad-be39-4acd2afe30f4" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8b2151c5-7818-421e-b195-906315f91384" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_540d0315-7a38-4fb2-9e36-b1bd44c1d3b4" xlink:href="wdc-20230929.xsd#wdc_ForeignExchangeForwardContractsDesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_8b2151c5-7818-421e-b195-906315f91384" xlink:to="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_540d0315-7a38-4fb2-9e36-b1bd44c1d3b4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20230929.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_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_a8132608-ae33-4262-ac09-189c11b113c8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_a8132608-ae33-4262-ac09-189c11b113c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_db04a2d5-ac18-4a00-8d91-44296e52ca24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_db04a2d5-ac18-4a00-8d91-44296e52ca24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_832abfda-52c6-4952-a0ce-743baa66020a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_832abfda-52c6-4952-a0ce-743baa66020a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_147c5ce9-da70-41dd-b8fc-801f060c8803" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_LongTermDebt_147c5ce9-da70-41dd-b8fc-801f060c8803" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_3c23edf3-4ea3-42d5-b055-98a42707d179" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_LongTermDebtCurrent_3c23edf3-4ea3-42d5-b055-98a42707d179" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_4b8d4a56-7bc3-4e53-80bd-febfa2c6da33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_4b8d4a56-7bc3-4e53-80bd-febfa2c6da33" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_3cfd92e0-17ce-4141-9926-9de82b2ef0a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9d7ebf89-0719-4f65-97ce-1577160ca1be" xlink:to="loc_us-gaap_DebtInstrumentTable_3cfd92e0-17ce-4141-9926-9de82b2ef0a2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_72220f2f-08f7-4252-a4fc-76b994eba95b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3cfd92e0-17ce-4141-9926-9de82b2ef0a2" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_72220f2f-08f7-4252-a4fc-76b994eba95b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_72220f2f-08f7-4252-a4fc-76b994eba95b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_72220f2f-08f7-4252-a4fc-76b994eba95b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_72220f2f-08f7-4252-a4fc-76b994eba95b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a54baa68-0640-4b4c-b9ec-b49a8a67c3d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_72220f2f-08f7-4252-a4fc-76b994eba95b" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a54baa68-0640-4b4c-b9ec-b49a8a67c3d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_60457482-13d7-4d90-acc7-6b989c7014c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a54baa68-0640-4b4c-b9ec-b49a8a67c3d2" xlink:to="loc_us-gaap_ConvertibleDebtMember_60457482-13d7-4d90-acc7-6b989c7014c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_484755c9-fa54-4257-94d0-4d1ebc6a76fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3cfd92e0-17ce-4141-9926-9de82b2ef0a2" xlink:to="loc_us-gaap_DebtInstrumentAxis_484755c9-fa54-4257-94d0-4d1ebc6a76fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_484755c9-fa54-4257-94d0-4d1ebc6a76fb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_484755c9-fa54-4257-94d0-4d1ebc6a76fb" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_484755c9-fa54-4257-94d0-4d1ebc6a76fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_484755c9-fa54-4257-94d0-4d1ebc6a76fb" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_09cf6fee-c0f1-4493-939d-a66a8b352c1f" xlink:href="wdc-20230929.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_09cf6fee-c0f1-4493-939d-a66a8b352c1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DelayedDrawTermLoanMember_2c9c0b1c-6ea6-4c8c-88dc-4c5518dc23e0" xlink:href="wdc-20230929.xsd#wdc_DelayedDrawTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_DelayedDrawTermLoanMember_2c9c0b1c-6ea6-4c8c-88dc-4c5518dc23e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_2f8d2532-bdc0-4c81-9e13-003f118d5b3f" xlink:href="wdc-20230929.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_2f8d2532-bdc0-4c81-9e13-003f118d5b3f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_5c812d7d-c985-4d6f-b9d9-51782923b5ca" xlink:href="wdc-20230929.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_TermLoanA2Member_5c812d7d-c985-4d6f-b9d9-51782923b5ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember_e34f8bde-c177-403c-ae9a-11d9218cf25d" xlink:href="wdc-20230929.xsd#wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_TwoPointEightyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentyNineMember_e34f8bde-c177-403c-ae9a-11d9218cf25d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_b417e69f-04d7-45e2-9ebc-c981d48c9f3c" xlink:href="wdc-20230929.xsd#wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fd66bcd8-49df-46af-ac7b-6fd041f04717" xlink:to="loc_wdc_ThreePointTenPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember_b417e69f-04d7-45e2-9ebc-c981d48c9f3c" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20230929.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_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_612e99aa-a382-4e74-b2d7-3f767443bcb6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_612e99aa-a382-4e74-b2d7-3f767443bcb6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_fec4d1cb-9451-44a9-a280-0e48f71f46d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_fec4d1cb-9451-44a9-a280-0e48f71f46d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_3f04ce4e-2679-4c16-a1e4-4652b5a07542" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_3f04ce4e-2679-4c16-a1e4-4652b5a07542" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6f7c0f31-2980-4af7-a9a8-c36dd780c36d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6f7c0f31-2980-4af7-a9a8-c36dd780c36d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_b63e6b68-6255-4b0c-b5c6-3c8e3938a497" xlink:to="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_fe673243-adf1-44e3-bcf3-bcdb9d1489f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:to="loc_us-gaap_DebtInstrumentAxis_fe673243-adf1-44e3-bcf3-bcdb9d1489f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fe673243-adf1-44e3-bcf3-bcdb9d1489f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_fe673243-adf1-44e3-bcf3-bcdb9d1489f1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fe673243-adf1-44e3-bcf3-bcdb9d1489f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d17ab3e0-ddfc-4b62-87a2-30fba94160bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_fe673243-adf1-44e3-bcf3-bcdb9d1489f1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d17ab3e0-ddfc-4b62-87a2-30fba94160bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DelayedDrawTermLoanAgreementMember_012f74bd-7c6a-4c69-9efd-659079b2048b" xlink:href="wdc-20230929.xsd#wdc_DelayedDrawTermLoanAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_d17ab3e0-ddfc-4b62-87a2-30fba94160bc" xlink:to="loc_wdc_DelayedDrawTermLoanAgreementMember_012f74bd-7c6a-4c69-9efd-659079b2048b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA2Member_8db91b35-9fee-4efe-b004-ec5b52840114" xlink:href="wdc-20230929.xsd#wdc_TermLoanA2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_d17ab3e0-ddfc-4b62-87a2-30fba94160bc" xlink:to="loc_wdc_TermLoanA2Member_8db91b35-9fee-4efe-b004-ec5b52840114" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0d84473b-2733-489d-86ef-d53ffeb69582" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:to="loc_srt_RangeAxis_0d84473b-2733-489d-86ef-d53ffeb69582" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0d84473b-2733-489d-86ef-d53ffeb69582_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0d84473b-2733-489d-86ef-d53ffeb69582" xlink:to="loc_srt_RangeMember_0d84473b-2733-489d-86ef-d53ffeb69582_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_4dd8f062-c21d-4a67-a8ec-4d424ab43701" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0d84473b-2733-489d-86ef-d53ffeb69582" xlink:to="loc_srt_RangeMember_4dd8f062-c21d-4a67-a8ec-4d424ab43701" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_93fc60df-ce51-4d59-b511-6dbd3037c917" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4dd8f062-c21d-4a67-a8ec-4d424ab43701" xlink:to="loc_srt_MinimumMember_93fc60df-ce51-4d59-b511-6dbd3037c917" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_744e42be-a576-4bc3-b2f0-44279882fcf1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4dd8f062-c21d-4a67-a8ec-4d424ab43701" xlink:to="loc_srt_MaximumMember_744e42be-a576-4bc3-b2f0-44279882fcf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_9a54faaa-34d7-4358-999b-3c39074f13a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_7d9eff9a-fc52-4a76-bf4b-e36d4a6b4370" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_9a54faaa-34d7-4358-999b-3c39074f13a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_279fc9cc-7610-403f-b405-a507bab43944" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_9a54faaa-34d7-4358-999b-3c39074f13a5" xlink:to="loc_us-gaap_LineOfCreditMember_279fc9cc-7610-403f-b405-a507bab43944" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_03d67fb7-414f-4e64-9d72-3bc3f069aab4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_fde203d8-3c9e-419e-8d3d-6bab4cf73245" xlink:to="loc_us-gaap_VariableRateAxis_03d67fb7-414f-4e64-9d72-3bc3f069aab4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_03d67fb7-414f-4e64-9d72-3bc3f069aab4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_03d67fb7-414f-4e64-9d72-3bc3f069aab4" xlink:to="loc_us-gaap_VariableRateDomain_03d67fb7-414f-4e64-9d72-3bc3f069aab4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_ab24bed6-9e79-43cb-b373-b5e98c7b98c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_03d67fb7-414f-4e64-9d72-3bc3f069aab4" xlink:to="loc_us-gaap_VariableRateDomain_ab24bed6-9e79-43cb-b373-b5e98c7b98c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SecuredOvernightFinancingRateSOFRMember_d7067cd1-0f86-4c7c-b752-e06b8b15319d" xlink:href="wdc-20230929.xsd#wdc_SecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ab24bed6-9e79-43cb-b373-b5e98c7b98c6" xlink:to="loc_wdc_SecuredOvernightFinancingRateSOFRMember_d7067cd1-0f86-4c7c-b752-e06b8b15319d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_1f25266f-3e9b-4491-b489-2df91ee80028" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ab24bed6-9e79-43cb-b373-b5e98c7b98c6" xlink:to="loc_us-gaap_BaseRateMember_1f25266f-3e9b-4491-b489-2df91ee80028" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20230929.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_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NumberOfLegalEntities_8cf347b1-ca44-44b2-9631-455a4f0fd8ef" xlink:href="wdc-20230929.xsd#wdc_NumberOfLegalEntities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_wdc_NumberOfLegalEntities_8cf347b1-ca44-44b2-9631-455a4f0fd8ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_d4399fbc-1b01-4cd6-bd73-65968898be78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_d4399fbc-1b01-4cd6-bd73-65968898be78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_8d1220ed-d86c-416a-91f5-13f42489db66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_AccountsPayableCurrent_8d1220ed-d86c-416a-91f5-13f42489db66" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_InvestmentFundingCommitments_80f886e5-a032-4e2e-bb76-11f0ca6e87eb" xlink:href="wdc-20230929.xsd#wdc_InvestmentFundingCommitments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_wdc_InvestmentFundingCommitments_80f886e5-a032-4e2e-bb76-11f0ca6e87eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ManufacturingCapacityOperatingPercentage_653f0f1c-ac35-43b3-bcae-04ba5fd30743" xlink:href="wdc-20230929.xsd#wdc_ManufacturingCapacityOperatingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_wdc_ManufacturingCapacityOperatingPercentage_653f0f1c-ac35-43b3-bcae-04ba5fd30743" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_ad00f4fd-5ccd-4612-92e7-bf436704c4fe" xlink:href="wdc-20230929.xsd#wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction_ad00f4fd-5ccd-4612-92e7-bf436704c4fe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_23241db1-fb36-4a8e-806d-1c49692a6650" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_OtherCommitment_23241db1-fb36-4a8e-806d-1c49692a6650" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_16606940-1511-4a46-91f1-cda249887383" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_16606940-1511-4a46-91f1-cda249887383" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PartnersOwnershipInVentureBusiness_0e7b2fbf-fdd3-44d2-821b-93e4279fa403" xlink:href="wdc-20230929.xsd#wdc_PartnersOwnershipInVentureBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_wdc_PartnersOwnershipInVentureBusiness_0e7b2fbf-fdd3-44d2-821b-93e4279fa403" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_161a1ae8-ebb7-4406-9d57-e0cb651fab2d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_161a1ae8-ebb7-4406-9d57-e0cb651fab2d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_52dcdf51-a1da-49e3-8145-f0cbd2e247d5" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e" xlink:to="loc_us-gaap_RelatedPartyDomain_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_77adc3d8-65ec-4a6f-b0d1-323e6e807653" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_7585ecba-7a4b-47e5-a4fe-72c9c51b6d0e" xlink:to="loc_us-gaap_RelatedPartyDomain_77adc3d8-65ec-4a6f-b0d1-323e6e807653" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_e80fd503-16f4-4232-aad2-d0d2cf01d99a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_77adc3d8-65ec-4a6f-b0d1-323e6e807653" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_e80fd503-16f4-4232-aad2-d0d2cf01d99a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameAxis_d9b09f02-493d-4d40-9d47-7fd49f6c0491" xlink:href="wdc-20230929.xsd#wdc_EquityMethodInvestorNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_wdc_EquityMethodInvestorNameAxis_d9b09f02-493d-4d40-9d47-7fd49f6c0491" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_d9b09f02-493d-4d40-9d47-7fd49f6c0491_default" xlink:href="wdc-20230929.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_d9b09f02-493d-4d40-9d47-7fd49f6c0491" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_d9b09f02-493d-4d40-9d47-7fd49f6c0491_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_4dc957fc-7d69-4fc3-b9d6-9a417ba34c25" xlink:href="wdc-20230929.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_d9b09f02-493d-4d40-9d47-7fd49f6c0491" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_4dc957fc-7d69-4fc3-b9d6-9a417ba34c25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_WesternDigitalCorpMember_2734bb36-2695-48c7-b228-f699a21f988f" xlink:href="wdc-20230929.xsd#wdc_WesternDigitalCorpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EquityMethodInvestorNameDomain_4dc957fc-7d69-4fc3-b9d6-9a417ba34c25" xlink:to="loc_wdc_WesternDigitalCorpMember_2734bb36-2695-48c7-b228-f699a21f988f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ca4ffccc-e99b-4cff-8960-1320dda1d373" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_srt_RangeAxis_ca4ffccc-e99b-4cff-8960-1320dda1d373" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ca4ffccc-e99b-4cff-8960-1320dda1d373_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ca4ffccc-e99b-4cff-8960-1320dda1d373" xlink:to="loc_srt_RangeMember_ca4ffccc-e99b-4cff-8960-1320dda1d373_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_47c96326-ad04-4a52-ae56-98a13dd66fb6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ca4ffccc-e99b-4cff-8960-1320dda1d373" xlink:to="loc_srt_RangeMember_47c96326-ad04-4a52-ae56-98a13dd66fb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_f2cf8ad4-452c-4440-9012-fdd759684cb1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_47c96326-ad04-4a52-ae56-98a13dd66fb6" xlink:to="loc_srt_MinimumMember_f2cf8ad4-452c-4440-9012-fdd759684cb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_cb00eb90-1dec-4b8a-abcd-f7ecc728ecef" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_47c96326-ad04-4a52-ae56-98a13dd66fb6" xlink:to="loc_srt_MaximumMember_cb00eb90-1dec-4b8a-abcd-f7ecc728ecef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_7908c55f-fc6e-44a0-a0ab-c9fca086f483" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_7908c55f-fc6e-44a0-a0ab-c9fca086f483" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_7908c55f-fc6e-44a0-a0ab-c9fca086f483_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_7908c55f-fc6e-44a0-a0ab-c9fca086f483" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_7908c55f-fc6e-44a0-a0ab-c9fca086f483_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_f3a2c04d-1f39-4dc5-99a5-b1d614b6fc05" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_7908c55f-fc6e-44a0-a0ab-c9fca086f483" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_f3a2c04d-1f39-4dc5-99a5-b1d614b6fc05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_34cb6e5c-f0a6-40a8-bb9f-9de691a999af" xlink:href="wdc-20230929.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_f3a2c04d-1f39-4dc5-99a5-b1d614b6fc05" xlink:to="loc_wdc_UnisVentureMember_34cb6e5c-f0a6-40a8-bb9f-9de691a999af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_KioxiaCorporationMember_2d90f617-cace-4f6e-8afb-96270817a68a" xlink:href="wdc-20230929.xsd#wdc_KioxiaCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_f3a2c04d-1f39-4dc5-99a5-b1d614b6fc05" xlink:to="loc_wdc_KioxiaCorporationMember_2d90f617-cace-4f6e-8afb-96270817a68a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_91c5b54f-3e88-4b83-9bda-38721ed0a596" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_dei_LegalEntityAxis_91c5b54f-3e88-4b83-9bda-38721ed0a596" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_91c5b54f-3e88-4b83-9bda-38721ed0a596_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_91c5b54f-3e88-4b83-9bda-38721ed0a596" xlink:to="loc_dei_EntityDomain_91c5b54f-3e88-4b83-9bda-38721ed0a596_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6d516ed4-78ba-472f-8c60-e2732ecdd8a1" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_91c5b54f-3e88-4b83-9bda-38721ed0a596" xlink:to="loc_dei_EntityDomain_6d516ed4-78ba-472f-8c60-e2732ecdd8a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnissoftWuxiGroupCoLtd.Member_8297a59d-a6b3-4157-939c-968ce78bf4ed" xlink:href="wdc-20230929.xsd#wdc_UnissoftWuxiGroupCoLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6d516ed4-78ba-472f-8c60-e2732ecdd8a1" xlink:to="loc_wdc_UnissoftWuxiGroupCoLtd.Member_8297a59d-a6b3-4157-939c-968ce78bf4ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_cd0701e1-3858-4e8b-a1de-0a6f3c634921" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_cd0701e1-3858-4e8b-a1de-0a6f3c634921" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_cd0701e1-3858-4e8b-a1de-0a6f3c634921_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_cd0701e1-3858-4e8b-a1de-0a6f3c634921" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_cd0701e1-3858-4e8b-a1de-0a6f3c634921_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_3049f1e2-c657-4fc2-a5da-9fd3cbb4a163" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_cd0701e1-3858-4e8b-a1de-0a6f3c634921" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_3049f1e2-c657-4fc2-a5da-9fd3cbb4a163" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_60f7a7a8-7e64-4f05-8e57-09a04da54bb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_3049f1e2-c657-4fc2-a5da-9fd3cbb4a163" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_60f7a7a8-7e64-4f05-8e57-09a04da54bb0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AccountsReceivableBenchmarkMember_bf85c8b3-0951-4e29-9563-2fa0f0a44882" xlink:href="wdc-20230929.xsd#wdc_AccountsReceivableBenchmarkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_3049f1e2-c657-4fc2-a5da-9fd3cbb4a163" xlink:to="loc_wdc_AccountsReceivableBenchmarkMember_bf85c8b3-0951-4e29-9563-2fa0f0a44882" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_535227e8-8408-44bd-8ddb-046741ad70ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_535227e8-8408-44bd-8ddb-046741ad70ad" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_535227e8-8408-44bd-8ddb-046741ad70ad_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_535227e8-8408-44bd-8ddb-046741ad70ad" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_535227e8-8408-44bd-8ddb-046741ad70ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_58d8aeb9-0797-4f93-a9c1-7dd18e952c45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_535227e8-8408-44bd-8ddb-046741ad70ad" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_58d8aeb9-0797-4f93-a9c1-7dd18e952c45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_231a17fe-aa78-4d24-8a11-44251eb09920" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_58d8aeb9-0797-4f93-a9c1-7dd18e952c45" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_231a17fe-aa78-4d24-8a11-44251eb09920" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_d18392a6-6e6c-4345-aa1c-b1c25c85a196" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_srt_MajorCustomersAxis_d18392a6-6e6c-4345-aa1c-b1c25c85a196" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_d18392a6-6e6c-4345-aa1c-b1c25c85a196_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_d18392a6-6e6c-4345-aa1c-b1c25c85a196" xlink:to="loc_srt_NameOfMajorCustomerDomain_d18392a6-6e6c-4345-aa1c-b1c25c85a196_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_f6ce2fb5-0549-4df1-a2c1-f716ee59e8a0" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_d18392a6-6e6c-4345-aa1c-b1c25c85a196" xlink:to="loc_srt_NameOfMajorCustomerDomain_f6ce2fb5-0549-4df1-a2c1-f716ee59e8a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_aaf58086-a846-4587-893f-d40b112c523b" xlink:href="wdc-20230929.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_f6ce2fb5-0549-4df1-a2c1-f716ee59e8a0" xlink:to="loc_wdc_UnisVentureMember_aaf58086-a846-4587-893f-d40b112c523b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_1defb191-fb5e-416b-ac01-0473f42caed1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_d684cbfc-d516-4224-a8ef-7724ea39c48e" xlink:to="loc_us-gaap_OtherCommitmentsAxis_1defb191-fb5e-416b-ac01-0473f42caed1" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_1defb191-fb5e-416b-ac01-0473f42caed1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_1defb191-fb5e-416b-ac01-0473f42caed1" xlink:to="loc_us-gaap_OtherCommitmentsDomain_1defb191-fb5e-416b-ac01-0473f42caed1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_a93817d3-05bb-4047-a12e-51abbafbb197" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_1defb191-fb5e-416b-ac01-0473f42caed1" xlink:to="loc_us-gaap_OtherCommitmentsDomain_a93817d3-05bb-4047-a12e-51abbafbb197" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PrepaymentsOfFutureDepreciationMember_4abcaf62-2d07-4c74-a51c-d0a2d3d85616" xlink:href="wdc-20230929.xsd#wdc_PrepaymentsOfFutureDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_a93817d3-05bb-4047-a12e-51abbafbb197" xlink:to="loc_wdc_PrepaymentsOfFutureDepreciationMember_4abcaf62-2d07-4c74-a51c-d0a2d3d85616" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20230929.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_4ee4319f-440f-4887-8e2b-e7c69ce68279" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_1094a5b6-5c9b-4223-b248-b176c576e3ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_4ee4319f-440f-4887-8e2b-e7c69ce68279" xlink:to="loc_us-gaap_NotesReceivableNet_1094a5b6-5c9b-4223-b248-b176c576e3ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_4ac29827-7c22-4407-8f61-bf8d54ab2526" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_4ee4319f-440f-4887-8e2b-e7c69ce68279" xlink:to="loc_us-gaap_Investments_4ac29827-7c22-4407-8f61-bf8d54ab2526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5d52e62e-1408-41ca-b42c-5fb376195914" xlink:href="wdc-20230929.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_4ee4319f-440f-4887-8e2b-e7c69ce68279" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_5d52e62e-1408-41ca-b42c-5fb376195914" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_4cfa569f-269b-426d-80be-6f317fc933fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_4ee4319f-440f-4887-8e2b-e7c69ce68279" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_4cfa569f-269b-426d-80be-6f317fc933fb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_3f833ce4-6461-4d8e-81d2-2425759cc9cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_4cfa569f-269b-426d-80be-6f317fc933fb" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_3f833ce4-6461-4d8e-81d2-2425759cc9cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_3f833ce4-6461-4d8e-81d2-2425759cc9cb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_3f833ce4-6461-4d8e-81d2-2425759cc9cb" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_3f833ce4-6461-4d8e-81d2-2425759cc9cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_3f833ce4-6461-4d8e-81d2-2425759cc9cb" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashPartnersLtdMember_9f4285bf-2525-4ad3-ba63-e50dc61167f9" xlink:href="wdc-20230929.xsd#wdc_FlashPartnersLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:to="loc_wdc_FlashPartnersLtdMember_9f4285bf-2525-4ad3-ba63-e50dc61167f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashAllianceLtdMember_ba4f0a5e-34b7-415e-b7cb-600098d6041b" xlink:href="wdc-20230929.xsd#wdc_FlashAllianceLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:to="loc_wdc_FlashAllianceLtdMember_ba4f0a5e-34b7-415e-b7cb-600098d6041b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashForwardLtdMember_99d2ae11-19ff-49f4-b738-ec0b2fb5ec26" xlink:href="wdc-20230929.xsd#wdc_FlashForwardLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:to="loc_wdc_FlashForwardLtdMember_99d2ae11-19ff-49f4-b738-ec0b2fb5ec26" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_e2ab27cc-85c3-49bf-94d7-a0cb91a62f68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_885ed6ed-8d9b-413e-9e3d-86feb6a04cfd" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_e2ab27cc-85c3-49bf-94d7-a0cb91a62f68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1cee6b85-b0ae-4434-94a1-efa6905a2eb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_4cfa569f-269b-426d-80be-6f317fc933fb" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1cee6b85-b0ae-4434-94a1-efa6905a2eb3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_1cee6b85-b0ae-4434-94a1-efa6905a2eb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1cee6b85-b0ae-4434-94a1-efa6905a2eb3" xlink:to="loc_us-gaap_RelatedPartyDomain_1cee6b85-b0ae-4434-94a1-efa6905a2eb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_96645e66-5054-48c1-acc1-0b7d45960183" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1cee6b85-b0ae-4434-94a1-efa6905a2eb3" xlink:to="loc_us-gaap_RelatedPartyDomain_96645e66-5054-48c1-acc1-0b7d45960183" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_3e74818c-26c4-4a76-a733-ce214d5077da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_96645e66-5054-48c1-acc1-0b7d45960183" xlink:to="loc_us-gaap_RelatedPartyMember_3e74818c-26c4-4a76-a733-ce214d5077da" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20230929.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_a6f504f2-027d-4acf-b00b-319315a3014f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_863c5616-9922-494e-b347-dda183e1c047" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a6f504f2-027d-4acf-b00b-319315a3014f" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_863c5616-9922-494e-b347-dda183e1c047" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_2f439444-56ea-4c89-8195-31cde4394116" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a6f504f2-027d-4acf-b00b-319315a3014f" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_2f439444-56ea-4c89-8195-31cde4394116" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_e5d521bb-7488-42f2-8e7e-91ec4c06d36d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a6f504f2-027d-4acf-b00b-319315a3014f" xlink:to="loc_us-gaap_InventoryGross_e5d521bb-7488-42f2-8e7e-91ec4c06d36d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_4c5ae8d6-ad1f-42bc-b385-debce812b369" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a6f504f2-027d-4acf-b00b-319315a3014f" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_4c5ae8d6-ad1f-42bc-b385-debce812b369" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_739ffc7e-9e1b-40ba-ad3f-b7650678334b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_4c5ae8d6-ad1f-42bc-b385-debce812b369" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_739ffc7e-9e1b-40ba-ad3f-b7650678334b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_739ffc7e-9e1b-40ba-ad3f-b7650678334b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_739ffc7e-9e1b-40ba-ad3f-b7650678334b" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_739ffc7e-9e1b-40ba-ad3f-b7650678334b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_739ffc7e-9e1b-40ba-ad3f-b7650678334b" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableMember_f3c9925e-2796-4b83-b628-84b2edf2d7cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NotesReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:to="loc_us-gaap_NotesReceivableMember_f3c9925e-2796-4b83-b628-84b2edf2d7cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentsMember_6f522750-8fa0-4a12-81bd-e514c99cb5ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:to="loc_us-gaap_EquityMethodInvestmentsMember_6f522750-8fa0-4a12-81bd-e514c99cb5ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_a815e108-8ce3-489b-9230-3992af341d75" xlink:href="wdc-20230929.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_a815e108-8ce3-489b-9230-3992af341d75" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_49febf0c-8492-4aba-a517-136649a7e1d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_caa888fa-e05e-4fb5-a176-f669dce20554" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_49febf0c-8492-4aba-a517-136649a7e1d1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_4c5ae8d6-ad1f-42bc-b385-debce812b369" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3" xlink:to="loc_us-gaap_RelatedPartyDomain_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_d7a66103-56bf-458e-9d73-c322393b605f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_9f274a6c-19b2-4d18-b3d2-3ef0526dbeb3" xlink:to="loc_us-gaap_RelatedPartyDomain_d7a66103-56bf-458e-9d73-c322393b605f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_fea6037f-7971-4dfa-8f81-52a40aaba741" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_d7a66103-56bf-458e-9d73-c322393b605f" xlink:to="loc_us-gaap_RelatedPartyMember_fea6037f-7971-4dfa-8f81-52a40aaba741" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="simple" xlink:href="wdc-20230929.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_ad6a3ee3-8bd9-4b5b-8de4-80ea2b64a128" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_daab6a24-62db-4f45-b850-66d951650927" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_ad6a3ee3-8bd9-4b5b-8de4-80ea2b64a128" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_daab6a24-62db-4f45-b850-66d951650927" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_8010217e-39d3-4ae8-8ea7-2c6da6a3d6f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_ad6a3ee3-8bd9-4b5b-8de4-80ea2b64a128" xlink:to="loc_us-gaap_LossContingenciesTable_8010217e-39d3-4ae8-8ea7-2c6da6a3d6f8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_95bd6778-dc8d-4178-9666-1a33837a17b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_8010217e-39d3-4ae8-8ea7-2c6da6a3d6f8" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_95bd6778-dc8d-4178-9666-1a33837a17b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_95bd6778-dc8d-4178-9666-1a33837a17b7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_95bd6778-dc8d-4178-9666-1a33837a17b7" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_95bd6778-dc8d-4178-9666-1a33837a17b7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8cd795ab-56cd-4783-9b2e-073b234349c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_95bd6778-dc8d-4178-9666-1a33837a17b7" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8cd795ab-56cd-4783-9b2e-073b234349c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_7d831f01-de0a-4eef-a890-b11796fd31f8" xlink:href="wdc-20230929.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8cd795ab-56cd-4783-9b2e-073b234349c1" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_7d831f01-de0a-4eef-a890-b11796fd31f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_f1c710c6-3631-4e46-aab3-7e35099afc81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_8010217e-39d3-4ae8-8ea7-2c6da6a3d6f8" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_f1c710c6-3631-4e46-aab3-7e35099afc81" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_f1c710c6-3631-4e46-aab3-7e35099afc81_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_f1c710c6-3631-4e46-aab3-7e35099afc81" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_f1c710c6-3631-4e46-aab3-7e35099afc81_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_44976c83-8571-478d-8536-4653f7acf8cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_f1c710c6-3631-4e46-aab3-7e35099afc81" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_44976c83-8571-478d-8536-4653f7acf8cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_3a8a76fe-626e-43da-9af3-eacf928de8ff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_44976c83-8571-478d-8536-4653f7acf8cf" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_3a8a76fe-626e-43da-9af3-eacf928de8ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_d97431ee-125d-449d-af2e-62c56506199c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_8010217e-39d3-4ae8-8ea7-2c6da6a3d6f8" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_d97431ee-125d-449d-af2e-62c56506199c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_d97431ee-125d-449d-af2e-62c56506199c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_d97431ee-125d-449d-af2e-62c56506199c" xlink:to="loc_us-gaap_RelatedPartyDomain_d97431ee-125d-449d-af2e-62c56506199c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_fdce2cf4-2bc5-4161-ba09-8aba8d7c0060" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_d97431ee-125d-449d-af2e-62c56506199c" xlink:to="loc_us-gaap_RelatedPartyDomain_fdce2cf4-2bc5-4161-ba09-8aba8d7c0060" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_426e9be1-a888-45ef-bcf6-d7ef60edafac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_fdce2cf4-2bc5-4161-ba09-8aba8d7c0060" xlink:to="loc_us-gaap_RelatedPartyMember_426e9be1-a888-45ef-bcf6-d7ef60edafac" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20230929.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_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_4a42afc8-d85d-4f80-94fa-908ee921c5a9" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_4a42afc8-d85d-4f80-94fa-908ee921c5a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_f46be099-f83c-468f-9ba0-f31808845f99" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_f46be099-f83c-468f-9ba0-f31808845f99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_bd7fd9d1-e8ec-46fb-a101-0e3ae4990f5d" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_bd7fd9d1-e8ec-46fb-a101-0e3ae4990f5d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6faf8a01-94c3-4906-b6c7-a56b8aa6e1cb" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_6faf8a01-94c3-4906-b6c7-a56b8aa6e1cb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_5bbb8844-9713-4c5b-88ce-3245c1801955" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_5bbb8844-9713-4c5b-88ce-3245c1801955" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_76019c00-b719-4282-8426-1208b16a0c6a" xlink:href="wdc-20230929.xsd#wdc_GuaranteeObligationsMaximumExposureYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFive_76019c00-b719-4282-8426-1208b16a0c6a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_bd6454fb-5d65-459d-8f11-0ae5ea30f2be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_bd6454fb-5d65-459d-8f11-0ae5ea30f2be" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3f197f5-08e1-465f-8cc2-ea9bff57ca3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_bebe7aa6-9859-4ef8-b03c-bac172245323" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3f197f5-08e1-465f-8cc2-ea9bff57ca3e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_10584d97-dbd3-478a-a0f8-90d1b2da3a62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3f197f5-08e1-465f-8cc2-ea9bff57ca3e" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_10584d97-dbd3-478a-a0f8-90d1b2da3a62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_10584d97-dbd3-478a-a0f8-90d1b2da3a62_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_10584d97-dbd3-478a-a0f8-90d1b2da3a62" xlink:to="loc_us-gaap_RelatedPartyDomain_10584d97-dbd3-478a-a0f8-90d1b2da3a62_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_3613e4c3-a368-4414-9fa6-c0b10596b31d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_10584d97-dbd3-478a-a0f8-90d1b2da3a62" xlink:to="loc_us-gaap_RelatedPartyDomain_3613e4c3-a368-4414-9fa6-c0b10596b31d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_be80903c-4e10-4582-81a2-5d03c15d2ef7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_3613e4c3-a368-4414-9fa6-c0b10596b31d" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_be80903c-4e10-4582-81a2-5d03c15d2ef7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_9d3ba9be-cbd9-4a40-9980-f308365c6f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_a3f197f5-08e1-465f-8cc2-ea9bff57ca3e" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_9d3ba9be-cbd9-4a40-9980-f308365c6f5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_9d3ba9be-cbd9-4a40-9980-f308365c6f5c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_9d3ba9be-cbd9-4a40-9980-f308365c6f5c" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_9d3ba9be-cbd9-4a40-9980-f308365c6f5c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_7e60512e-8db3-4574-81c5-7125356fe04d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_9d3ba9be-cbd9-4a40-9980-f308365c6f5c" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_7e60512e-8db3-4574-81c5-7125356fe04d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentOfPrincipalAmortizationMember_da1aadd7-bb87-4217-80ae-36e73afad2d4" xlink:href="wdc-20230929.xsd#wdc_PaymentOfPrincipalAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_7e60512e-8db3-4574-81c5-7125356fe04d" xlink:to="loc_wdc_PaymentOfPrincipalAmortizationMember_da1aadd7-bb87-4217-80ae-36e73afad2d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseOptionExercisePriceMember_d2c38247-cef3-41b2-ac76-5d0a29c448df" xlink:href="wdc-20230929.xsd#wdc_PurchaseOptionExercisePriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_7e60512e-8db3-4574-81c5-7125356fe04d" xlink:to="loc_wdc_PurchaseOptionExercisePriceMember_d2c38247-cef3-41b2-ac76-5d0a29c448df" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSaleLeasebackDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#LeasesandOtherCommitmentsSaleLeasebackDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSaleLeasebackDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionNetCashProceeds_a785bd44-bb99-441f-9620-8d097279a7c9" xlink:href="wdc-20230929.xsd#wdc_SaleLeasebackTransactionNetCashProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_wdc_SaleLeasebackTransactionNetCashProceeds_a785bd44-bb99-441f-9620-8d097279a7c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_3443f97a-1100-4b2d-b642-fb8211c0875a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_3443f97a-1100-4b2d-b642-fb8211c0875a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionAnnualLeaseRate_e3aed805-9eb6-486d-86bc-f93d3192eb28" xlink:href="wdc-20230929.xsd#wdc_SaleLeasebackTransactionAnnualLeaseRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_wdc_SaleLeasebackTransactionAnnualLeaseRate_e3aed805-9eb6-486d-86bc-f93d3192eb28" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionIncreasePercentage_68cabec9-9ef6-4aa1-bbdd-17c2daa3d69b" xlink:href="wdc-20230929.xsd#wdc_SaleLeasebackTransactionIncreasePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_wdc_SaleLeasebackTransactionIncreasePercentage_68cabec9-9ef6-4aa1-bbdd-17c2daa3d69b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionNumberOfRenewalOptions_98b4f293-5855-4906-aa4e-9220c260dd95" xlink:href="wdc-20230929.xsd#wdc_SaleLeasebackTransactionNumberOfRenewalOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_wdc_SaleLeasebackTransactionNumberOfRenewalOptions_98b4f293-5855-4906-aa4e-9220c260dd95" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_SaleLeasebackTransactionRenewalOptionsTerm_ac727b5b-0a4b-4e0d-8bc1-5bf4b3f07f7b" xlink:href="wdc-20230929.xsd#wdc_SaleLeasebackTransactionRenewalOptionsTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_wdc_SaleLeasebackTransactionRenewalOptionsTerm_ac727b5b-0a4b-4e0d-8bc1-5bf4b3f07f7b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_bd64507c-6857-4318-a1cf-3d657c4ca3c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_25fc0ce8-3f96-4703-8740-dd599fe07cb0" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_bd64507c-6857-4318-a1cf-3d657c4ca3c2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermAxis_e3585ea4-269d-45e7-803c-97eb777155c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseContractualTermAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_bd64507c-6857-4318-a1cf-3d657c4ca3c2" xlink:to="loc_us-gaap_LeaseContractualTermAxis_e3585ea4-269d-45e7-803c-97eb777155c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_e3585ea4-269d-45e7-803c-97eb777155c1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LeaseContractualTermAxis_e3585ea4-269d-45e7-803c-97eb777155c1" xlink:to="loc_us-gaap_LeaseContractualTermDomain_e3585ea4-269d-45e7-803c-97eb777155c1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseContractualTermDomain_b58f2f11-8eba-4ba7-abea-0cf8d1ae1fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseContractualTermDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LeaseContractualTermAxis_e3585ea4-269d-45e7-803c-97eb777155c1" xlink:to="loc_us-gaap_LeaseContractualTermDomain_b58f2f11-8eba-4ba7-abea-0cf8d1ae1fbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThroughJanuary12039Member_31e8aae1-616e-4e62-aba6-1a53152cc091" xlink:href="wdc-20230929.xsd#wdc_ThroughJanuary12039Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_b58f2f11-8eba-4ba7-abea-0cf8d1ae1fbc" xlink:to="loc_wdc_ThroughJanuary12039Member_31e8aae1-616e-4e62-aba6-1a53152cc091" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThroughDecember2057Member_d6ccdd57-8d61-4adb-8081-416b680b863f" xlink:href="wdc-20230929.xsd#wdc_ThroughDecember2057Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LeaseContractualTermDomain_b58f2f11-8eba-4ba7-abea-0cf8d1ae1fbc" xlink:to="loc_wdc_ThroughDecember2057Member_d6ccdd57-8d61-4adb-8081-416b680b863f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20230929.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_a049f817-d15f-48f3-b9c5-f960e14876e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_e382a056-2a3f-459c-ac53-515374e85c16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a049f817-d15f-48f3-b9c5-f960e14876e9" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_e382a056-2a3f-459c-ac53-515374e85c16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_5d5a5e99-746f-46b7-aaf8-53dbce6a9bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a049f817-d15f-48f3-b9c5-f960e14876e9" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_5d5a5e99-746f-46b7-aaf8-53dbce6a9bc6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_b577944b-a436-4716-8317-d19c93906e09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a049f817-d15f-48f3-b9c5-f960e14876e9" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_b577944b-a436-4716-8317-d19c93906e09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c9809873-270f-48c0-919e-2f47ab86f07a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a049f817-d15f-48f3-b9c5-f960e14876e9" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c9809873-270f-48c0-919e-2f47ab86f07a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c9809873-270f-48c0-919e-2f47ab86f07a" xlink:to="loc_us-gaap_AwardTypeAxis_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0f4cf2d-19ef-408a-8ebb-0ae71b64ea15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d7a14a5d-6ac4-4b3f-a2ac-d1dccf734c82" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0f4cf2d-19ef-408a-8ebb-0ae71b64ea15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_9360c937-0b6a-491a-aa33-b0c95456d50e" xlink:href="wdc-20230929.xsd#wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0f4cf2d-19ef-408a-8ebb-0ae71b64ea15" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_9360c937-0b6a-491a-aa33-b0c95456d50e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_af0198dd-255d-4347-8f87-136c16e16f28" xlink:href="wdc-20230929.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a0f4cf2d-19ef-408a-8ebb-0ae71b64ea15" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_af0198dd-255d-4347-8f87-136c16e16f28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_48408df0-78fb-4728-95dd-4fdc43458930" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_c9809873-270f-48c0-919e-2f47ab86f07a" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_48408df0-78fb-4728-95dd-4fdc43458930" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_48408df0-78fb-4728-95dd-4fdc43458930_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_48408df0-78fb-4728-95dd-4fdc43458930" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_48408df0-78fb-4728-95dd-4fdc43458930_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_63875918-2b68-4440-8c6c-cf1b10b0cc57" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_48408df0-78fb-4728-95dd-4fdc43458930" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_63875918-2b68-4440-8c6c-cf1b10b0cc57" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_2819cf5a-da51-4745-9fbd-5a1f05decfe3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_63875918-2b68-4440-8c6c-cf1b10b0cc57" xlink:to="loc_us-gaap_CostOfSalesMember_2819cf5a-da51-4745-9fbd-5a1f05decfe3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_50195651-065d-40ca-b667-096f5c13836c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_63875918-2b68-4440-8c6c-cf1b10b0cc57" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_50195651-065d-40ca-b667-096f5c13836c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_d4244e10-a36d-4e2b-b68d-1c8d65efef61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_63875918-2b68-4440-8c6c-cf1b10b0cc57" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_d4244e10-a36d-4e2b-b68d-1c8d65efef61" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_eff809e0-7d6d-45b9-bd6f-448309c84163" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_5afa9949-e965-41ac-a534-4dfa117fb0fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_eff809e0-7d6d-45b9-bd6f-448309c84163" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_5afa9949-e965-41ac-a534-4dfa117fb0fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9e3baa64-b8af-4cbb-9b2d-aeb32af9ef67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_eff809e0-7d6d-45b9-bd6f-448309c84163" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9e3baa64-b8af-4cbb-9b2d-aeb32af9ef67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_96ab6f81-cb54-4d02-8199-6961b26960c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_eff809e0-7d6d-45b9-bd6f-448309c84163" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_96ab6f81-cb54-4d02-8199-6961b26960c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_002b5e84-4ad7-4539-a491-88f580213e1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_96ab6f81-cb54-4d02-8199-6961b26960c3" xlink:to="loc_us-gaap_AwardTypeAxis_002b5e84-4ad7-4539-a491-88f580213e1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_002b5e84-4ad7-4539-a491-88f580213e1a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_002b5e84-4ad7-4539-a491-88f580213e1a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_002b5e84-4ad7-4539-a491-88f580213e1a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92687f00-0be3-474c-8745-7971e203e612" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_002b5e84-4ad7-4539-a491-88f580213e1a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92687f00-0be3-474c-8745-7971e203e612" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_0e97aa59-f50f-4b31-b189-9be2c18ab8e8" xlink:href="wdc-20230929.xsd#wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92687f00-0be3-474c-8745-7971e203e612" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_0e97aa59-f50f-4b31-b189-9be2c18ab8e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_3f890f3e-ebea-45ad-bd4d-07434c457a81" xlink:href="wdc-20230929.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92687f00-0be3-474c-8745-7971e203e612" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_3f890f3e-ebea-45ad-bd4d-07434c457a81" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" xlink:href="wdc-20230929.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_a9b91bc6-1d13-4294-af06-d3c30c0bd1fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a9b91bc6-1d13-4294-af06-d3c30c0bd1fb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_fe49850d-6090-4ff1-8421-acb6aac05ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_fe49850d-6090-4ff1-8421-acb6aac05ad2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_7ab5e067-58a7-422a-b655-618491cbdd12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_7ab5e067-58a7-422a-b655-618491cbdd12" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_3ac759bc-c41c-481a-993e-898c5d66bade" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_3ac759bc-c41c-481a-993e-898c5d66bade" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_cc22062e-cb18-4f93-a6ec-dfb3f890be25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_b4481d53-645b-4367-9314-93742b160202" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_cc22062e-cb18-4f93-a6ec-dfb3f890be25" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_9ab69a58-0730-42ec-88a3-6d9561b5a864" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a9b91bc6-1d13-4294-af06-d3c30c0bd1fb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_ae6e20a2-2ee9-4038-a18f-92f0863b2aa3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_ae6e20a2-2ee9-4038-a18f-92f0863b2aa3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c0d00d92-64d8-4867-956c-106630cab72d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_c0d00d92-64d8-4867-956c-106630cab72d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_4fe41af0-3a1a-4134-9da0-391206db4757" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_4fe41af0-3a1a-4134-9da0-391206db4757" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_e89383ed-261a-476a-b34f-a3182b713ce3" xlink:href="wdc-20230929.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_56c5df5c-269a-4ec2-aaa9-840c85881a54" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_e89383ed-261a-476a-b34f-a3182b713ce3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_842c3482-a524-4b8b-9ea3-b7384c254724" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_5de7c5da-4045-41c1-830e-d03d2274f2b7" xlink:href="wdc-20230929.xsd#wdc_AggregateValueOfRestrictedStockAwardsVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a9b91bc6-1d13-4294-af06-d3c30c0bd1fb" xlink:to="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_5de7c5da-4045-41c1-830e-d03d2274f2b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5200fb8a-1d4b-457a-b5b7-63aacaa66b21" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_a9b91bc6-1d13-4294-af06-d3c30c0bd1fb" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5200fb8a-1d4b-457a-b5b7-63aacaa66b21" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_804928ac-01c6-4b6e-92b8-893f0cf60017" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5200fb8a-1d4b-457a-b5b7-63aacaa66b21" xlink:to="loc_us-gaap_AwardTypeAxis_804928ac-01c6-4b6e-92b8-893f0cf60017" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_804928ac-01c6-4b6e-92b8-893f0cf60017_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_804928ac-01c6-4b6e-92b8-893f0cf60017" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_804928ac-01c6-4b6e-92b8-893f0cf60017_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9c7ebf17-8a35-413f-a62e-687ee70f67f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_804928ac-01c6-4b6e-92b8-893f0cf60017" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9c7ebf17-8a35-413f-a62e-687ee70f67f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_e83d75b7-c716-4520-b812-aa0fea8068d0" xlink:href="wdc-20230929.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9c7ebf17-8a35-413f-a62e-687ee70f67f5" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_e83d75b7-c716-4520-b812-aa0fea8068d0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails" xlink:type="simple" xlink:href="wdc-20230929.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_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_f02d83c2-ec55-4e47-a20a-07d108973d29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquitySharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_f02d83c2-ec55-4e47-a20a-07d108973d29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_13a5a896-6860-4541-a6f4-db9811823b26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_13a5a896-6860-4541-a6f4-db9811823b26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPrivatePlacement_dc78891c-2726-47d7-a024-28d57f287e27" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfPrivatePlacement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPrivatePlacement_dc78891c-2726-47d7-a024-28d57f287e27" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_deaf6e93-d904-4fbb-b990-cdd5167de51e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_deaf6e93-d904-4fbb-b990-cdd5167de51e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquityPreferredStockDividendRatePercentage_2c25e562-997d-44cb-bf88-2a2f4129c8e6" xlink:href="wdc-20230929.xsd#wdc_TemporaryEquityPreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_wdc_TemporaryEquityPreferredStockDividendRatePercentage_2c25e562-997d-44cb-bf88-2a2f4129c8e6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeDividends_2b98bd7d-d004-473f-adae-02788b0c974f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CumulativeDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_CumulativeDividends_2b98bd7d-d004-473f-adae-02788b0c974f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockAmountOfPreferredDividendsInArrears_20b031f1-ab94-436a-9aa4-5068f6ed8593" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockAmountOfPreferredDividendsInArrears"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_PreferredStockAmountOfPreferredDividendsInArrears_20b031f1-ab94-436a-9aa4-5068f6ed8593" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TemporaryEquitySharesConvertible_f07bedf2-3252-433a-bd74-07eff628fc4c" xlink:href="wdc-20230929.xsd#wdc_TemporaryEquitySharesConvertible"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_wdc_TemporaryEquitySharesConvertible_f07bedf2-3252-433a-bd74-07eff628fc4c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityLiquidationPreference_adfcd8d7-ada5-450f-8f73-89961c493bec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TemporaryEquityLiquidationPreference"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_TemporaryEquityLiquidationPreference_adfcd8d7-ada5-450f-8f73-89961c493bec" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_030d48ec-d55f-4b34-b5c7-81b3d093c4b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7178b2ce-65f3-454f-83f2-2d707b5799b5" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_030d48ec-d55f-4b34-b5c7-81b3d093c4b2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_030d48ec-d55f-4b34-b5c7-81b3d093c4b2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc" xlink:to="loc_us-gaap_ClassOfStockDomain_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2f782397-278a-4e05-90ca-87016af0fb52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0b95ac7e-7f19-459c-b77a-ba6a8f318cfc" xlink:to="loc_us-gaap_ClassOfStockDomain_2f782397-278a-4e05-90ca-87016af0fb52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_8cb82bde-1247-4930-ad37-0e830d34a0f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2f782397-278a-4e05-90ca-87016af0fb52" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_8cb82bde-1247-4930-ad37-0e830d34a0f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertiblePreferredStockMember_5599a94d-50be-40c8-9a85-e67c4130c19a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertiblePreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2f782397-278a-4e05-90ca-87016af0fb52" xlink:to="loc_us-gaap_ConvertiblePreferredStockMember_5599a94d-50be-40c8-9a85-e67c4130c19a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_3c131f73-0460-46ca-8fcb-696103b1de93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_030d48ec-d55f-4b34-b5c7-81b3d093c4b2" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_3c131f73-0460-46ca-8fcb-696103b1de93" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_3c131f73-0460-46ca-8fcb-696103b1de93_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_3c131f73-0460-46ca-8fcb-696103b1de93" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_3c131f73-0460-46ca-8fcb-696103b1de93_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_f51f90f4-b922-4aba-86bb-6005b907b7dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_3c131f73-0460-46ca-8fcb-696103b1de93" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_f51f90f4-b922-4aba-86bb-6005b907b7dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrivatePlacementMember_b2108155-8ed2-4e1a-a7d4-dd7658dad35a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrivatePlacementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_f51f90f4-b922-4aba-86bb-6005b907b7dc" xlink:to="loc_us-gaap_PrivatePlacementMember_b2108155-8ed2-4e1a-a7d4-dd7658dad35a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateAxis_90cacedb-c933-462b-8e19-bef8e51827fb" xlink:href="wdc-20230929.xsd#wdc_DividendRateDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_030d48ec-d55f-4b34-b5c7-81b3d093c4b2" xlink:to="loc_wdc_DividendRateDateAxis_90cacedb-c933-462b-8e19-bef8e51827fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateDomain_90cacedb-c933-462b-8e19-bef8e51827fb_default" xlink:href="wdc-20230929.xsd#wdc_DividendRateDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_DividendRateDateAxis_90cacedb-c933-462b-8e19-bef8e51827fb" xlink:to="loc_wdc_DividendRateDateDomain_90cacedb-c933-462b-8e19-bef8e51827fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendRateDateDomain_9cced7e9-1ddd-453d-89f0-bbf420b2cb07" xlink:href="wdc-20230929.xsd#wdc_DividendRateDateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_DividendRateDateAxis_90cacedb-c933-462b-8e19-bef8e51827fb" xlink:to="loc_wdc_DividendRateDateDomain_9cced7e9-1ddd-453d-89f0-bbf420b2cb07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_January312030Member_894124e9-7b1d-46fc-b5d2-a460c9dd66b7" xlink:href="wdc-20230929.xsd#wdc_January312030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DividendRateDateDomain_9cced7e9-1ddd-453d-89f0-bbf420b2cb07" xlink:to="loc_wdc_January312030Member_894124e9-7b1d-46fc-b5d2-a460c9dd66b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_January312033Member_313e1fc6-d4dc-48a6-b41c-ff188fbb5e14" xlink:href="wdc-20230929.xsd#wdc_January312033Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_DividendRateDateDomain_9cced7e9-1ddd-453d-89f0-bbf420b2cb07" xlink:to="loc_wdc_January312033Member_313e1fc6-d4dc-48a6-b41c-ff188fbb5e14" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExaminationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_373c98ec-1a56-47cf-9bc6-e3a37f6d10b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsPeriodIncreaseDecrease_373c98ec-1a56-47cf-9bc6-e3a37f6d10b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_78d8e24d-f8c8-4f7a-baa8-a5f0ef94ab44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_78d8e24d-f8c8-4f7a-baa8-a5f0ef94ab44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsPayable_1a39beef-3e7d-4d69-b63c-06de2b533439" xlink:href="wdc-20230929.xsd#wdc_UnrecognizedTaxBenefitsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_wdc_UnrecognizedTaxBenefitsPayable_1a39beef-3e7d-4d69-b63c-06de2b533439" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_caaf2d7b-5d5d-41a8-8f99-24e674d943ea" xlink:href="wdc-20230929.xsd#wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_caaf2d7b-5d5d-41a8-8f99-24e674d943ea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationPenaltiesAndInterestExpense_037a078d-be42-4f56-9a1c-c9b3fd2e39e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExaminationPenaltiesAndInterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_us-gaap_IncomeTaxExaminationPenaltiesAndInterestExpense_037a078d-be42-4f56-9a1c-c9b3fd2e39e9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationInterestExpense_f7138f70-ed58-4986-b9b0-19368bbce62f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExaminationInterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_us-gaap_IncomeTaxExaminationInterestExpense_f7138f70-ed58-4986-b9b0-19368bbce62f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability_eef1bfbf-0f79-4497-8e8b-ffc8d3f6def1" xlink:href="wdc-20230929.xsd#wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability_eef1bfbf-0f79-4497-8e8b-ffc8d3f6def1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_be9fcf64-9374-40c8-86dc-a076e9274272" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExaminationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_c2d47b4a-6e39-4c66-83b5-f6e015f9a500" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_be9fcf64-9374-40c8-86dc-a076e9274272" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_b6d4af30-71fb-43a5-897e-d07d4ab61298" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_be9fcf64-9374-40c8-86dc-a076e9274272" xlink:to="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_b6d4af30-71fb-43a5-897e-d07d4ab61298" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_b6d4af30-71fb-43a5-897e-d07d4ab61298_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_b6d4af30-71fb-43a5-897e-d07d4ab61298" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_b6d4af30-71fb-43a5-897e-d07d4ab61298_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_d3ba0793-887c-42d8-a47e-2b0d1ff85587" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReasonablyPossibleSignificantChangeInUnrecognizedTaxBenefitsByItemAxis_b6d4af30-71fb-43a5-897e-d07d4ab61298" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_d3ba0793-887c-42d8-a47e-2b0d1ff85587" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SettlementWithTaxingAuthorityMember_6fa0a52e-3be9-41e6-ba32-85fc5e626467" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SettlementWithTaxingAuthorityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleNatureOfUncertaintyDomain_d3ba0793-887c-42d8-a47e-2b0d1ff85587" xlink:to="loc_us-gaap_SettlementWithTaxingAuthorityMember_6fa0a52e-3be9-41e6-ba32-85fc5e626467" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodAxis_8c28c379-4f72-4451-8d53-e2d092251164" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_be9fcf64-9374-40c8-86dc-a076e9274272" xlink:to="loc_us-gaap_TaxPeriodAxis_8c28c379-4f72-4451-8d53-e2d092251164" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_8c28c379-4f72-4451-8d53-e2d092251164_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_8c28c379-4f72-4451-8d53-e2d092251164" xlink:to="loc_us-gaap_TaxPeriodDomain_8c28c379-4f72-4451-8d53-e2d092251164_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_fc74f02c-022e-4b66-a841-0071c087c351" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_8c28c379-4f72-4451-8d53-e2d092251164" xlink:to="loc_us-gaap_TaxPeriodDomain_fc74f02c-022e-4b66-a841-0071c087c351" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2008Through2012Member_ff8234ae-bcf4-42d7-ad26-b58a40013517" xlink:href="wdc-20230929.xsd#wdc_TaxYears2008Through2012Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_fc74f02c-022e-4b66-a841-0071c087c351" xlink:to="loc_wdc_TaxYears2008Through2012Member_ff8234ae-bcf4-42d7-ad26-b58a40013517" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2008Through2015Member_2dae9c0c-5a86-4370-ac95-8f02960517b1" xlink:href="wdc-20230929.xsd#wdc_TaxYears2008Through2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_fc74f02c-022e-4b66-a841-0071c087c351" xlink:to="loc_wdc_TaxYears2008Through2015Member_2dae9c0c-5a86-4370-ac95-8f02960517b1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_47f4757d-1b88-4802-84ad-92d62c193b72" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_699607dc-42c7-4700-8fe3-d48603f89fe6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_47f4757d-1b88-4802-84ad-92d62c193b72" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_699607dc-42c7-4700-8fe3-d48603f89fe6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d4466bb4-7f93-4720-bd02-17a4d5d014ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_47f4757d-1b88-4802-84ad-92d62c193b72" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d4466bb4-7f93-4720-bd02-17a4d5d014ed" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_640ac316-46b3-47bc-a2d4-64f733feb7b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d4466bb4-7f93-4720-bd02-17a4d5d014ed" xlink:to="loc_us-gaap_DebtInstrumentAxis_640ac316-46b3-47bc-a2d4-64f733feb7b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_640ac316-46b3-47bc-a2d4-64f733feb7b9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_640ac316-46b3-47bc-a2d4-64f733feb7b9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_640ac316-46b3-47bc-a2d4-64f733feb7b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ffdfd130-7971-41b1-855d-6558a32a32d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_640ac316-46b3-47bc-a2d4-64f733feb7b9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ffdfd130-7971-41b1-855d-6558a32a32d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_afa18be4-e259-4d34-b57c-eee4b079b7f7" xlink:href="wdc-20230929.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ffdfd130-7971-41b1-855d-6558a32a32d8" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_afa18be4-e259-4d34-b57c-eee4b079b7f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d4466bb4-7f93-4720-bd02-17a4d5d014ed" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_d52fa021-0600-4bb4-85b0-e224c19fe84f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7bf2e6c0-b57e-42dc-b5b7-0730a52372bf" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_d52fa021-0600-4bb4-85b0-e224c19fe84f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_a254e310-76c1-48d2-a967-dace26bcbf9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d52fa021-0600-4bb4-85b0-e224c19fe84f" xlink:to="loc_us-gaap_ConvertibleDebtMember_a254e310-76c1-48d2-a967-dace26bcbf9f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#EmployeeTerminationAssetImpairmentandOtherExpenseRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherExpenseRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_befc7fda-90ae-4bb4-a6a4-e604f63ab90b" xlink:href="wdc-20230929.xsd#wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts_befc7fda-90ae-4bb4-a6a4-e604f63ab90b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossOnContractTermination_67800543-552a-43c8-aca4-0004f49cc506" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossOnContractTermination"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_us-gaap_LossOnContractTermination_67800543-552a-43c8-aca4-0004f49cc506" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_e5ad2bdf-3c3e-42a6-9c62-f530e6f6d782" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges_e5ad2bdf-3c3e-42a6-9c62-f530e6f6d782" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_7595544a-4845-446c-a19c-d5de95c39c43" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_7595544a-4845-446c-a19c-d5de95c39c43" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_acadc366-ba81-4906-a77a-c5aa71ef25ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_acadc366-ba81-4906-a77a-c5aa71ef25ba" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_db5c5d70-6882-4b56-8d67-111272dbc9ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_00ebc090-2698-4e29-bc73-55f7e5dbf280" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_db5c5d70-6882-4b56-8d67-111272dbc9ae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_b4226af7-f2b0-49ed-9e17-57b28e9692c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_db5c5d70-6882-4b56-8d67-111272dbc9ae" xlink:to="loc_us-gaap_RestructuringPlanAxis_b4226af7-f2b0-49ed-9e17-57b28e9692c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_b4226af7-f2b0-49ed-9e17-57b28e9692c0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_b4226af7-f2b0-49ed-9e17-57b28e9692c0" xlink:to="loc_us-gaap_RestructuringPlanDomain_b4226af7-f2b0-49ed-9e17-57b28e9692c0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_b8690817-1233-4908-b75f-587d14914adf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_b4226af7-f2b0-49ed-9e17-57b28e9692c0" xlink:to="loc_us-gaap_RestructuringPlanDomain_b8690817-1233-4908-b75f-587d14914adf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_8434a1bd-8922-4fd7-ad22-28ec3ecc1020" xlink:href="wdc-20230929.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_b8690817-1233-4908-b75f-587d14914adf" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_8434a1bd-8922-4fd7-ad22-28ec3ecc1020" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#EmployeeTerminationAssetImpairmentandOtherBusinessRealignmentActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherBusinessRealignmentActivitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_3bae4034-8ead-4080-8821-67aa9f195db9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_317ebe93-4cb0-4595-b4a3-ad6321083af8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3bae4034-8ead-4080-8821-67aa9f195db9" xlink:to="loc_us-gaap_RestructuringReserveRollForward_317ebe93-4cb0-4595-b4a3-ad6321083af8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_45073bb3-db9d-4e51-9b02-5cf431389cfb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_317ebe93-4cb0-4595-b4a3-ad6321083af8" xlink:to="loc_us-gaap_RestructuringReserve_45073bb3-db9d-4e51-9b02-5cf431389cfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_196dbb3e-0a0c-40ad-9ffc-87c310b10aae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_317ebe93-4cb0-4595-b4a3-ad6321083af8" xlink:to="loc_us-gaap_RestructuringCharges_196dbb3e-0a0c-40ad-9ffc-87c310b10aae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_d8685c6b-be0e-4406-a5ed-aefb0a66170f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_317ebe93-4cb0-4595-b4a3-ad6321083af8" xlink:to="loc_us-gaap_PaymentsForRestructuring_d8685c6b-be0e-4406-a5ed-aefb0a66170f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_1af61a9f-3127-4686-8d69-33761fe37c24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringReserve"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d5bc6473-3d3f-421a-9647-d9a3cc3024a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3bae4034-8ead-4080-8821-67aa9f195db9" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d5bc6473-3d3f-421a-9647-d9a3cc3024a7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_c9003088-2bef-462c-a774-7cef310f756a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d5bc6473-3d3f-421a-9647-d9a3cc3024a7" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_c9003088-2bef-462c-a774-7cef310f756a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_c9003088-2bef-462c-a774-7cef310f756a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_c9003088-2bef-462c-a774-7cef310f756a" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_c9003088-2bef-462c-a774-7cef310f756a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_2a14e9fd-4bc5-4962-ab5b-ac455eaec0ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_c9003088-2bef-462c-a774-7cef310f756a" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_2a14e9fd-4bc5-4962-ab5b-ac455eaec0ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_e1e7ba6a-fe18-4836-bd41-45a0603d993f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OneTimeTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_2a14e9fd-4bc5-4962-ab5b-ac455eaec0ac" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_e1e7ba6a-fe18-4836-bd41-45a0603d993f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractTerminationMember_ae0a9b39-aa08-484f-be22-3ea68aed438d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractTerminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_2a14e9fd-4bc5-4962-ab5b-ac455eaec0ac" xlink:to="loc_us-gaap_ContractTerminationMember_ae0a9b39-aa08-484f-be22-3ea68aed438d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_c093d526-4029-40b1-bca4-692a3037bc0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_d5bc6473-3d3f-421a-9647-d9a3cc3024a7" xlink:to="loc_us-gaap_RestructuringPlanAxis_c093d526-4029-40b1-bca4-692a3037bc0f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_c093d526-4029-40b1-bca4-692a3037bc0f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_c093d526-4029-40b1-bca4-692a3037bc0f" xlink:to="loc_us-gaap_RestructuringPlanDomain_c093d526-4029-40b1-bca4-692a3037bc0f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_e8f82ebf-43cd-49ba-80bf-ae79116bd4cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_c093d526-4029-40b1-bca4-692a3037bc0f" xlink:to="loc_us-gaap_RestructuringPlanDomain_e8f82ebf-43cd-49ba-80bf-ae79116bd4cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_91f024e1-1d36-41b3-ba94-e36da037722c" xlink:href="wdc-20230929.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_e8f82ebf-43cd-49ba-80bf-ae79116bd4cd" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_91f024e1-1d36-41b3-ba94-e36da037722c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplierFinanceProgramDetails" xlink:type="simple" xlink:href="wdc-20230929.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_9152dbe7-a9c9-4eff-bdd8-8d8ff5dadf6a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SupplierFinanceProgramLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramPaymentTimingPeriod_bd866502-70e7-461d-957c-f6e2c73d5b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SupplierFinanceProgramPaymentTimingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9152dbe7-a9c9-4eff-bdd8-8d8ff5dadf6a" xlink:to="loc_us-gaap_SupplierFinanceProgramPaymentTimingPeriod_bd866502-70e7-461d-957c-f6e2c73d5b3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramObligationCurrent_668ede1e-7b39-40de-ae04-d7971334de55" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SupplierFinanceProgramObligationCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9152dbe7-a9c9-4eff-bdd8-8d8ff5dadf6a" xlink:to="loc_us-gaap_SupplierFinanceProgramObligationCurrent_668ede1e-7b39-40de-ae04-d7971334de55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplierFinanceProgramTable_08aaba55-823d-4fea-9aa4-f1df87682035" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SupplierFinanceProgramTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SupplierFinanceProgramLineItems_9152dbe7-a9c9-4eff-bdd8-8d8ff5dadf6a" xlink:to="loc_us-gaap_SupplierFinanceProgramTable_08aaba55-823d-4fea-9aa4-f1df87682035" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_a44c4201-c110-43c6-ba92-64bc949fc22f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SupplierFinanceProgramTable_08aaba55-823d-4fea-9aa4-f1df87682035" xlink:to="loc_srt_RangeAxis_a44c4201-c110-43c6-ba92-64bc949fc22f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a44c4201-c110-43c6-ba92-64bc949fc22f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_a44c4201-c110-43c6-ba92-64bc949fc22f" xlink:to="loc_srt_RangeMember_a44c4201-c110-43c6-ba92-64bc949fc22f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f5a0ee2a-5c1d-4919-bc0c-18f7ec714919" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_a44c4201-c110-43c6-ba92-64bc949fc22f" xlink:to="loc_srt_RangeMember_f5a0ee2a-5c1d-4919-bc0c-18f7ec714919" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_2f41978e-0126-412e-ac27-ef0a9ebcb67f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f5a0ee2a-5c1d-4919-bc0c-18f7ec714919" xlink:to="loc_srt_MinimumMember_2f41978e-0126-412e-ac27-ef0a9ebcb67f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_df1a1058-a356-4fb4-af02-e898ba6d0557" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_f5a0ee2a-5c1d-4919-bc0c-18f7ec714919" xlink:to="loc_srt_MaximumMember_df1a1058-a356-4fb4-af02-e898ba6d0557" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="wdc-20230929.xsd#SubsequentEventsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NumberOfIndependentPublicCompanies_883b8d57-0d2c-4e64-8352-db16c03ba9f5" xlink:href="wdc-20230929.xsd#wdc_NumberOfIndependentPublicCompanies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_wdc_NumberOfIndependentPublicCompanies_883b8d57-0d2c-4e64-8352-db16c03ba9f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_33ef01d4-f106-4e6a-9a2e-4e40a956fa44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_33ef01d4-f106-4e6a-9a2e-4e40a956fa44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_df8eb912-3979-4e81-9e23-963476daef88" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_df8eb912-3979-4e81-9e23-963476daef88" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_65638c80-fb3c-467a-9f22-adffbeddabc0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_65638c80-fb3c-467a-9f22-adffbeddabc0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentInvestingActivities_807d7670-2b51-4526-9811-230b4233de6a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForDerivativeInstrumentInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentInvestingActivities_807d7670-2b51-4526-9811-230b4233de6a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCapPrice_44fca60f-eab5-42ce-9869-cacb2de3412f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeCapPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_DerivativeCapPrice_44fca60f-eab5-42ce-9869-cacb2de3412f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_a3471fa4-0ce7-4007-950e-95ac1e8dad15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_a3471fa4-0ce7-4007-950e-95ac1e8dad15" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_85f8f988-ee7c-462e-af7a-8c4e790ed775" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_a47843d1-85da-43cb-956a-21d15a050c6f" xlink:to="loc_us-gaap_SubsequentEventTable_85f8f988-ee7c-462e-af7a-8c4e790ed775" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_aba11bbd-c695-47dc-a83b-383e2277beeb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_85f8f988-ee7c-462e-af7a-8c4e790ed775" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_aba11bbd-c695-47dc-a83b-383e2277beeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_aba11bbd-c695-47dc-a83b-383e2277beeb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_aba11bbd-c695-47dc-a83b-383e2277beeb" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_aba11bbd-c695-47dc-a83b-383e2277beeb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6d4638d9-f344-4a06-9b6e-b02a7037e9fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_aba11bbd-c695-47dc-a83b-383e2277beeb" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6d4638d9-f344-4a06-9b6e-b02a7037e9fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_7cb8142f-b62b-4293-a9ea-405e00a6c0d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6d4638d9-f344-4a06-9b6e-b02a7037e9fe" xlink:to="loc_us-gaap_SubsequentEventMember_7cb8142f-b62b-4293-a9ea-405e00a6c0d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_a4b19a23-1635-4a9c-8e0e-28d0daabf25b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_85f8f988-ee7c-462e-af7a-8c4e790ed775" xlink:to="loc_us-gaap_DebtInstrumentAxis_a4b19a23-1635-4a9c-8e0e-28d0daabf25b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a4b19a23-1635-4a9c-8e0e-28d0daabf25b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_a4b19a23-1635-4a9c-8e0e-28d0daabf25b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a4b19a23-1635-4a9c-8e0e-28d0daabf25b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_34cd4969-a0cd-4566-a13f-644316e171ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_a4b19a23-1635-4a9c-8e0e-28d0daabf25b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_34cd4969-a0cd-4566-a13f-644316e171ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember_ae90a290-1e6d-4aee-abd4-5b7d66949fe9" xlink:href="wdc-20230929.xsd#wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_34cd4969-a0cd-4566-a13f-644316e171ee" xlink:to="loc_wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember_ae90a290-1e6d-4aee-abd4-5b7d66949fe9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_cf5c9d07-93d4-4aa6-98ea-c3fa7a322f2b" xlink:href="wdc-20230929.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_34cd4969-a0cd-4566-a13f-644316e171ee" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_cf5c9d07-93d4-4aa6-98ea-c3fa7a322f2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_00ac7328-9c16-412e-9093-d4227e8f058d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_85f8f988-ee7c-462e-af7a-8c4e790ed775" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_00ac7328-9c16-412e-9093-d4227e8f058d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_00ac7328-9c16-412e-9093-d4227e8f058d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_00ac7328-9c16-412e-9093-d4227e8f058d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_00ac7328-9c16-412e-9093-d4227e8f058d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_04d14470-bd6b-4ed2-880a-85bd780a50a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_00ac7328-9c16-412e-9093-d4227e8f058d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_04d14470-bd6b-4ed2-880a-85bd780a50a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_144aee48-5ed3-4e03-aa39-1cc568b0713a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_04d14470-bd6b-4ed2-880a-85bd780a50a4" xlink:to="loc_us-gaap_ConvertibleDebtMember_144aee48-5ed3-4e03-aa39-1cc568b0713a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.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/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.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/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember_9f5f87fb-bc1f-4bba-99ee-5efb21f1bbbc" xlink:href="wdc-20230929.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_9f5f87fb-bc1f-4bba-99ee-5efb21f1bbbc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_667d5ebf-ffe0-439b-868d-4cc642df74ac" xlink:href="wdc-20230929.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_667d5ebf-ffe0-439b-868d-4cc642df74ac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_9e323e4b-aaf3-4bfe-bfa7-7b1f10084603" xlink:href="wdc-20230929.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_9e323e4b-aaf3-4bfe-bfa7-7b1f10084603" xlink:type="arc" order="6"/>
  </link:definitionLink>
</link:linkbase>
