[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Add a hard drive to existing system??



The fstab with the new drive now reads,

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name
devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=7748059d-ecc3-42ba-919b-e95202920927
/               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=5efd2441-adab-4d4f-9356-9671964198f7
none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

# sdb1 ext4         e68b74c4-1cee-43a6-8ce6-50e97a65d976

UUID=e68b74c4-1cee-43a6-8ce6-
50e97a65d976   /data     ext4     errors=remount-ro 0        2 
jerry@UNIX:~\> 













-----Original Message-----
From: David Christensen <dpchrist@holgerdanske.com>
To: debian-user@lists.debian.org
Subject: Re: Add a hard drive to existing system??
Date: Mon, 18 Jan 2021 01:23:30 -0800

On 2021-01-18 01:00, Keith Bainbridge wrote:
> On 18/1/21 9:44 am, Jerry Mellon wrote:
> > Currently the fstab file
> > reads as follows.
> > 
> > 
> > 
> > Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
> > Disk model: ST9500325AS
> > Units: sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> > Disklabel type: dos
> > Disk identifier: 0x0d0d6868
> > 
> > Device     Boot     Start       End   Sectors   Size Id Type
> > /dev/sda1  *         2048 951703551 951701504 453.8G 83 Linux
> > /dev/sda2       951705598 976771071  25065474    12G  5 Extended
> > /dev/sda5       951705600 976771071  25065472    12G 82 Linux swap /
> > Solaris
> 
> Before OP installs the new drive, hadn't we better sort out the
> claimed
> fstab. I think it is output from fdisk, but if grub is looking for
> sda1
> to boot from and the new disk is assigned /dev/sda, he won't boot.

D'oh!  Yes, that is fdisk(8) output.


Jerry -- please run the following command as root and post the complete 
console session -- prompt, command entered, and output obtained:

# cat /etc/fstab


David



Reply to: