Home Man
Today's Posts

Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

"parted" command not working in Fedora9


Login to Reply

Thread Tools Search this Thread
# 1  
Old 05-18-2013
"parted" command not working in Fedora9

I ran the foll. command:
parted /dev/sdb
(parted) p
mkpart primary 1GB 1.5GB

The parted command (when I print the details) outputs something like below:
1 2048MB .......

what I want to bring in your notice that only 1 row came showing the complete size of the disk (detachable device) although I created 2 partitions with fdisk command.

The output of the below differs from above
fdisk /dev/sdb
(....): p

It outputs 2 rows as I created 2 partitions. Why then parted command doesn't show it and shows the total size of the disk.

My other question :
When I put a fresh pendrive (without partitioning) it shows as one. (I mean it doesn't show that there are any partitions as I havent created any which is fine). Now when I create a partition say /dev/sdb1 (of /dev/sdb) then the output of fdisk shows sdb1. What about the remaining space. Now after creating a partition (sdb1), why then only sdb1 can be mounted and not the other part. Because earlier when there was no partition , it had mounted the complete disk.
# 2  
Old 05-18-2013
1) Why don't you show the entire output of all relevant commands so we can compare and then, hopefully, conclude the reasons for any strange behaviour?
2) I think that all pen drives come "preformatted" as one large disk/partition, so you can "mount the complete disk". As soon as you interfere yourself with partition tools, you are responsible for the result, i.e. you have to partition the space (and create a file system) you want to access.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using sed command to replace "|" with ^ for all *.dat files in a folder not working cplusplus1 Shell Programming and Scripting 3 09-10-2018 09:53 AM
Using "mailx" command to read "to" and "cc" email addreses from input file asjaiswal UNIX for Dummies Questions & Answers 2 10-11-2014 09:32 PM
awk command to replace ";" with "|" and ""|" at diferent places in line of file shis100 Shell Programming and Scripting 7 03-16-2011 08:59 AM
command for recently modified files - "find" command not working joe.mani UNIX for Advanced & Expert Users 1 08-16-2010 01:49 AM
"sed" command is not working in shell script askumarece Shell Programming and Scripting 2 05-12-2009 09:17 AM
"smbclient" command not working soliberus Solaris 1 11-24-2008 03:46 PM
sub option of awk command not working with "\" character. shareef Shell Programming and Scripting 1 06-10-2008 07:21 AM
Running command "md5" on remote host not working. ynilesh UNIX for Advanced & Expert Users 1 02-01-2008 07:15 AM
Listing only directories in the current working directory using the "ls" command igandu UNIX for Dummies Questions & Answers 2 05-12-2006 04:47 AM

All times are GMT -4. The time now is 08:49 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
Show Password