FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Need help with stuffed partitions

    Good evening/day/morning,

    I was planning to make it a dual boot laptop with Windows 10/Linux and was working to join a main Windows partition with another one infront of it, when this failed. After PC was restarted and the actual process begun, It was stuck on 0% for about 30m and eventually restarted the machine one more time.

    No windows 10 start up recovery tools could fix this mess. This was a 3rd party tool that worked for me beforehand.

    What are my options? I have had some data that I sort of need, but can leave without. I booted via Live CD and this is what fdisk produced. Is it possible to mount the partitions in this situation?

    [liveuser@localhost-live ~]$ fdisk -l

    fdisk: cannot open /dev/sda: Permission denied

    fdisk: cannot open /dev/sdb: Permission denied

    fdisk: cannot open /dev/loop0: Permission denied

    fdisk: cannot open /dev/loop1: Permission denied

    fdisk: cannot open /dev/loop2: Permission denied

    fdisk: cannot open /dev/mapper/live-rw: Permission denied

    fdisk: cannot open /dev/mapper/live-base: Permission denied


    I will appreciate any feedback.
    Thanks.

  2. #2
    Join Date
    Aug 2005
    Posts
    697

    Re: Need help with stuffed partitions

    fdisk needs to be run as root. IIRC there is no password set for root on the Live DVD so you just do:
    Code:
    $ su -
    # fdisk -l
    Then you can mount the partitions on the real disks that fdisk lists and see what is on them, e.g.:
    Code:
    # mkdir /mnt/sda1
    # mount /dev/sda1 /mnt/sda1
    # ls /mnt/sda1
    # mkdir /mnt/sdb1
    # mount /dev/sdb1 /mnt/sdb1
    # ls /mnt/sdb1
    # umount /mnt/sdb1
    # umount /mnt/sda1
    # exit

  3. #3
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Quote Originally Posted by kldixon
    fdisk needs to be run as root. IIRC there is no password set for root on the Live DVD so you just do:
    Code:
    $ su -
    # fdisk -l
    Then you can mount the partitions on the real disks that fdisk lists and see what is on them, e.g.:
    Code:
    # mkdir /mnt/sda1
    # mount /dev/sda1 /mnt/sda1
    # ls /mnt/sda1
    # mkdir /mnt/sdb1
    # mount /dev/sdb1 /mnt/sdb1
    # ls /mnt/sdb1
    # umount /mnt/sdb1
    # umount /mnt/sda1
    # exit

    Thanks, will try today when at home.

  4. #4
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Quote Originally Posted by kldixon
    fdisk needs to be run as root. IIRC there is no password set for root on the Live DVD so you just do:
    Code:
    $ su -
    # fdisk -l
    Then you can mount the partitions on the real disks that fdisk lists and see what is on them, e.g.:
    Code:
    # mkdir /mnt/sda1
    # mount /dev/sda1 /mnt/sda1
    # ls /mnt/sda1
    # mkdir /mnt/sdb1
    # mount /dev/sdb1 /mnt/sdb1
    # ls /mnt/sdb1
    # umount /mnt/sdb1
    # umount /mnt/sda1
    # exit
    Tried what was suggested. But got the message:

    Mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error.

    I am assuming that Live CD needs NTFS drivers installed as this is a Windows NTFS partition?

    ramzes.

  5. #5
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,270

    Re: Need help with stuffed partitions

    not necessarily, sda3 could be an OEM or Windows Recovery Partition. Which Live media are you using? If workstation there will be a utility called Disks. Run that and it will show a lot more information about the existing partitions on your SSD. Other images should have GParted which does the same thing but allows you to also edit the partition layout.

  6. #6
    Join Date
    Aug 2005
    Posts
    697

    Re: Need help with stuffed partitions

    Also, could you list the output of fdisk -l, run as root, here, in code tags
    https://forums.fedoraforum.org/misc.php?do=bbcode#code

    Just noticed your other thread.
    Last edited by kldixon; 31st August 2017 at 10:32 AM.

  7. #7
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Sorry for the image quality, for some silly reason the screenshot I've saved on the USB drive on Linux live machine would is not viewable on PC and in Google Drive.

    https://drive.google.com/open?id=0B_...VWX09GME1taDg0

  8. #8
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Basically where there is free space on the photo is my Primary Windows partition. I run a job of joining with preceding small partition of 500mb, that was unallocated space.
    I must say I attempted to use TestDisk to fix it.

  9. #9
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,270

    Re: Need help with stuffed partitions

    actually it looks like rather than merge any partitions it's just deleted your windows operating system partition, as there is no way you'd fit windows into a 1 GiB partition.

    If it were me, I'd start again from scratch with an empty drive and reinstall windows if you still want it first.

  10. #10
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Quote Originally Posted by antikythera
    actually it looks like rather than merge any partitions it's just deleted your windows operating system partition, as there is no way you'd fit windows into a 1 GiB partition.

    If it were me, I'd start again from scratch with an empty drive and reinstall windows if you still want it first.
    Thank you for your reply. I will just start with a fresh install. As there is no data I horribly need.

  11. #11
    Join Date
    Aug 2017
    Location
    New Zealand
    Posts
    23

    Re: Need help with stuffed partitions

    Figured out what was the problem.
    Disk merge damaged system W10 partition.
    Further experiments with testdisk converted my disk type to MBR. I further struggled to change it back to GPT and keep the data and W10 recovery partition.
    So I ended up using Diskpart off W10 bootable USB, and removed all partitions and cleared the disk.
    Changed disk type to GPT, formatted, partitioned and installed Linux

Similar Threads

  1. [SOLVED] Stuffed up grub 2
    By KiwiLegion in forum Using Fedora
    Replies: 4
    Last Post: 16th April 2013, 10:15 AM
  2. KDE desktop stuffed up
    By tameboy in forum Using Fedora
    Replies: 4
    Last Post: 10th August 2008, 12:20 PM
  3. Stuffed GUI
    By xion101 in forum Using Fedora
    Replies: 4
    Last Post: 10th December 2005, 04:57 PM
  4. stuffed my key mappings!
    By tfindlay in forum Using Fedora
    Replies: 2
    Last Post: 13th September 2005, 02:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •