LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error on bootup "the disk drive for /dev/mapper/... Is not ready yet or not present (https://www.linuxquestions.org/questions/linux-newbie-8/error-on-bootup-the-disk-drive-for-dev-mapper-is-not-ready-yet-or-not-present-4175511867/)

cryptolo 07-21-2014 04:49 PM

Error on bootup "the disk drive for /dev/mapper/... Is not ready yet or not present
 
When I went to boot up my Linux mint laptop today I got the error message "the disk drive for /dev/mapper/mint--vg-swap_1 is not ready or not present."

I searched and couldn't find any answers hat fit my situation and were clear/simple enough for me to try on my own. I did find out that it might have to do with UUIDs and etc/fstab.

I am traveling and have limited troubleshooting resources. I do have a live CD and an android phone. Could anyone help me tro bleshoot my problem? I'm kind of desperate as I have a couple thousand pics on the HD from m the last few months of travel.

From other similar posts it seems like providing /etc/fstab and the output of blkid helped troubleshooters so I will post that in just minute once I copy it over to my phone.

Thanks in advance.

cryptolo 07-21-2014 05:19 PM

/etc/fstab
Quote:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/mint--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=35d73d38-b834-441d-b7c4-afb12db84bcb /boot ext2 defaults 0 2
/dev/mapper/mint--vg-swap_1 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0
BLKID
Quote:

mint@mint ~ $ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="35d73d38-b834-441d-b7c4-afb12db84bcb" TYPE="ext2"
/dev/sda5: UUID="zWQFRd-xVqA-V79i-2ORo-wQ9q-hllN-uRfGIK" TYPE="LVM2_member"
/dev/mapper/mint--vg-root: UUID="a43b5701-3304-486d-9c7e-f0439fa2b131" TYPE="ext4
Let me know if there is any other info needed

Thanks

lleb 07-21-2014 06:08 PM

just curious, how did you get the blkid and fstab if the system would not boot?

if you got that info from the LiveCD, does the liveCD have the ability to mount the "missing" drive that grub is not seeing? if so then you might want to verify that the disk is still stable.

this is a laptop, with the power off and the battery removed, unplug and plug the HDD back into the laptop. in other words reseat the drive to see if it just wiggled lose while being moved.

from the liveCD try some of these:

http://blog.shadypixel.com/monitorin...smartmontools/

http://www.cyberciti.biz/faq/find-ha...pecs-on-linux/

cryptolo 07-21-2014 11:58 PM

Yes I got that info through booting from the livecd. And yes I can mount the missing drive. Any advice on how to tell if the drive is stable.

I will disconnect the drive when I get a chance and look into the links. Thank you.

syg00 07-22-2014 12:37 AM

Backups for for just this situation - yes, even (especially) when travelling.

If you can mount the mint--lv-root and see your photos you're probably ok. If the filesystem was broken you'd usually be told. Do you really use two swap extents - and is (ony) one of them actually encrypted ?.
Was this aptop hibernated prior to the inital failed (re-)boot ?.

cryptolo 07-22-2014 12:51 AM

Yeah, I know I should backup but I only have a single 90 GB ssd and no external. Also I upload new photos pretty regularly and would have to backup quite frequently.

As for being able to mount mint--lv-root I can view the filesystem but I can't view my photos or anything else in /home/username probably because /home is encrypted.

As for swap. I have no idea why there would be two swap partitions if that's what your saying. Or why only one would be encrypted. I followed a tutorial on how to setup encrypted lvm on Linux mint and may have done something wrong, but I recall setting up only one swap partition.

I shutdown the computer prior to the failure but it was really low on battery so could've automatically gone to hibernation as I shut it down.

I'm not real comfortable with Linux yet so I'm sorry I can't provide more definitive answers.

syg00 07-22-2014 01:12 AM

Ugh - I don't do crypto, so I'll try not to get in the way. Let's see if we can get some basic info - let's see the output of these from the liveCD
Code:

sudo parted -l
pvs
vgs
lvs


cryptolo 07-22-2014 01:11 PM

Here is the output of: SUDO PARTED -L
Quote:

Model: ATA Corsair Force 3 (scsi)
Disk /dev/sda: 90.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary ext2 boot
2 257MB 90.0GB 89.8GB extended
5 257MB 90.0GB 89.8GB logical lvm


Model: hp v165w (scsi)
Disk /dev/sdb: 4052MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 65.5kB 4052MB 4052MB primary fat32 boot, lba


Model: hp v165w (scsi)
Disk /dev/sdc: 16.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 16.2GB 16.2GB primary fat32 lba


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/mint--vg-root: 85.7GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1 0.00B 85.7GB 85.7GB ext4


Error: /dev/mapper/mint--vg-swap_1: unrecognised disk label
And of: SUDO PVS (just pvs returned a open failed: permission denied error)
Quote:

PV VG Fmt Attr PSize PFree
/dev/sda5 mint-vg lvm2 a-- 83.60g 0
And of: SUDO VGS
Quote:

VG #PV #LV #SN Attr VSize VFree
mint-vg 1 2 0 wz--n- 83.60g 0
And of: SUDO LVS
Quote:

LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
root mint-vg -wi-ao--- 79.80g
swap_1 mint-vg -wi-a---- 3.80g

cryptolo 07-22-2014 08:43 PM

can anyone advise how i might go about fixing my problem based on the information provided?

syg00 07-23-2014 01:30 AM

Let's see what this has in it
Code:

cat /etc/crypttab
And provide a link to the tutorial you mentioned above.

cryptolo 07-24-2014 12:16 PM

Unfortunately I can't recall the tutorial I used. I did some searching and couldn't find a tutorial that looked familiar. I may have just used the Linux Mint 16 step-by-step installer.

Here is the output of "sudo cat /etc/crypttab"

Quote:

# <target name> <source device> <key file> <options>
And "sudo cat /media/mint/a43b5701-3304-486d-9c7e-f0439fa2b131/etc/crypttab"

Quote:

cryptswap1 /dev/dm-1 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

cryptolo 07-24-2014 12:20 PM

Also through another process I was able to decrypt my /home folder and get the pictures and documents I needed from the "lost" drive. So it is much less crucial for me to fix the problem though I would really like to if possible. But if worse comes to worst I can always reinstall Linux Mint without losing any important data.


All times are GMT -5. The time now is 10:59 PM.