Question about fdisk command
Hi i am trying to do partition in my SD card. for that i tried
my device name is sdb1. but it says Code:
ariem@ariem-desktop:/dev$ fdisk /dev/sdb1 |
/dev/sdb - fdisk deals with devices.
Probably need sudo on Ubuntu. |
Yes thank you. Now it works fine. I partitionaed my SD card. ANd it shows the out for "print the partition table" is
Code:
Disk identifier: 0x00000000 When i open /media/disk i am not seeing any partitioned part. Just it shows all the things. what is wrong? |
"unable to open" means you need to be root---or use sudo.
Once you have the right privileges and try to do fdisk on a partition, THEN it will tell you--among other things--that there are no partitions. (I don't know what would happen if you attempted to create some.----On my system, it's acting like it is quite willing to try.....;)) |
After creating partitions, you then have to create a filesystem on each one using mkfs. Then, you have to mount the partitions to use them.
|
That command i know. But i am confused how to use that.
Sorry i partitioned only one partion into three. Now i partitoned the whole disk into three partition Now i partitoned the whole disk. see the partition table Code:
Disk identifier: 0x00000000 i want to change first partition as RAW Second partition as FAT32 Third as EXT3 What are the command i have to give change the file system of each partition. I am confused. Please help me |
I think i changed the file system sdc2 and sdc3 partitions. see the output. is this changed
Code:
root@ariem-desktop:/dev# mkfs.ext3 /dev/sdc3 |
To create filesystems on your partitions: "mkfs"
"man mkfs" for details Is "RAW" a filesystem?? (Never seen that before) |
Devices are in /dev
To access a device, you have to mount it. The typical locations are /mnt and /media, but you can pretty much mount a device anywhere you want. Suppose you have sda3 (formatted with a standard filesystem) and you wnat to access it using a new node named "/media/mystick": Code:
cd media |
Simple thing. Now i have 2Gb SD card. I want to make 3 partitions in that and i have to change the file system of each partition. 2nd partion as FAT32 and 3rd partion as EXT#. 1st partion no need to change the file system. now what are all the commands used to create and change the partition file system. Now my device name is /dev/sdd
|
Your question has already been answered here!!!
Did you look at the man page for "mkfs"? |
Why don't you use gparted utility to create desired partitions.
In ubuntu you can run $sudo apt-get install gparted For fedora #yum install gparted Run gparted as superuser to see all devices & their corresponding filesystem detected that is #gparted & It would be another case if you insist on using basic commands. Just trying to help.If you find this post useful then thank me by pressing thumbs up button.Thank You. |
At one point, the OP said that he already HAD partitions and just wanted to format with filesystems.
Regardless, this thread now contains complete instructions for partitioning AND formatting.... |
All times are GMT -5. The time now is 02:48 PM. |