Sdb would be removed with sda?
Sdb would be removed with sda?
Hello Dude
Where should sdb be mounted?
I mounted it in /mnt/sdb.
mnt is part of sda. When we reinstall the server sda would be removed does it effect sdb too and remove it?
Thanks
Where should sdb be mounted?
I mounted it in /mnt/sdb.
mnt is part of sda. When we reinstall the server sda would be removed does it effect sdb too and remove it?
Thanks
Re: Sdb would be removed with sda ?
Where it should be mounted depends on what you're using it for.
Are you sure it's sdb and not sdb1?
When you reinstall the OS, you have to remount it, either manually or add it to /etc/fstab.
Are you sure it's sdb and not sdb1?
When you reinstall the OS, you have to remount it, either manually or add it to /etc/fstab.
Re: Sdb would be removed with sda ?
Dear Tunk thank you for your reply. Yest it's sdb I checked it with "blkid" command now to be sure,
Did I do sth wrong and it should be sdb1?
Thanks for your attention and answer
Did I do sth wrong and it should be sdb1?
Thanks for your attention and answer
Re: Sdb would be removed with sda ?
From what you write it sounds like you haven't created partition(s) and file system(s)?
What's the output from this:
fdisk -l
And how did you mount it?
What's the output from this:
fdisk -l
And how did you mount it?
Re: Sdb would be removed with sda ?
An excellent guide for users that are new to Linux can be found at https://rute.gerdesas.com - while this is not official project documentation it is a well-regarded general introduction to Linux and may be of help. For an introduction to the bash shell take a look at http://linuxcommand.org/lc3_learning_the_shell.php
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Sdb would be removed with sda ?
You probably have an entry in /etc/fstab that mounts the drive in this location. It's not a good idea to mount based on device names (like /dev/sda) -- I typically use filesystem labels, something like
Code: Select all
LABEL=<label on sdb> /mnt/sdb ext4 noatime 0 2
You can find or set the label with the command "e2label /dev/sdb". Note that this assumes an ext2/3/4 type filesystem. It also assumes that /dev/sdb is not partitioned, which if fine, as long as you don't ever want to boot from that drive.
Re: Sdb would be removed with sda ?
Thanks from all of you.
I mounted this way:
1. mkdir /mnt/sdb
2. sudo mount /dev/sdb /mnt/sdb
3.and added a line to fstb: /dev/sdb /mnt/sdb ext4 defaults 0 0
I learnt it here: https://sh-tsang.medium.com/partitionin ... 4b7634d1e0
I rebooted too, it's there.
--------------------------------------------------
And fdisk -l is:
fdisk -l
Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000940fd
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 167772159 83885056 83 Linux
------------
Thanks
I mounted this way:
1. mkdir /mnt/sdb
2. sudo mount /dev/sdb /mnt/sdb
3.and added a line to fstb: /dev/sdb /mnt/sdb ext4 defaults 0 0
I learnt it here: https://sh-tsang.medium.com/partitionin ... 4b7634d1e0
I rebooted too, it's there.
--------------------------------------------------
And fdisk -l is:
fdisk -l
Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000940fd
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 167772159 83885056 83 Linux
------------
Thanks
Re: Sdb would be removed with sda?
AFAIK that is ok.
But, when you use sdb there's no need to partition it (normally, when you
partition it creates /dev/sdb1 which should then be used when creating the
file system). And the limit for fdisk is 2TB, not 2GB. So the instructions in
the link isn't the very best.
But, when you use sdb there's no need to partition it (normally, when you
partition it creates /dev/sdb1 which should then be used when creating the
file system). And the limit for fdisk is 2TB, not 2GB. So the instructions in
the link isn't the very best.
Re: Sdb would be removed with sda ?
The problem with that approach is that device names may change. You can also use a UUID, but the label allows you to show the purpose of the filesystem.
Re: Sdb would be removed with sda?
But to go back to the original question:
The answer to that is : where do you need the space? It's quite unusual to mount a drive under /mnt at all and even more unusual to mount it on a directory named after the drive itself. So, for example, if this is a database server running mysql and you wanted to use the space for that, then you could just mount it on /var/lib/mysql.Where should sdb be mounted?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke