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.
|
 |
01-10-2021, 02:09 AM
|
#1
|
Member
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236
Rep: 
|
cannot access external harddisk after dd command
I have one external hard disk and I bought another one to make a backup of the first one.
I thought that the dd command would do the trick to make a copy of the first external harddisk. That didn't turn out that well. Now I cannot access the second harddisk.
This is the output of lsblk:
Quote:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 923.3G 0 part /
└─sda3 8:3 0 7.7G 0 part [SWAP]
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 931.5G 0 part
sr0 11:0 1 1024M 0 rom
|
The output of sudo fdisk -l /dev/sdc gives:
Quote:
isk /dev/sdc: 1.8 TiB, 2000398933504 bytes, 3907029167 sectors
Disk model: Expansion+
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: 0x429ce347
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 1953458175 1953456128 931.5G 7 HPFS/NTFS/exFAT
|
So, the disk is recognized but I cannot access it. What to do?
|
|
|
01-10-2021, 02:24 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399
|
We don't know what you did ("a dd command" isn't an answer), what the messages were, and what you mean by "I cannot access it".
You appear to have been here long enough to know you need to provide all the necessary info to get a reasonable answer.
|
|
|
01-10-2021, 02:41 AM
|
#3
|
Member
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236
Original Poster
Rep: 
|
Update: some errormessages
Quote:
umount /dev/sdc
umount: /dev/sdc: not mounted.
|
Quote:
mount /dev/sdc
mount: /dev/sdc: can't find in /etc/fstab.
|
Now I have an errormessage. I found this page to help me out:
https://help.ubuntu.com/community/In...ition_The_Disk
If I understood it correctly, I must make a mount point and take it from there.
Thank you for your answer, syg00. I consider myself still a newbie. I can google to find some answers and can run some commands in the terminal, but I am not a pro and therefore I don't always know what others need to know to answer my question.
I will try to solve it at some later time and will post my findings in this post.
|
|
|
01-10-2021, 04:23 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399
|
You need to mount the partition - actually the filesystem on the partition - not the base device. And yes, you need a mount-point to attach it to - /mnt should exist. Not generally recommended as a long-term usage, but ok to ensure things are ok as a test.
Code:
sudo mount /dev/sdc1 /mnt
lsblk -f
If you get any messages, post them here.
Last edited by syg00; 01-10-2021 at 04:25 AM.
Reason: wrong partition
|
|
|
01-10-2021, 05:18 AM
|
#5
|
Member
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236
Original Poster
Rep: 
|
The command sudo mount /dev/sdc1 /mnt gives:
Quote:
FUSE exfat 1.3.0
ERROR: invalid VBR checksum 0x0 (expected 0x362bf051).
|
The command lsblk -f gives:
Quote:
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 vfat 90B1-B387 502.1M 2% /boot/efi
├─sda2 ext4 77a24c5d-4a4e-4a76-bce3-37e1eeb2b288 505.4G 39% /
└─sda3 swap 01b30c06-688a-4b81-a1a7-d500de6a7f33 [SWAP]
sdc
└─sdc1 exfat 5EFF-DEA9
sr0
|
|
|
|
01-10-2021, 05:37 AM
|
#6
|
Member
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236
Original Poster
Rep: 
|
I found this:
https://www.howtogeek.com/235655/how...rive-on-linux/
I will try it later. I really have to go. Thanks again, syg00
|
|
|
01-10-2021, 02:34 PM
|
#7
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
So you used dd to copy a disk to another. Was the original exactly the same size as the destination? If not then dd can be an enemy.
If you still have the original then I would use something like fdisk, gparted, etc to delete all partitioning and write a new gpt partition table to the new disk. Then partition it properly, along with formatting the new partition(s).
Then I would create 2 directories under /mnt such as /mnt/old-disk and /mnt/new-disk and mount the partitions from the old disk and new disk as named.
Finally I would use something such as rsync to copy the data from one to the other. Something such as "rsync -av /mnt/old-disk/ /mnt/new-disk/" would work very well.
|
|
1 members found this post helpful.
|
03-25-2021, 03:52 AM
|
#8
|
Member
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236
Original Poster
Rep: 
|
I used gparted to partition the external hard disk and was able to copy my files to the new disk.
Thank you, computersavvy and syg00 for your answers.
|
|
|
All times are GMT -5. The time now is 04:20 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
|
|