LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-10-2021, 02:09 AM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236

Rep: Reputation: Disabled
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?
 
Old 01-10-2021, 02:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
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.
 
Old 01-10-2021, 02:41 AM   #3
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-10-2021, 04:23 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
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
 
Old 01-10-2021, 05:18 AM   #5
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-10-2021, 05:37 AM   #6
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-10-2021, 02:34 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
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.
Old 03-25-2021, 03:52 AM   #8
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 236

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
Can access network, cannot access external addresses -Olly- Linux - Wireless Networking 2 10-08-2006 06:10 AM
External lan harddisk? kalleanka Linux - Hardware 0 07-18-2004 04:46 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
USB 2.0 and external harddisk crash mysterious Linux - Hardware 2 11-05-2003 05:50 AM
Installing Linux on USB External Harddisk compatible to HP Laptop yogesh_chitnis Linux - Hardware 0 04-17-2002 08:34 PM

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

All times are GMT -5. The time now is 04:20 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