LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating a mount point for a partition from Live USB (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-mount-point-for-a-partition-from-live-usb-4175536855/)

thinkrorbot 03-16-2015 03:23 AM

Creating a mount point for a partition from Live USB
 
Hello all,

I was working through LFS 7.7 Chp 2.4 and mounted a wrong partition to /mnt/lfs.
I did the following commands while trying to mount the correct LFS partitions:
mount -v -t ext4 /dev/sda8 /mnt/lfs
mount -v -t ext4 /dev/sda9 /mnt/lfs/home
but I was supposed to mount sda11 and sda 12.

Now the system won't boot past the splash screen. I tried booting into a live usb and typed in the following commands
mount -v -t ext4 /dev/sda8 /
mount -v -t ext4 /dev/sda9 /home
but the system still won't boot past the splash screen.
Both gparted and the partition manager for the installer don't show a mount point.

How do I create a mount point from USB or is there another problem/solution?

Thanks

veerain 03-16-2015 10:01 PM

So what was the partitions sda8/9 used for?

Post the output of 'fdisk -l'.

thinkrorbot 03-17-2015 12:26 AM

sda8 and sda9 were meant to be my primary root and primary home partitions.

thinkrorbot 03-17-2015 01:50 AM

Output of fdisk -l from live usb:
Code:

Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1  1953525167  976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.
/dev/sdb1  *        8064    15265343    7628640    c  W95 FAT32 (LBA)

Doesn't say anything about sda8 or sda 9.

The etc/fstab file on the primary partition:
Code:

# /etc/fstab: static file system information.

# <file system> <mount point>  <type>  <options>      <dump>  <pass>
# / was on /dev/sda8 during installation
UUID=cfec9f86-8662-424c-a566-1f8b96c7c67c /              ext4    errors=remount-ro 0      1
# /boot/efi was on /dev/sda2 during installation
UUID=8E12-2FDB  /boot/efi      vfat    defaults        0      1
# /home was on /dev/sda9 during installation
UUID=fb3d2a9e-1d56-426d-8cb8-61340187a5b0 /home          ext4    defaults        0      2
# swap was on /dev/sda10 during installation
UUID=33a1753d-caea-40d9-877b-6aa3208e7168 none            swap    sw              0      0


thinkrorbot 03-17-2015 02:59 AM

I think the partitions mount correctly but the system still won't boot.

veerain 03-17-2015 04:18 AM

fdisk only shows msdos partitions. Instead find partitions with 'parted -l'.

I think because of you mounting root, home and boot partitions and then mounting it for lfs you have perhaps overwriiten system files.

Can you afford to do fresh Mint installation and building LFS after.


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