Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-05-2020, 10:00 AM
|
#1
|
Member
Registered: Jan 2019
Posts: 55
Rep: 
|
additional hhd seems to be read only
hope this is in right place.
ive added a second hard drive for storage (its got a fresh installed 'Mint' on it I think, which I intend to remove) to my recently acquired laptop, a lenovo x230 coreboot with Debian 10 Mate as the OS. It has a 120 gig ssd, so fairly small, hence the addition of an old hhd that was laying around.
Debian 'sees' the hhd when i mount it, but I cant copy anything to it, or format it with gparted. So i assume its read only.
i was going to follow some instructions from youtube involving adding a text line to fstab, but fstab in etc doesn't seem to exist. I am floundering so hope a boffin might be along to help and advise please? :-)
|
|
|
02-05-2020, 11:20 AM
|
#2
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
you need to make it yours.
Code:
ls -la /drives location
if it is root root, you can change the permissions. 777, or change ownership.
Code:
su
passwd
chmod 777 /path/to/drive -R
or
chown userName:group /path/to/drive
https://www.howtoforge.com/linux-chown-command/
edit:
oh yeah, you might want to see what the file system type is on it, and such. format it ect.. no formatting with gparted. check its SMART is it still a good hdd?
does it spin up?
Last edited by BW-userx; 02-05-2020 at 11:36 AM.
|
|
|
02-05-2020, 12:13 PM
|
#3
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
user@debian:~$ ls -la /drives location
ls: cannot access '/drives': No such file or directory
ls: cannot access 'location': No such file or directory
user@debian:~$
Above is result of: ls -la /drives location
|
|
|
02-05-2020, 12:31 PM
|
#4
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
gparted can see hhd and it spins up.
not sure about this chown command if "no such file or directory"?
|
|
|
02-05-2020, 12:36 PM
|
#5
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
Im afraid i've to go for a time. back later. thankyou BWuserx
|
|
|
02-05-2020, 03:01 PM
|
#6
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by redcogs
user@debian:~$ ls -la /drives location
ls: cannot access '/drives': No such file or directory
ls: cannot access 'location': No such file or directory
user@debian:~$
Above is result of: ls -la /drives location
|
that is not a literal, it is notation .. it is to notate your actual location of the drives mount point.
|
|
|
02-05-2020, 03:09 PM
|
#7
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
so a mount point doesn't exist?
|
|
|
02-05-2020, 03:29 PM
|
#8
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
I got a laptop. whenever I put a hdd into it I mount it. Gparted will show all hdd connected to a system/
open a terminal.
to see your drives.
ie
Code:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 529M 0 part
├─sda2 8:2 0 100M 0 part
├─sda3 8:3 0 16M 0 part
├─sda4 8:4 0 537.2G 0 part /media/win10
└─sda5 8:5 0 1.3T 0 part /media/stores
mmcblk0 179:0 0 59.5G 0 disk
└─mmcblk0p1 179:1 0 59.5G 0 part /run/media/userx/SDCardEXT4
nvme0n1 259:0 0 1.9T 0 disk
├─nvme0n1p1 259:1 0 1M 0 part
├─nvme0n1p2 259:2 0 35G 0 part
├─nvme0n1p3 259:3 0 75G 0 part
├─nvme0n1p4 259:4 0 3G 0 part
├─nvme0n1p5 259:5 0 95M 0 part /boot/efi
├─nvme0n1p6 259:6 0 37.3G 0 part /
├─nvme0n1p7 259:7 0 69.9G 0 part /home
└─nvme0n1p8 259:8 0 1.7T 0 part /media/data
you'll see something similar like that only pertaining to your system.
find the drive in question. ie /dev/sdb1
now mount it.
Code:
sudo mount -t auto -o rw /dev/sdb1 /mnt
where in this example /dev/sdb1 is just that, an example.
now check it
copy paste back any errors or what you deem important.
if you cannot figure out what is your source to mount it to /mnt then just post back results of lsblk
Last edited by BW-userx; 02-05-2020 at 04:01 PM.
|
|
|
02-05-2020, 04:32 PM
|
#9
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
thanks. here:
user@debian:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 1.9G 0 part [SWAP]
└─sda2 8:2 0 110G 0 part /
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 462G 0 part /media/user/8ea4c4de-8459-46f0-b0df-52485cd22e1
├─sdb2 8:18 0 1K 0 part
└─sdb5 8:21 0 3.8G 0 part
|
|
|
02-05-2020, 04:34 PM
|
#10
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
you are helpful thanks
:-)
|
|
|
02-05-2020, 05:31 PM
|
#11
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
I do not know much aobut S.M.A.R.T for hdds
smartctl -H /dev/sda
https://www.techrepublic.com/blog/li...r-hard-drives/
post output for
also the drive HAS to be Unmounted to format it. if you got gparted open right click on it and look for unmount in the drop down list then select that. if it is there/
Last edited by BW-userx; 02-05-2020 at 05:32 PM.
|
|
|
02-05-2020, 05:49 PM
|
#12
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
fdisk l = "command not found" :-(
|
|
|
02-05-2020, 05:51 PM
|
#13
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
user@debian:~$ fdisk -l
bash: fdisk: command not found
user@debian:~$ fdisk -l
bash: fdisk: command not found
user@debian:~$ fdisk -l
bash: fdisk: command not found
user@debian:~$
|
|
|
02-05-2020, 05:53 PM
|
#14
|
Member
Registered: Jan 2019
Posts: 55
Original Poster
Rep: 
|
would using a different hdd be an easier solution BW userx? i do have another somewhere..
|
|
|
02-05-2020, 05:58 PM
|
#15
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,391
|
The fdisk command needs to be run as root user. Not sure if Debian uses sudo, don't think so. In the terminal do su then enter the root password you created ruing/after install and then fdisk.
|
|
|
All times are GMT -5. The time now is 11:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|