[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mounting local hd from live usb, was 'root account inaccessible'



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


On Oct 7, 2014, at 1:12 AM, Andrei POPESCU wrote:

> On Lu, 06 oct 14, 10:23:28, John Aten wrote:
>> I booted up the broken system and attempted to get the device name 
>> looking at /etc/fstab, mount and fdisk -l. I got a device name 
>> (/dev/sda1) and a UUID. 
> 
> You should use 'fdisk -l' or 'blkid' only after you boot with your 
> rescue disk/usb/whatever, because device names may change (as you found 
> out).

All the following was done in the live system:

sudo fdisk -l returns only /dev/sda1

blkid returns /dev/sda1 (whose label and UUID confirm that it is the USB drive) and /dev/loop0. I found the mountpoint of /dev/loop0 using mount, but it appears to be completely empty. Well, the usual directories, /bin, /boot, /home and so on, are there, but they are empty. 

I ran cat /proc/partitions, and it returned entries for loop0, sda and sda1. I attempted to mount /dev/sda, and got the error that it was already mounted or the mount point was busy. The output of mount only lists sda1 being mounted. But I guess sda is a partition on a device, not an actual device. 

I ran lsblk , and it returned the same devices, sda, sda1 and loop0.

I was confused by the message that all the devices I could find are already mounted, so I thought maybe the local hd is already mounted somewhere. I tried a brute force approach, looking in all the directories listed in the output of mount, and couldn't find the files on the hd. I then realized it would be faster to run: 

find -name name_of_my_local_regular_user_home_directory 

This returned nothing, so that confirms the local hd is not mounted. But I already suspected this. 

The UUID shouldn't change, should it? Isn't there some way I can mount the device by UUID using the mount command? All the web pages I could find are about setting up /etc/fstab to automatically mount by UUID. I don't believe any changes to /etc/fstab will persist after reboot on the live usb. My reading of the mount man page led me to believe that  sudo mount -U uuidnumber mountpoint  should work, but it returns 'no such partition found' 

Thanks,

J
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUNBTyAAoJED6rE5ImPwfDcdsIAKKFVLQETNQX4bDLpMLklRQ8
ih9ySXMDDALWq9DqG1i7F1H5ASq9c03hNWLWlIMwH+pcBiuHsB44UOBbPYw9ITiV
ajhDIg2q1g1ho/UY/kwCQ0Xfnglsq65CRbEQSwE2HxH0GUtc4+aEMPVqWYmrFFro
Od2dwKub22tFXbvC2kosUMz4IQR4ma9CLMDeUCVry2TQ7fTSTn4c1m99NBbZzt0p
1ClyXmCuau94olvUFExZB2M2fpPk66itkTC1aLDyMtXiVHTXk9VBM3kEE3EP1tFU
U8knKiiTaAIbSQ55jQrN6hL5n5i27ppv9DeTHc+E/ac30Lc0zlOMcKeHTFYHj9E=
=Yoz6
-----END PGP SIGNATURE-----


Reply to: