LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06:13 PM   #16
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled

Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500LT012-1DG14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6077e745

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 968802303 968800256 462G 83 Linux
/dev/sdb2 968804350 976771071 7966722 3.8G 5 Extended
/dev/sdb5 968804352 976771071 7966720 3.8G 82 Linux swap / Solaris

Partition 2 does not start on physical sector boundary.


Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Disk model: CT120BX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4a9856dc

Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 3905535 3903488 1.9G 82 Linux swap / Solaris
/dev/sda2 * 3905536 234440703 230535168 110G 83 Linux
user@debian:~$
 
Old 02-05-2020, 06:22 PM   #17
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
gotta sleep now zzz ta for help so far hope to catch you tomorrow :-)
 
Old 02-05-2020, 06:23 PM   #18
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
ps it was the sudo command that worked
 
Old 02-05-2020, 07:25 PM   #19
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: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
they're your hdd's try another one if you like. then you can go back to that one when you have more time to mess with it to figure out what is wrong with it.
 
Old 02-06-2020, 10:43 AM   #20
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
tried another hdd, a 300gig one this time with same results. Debian 'sees' the drive and everything on it, but i cant write to it at all. my take on this is that the drives fine and that i just need to use correct combination of commands in terminal to resolve. Completely beyond my level of competence im afraid, so help still required im afraid.
 
Old 02-06-2020, 10:47 AM   #21
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
i just tried this:

sudo chmod 777 /path/to/drive -R
[sudo] password for user:
chmod: cannot access '/path/to/drive': No such file or directory
user@debian:~$

:-(
 
Old 02-06-2020, 10:52 AM   #22
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
If it is not an USB-drive look into /etc/fstab how it is mounted from there.
 
Old 02-06-2020, 11:36 AM   #23
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
ive looked in /etc and there is no fstab file.. this is a coreboot machine, maybe that is why?
 
Old 02-06-2020, 11:39 AM   #24
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
its a lenovo x230 with ultrabase 3 which contains the additional hdd. v frustrating.
 
Old 02-06-2020, 02:46 PM   #25
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: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
check your connections, the one docking station I seen on YouTube had a DVD player, so I assume you're using one of them replace dvd with hdd caddies. if you do just happen to have a means to connect one of your hdds via usb port via a sata to usb cable then you're going to at least see if they do work, and it is the docking station I'd be looking into the why is it not connecting the hdd in it to the laptop.
 
Old 02-07-2020, 10:31 AM   #26
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
check your connections, the one docking station I seen on YouTube had a DVD player, so I assume you're using one of them replace dvd with hdd caddies. if you do just happen to have a means to connect one of your hdds via usb port via a sata to usb cable then you're going to at least see if they do work, and it is the docking station I'd be looking into the why is it not connecting the hdd in it to the laptop.
Is this possible BW-userx, even though debian can 'see' and read the hdd contents?

BTW, i know the hdd are fully functional, they work in my old thinkpad x201.
 
Old 02-07-2020, 10:56 AM   #27
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: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so you can see them just not access them. you should be able to lsblk, to get the /dev/sdxx then mount them to a mount point on your system then access the contents within the hdds. if you're docking stations is not letting you do that then ... I'd look at the docking stations connections not allowing access and not the say a USB Port mount. if you can (auto)mount it via USB Port you can change permissions / ownership there then plug it into the docking station and see what happens.

Code:
su 
passwd
or
sudo to mount
-----
lsblk
gives available partitions 

mount /dev/sdXx /mnt
where Xx is the drive letter and partition to mount. last two alphanumerical notations on the string. aka /dev/sd[c2] <-- last two

fyi: you cannot mount the device only its partitions. so
Code:
sudo mount /dev/sdc /mnt
will never work.

Last edited by BW-userx; 02-07-2020 at 10:58 AM.
 
Old 02-12-2020, 08:48 AM   #28
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
i've made some progress on this but not enough. Using gparted i have created two partitions on the hdd, so it must be functional?

im still struggling to be able to write anything onto the hdd, so i have concluded that the problem relates to permissions and/or ownwership. im hoping the following information from terminal will allow someone to help me get the hdd into a useful state, so I can store data on it:

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 298.1G 0 disk
├─sdb1 8:17 0 149G 0 part /media/user/videos
└─sdb2 8:18 0 149G 0 part /media/user/data
user@debian:~$ ls -la /mnt
total 8
drwxr-xr-x 2 root root 4096 Nov 5 15:47 .
drwxr-xr-x 19 root root 4096 Nov 5 16:22 ..
user@debian:~$
 
Old 02-12-2020, 09:16 AM   #29
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: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
after you make a partition ROOT owns it period. Because root is the only one allowed to preform these tasks on the system. or pseudo root, pronounced sudo.

So you as root, or pseudo root using sudo have to give it permissions to let others do stuff to it. You can do this at least two ways that I use.

keep it root owner and give it 777. having it mounted somewhere.
Code:
sudo mount /dev/sdb1 /mnt

sudo chmod 777 /mnt -R
Here on mine you can see root owns it but I a user can read/write/exec from it too.
Code:
$ ls -la /media/data
total 10386836
drwxrwxrwx  35 root  root        4096 Feb 12 08:34  .
drwxr-xr-x   5 root  root        4096 Feb 10 15:04  ..
drwxr-xr-x  36 userx users      98304 Feb 10 07:15  backgrounds
drwxr-xr-x   6 userx users       4096 Feb  5 16:29  bin
drwxr-xr-x   3 userx users       4096 Feb  7 09:09  blender
drwxr-xr-x   4 userx users       4096 Feb  8 09:28  blender-cache
drwxr-xr-x   2 userx users       4096 Feb  7 07:53  blender-render-output
-rwxrwxrwx   1 userx users      10543 Feb  2 20:41  latest-firefox.sh
or you can change it to your user or just the group too is suppose to work.
Code:
sudo chown userName /mnt -R
group
Code:
sudo chown :users /mnt -R
both
Code:
sudo chown userName:users /mnt -R
so with your partitons as you posted are mounted
Code:
├─sdb1 8:17 0 149G 0 part /media/user/videos
└─sdb2 8:18 0 149G 0 part /media/user/data

sudo chmod 777 /media/user/videos -R
sudo chmod 777 /media/user/data -R
or change the ownership whichever why you want your system to be setup.

Last edited by BW-userx; 02-12-2020 at 09:27 AM.
 
Old 02-12-2020, 09:51 AM   #30
redcogs
Member
 
Registered: Jan 2019
Posts: 55

Original Poster
Rep: Reputation: Disabled
woowoo!!

Result!!

Thankyou so much for your endurance BW userx. You have enhanced my pc experience :-)
 
1 members found this post helpful.
  


Reply



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 04:18 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