Re: Add a hard drive to existing system??
Jerry Mellon wrote:
> Hi,
> The Asus that I have is G75V series. It has 2 hdd bays onboard. The
> 500mv is the drive that is current installed and Debian 10.7 is
> installed. I have purchased another 2T Segate drive that will go into
> the empty bay.
>
> I don't want to do anything fancy, just install and update fstat. The
> question is what do I do in fstat to set it up. Currently the fstab file
> reads as follows.
>
> 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
>
>
> Do I set the new drive as /dev/sda6 , 7 , 8 ???? and would it be a
> single partition?
>
No, this drive will be recognized, after you plug it in, as
/dev/sdb, and will have whatever partitions you create on it.
To see what it gets called by the operating system:
cat /proc/partitions
To create a new partition
sudo fdisk /dev/sdb
and follow the prompts to write a partition table and create a
partition. The defaults will go to a single giant partition,
sdb1.
To create a filesystem on sdb1:
sudo mkfs.ext4 /dev/sdb1
To mount the partition temporarily:
sudo mkdir /mnt/tmp
sudo mount /dev/sdb1 /mnt/tmp
to unmount it:
sudo umount /dev/sdb1
To make it a normal part of your system, create a directory
where you want it to be -- /data ? /storage ? /backup ?
and then edit /etc/fstab.
-dsr-
Reply to: