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

Re: Add a hard drive to existing system??



On 2021-01-18 09:33, Jerry Mellon wrote:
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:~\>

Much better.  :-)


Here is an example console session. I set PS1 in my Bash profile to print a blank line, print useful contextual information, and then print the prompt. This makes it easier to read, understand, and/or reproduce the session:

2021-01-18 12:01:50 root@tinkywinky ~
# cat /etc/debian_version
9.13

2021-01-18 12:13:41 root@tinkywinky ~
# uname -a
Linux tinkywinky 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux

2021-01-18 12:13:43 root@tinkywinky ~
# grep PS1 .profile
export PS1='\n\D{%Y-%m-%d %H:%M:%S} '${USER}'@\h \w\n\$ '


David


Reply to: