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 01-09-2020, 05:41 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
Has my disk been stolen?


I am running Ubuntu on my work computer. (Del)

Returning to work after a break the computer failed to boot but dropped to a root maintenance prompt. The operating system appeared to be okay but my home directory was missing. The fstab indicates that my home directory should be in /data but the drive seems to be gone!

The fstab looks like so
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=1d6ef032-dd85-4cfa-ab9f-43a239fe407c /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=7AB8-0E32  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
UUID="3872c247-6800-4c78-8387-adf4f0ea97b0"     /data   ext4    errors=remount-ro 0         1
That last line should mount the /data partition where my home directory should be.

The blkid command shows no disk with the /data UUID
Its as if the disk with that UUID has been removed.
Is there a way to get the disk brand or manufacturer from the UUID?
Teh disk might be SSID is there a way to tell?
I wouldn't mind getting my files back. I find it hard to accept someone removed some parts.
 
Old 01-09-2020, 07:07 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,945
Blog Entries: 28

Rep: Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357Reputation: 6357
Since this is at work, can you ask your IT department for help? If so, that would be my first step.

My second step would be open the case and inspect the hard drive bays. Of course, all the partitions could be on a single disk.

My next step would be to boot to a Live CD/USB of something and take a look at those partitions using the Live CD/USB's tools.

As an aside, I find it curious that your home partition would be mounted to "/data." In every case in which I've set up a separate /home partition, /home has been the partition name.
 
1 members found this post helpful.
Old 01-09-2020, 07:15 PM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by keirvt View Post
Its as if the disk with that UUID has been removed.
It probably just failed (to startup) or has a bad spot in the superblock so the UUID isn't found anymore.
Look into the output of dmesg or whatever log file of the startup (after the message daemon has been started) your distribution writes its output
(in my distribution it is /var/log/messages, but especially with systemd distro's that will be different).
 
Old 01-09-2020, 11:36 PM   #4
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
Where is my disk

My IT department is in the throws of restructure and out-sourcing.
Management is in love with Windows so asking central IT for help with a Linus question is like asking help from Stalin.

I disassembled the computer and there was only the system disk.In general the /data is often mounted (local standard) as a separate partition where the home directory is placed. The /data partition is sometimes a separate disk or ssid device.

My question is; can I get information about vendor or device type from the UUID referenced in the /etc/fstab
It might be solid state disk, I don't know. I am perplexed by its "disappearance".
Are there any sugestions other than "ask your system administrator."
 
Old 01-09-2020, 11:54 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
lsblk will tell you if there are several partitions on that disk. Perhaps you find one that is unused. It would be a candidate for closer inspection.

As far as I know, the UUID (there are several UUID formats, actually) is mostly generated from information that identifies the computer, such as MAC addresses, and a timestamp. I don't know if the algorithm can be reversed. Have a look at the wikipedia article about UUIDs.
 
Old 01-10-2020, 04:12 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,898

Rep: Reputation: Disabled
Use dmesg to see if your system sees the disk, & to what it is assigned.

If it doesn't show up in the dmesg output, it isn't being seen at startup.
In which case you will need to check its physical connection, may be loose wiring, or just dirty electrical contacts.

If it does show in dmesg, try mounting it manually, (could be /dev/sdb1).
 
Old 01-10-2020, 04:16 AM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by keirvt View Post
My question is; can I get information about vendor or device type from the UUID referenced in the /etc/fstab
No, not really as the UUID is generated from multiple input data, including the date/time the UUID was generated.
And as someone else already remarked: you can have a partition UUID (PARTUUID) and file system UUID's, which are much longer and guaranteed to be unique in the world.
From a website I found:
Quote:
A UUID is guaranteed to be unique. As far as I know, collisions will not happen within the lifetime of the universe. However, you'll note that the PARTUUID is much shorter. These are meant to be "locally" unique, and collisions most likely occur between all known PARTUUIDs.
On the other hand, PARTUUID's are not affected by reformatting the partition (with the same or another file system), UUID's will change then.
 
Old 01-10-2020, 04:55 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,809

Rep: Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334
It isn't obvious from your posted fstab file that you have a separate home partition or that your data partition is on a separate disk.

Its possible that your home directory is some kind of network share that is being mounted via something else besides fstab file.

Posting the output from the fdisk -l will show all partitions. And as posted your problem might be cause by a corrupted filesystem or failing hard disk.

Last edited by michaelk; 01-10-2020 at 05:29 AM.
 
Old 01-12-2020, 05:12 PM   #9
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
Disk not stolen.

I looked at one of the other machine to see its set up.

Running the command blkid shows the dev name e.i. /dev/sda1 and any UUID associated with that dev id

On Ubuntu /etc/fstab uses UUID rather then the dev name. I had assumed the UUID was an actual hardware device buty apparently not necessarily so.

So, my desktop had a single disk and was partitioned.
Sadly the partition with my files on it has been corrupted and has disappeared.

fdisk shows no other partition such as /dev/sda2

I tried fsck but it has failed to recover any partitions.

Unless someone knows some other magic I give up on restoring my files and will return to my backups which are few days old so I have lost some work lost but oh well, these things happen.
 
Old 01-12-2020, 05:38 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,809

Rep: Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334
fsck repairs filesystems but it isn't a recovery tool. There are several recovery tools but it is not an easy process since your dealing with entire filesystem. If /dev/sda2 is missing for no apparent reason I would make sure the drive is healthy by checking its SMART status (smartctl).

UUID is a unique number assigned to the file system. These days persistent naming based on the device ID i.e. /dev/sdx is not guaranteed.
 
Old 01-12-2020, 10:43 PM   #11
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
You really want to go through your logs to find the names of the devices mounted in the past.

If /data was on /dev/sda2 then that is clearly not a separate device. You won't have two physical sdas at the same time.

If /data was on /dev/sda2 then there was no second drive, only a second partition. On the other hand, if the logs show /data on /dev/sdb1 and that is no longer present, then you probably have a drive missing. Other references to sdb1 could be a usb drive-- but if usb mounted as /dev/sdb1 in the past, that also implies there was no other physical drive.

Last edited by freemedia2018; 01-12-2020 at 10:44 PM.
 
  


Reply

Tags
disk diagnostics


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
Error: no boot disk has been detected or disk has failed. daniel1963 Linux - Newbie 11 05-21-2018 07:13 PM
My web server has been hacked. SU password has been disabled rcrosoer Linux - Security 11 06-27-2008 02:18 PM
has windows stolen network code (/etc networking) bigearsbilly Linux - Networking 2 05-14-2007 02:40 AM
displaying STOLEN packets stolen using NF_STOLEN venkatesh111 Linux - Networking 0 04-05-2006 01:02 AM
Partitioning has Stolen my Space RugbySteve1986 Linux - General 1 07-27-2005 12:28 PM

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

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