How to mount this internal drive as a permanent location? [duplicate]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
This question already has an answer here:
Hard drive won't mount
2 answers
I have a second internal hard drive, which shows up on the computer:///
page as a long string of numbers and letters (which is always the same). When I open it its gets mounted as a random (new) location, like /media/max/7830FA191926581F
. It's got some stuff on it already which I can access fine, and want to keep.
I can see with df -h
that it's on `/dev/sdb2/:
/dev/sdb2 525G 177G 348G 34% /media/max/7830FA191926581F
How do I set it up so that it's a permanent location, eg as /mnt/drive2
?
mount hard-drive
marked as duplicate by ubfan1, mikewhatever, karel, Eric Carvalho, Kevin Bowen Apr 5 at 7:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Hard drive won't mount
2 answers
I have a second internal hard drive, which shows up on the computer:///
page as a long string of numbers and letters (which is always the same). When I open it its gets mounted as a random (new) location, like /media/max/7830FA191926581F
. It's got some stuff on it already which I can access fine, and want to keep.
I can see with df -h
that it's on `/dev/sdb2/:
/dev/sdb2 525G 177G 348G 34% /media/max/7830FA191926581F
How do I set it up so that it's a permanent location, eg as /mnt/drive2
?
mount hard-drive
marked as duplicate by ubfan1, mikewhatever, karel, Eric Carvalho, Kevin Bowen Apr 5 at 7:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Insufficient info. Pls enterlsblk --fs
at command prompt, & post that result here.
– Seamus
Apr 1 at 22:26
add a comment |
This question already has an answer here:
Hard drive won't mount
2 answers
I have a second internal hard drive, which shows up on the computer:///
page as a long string of numbers and letters (which is always the same). When I open it its gets mounted as a random (new) location, like /media/max/7830FA191926581F
. It's got some stuff on it already which I can access fine, and want to keep.
I can see with df -h
that it's on `/dev/sdb2/:
/dev/sdb2 525G 177G 348G 34% /media/max/7830FA191926581F
How do I set it up so that it's a permanent location, eg as /mnt/drive2
?
mount hard-drive
This question already has an answer here:
Hard drive won't mount
2 answers
I have a second internal hard drive, which shows up on the computer:///
page as a long string of numbers and letters (which is always the same). When I open it its gets mounted as a random (new) location, like /media/max/7830FA191926581F
. It's got some stuff on it already which I can access fine, and want to keep.
I can see with df -h
that it's on `/dev/sdb2/:
/dev/sdb2 525G 177G 348G 34% /media/max/7830FA191926581F
How do I set it up so that it's a permanent location, eg as /mnt/drive2
?
This question already has an answer here:
Hard drive won't mount
2 answers
mount hard-drive
mount hard-drive
asked Apr 1 at 19:35
Max WilliamsMax Williams
877
877
marked as duplicate by ubfan1, mikewhatever, karel, Eric Carvalho, Kevin Bowen Apr 5 at 7:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by ubfan1, mikewhatever, karel, Eric Carvalho, Kevin Bowen Apr 5 at 7:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Insufficient info. Pls enterlsblk --fs
at command prompt, & post that result here.
– Seamus
Apr 1 at 22:26
add a comment |
1
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Insufficient info. Pls enterlsblk --fs
at command prompt, & post that result here.
– Seamus
Apr 1 at 22:26
1
1
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Insufficient info. Pls enter
lsblk --fs
at command prompt, & post that result here.– Seamus
Apr 1 at 22:26
Insufficient info. Pls enter
lsblk --fs
at command prompt, & post that result here.– Seamus
Apr 1 at 22:26
add a comment |
1 Answer
1
active
oldest
votes
A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab
is only mounted "on demand", i.e., by clicking its icon in your file manager.
A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).
To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab
. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.
- The line in
etc/fstab
that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then). - Start from the
sudo mkdir -p /media/datadrive
command. This shows how an existing partition is included in/etc/fstab
. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself,/mnt/drive2
). This mount point will be entry 2 on the line for your drive in/etc/fstab
file - The
blkid
command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in/etc/fstab
file. Take note of the file system (ext4
in the example), which you need to substitute as part 3.
Thanks - I put this in/etc/fstab
and it works fine.UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown withlsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?
– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab
is only mounted "on demand", i.e., by clicking its icon in your file manager.
A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).
To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab
. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.
- The line in
etc/fstab
that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then). - Start from the
sudo mkdir -p /media/datadrive
command. This shows how an existing partition is included in/etc/fstab
. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself,/mnt/drive2
). This mount point will be entry 2 on the line for your drive in/etc/fstab
file - The
blkid
command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in/etc/fstab
file. Take note of the file system (ext4
in the example), which you need to substitute as part 3.
Thanks - I put this in/etc/fstab
and it works fine.UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown withlsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?
– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
add a comment |
A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab
is only mounted "on demand", i.e., by clicking its icon in your file manager.
A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).
To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab
. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.
- The line in
etc/fstab
that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then). - Start from the
sudo mkdir -p /media/datadrive
command. This shows how an existing partition is included in/etc/fstab
. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself,/mnt/drive2
). This mount point will be entry 2 on the line for your drive in/etc/fstab
file - The
blkid
command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in/etc/fstab
file. Take note of the file system (ext4
in the example), which you need to substitute as part 3.
Thanks - I put this in/etc/fstab
and it works fine.UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown withlsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?
– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
add a comment |
A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab
is only mounted "on demand", i.e., by clicking its icon in your file manager.
A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).
To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab
. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.
- The line in
etc/fstab
that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then). - Start from the
sudo mkdir -p /media/datadrive
command. This shows how an existing partition is included in/etc/fstab
. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself,/mnt/drive2
). This mount point will be entry 2 on the line for your drive in/etc/fstab
file - The
blkid
command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in/etc/fstab
file. Take note of the file system (ext4
in the example), which you need to substitute as part 3.
A partition on an internal medium that is not automatically mounted through the system configuration file /etc/fstab
is only mounted "on demand", i.e., by clicking its icon in your file manager.
A partition on an external removable medium (USB drive), in contrast, is automatically mounted when the medium is detected. Such volumes are mounted under /media/$USER/, where $USER stands for the current user, and is the volume label if it exists, or the UUID. Any volumes mounted under /mount/$USER or under your home folder will show up as an icon in the left of your file manager (and as an icon on the desktop if you use desktop icons).
To have your second internal hard drive automatically and consistently mounted during startup in a folder of your choice, you can add the mount instructions to the system file /etc/fstab
. Part of the accepted answer in this post shows you how this is done. You need to adapt to your case.
- The line in
etc/fstab
that defines how your drive is mounted, is structured in six parts separated by space.1 an identifier of the partition, 2 the mount point, i.e., the folder where the partition is to be mounted, 3 the file system, 4 the options, 5 a flag for "dump" (leave on 0) and 6 a flag to check (for linux file systems such as ext2, ext 3 and ext4, or btrfs, set to 2 so the drive is checked each time on startup in second priority, i.e. after system partitions have been checked. Otherwise, leave on 0 and have the partition checked manually now and then). - Start from the
sudo mkdir -p /media/datadrive
command. This shows how an existing partition is included in/etc/fstab
. You decide yourself on where to mount. Mounting under /media will give you an extra icon. If you do not want this, mount elsewhere (e.g. as you suggest yourself,/mnt/drive2
). This mount point will be entry 2 on the line for your drive in/etc/fstab
file - The
blkid
command will show you the specific information you will need. You can literaly copy the "UUID="..." part to be part 1 on the line for your drive in/etc/fstab
file. Take note of the file system (ext4
in the example), which you need to substitute as part 3.
edited Apr 2 at 8:52
answered Apr 2 at 8:11
vanadiumvanadium
7,97311533
7,97311533
Thanks - I put this in/etc/fstab
and it works fine.UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown withlsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?
– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
add a comment |
Thanks - I put this in/etc/fstab
and it works fine.UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown withlsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?
– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
Thanks - I put this in
/etc/fstab
and it works fine. UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown with lsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?– Max Williams
Apr 2 at 8:41
Thanks - I put this in
/etc/fstab
and it works fine. UUID=<id> /mnt/drive2 ntfs default 0 0
, where the id is the one shown with lsblk --fs
. Do you think I need to set the last flag to 2? When you say it means the drive is checked, do you mean "checked for errors"?– Max Williams
Apr 2 at 8:41
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
Indeed, for an ntfs drive, this should be set to 0 - you should check and repair an ntfs drive from within Windows - I will update my answer for this.
– vanadium
Apr 2 at 8:51
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
I'm actually using Linux (mint) not Windows.
– Max Williams
Apr 2 at 15:39
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
Excellent, but if you are using (only) Linux, you should not be using an ntfs formatted drive as an internal drive, but a file system that is fully supported by linux, ntfs should only be used in a dual boot system, where periodically one can check the volume with the Windows tools.
– vanadium
Apr 2 at 16:10
add a comment |
1
Possible: askubuntu.com/a/800713/231142
– Terrance
Apr 1 at 19:37
Insufficient info. Pls enter
lsblk --fs
at command prompt, & post that result here.– Seamus
Apr 1 at 22:26