Tag Info

New answers tagged

0

Linux shows you device files for partitions when the disk has partitions. If the disk has partitions, there's no point in telling Linux not to show them to you: whatever problem you're having, this could only hide the problem, not solve it. If you change the partition table while the disk is connected, the kernel might not notice and might keep acting on ...


0

I can confirm this on Debian 7. I have a 500GB HDD and it took 3 hours for just approx. 13% of the full capacity. When something like this happens my advice is to ask yourself "Do I really need an encrypted LVM?". If you have some important data that you want to preserve from unwanted access, you can encrypt the data separately.


0

e2label didn't work for me with UDF filesystem labels. blkid did; blkid -s LABEL -o value /dev/sdg1


0

The total data storage space of a PC HDD can contain at most four primary partitions, or alternatively three primary partitions and an extended partition. Here is an example showing both: /proc/partitions/ and fdisk and their corresponding. As you can see at the picture, fisk tells it by Extended whereas /proc/partitions/ provides a code, a number: 1-4 ...


1

Assuming that you're using legacy PC partitions (UEFI and other partition schemes have no notion of “primary partition” vs “logical partition”), the partition type can be determined from the number. Partitions numbered 1 through 4 are primary or extended. An extended partition is one that acts as a container for logical partitions, it cannot contain ...


1

Hard drives usually don't have labels, it's filesystems that do. Here are the main places where a filesystem label is likely to come up: In /etc/fstab. In your bootloader configuration (e.g. /boot/grub/grub.cfg). If your Grub configuration is automatically generated, run update-grub after changing your labels and verify that the result is what you wanted. ...


2

I suggest you read this guide on Ask Ubuntu. As for the difference, gparted and similar tools help you partition your hard drive. The Ubuntu installer can also do this automatically which is, presumably, the way suggested by the sites you read. I would not do that though and especially not with a system that has windowd8 installed since there are other ...


1

As far as I know, labels aren't that much used in the unix world, so there isn't any danger in changing them. Keep using the UUIDs and you should be fine.


2

Of course the primary goal is not to have the need to use swap in the first place... The main thing is to create the swap LVM volume when the system is still quite fresh, the same as when you create a swap file, as swap space performs best when it is contiguous. You don't want to actual disk blocks that make up the logical volume to be fragmented all over ...


2

If you're absolutely sure that the end of the last partition fits on the target drive, you can copy the drive wholesale. Don't use dd, which is slower (unless used with additional options, and not always even then) and more error-prone; simply use cat. cat /dev/sdc >/dev/sdz Replace /dev/sdz by the proper path to the drive that you want to overwrite. ...


1

You can use dd to create copies of the partitions and not of all the device. dd if=/dev/sad1 of=/tmp/boot.img dd if=/dev/sad2 of=/tmp/root.img As for Q2b: I did this several times, never had a problem, but still this is not recommended.


0

Extending (but not shrinking) an ext4 partition works without unmounting it: Check that the corresponding entry in the partition table has already the target size (for example by using fdisk). Then it could then be needed to force the OS to reread the partition table with e.g. partprobe from the parted package (for more option, see ...


0

Try going to: /boot/kernel and loading: kldload geom_sunlabel.ko Check if labels showed up. If they didn't you're unlikely to be able to access them (easily) Long time ago I made it work: http://marc.info/?l=freebsd-bugs&m=110942523517592&w=4 But soon after that I removed Solaris and never came back to it. FreeBSD disk infrastructure is ...


1

I'm not really sure that this is a correct place to ask such questions. But I assume that your partition numbering has changed when you created another partition for Linux therefore you'd need to change windows bootloader configuration. The link provided says: Immediately Reboot Windows After Shrinking Partition After shrinking the Windows ...


1

Confirm that you've created a full restore disk. It could be simply a repair/boot disk. I recently created restore disks from my laptop (and I know they works as I've used them) and they came to 3 DVDs. With a Windows full restore disk set you'll completely overwrite the HDD (wiping your Arch install), reinstating your Windows and OEM partitions. That ...


2

The /home partition is useful if, for example, at one point you want to reinstall Arch or install another distribution, because thus you will save your personal settings, browser history, etc.


0

You can use the device mapper to shape a device that contains the parts of the original device you want. For instance: $ grep . /sys/class/block/sda/**/(size|start) /sys/class/block/sda/sda1/size:224847 /sys/class/block/sda/sda1/start:63 /sys/class/block/sda/sda2/size:124820514 /sys/class/block/sda/sda2/start:224910 /sys/class/block/sda/size:125045424 If ...


1

I think you have misunderstood something. What zimage commonly refers to is the compiled linux kernel, so this sounds like a boot partition. But that does not need to be very big at all. Looking at this, it seems that the beaglebone (and I presume the BBB) uses a (small) VFAT partition to boot from. This seems like a common ARM SOC methodology; it will ...


1

After I shrunk the volume in Windows by a disappointing amount, the option to shrink the volume in the Fedora 20 installer became available allowing me to shrink it down by much more. Shrink the volume in Windows 1. Boot into Windows 2. Go to "Disk Management"     a. Right click "Computer" from the desktop or Start Menu ...


3

You split your disk into (at least) two partitions - one for your home directories (/home) and another for everything else (/). It looks like you only allocated about 10GB for /, which is now full. The partition mounted as your /home directory is ~621GB, with plenty of free space, but that's not where most system files go. That's the danger of allocating ...


2

376 / 395 =~ 0.95. So you are missing approximately 5% of your disk. That sounds like the default value of disk space reserved by the system for system logs etc. You can find out by running tunefs -l which will show you what your reserved blocks percentage is. You can then retune your file system using tunefs -m See the man page for tunefs for more ...


3

By default, a linux filesystem reserves 5% of the space for root (the user) usage and maintenance. If the device was 100% full, you couldn't even create the temporary files necessary to allow a user to log in... like perhaps.... root! Total space: 395.00G (from your example) minus 5%: 19.75G (reserved space) ============ ======= User space: ...


0

One possible solution is to use LVM to manage redundancy, instead of using the mdadm Linux software RAID. Simply initialize all three disks as LVM physical volumes, assign them to the same volume group and use the correct flags when setting up logical volumes. -m, --mirrors Mirrors Creates a mirrored logical volume with Mirrors ...


1

For simple copying, using rsync to copy to your backup medium, as mentioned in the comments, is sufficient. If you want versioned backups and easier control, rsnapshot is a good choice. However, for a system partition, there's often an easier option. Since most of the data comes unmodified from your distro's repositories, you can usually manage by simply ...



Top 50 recent answers are included