Search Results

Search: Posts Made By: pug123
9,581
Posted By pug123
You mean problem that fdisk don't see valid...
You mean problem that fdisk don't see valid partition? This is no problem :) I've wiped intentionally with dd if=/dev/zero of=/dev/sda bs=512 count=1 becouse I'm testing script to autopartition disk.
9,581
Posted By pug123
Hello! Thank you! Now it works: ...
Hello!

Thank you! Now it works:


rescuecd:/var# fdisk -l 2>&1 | grep sda:
Disk /dev/sda: 750.1 GB, 750156374016 bytes
9,581
Posted By pug123
Fdisk with grep problem
Hello!


rescuecd:/var# fdisk -l | grep stupid
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb doesn't contain a valid partition table
rescuecd:/var#


It shows always...
6,448
Posted By pug123
Hello! I found some script on other forum...
Hello!

I found some script on other forum and rebuilt it.
It works


#!/bin/bash

DSIZE=`fdisk -l /dev/sda | grep "Disk /dev/sda" | cut -f 3 -d " " | awk -F "." {'print $1'}`
SWAPSIZE=4;...
6,448
Posted By pug123
Partitioning script for rescue mode (disk size calculation)
Hello!

I need to write partitioning script wich would work in rescue mode. It will prepare partitions and unpack linux on it. However I need to calculate whole size of the disk and create:
...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy