General :: Differences Between Fdisk And Sfdisk?

Dec 13, 2010

I want to know the differences between fdisk and sfdisk?

View 1 Replies


Fedora :: Sfdisk Refuses To Work - Says Sda Is Busy ?

Feb 26, 2010

I have 2 HDs, an old one with LVM (sda) with two partitions, sda1 and sda2, and the new one without LVM (sdb). I want to format the old sda device. I tried with sfdisk, but it says that the sda is busy:

But there is no call in /etc/fstab to sda, I did a /sbin/swapoff -a, and this is the output of df:

lsof tells me no one is using sda, sda1 or sda2.

So, why does sfdisk refuse to work?

View 4 Replies View Related

Software :: Sfdisk Starts Partition From Sector 1 Instead Of 63?

May 1, 2011

Slackware 13.1,using "sfdisk".I need to use this one as it can be used in a non-interactive mode,"parted"is not a solution for me.Inside my own script I make the partition like this:


set `losetup -f`; dev=$1
`losetup $dev $out`
sfdisk $dev << EOF

However after formatting this single partition in FAT16 I can see the drive in my emulated Windows311, but not use it. It says that the drive cannot be accessed. When I do the same thing interactively with fdisk it all works. When inspecting the partitions in both cases via "fdisk -ul" I see that whenever sfdisk is used to create the partition it is created starting from the 1 sector. Whenever fdisk is used it is created from 63 sector (which is correct of course). How can I make my sfdisk start the partition not from the 1st sector, but also from the 63 so that OS wouldn't have problem with that?

I tried like this:


sfdisk -uS $dev << EOF

But it then just says that the partition does not end on the boundary. Trying to see the content with fdisk -ul says that partition table is incorrect. So doing it this way doesn't work.

View 2 Replies View Related

Hardware :: Recovering Partition Table Using TestDisk And Sfdisk?

Jul 16, 2010

Something bad happened to my partition table,so right now I'm working from a Live CD. My partition table is completely screwed, although the data on the lost partitions hasn't been overwritten. I've been messing around with TestDisk for about an hour, but I still didn't figure out how to fix my problem. Before the crash, I had 5 partitions:

ext4 - 20GB

and here comes the extended partition:

linux swap - 8 GB
NTFS - 400GB

TestDisk can see all those five partitions. I can mark swap as Logical, but I can't do so with the 400GB NTFS partition - there is just no selection. Turning on "expert mode" didn't help. I have read about using sfdisk to fix partition table, but I don't think I'm able to do it by myself.

Here's how it looks in TestDisk:


Disk /dev/sda - 500 GB / 465 GiB - CHS 60802 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 1 1 3915 254 63 62910477
D HPFS - NTFS 3916 0 1 4959 254 63 16771860 [Windows XP]


I've filled sizes according to TestDisk's findings. First 3 partitions were OK, the problem lies in the extended partition holding 2 logical ones. By the way, TestDisk is able to enter the 400gb partition and see the files.

View 2 Replies View Related

Programming :: Scripting Sfdisk To Wipe All Partitions And Create New?

Apr 12, 2010

anyone have a script they'd be willing to share that auto detects and wipes all partitions off a drive and recreates a new one and then does a mkfs on it?

View 1 Replies View Related

General :: Differences Between UID 0 And GID 0?

Feb 24, 2010

Anyone knows the differences between UID 0 and GID 0?

View 6 Replies View Related

General :: Differences Between Two USB Keyboards?

Jun 24, 2011

I have a proprietary device - something like an iPad screen - which has a front panel display with touchscreen buttons that work internally as a USB keyboard. During testing/debugging I want to connect it to another keyboard via the external USB port.Any application which I open on the device by pressing some characters on the touchscreen accepts input codes from either USB keyboard. I want to limit the touchscreen USB keyboard input only to a specific set of apps.Is there a program which can help me detect which USB port or device the code is coming from? Or someway I can map one keyboard to send a different set of codes? The device is using Linux.

View 2 Replies View Related

General :: Differences Between XFree86 And KDE?

Oct 7, 2009

My old Intrepid box got old and senile in the hardware, so I had to take it back round the shed and put her down.I buried her next to her favorite tree in the backyard. So yes, I got this new Mini ITX setup with a dual core Atom processor and 4 gigs of ram for my new computer. I'm going to use it as a media center in my living room. However Atom 1.6 ghz is no screamer so I'd like to build a system using a light weight operating environment to leave more power for running programs and playing my media.

I could install the latest version of Kubuntu again but I thought this time I'd try to get a bit deeper into Linux and educate myself. Could someone clarify the differences between XFree86, Window Manager, and a Desktop Environment (KDE/GNOME/etc)? I know it goes like Hardware -> XServer -> XFree86 -> Window Manager (I read the tutorial on But where does KDE or a "Desktop Environment" come in? Is KDE a decked out window manager with its own programs that runs on top of XFree86 or what? Or does it totally replace XFree86?

View 13 Replies View Related

General :: What Are Basic Differences Between Desktops?

Jun 4, 2010

I took the simple approach and installed the gnome desktop, but I have read about KDE and Xfce and am curious. There may be a lot more that I just haven't heard about yet too. So the question is: Without doing a reinstall and messing up the downloads and settings I have now, how do I try a new desktop like Xfce or Kde? Also, what are the basic differences between the desktops?

View 9 Replies View Related

General :: Differences Between Kubuntu And Ubuntu?

Apr 3, 2010

what are the exact differences between Kubuntu and Ubuntu? like programs, etc. the desktop environment is obvious, but what are the smaller differences? I just wanted to know before I download one..

View 2 Replies View Related

General :: Differences Between Shells - Which One Is Better To Run Under Scripts

Nov 16, 2010

What are the differences between the shells in Linux (eg. bash,bourne,korn,C etc) and which one is it better to run scripts under?

View 4 Replies View Related

General :: How To Use Fdisk

May 13, 2011

I have knowledge to make partitions unders windows using fdisk. In Red Hat there is also a fdisk command but how can I use it? In which situations we use linux fdisk ?

View 6 Replies View Related

General :: How To Use The Fdisk

Jun 3, 2011

I have used fdisk command in windows environment.Just insert a bootable cd having fdisk into cdroom and start hard disk partitioning. I have been working in red hat/fedora Linux since many months.I always use gui interface to do my hard disk partition. Well i am eager to learn Fdisk under Linux. How can I use it ,Its method to create a a fdisk cd or it is in the 1st cd of the operating system ?

View 8 Replies View Related

General :: Differences Between Shell , Console & Terminal?

Jan 9, 2011

What are the differences between shell , console & terminal?

This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating between a shell (such as Bourne or bash) and the Terminal application in GNOME. I realise that both are completely different but I can't seem to find a clear answer written in text. Could anyone clearly distinguish between both?

View 4 Replies View Related

General :: Windows UAC Vs System Sudo / Differences Between Two?

Feb 8, 2011

Is it correct to say that Windows UAC is conceptually the same as Linux sudo?

Can you point out the differences between the two?

View 3 Replies View Related

General :: What Are The Differences Between Shell , Console & Terminal

Jul 23, 2011

I have come across the use of the term terminal, virtual terminals/consoles, real-text terminals but do not understand what terminal refers to. Does it refer to the screen that is in-front of me whilst I post this question or does it refer to something specific?EDITI came across a similar post at What are the differences between shell , console & terminal? and it seems to be similar to the one I posted although am still confused about the use of the sentence Decades ago, this was a physical device consisting of little more than a monitor and keyboard. What does this device look like and how is different to a monitor?

View 2 Replies View Related

General :: Comparing Two Files For Differences And Similarities

Jul 26, 2010

Iam having the following two linux files.


Now i want the following out puts

1. similar nos in both the file 1 and file 2 > output= File 3;
2. In file 1, but not in file 2 > out put= file 4;
3. In file 2, but not in file 1 > output = file 5;

The command sdiff is giving output with symbols > < | etc, and the such output file is not clear and ready to print. I want to print directly the output files. AND ALSO TELL ME WHERE I HAVE TO WRITE AWK PROGRAMS AND HOW TO RUN IT.

View 5 Replies View Related

General :: Differences Between LTIB And Menuconfig Tools?

Feb 21, 2010

I am interested in kernel configuration and compilation, so I have executed ltib and menuconfig, but I am not sure to understand what is the difference between Linux Target Image Builder and the Menuconfig tool? Is menuconfig used by or included in ltib? I understand that both tools generate a kernel, But I guess ltib can process "something more"? (packages/target selection? )

View 2 Replies View Related

General :: Windows - Differences Between Shell , Console & Terminal?

May 24, 2010

Thats it! I'm confused with the terminology.

What is the difference between shell , console & terminal?

View 3 Replies View Related

General :: Compare The Files Differences Between 2 Virtualbox Snapshot?

May 20, 2011

How to compare the files differences between 2 virtualbox snapshots?

View 1 Replies View Related

General :: Differences Between Windows .txt Files (Unicode Encoding)?

Jun 7, 2011

I am only using the 128 character set defined in the original ANSI standard. But as a whole how are the files implmeneted differently. I am not concerned with the display, i.e. if a tab is displayed with 6 or 8 characters but the actual internal representation in memory

One differnce I've hear is the use of (Windows) vs. for line termination (Linux).

View 3 Replies View Related

General :: Copying And Moving Operations And Their Performance Differences?

Oct 13, 2010


Well, let's suppose the file is very large, say 10 GB of disk space it is consuming. We perform the above steps. Which operations: cp (copying) or mv (moving) will be more efficient and less time consuming? The inode number 1566966 which was pointing to the file in my home directory is now pointing to the same file which is in some other directry, i.e. /tmp/. Isn't the inode value getting modified in some ways to point to the correct location / beginning of the data block on the hard disk? If the the physical location of the data would not change then we would not be able to free up space in our home directory. That means the mv operation is copying the file into some other location. In other words, it is also performing the cp operation first and then deleting the file from its original location, my home directory in the case above. However, when a file is copied it's inode value changes. But the mv operation is retaining the same indoe value. So, how to determine which operation - mv or cp - is more CPU-friendly or more efficient in terms of performance and time taken to perform the action?

View 1 Replies View Related

General :: Differences In Output Between Top In Batch And Interactive Mode?

Jul 13, 2010

I am trying to figure out why top run in batch mode outputs so many more lines than when run in interactive mode. For example:


View 2 Replies View Related

General :: Update Udev After Fdisk Run?

Apr 2, 2010

How to update /dev directory after creation of new partition on a disk? I have the udev installed, it works perfectly except this. The new devices appear only on reboot.

View 1 Replies View Related

General :: Fdisk -l Doesn't Give Any Results

Mar 6, 2010

i'm in need of my hard drive & usb flash drive numbers, but when i do fdisk -l i get no results - it just gives me the prompt as if i've pressed the enter key on my k/board.

View 1 Replies View Related

General :: Use Fdisk To Make Sda2 Sda1?

Jan 25, 2010

I used GParted to delete my first partition,then moved my second partition to the beginning of the disk. That all went well, but the partition table still shows an unused entry of 0 blocks listed at partition 1. How do I get rid of that entry and make my old second partition sda1?

View 1 Replies View Related

General :: Fdisk Don't Show External Usb Device?

Jun 1, 2010

I have a server with RHEL 5. I have bought a HDD and put it into a USB box. Then I plug it to my server by USB cable. I want to mount it but the fdisk -l command don't show external usb device.

View 7 Replies View Related

General :: Fdisk -l > ~/fsLabLog Error Message?

Feb 16, 2011

When i am typing in the following command:

fdisk -l > ~/fsLabLog
i get a error message
disk /dev/dm-0 doesn't contain a valid partition table.
disk /dev/dm-1 doesn't contain a valid partition table.

View 1 Replies View Related

General :: Partition Table Raw Data Using Fdisk

Apr 27, 2010

had trouble viewing partition table using fdisk, now realised i just cudnt view the whole table from Rescue terminal, please remove this thread, i can't find how ))

View 1 Replies View Related

General :: Unable To Open /dev/sda5(6) Using Fdisk?

Jul 21, 2011

administrator@ubuntu:/dev$ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/loop0 7.5G 4.4G 2.8G 61% /
none 431M 640K 431M 1% /dev


View 5 Replies View Related

Copyrights 2005-15, All rights reserved