From 5138ee2dd58986915924953d426fa706c4908afe Mon Sep 17 00:00:00 2001
From: Steve McIntyre <93sam@debian.org>
Date: Tue, 14 Apr 2015 01:12:05 +0000
Subject: Remove the old hdX device names, switch to sdX for disks
---
en/appendix/chroot-install.xml | 24 +++++++++---------
en/appendix/files.xml | 39 ++++++-----------------------
en/appendix/preseed.xml | 4 +--
en/boot-new/boot-new.xml | 2 +-
en/partitioning/device-names.xml | 34 +++++--------------------
en/partitioning/schemes.xml | 8 +++---
en/using-d-i/modules/partman.xml | 22 ++++++++--------
en/using-d-i/modules/x86/lilo-installer.xml | 2 +-
8 files changed, 43 insertions(+), 92 deletions(-)
diff --git a/en/appendix/chroot-install.xml b/en/appendix/chroot-install.xml
index ff7e895eb..584017d15 100644
--- a/en/appendix/chroot-install.xml
+++ b/en/appendix/chroot-install.xml
@@ -53,11 +53,11 @@ install desktop environments like GNOME or KDE).
Next, create file systems on the partitions. For example, to create an
-ext3 file system on partition /dev/hda6 (that's
+ext3 file system on partition /dev/sda6 (that's
our example root partition):
-# mke2fs -j /dev/hda6
+# mke2fs -j /dev/sda6
To create an ext2 file system instead, omit -j.
@@ -68,9 +68,9 @@ Initialize and activate swap (substitute the partition number for
your intended &debian; swap partition):
-# mkswap /dev/hda5
+# mkswap /dev/sda5
# sync
-# swapon /dev/hda5
+# swapon /dev/sda5
Mount one partition as /mnt/debinst (the
@@ -80,7 +80,7 @@ referenced later below.
# mkdir /mnt/debinst
-# mount /dev/hda6 /mnt/debinst
+# mount /dev/sda6 /mnt/debinst
@@ -552,17 +552,17 @@ Installing and setting up grub2 is as easy as:
# aptitude install grub-pc
-# grub-install /dev/hda
+# grub-install /dev/sda
# update-grub
The second command will install grub2 (in this case in
-the MBR of hda). The last command will create a sane
+the MBR of sda). The last command will create a sane
and working /boot/grub/grub.cfg.
-Note that this assumes that a /dev/hda device file has
+Note that this assumes that a /dev/sda device file has
been created. There are alternative methods to install grub2,
but those are outside the scope of this appendix.
@@ -571,8 +571,8 @@ but those are outside the scope of this appendix.
Here is a basic /etc/lilo.conf as an example:
-boot=/dev/hda6
-root=/dev/hda6
+boot=/dev/sda6
+root=/dev/sda6
install=menu
delay=20
lba32
@@ -596,10 +596,10 @@ use yaboot.conf relative to the system you call it from).
Here is a basic /etc/yaboot.conf as an example:
-boot=/dev/hda2
+boot=/dev/sda2
device=hd:
partition=6
-root=/dev/hda6
+root=/dev/sda6
magicboot=/usr/lib/yaboot/ofboot
timeout=50
image=/vmlinux
diff --git a/en/appendix/files.xml b/en/appendix/files.xml
index e389071a7..6b4456971 100644
--- a/en/appendix/files.xml
+++ b/en/appendix/files.xml
@@ -26,54 +26,29 @@ The most important device files are listed in the tables below.
-
-
- hda
- IDE Hard disk / CD-ROM on the first IDE port (Master)
-
- hdb
- IDE Hard disk / CD-ROM on the first IDE port (Slave)
-
- hdc
- IDE Hard disk / CD-ROM on the second IDE port (Master)
-
- hdd
- IDE Hard disk / CD-ROM on the second IDE port (Slave)
-
- hda1
- First partition of the first IDE hard disk
-
- hdd15
- Fifteenth partition of the fourth IDE hard disk
-
-
-
sda
- SCSI Hard disk with lowest SCSI ID (e.g. 0)
+ First hard disk
sdb
- SCSI Hard disk with next higher SCSI ID (e.g. 1)
-
- sdc
- SCSI Hard disk with next higher SCSI ID (e.g. 2)
+ Second hard disk
sda1
- First partition of the first SCSI hard disk
+ First partition of the first hard disk
- sdd10
- Tenth partition of the fourth SCSI hard disk
+ sdb7
+ Seventh partition of the second hard disk
sr0
- SCSI CD-ROM with the lowest SCSI ID
+ First CD-ROM
sr1
- SCSI CD-ROM with the next higher SCSI ID
+ Second CD-ROM
diff --git a/en/appendix/preseed.xml b/en/appendix/preseed.xml
index d726ecd16..cdfffa05d 100644
--- a/en/appendix/preseed.xml
+++ b/en/appendix/preseed.xml
@@ -1130,8 +1130,8 @@ correct one will be selected before using preseeding.
# Alternatively, you may specify a disk to partition. If the system has only
# one disk the installer will default to using that, but otherwise the device
-# name must be given in traditional, non-devfs format (so e.g. /dev/hda or
-# /dev/sda, and not e.g. /dev/discs/disc0/disc).
+# name must be given in traditional, non-devfs format (so e.g. /dev/sda
+# and not e.g. /dev/discs/disc0/disc).
# For example, to use the first SCSI/SATA hard disk:
#d-i partman-auto/disk string /dev/sda
# In addition, you'll need to specify the method to use.
diff --git a/en/boot-new/boot-new.xml b/en/boot-new/boot-new.xml
index 99443f2b4..5698630b2 100644
--- a/en/boot-new/boot-new.xml
+++ b/en/boot-new/boot-new.xml
@@ -87,7 +87,7 @@ If you use BootX to boot into the installed system,
just select your desired kernel in the Linux
Kernels folder, un-choose the ramdisk option, and add
a root device corresponding to your installation;
-e.g. /dev/hda8.
+e.g. /dev/sda8.
diff --git a/en/partitioning/device-names.xml b/en/partitioning/device-names.xml
index a32102eab..ba8edfbc7 100644
--- a/en/partitioning/device-names.xml
+++ b/en/partitioning/device-names.xml
@@ -24,14 +24,13 @@ The second floppy drive is named /dev/fd1.
-The first SCSI disk (SCSI ID address-wise) is named
-/dev/sda.
+The first hard disk detected is named /dev/sda.
-The second SCSI disk (address-wise) is named
-/dev/sdb, and so on.
+The second hard disk detected is named /dev/sdb,
+and so on.
@@ -39,26 +38,6 @@ The second SCSI disk (address-wise) is named
The first SCSI CD-ROM is named /dev/scd0, also
known as /dev/sr0.
-
-
-
-The master disk on IDE primary controller is named
-/dev/hda.
-
-
-
-
-The slave disk on IDE primary controller is named
-/dev/hdb.
-
-
-
-
-The master and slave disks of the secondary controller can be called
-/dev/hdc and /dev/hdd,
-respectively. Newer IDE controllers can actually have two channels,
-effectively acting like two controllers.
-
@@ -106,12 +85,11 @@ and/or capacities.
Linux represents the primary partitions as the drive name, plus the
numbers 1 through 4. For example, the first primary partition on the
-first IDE drive is /dev/hda1. The logical partitions are
+first drive is /dev/sda1. The logical partitions are
numbered starting at 5, so the first logical partition on that same
-drive is /dev/hda5. Remember that the extended
+drive is /dev/sda5. Remember that the extended
partition, that is, the primary partition holding the logical
-partitions, is not usable by itself. This applies to SCSI disks as
-well as IDE disks.
+partitions, is not usable by itself.
diff --git a/en/partitioning/schemes.xml b/en/partitioning/schemes.xml
index 56ded9fba..4edc34e0d 100644
--- a/en/partitioning/schemes.xml
+++ b/en/partitioning/schemes.xml
@@ -62,11 +62,11 @@ swap partitions, giving better performance.
As an example, an older home machine might have 32MB of RAM and a
-1.7GB IDE drive on /dev/hda. There might be a
+1.7GB IDE drive on /dev/sda. There might be a
500MB partition for another operating system on
-/dev/hda1, a 32MB swap partition on
-/dev/hda3 and about 1.2GB on
-/dev/hda2 as the Linux partition.
+/dev/sda1, a 32MB swap partition on
+/dev/sda3 and about 1.2GB on
+/dev/sda2 as the Linux partition.
diff --git a/en/using-d-i/modules/partman.xml b/en/using-d-i/modules/partman.xml
index e821ebc58..937e3b1f0 100644
--- a/en/using-d-i/modules/partman.xml
+++ b/en/using-d-i/modules/partman.xml
@@ -16,7 +16,7 @@ does not fix this issue. What does help, is to zero
the
first few sectors of the drive:
-# dd if=/dev/zero of=/dev/hdX bs=512 count=2; sync
+# dd if=/dev/zero of=/dev/sdX bs=512 count=2; sync
Note that this will make any existing data on that disk inaccessible.
@@ -312,29 +312,27 @@ formatted and where they will be mounted.
The list of partitions might look like this:
- IDE1 master (hda) - 6.4 GB WDC AC36400L
+ SCSI1 (0,0,0) (sda) - 6.4 GB WDC AC36400L
#1 primary 16.4 MB B f ext2 /boot
#2 primary 551.0 MB swap swap
#3 primary 5.8 GB ntfs
pri/log 8.2 MB FREE SPACE
- IDE1 slave (hdb) - 80.0 GB ST380021A
+ SCSI2 (1,0,0) (sdb) - 80.0 GB ST380021A
#1 primary 15.9 MB ext3
#2 primary 996.0 MB fat16
#3 primary 3.9 GB xfs /home
- #5 logical 6.0 GB f ext3 /
+ #5 logical 6.0 GB f ext4 /
#6 logical 1.0 GB f ext3 /var
#7 logical 498.8 MB ext3
- #8 logical 551.5 MB swap swap
- #9 logical 65.8 GB ext2
-This example shows two IDE harddrives divided into several partitions;
-the first disk has some free space. Each partition line consists of the
-partition number, its type, size, optional flags, file system, and
-mountpoint (if any). Note: this particular setup cannot be created using
-guided partitioning but it does show possible variation that can be achieved
-using manual partitioning.
+This example shows two hard drives divided into several partitions;
+the first disk has some free space. Each partition line consists of
+the partition number, its type, size, optional flags, file system, and
+mountpoint (if any). Note: this particular setup cannot be created
+using guided partitioning but it does show possible variation that can
+be achieved using manual partitioning.
diff --git a/en/using-d-i/modules/x86/lilo-installer.xml b/en/using-d-i/modules/x86/lilo-installer.xml
index 0295119f2..cc22d1e0f 100644
--- a/en/using-d-i/modules/x86/lilo-installer.xml
+++ b/en/using-d-i/modules/x86/lilo-installer.xml
@@ -50,7 +50,7 @@ loader.
Useful for advanced users who want to install LILO
somewhere else. In this case you will be asked for desired
location. You can use traditional device names such as
-/dev/hda or /dev/sda.
+/dev/sda.
--
cgit v1.2.3