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-09-2020, 05:41 PM
|
#1
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Rep:
|
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.
|
|
|
01-09-2020, 07:07 PM
|
#2
|
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
|
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.
|
01-09-2020, 07:15 PM
|
#3
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by keirvt
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).
|
|
|
01-09-2020, 11:36 PM
|
#4
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Original Poster
Rep:
|
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."
|
|
|
01-09-2020, 11:54 PM
|
#5
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
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.
|
|
|
01-10-2020, 04:12 AM
|
#6
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,898
Rep: 
|
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).
|
|
|
01-10-2020, 04:16 AM
|
#7
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by keirvt
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.
|
|
|
01-10-2020, 04:55 AM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,809
|
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.
|
|
|
01-12-2020, 05:12 PM
|
#9
|
Member
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156
Original Poster
Rep:
|
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.
|
|
|
01-12-2020, 05:38 PM
|
#10
|
Moderator
Registered: Aug 2002
Posts: 26,809
|
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.
|
|
|
01-12-2020, 10:43 PM
|
#11
|
Member
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216
|
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.
|
|
|
All times are GMT -5. The time now is 09:32 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
|
|