Tag Info

New answers tagged

1

To backup DOS label (MBR) use this: dd if=/dev/sdX of=mbr bs=512 count=1 To backup GPT label use this: dummy=$(parted -ms /dev/sdX print | tail -1| cut -b1) size=$((128 * dummy + 1024)) dd if=/dev/sdX of=gpt bs=1 count=$size To wipeout the labels use this: dd if=/dev/zero of=/dev/sdX bs=Y count=Z partprobe /dev/sdX HTH


2

There are several things mixed here mounting a filesystem by user and superuser, accessing files on a mounted file system and accessing the data on the "raw" device. mounting a file system root can always mount a file system, provided he can access the device that carries it - which it can when the kernel recognizes it. Users are only allowed to mount a ...


2

It depends on if blah is a root on your sda3 installation. If no: By default can only root mounting anything, so you don't need even get out them from the /etc/fstab. Only what you should check: They need the noauto flag (to not mount them on boot) And shouldn't have the user flag (or they were mountable by user). If he is a root, or have (or can make) ...


1

Quoting the Ubuntu UEFI Community Wiki. The same Rules apply regardless of Distribution. Creating an EFI partition If you are manually partitioning your disk in the Ubuntu installer, you need to make sure you have an EFI partition set up. If your disk already contains an EFI partition (eg if your computer had Windows8 preinstalled), it can be used for ...


0

First you should back up the data on / and /home. Then use a GParted LiveCD to shrink the /home and grow the / partition. When in doubt re-install and use a single partition for / and /home.


1

It seems that the drive has been formatted by Windows - which is not surprising, since Windows definitely must have been unable to use the disk which had very likely been formatted by OS X for sole use under OS X. Now the problem is exactly the same, just with the sides swapped. If you want to mount the Windows partition, you can try blindly guess the file ...


0

You could also use parted in command mode: parted /dev/sda unit MiB print free output: Model: ATA M4-CT128M4SSD2 (scsi) Disk /dev/sda: 122104MiB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 0.03MiB 1.00MiB 0.97MiB Free Space 1 ...


0

if you already have installed your linux (on a ext-filesystem) or you don't want to store your home-files within a ntfs-filesystem (restricted management of user rights; no filesystem-checks at start;...) you can use a filesystem-driver like Ext2Fsd for your windows-instance.


1

You can share a partition (NTFS, FAT formatted is the easiest) and share that between reboots. Much easier, and not requiring reboots of the machine is to install a VM (VirtualBox, VMware) on the windows machine, run Linux as a guest VM and share the directories on the Windows drive. You do need more memory for this setup (as Windows and Linux run at the ...


1

The reason why the two other partitions aren't showing in MBR is because they are based on the extended partition (the type for the second partition is 0x05. Reference: http://en.wikipedia.org/wiki/Partition_type#PID_0Fh


1

You want to delete a partition based on its label ? What if you have two or more partitions with the same label ? You can delete a partition with parted in command line mode (non-interactive) but it won't take partition label as an argument. You have to invoke parted with a device name as argument and pass the partition number to rm command: parted $device ...


0

There's actually a bug in RHEL 5.8, mentioned in https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html-single/5.8_Technical_Notes/index.html: When installing Red Hat Enterprise Linux 5.8 on a machine that had previously used a GPT partitioning table, Anaconda does not provide the option to remove the previous disk layout and ...


0

kpartx should be able to help you do this. Perhaps partprobe can do this as well (but I've never used on anything else than blockdevices)



Top 50 recent answers are included