LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 02-05-2020, 10:00 AM   #1
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Rep: Reputation: Disabled
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? :-)
 
Old 02-05-2020, 11:20 AM   #2
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
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.
 
Old 02-05-2020, 12:13 PM   #3
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-05-2020, 12:31 PM   #4
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
gparted can see hhd and it spins up.

not sure about this chown command if "no such file or directory"?
 
Old 02-05-2020, 12:36 PM   #5
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
Im afraid i've to go for a time. back later. thankyou BWuserx
 
Old 02-05-2020, 03:01 PM   #6
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
Quote:
Originally Posted by redcogs View Post
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.
 
Old 02-05-2020, 03:09 PM   #7
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
so a mount point doesn't exist?
 
Old 02-05-2020, 03:29 PM   #8
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
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.
Code:
lsblk
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
Code:
ls -la /mnt
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.
 
Old 02-05-2020, 04:32 PM   #9
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-05-2020, 04:34 PM   #10
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
you are helpful thanks
:-)
 
Old 02-05-2020, 05:31 PM   #11
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
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
Code:
fdisk -l
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.
 
Old 02-05-2020, 05:49 PM   #12
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
fdisk l = "command not found" :-(
 
Old 02-05-2020, 05:51 PM   #13
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
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:~$
 
Old 02-05-2020, 05:53 PM   #14
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
would using a different hdd be an easier solution BW userx? i do have another somewhere..
 
Old 02-05-2020, 05:58 PM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,391

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hhd help... tkienzle Linux - Hardware 2 09-10-2006 06:14 PM
new hhd snoply Linux - Hardware 5 05-31-2005 09:37 AM
new hhd snoply Linux - Hardware 2 05-30-2005 07:08 PM
How to change icon of trash, hhd.... ginda Linux - Newbie 1 03-20-2005 07:17 PM
Problem with display - HHD nearly full! gmichel Linux - Newbie 3 11-25-2003 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration