Tag Info

Hot answers tagged

7

Another approach is with findmnt: findmnt /dev/sda4 ...to get mountpoint from dev. Or vice-versa: findmnt /home


6

You can use: mount for a list of all mounted filesystems and mount options for each of them; lsblk for a tree of block devices, size and mount point (if mounted); df for a list of mounted block devices, size, used space, available space and mount point.


4

You're actually asking two questions. The easiest thing to do if you want to know where your home is: cd df -h . Or df -h $HOME Where is /tmp mounted? df -h /tmp ...etc. If you want to know what is mounted on a certain device, mount | grep ^/dev/sda1 (for example). Or mount | grep ^/dev/sd to see all the sd's.


4

The same tools that you can use for other files (generally) can also be used on block devices. This means that you can use, for example, xxd or hexdump to inspect the filesystem: $ sudo xxd /dev/sda2 | head -10 00000000: eb58 9053 5953 4c49 4e55 5800 0200 0000 .X.SYSLINUX..... 00000010: 0000 0000 0000 0000 3f00 ff00 0008 2000 ........?..... . 00000020: ...


3

The "DOS mode" that the man page is referring to is a mode that keeps partitions aligned on cylinder boundaries, which have been an anachronism since the late 90's. In other words, it defaults to letting partitions start and end on any sector. The DOS disklabel, otherwise known as MBR, is the conventional PC partition table, as opposed to GPT, which is ...


3

Depends on what you're after. If you want to check which of the partitions in /dev/sd* has a default mountpoint and what that mountpoint is, you could do for part in /dev/sd*; do grep -w "$part" /etc/fstab | awk '{print $1,$2}; done However, on most modern systems, partitions are mounted by UUID and not dev name, so a better approach1 would be: for uuid ...


2

(I know this is an old question, I came across this problem myself and got my FS back to life without ddrescue, so I'll share the expericence for anyone else encountering this) Ext filesystems store backups of the superblock -- for an occasion just like this one. First, determine the locations of the backups: mke2fs -n /dev/sdxx This is a test run (i.e. ...


2

You can use mount command. It also shows options with which the mounting is done.


2

You're looking for the df command.


2

I'm a fan of LVM but I don't think it is required in this case - if all you want to do is to expand your sda1 filesystem to use the rest of the space on this drive. Assuming you don't at the moment have any data on your sda3, a better strategy is: with fdisk it is hard to work out the actual sizes of the partitions, use swapon -s to show the size of your ...


2

Your partition table looks OK, but it's a bit odd. In particular, most partitioning tools put a data structure known as an Extended Boot Record (EBR) in the sector immediately preceding the logical partition it describes. In your case, though, there's no gap between your logical partitions 5 and 6, so your partition 6's EBR must be located somewhere else. ...


1

From Ubuntu (in VM) Install gparted by executing sudo apt-get install gparted in Terminal. Open gparted either from terminal or from dash. Then extend you disk, maybe you may have to move your extended partition at the end of disk.


1

That is a mess of partitions you have going on. I would just start over and do a custom partitioning job and don't let YaST make any suggestions. At that point, it'll leave your 2TB alone. Then you should be able to resize your SSD and install.


1

For the benefits and some additional information of partitioning, check out: http://askubuntu.com/questions/516353/what-are-the-advantages-and-disadvantages-of-mounting-various-directories-on-sep


1

First, you can't extend /dev/sda1 to include /dev/sda3 as their space allocations are NOT contiguous. You'd have to dump everything, re-layout the partitioning, and restore. Second, /dev/sda1 does not to appear to be an LVM partition. Even if you wanted to add the apparently unclaimed physical volume created in /dev/sda3, this would not be possible. ...



Only top voted, non community-wiki answers of a minimum length are eligible