LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-01-2021, 09:38 PM   #1
Master'n'Master
LQ Newbie
 
Registered: May 2021
Posts: 3

Rep: Reputation: Disabled
sda is not showing in block dev


Code:
grep: /boot/initrd.img-5.10.0-kali5-amd64: binary file matches
/etc/guymager/guymager.cfg:977:REM    '/dev/sda'
/etc/mime.types:1290:application/vnd.stardivision.draw                                          sda
/etc/smartd.conf:38:#/dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03)
/etc/smartd.conf:54:# /dev/sda -a -d sat
/etc/smartd.conf:63:#/dev/sda -d scsi -s L/../../3/18
/etc/smartd.conf:99:#/dev/sda -d cciss,0 -a -s (L/../../7/02|S/../.././02) -m root
/etc/smartd.conf:100:#/dev/sda -d cciss,1 -a -s (L/../../7/03|S/../.././03) -m root
/etc/theHarvester/wordlists/dns-big.txt:27382:sda
/home/kali/.xsession-errors:1434:thunar-volman: There is no device with the sysfs path "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/host3/target3:0:0/3:0:0:0/block/sda".
/home/kali/.xsession-errors:1449:thunar-volman: There is no device with the sysfs path "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/host3/target3:0:0/3:0:0:0/block/sda".
/home/kali/.zsh_history:334:sudo mount -t ntfs-3g -o defaults,noatime,utf8,dmask=002,fmask=111,uid=1000,gid=1000 /dev/sda /media/kali/flash
/home/kali/.zsh_history:338:sudo mount -t ntfs-3g -o defaults,noatime,utf8,dmask=002,fmask=111,uid=1000,gid=1000 /dev/sda /media/kali/flash
Code:
Apr 30 02:07:28 kali kernel: sd 3:0:0:0: [sda] Attached SCSI removable disk
Apr 30 02:19:47 kali kernel: sd 3:0:0:0: [sda] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
Apr 30 02:19:47 kali kernel: sd 3:0:0:0: [sda] Write Protect is off
Apr 30 02:19:47 kali kernel: sd 3:0:0:0: [sda] Mode Sense: 23 00 00 00
Apr 30 02:19:47 kali kernel: sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 30 02:19:47 kali kernel:  sda: sda1
Apr 30 02:19:47 kali kernel: sd 3:0:0:0: [sda] Attached SCSI removable disk
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: Attached scsi generic sg3 type 0
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: [sda] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: [sda] Write Protect is off
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: [sda] Mode Sense: 23 00 00 00
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 30 03:28:29 kali kernel:  sda: sda1
Apr 30 03:28:29 kali kernel: sd 3:0:0:0: [sda] Attached SCSI removable disk
Hi Dear Friends

I have my phone deleted partitions and GPT is broken

Phone gpt memory is not appearing in dev folder!

It appear when I look at it with journalctl.

How can I follow the way it appears in the dev folder.

and gpt is bad!

Thanks very much your helping
 
Old 05-02-2021, 08:55 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
Most likely sda is still there but the usb path is different than what is in the error message. Use lsblk to show block devices.

Use parted or sgdisk to fix your partition table. Make sure you restore the same UUIDs as in your backup. Unless you deliberately wrote over GPT without making a backup somewhere else, the backup is located at the end of the disk. See:
http://www.rodsbooks.com/gdisk/repairing.html

You can't mount sda if it has partitions. You must mount the filesystem block device which is a partition like sda1 or a logical volume on a partition.
 
Old 05-02-2021, 11:52 AM   #3
Master'n'Master
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Code:
sudo lsblk -a                                                                   
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0     7:0    0     3G  1 loop /usr/lib/live/mount/rootfs/filesystem.squashfs
loop1     7:1    0     0B  0 loop 
loop2     7:2    0     0B  0 loop 
loop3     7:3    0     0B  0 loop 
loop4     7:4    0     0B  0 loop 
loop5     7:5    0     0B  0 loop 
loop6     7:6    0     0B  0 loop 
loop7     7:7    0     0B  0 loop 
sdb       8:16   1  14.6G  0 disk 
├─sdb1    8:17   1   3.4G  0 part /usr/lib/live/mount/persistence/sdb1
└─sdb2    8:18   1   736K  0 part /media/kali/605F-D6EA
sdc       8:32   1     0B  0 disk 
sdd       8:48   0 931.5G  0 disk 
└─sdd1    8:49   0 931.5G  0 part /media/kali/Seagete_Expansion_Drive
nvme0n1 259:0    0 238.5G  0 disk
This is what appears on me!

Code:
 
sudo sg_map -i 
/dev/sg0  /dev/sdd  Seagate   Expansion         0707
/dev/sg1  /dev/sdb  SanDisk   Cruzer Blade      1.27
/dev/sg2  /dev/sdc  Generic-  SD/MMC            1.00
Code:
Parsing Lun 0:

GPT Table:
-------------

Total disk size:0x00000003ab800000, sectors:0x0000000001d5c000
I reached the phone's gpt information in edl mode. but it doesn't show up " memory blks" even when I connect the uncorrupted phone.

Last edited by Master'n'Master; 05-02-2021 at 11:54 AM.
 
Old 05-02-2021, 03:32 PM   #4
Master'n'Master
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
How to repair GPT in edl mode! I have only access to the phone in edl
 
  


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
[SOLVED] Hard Drive showing up as /dev/sde while sda, sdb, sdc, and sdd show nothing swilsy Linux - Hardware 12 06-03-2012 03:02 AM
/dev/sda is not a valid block device C++ Linux - Hardware 23 03-24-2008 10:07 AM
/dev/sda is not a valid block device !!help!! akjafry Linux - Newbie 3 10-09-2007 10:00 AM
/dev/sda is not a valid block device craig467 Linux - General 23 02-17-2006 04:50 PM

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

All times are GMT -5. The time now is 02:57 AM.

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