09-15-2011
If a partition stops being writable, it's probably having disk errors of some sort. You may see relevant error messages with dmesg | less
The sdb/sdb1 difference isn't from different kinds of drives, it's because of their contents. Some flash-drives come formatted like old-fashioned floppies -- no partition table. These just show up as /dev/sdb. Others come formatted with a partition table, like hard drives usually do, and show up as /dev/sdb + /dev/sdb1. /dev/sdb is the raw disk, /dev/sdb1 is the first partition.
It's possible to have more than one partition on a flash drive, just like any other block device can, but Windows doesn't support this very well.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a 1 GB jazz drive. The jazz disk is used daily, both at home and at work on my Win 98 Server. So, I have to keep it in vfat format, which is fine because Linux rocks and will read it no problem. :-) However, I can't just stick the disk in the drive and open up the jazz folder in my mnt... (2 Replies)
Discussion started by: wizkid
2 Replies
2. UNIX for Dummies Questions & Answers
i'm prepping for my midterm, which i will bomb. i am scurrying to finish reading the final chapter before i get down into the review.
however, i came across something in chapter 8 - "mounting file systems" that has me really confused.
the text says the following:
then it goes on to... (2 Replies)
Discussion started by: xyyz
2 Replies
3. Solaris
Can anyone tell me how to mount the USB driver in solaris 8?
I try many time that can't to mount USB driver. It can detect the USB driver by typing #iostat -En but can't mount the driver. (1 Reply)
Discussion started by: kingsan
1 Replies
4. Linux
Is it possible to mount a disk from a non-root account?
I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies
5. Solaris
In Solaris 8, when I boot to single user mode, mount a device and then reboot or init 0, the system unmount it automatically. However, in Solaris 10 it does not seem to do the same. Here is what I did:
{0} ok boot -s
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0.... (11 Replies)
Discussion started by: StarSol
11 Replies
6. Cybersecurity
Hello,
I'm trying to remove the need to use sudo to mount (in particular, binding).
Modifying /etc/sudoers using visudo, I have tried:
%admin ALL=NOPASSWD: /usr/bin/mount
%admin ALL=NOPASSWD: /usr/bin/umountand
%admin ALL=(ALL) NOPASSWD: /usr/bin/mount
%admin ALL=(ALL) NOPASSWD:... (5 Replies)
Discussion started by: Narnie
5 Replies
7. Hardware
Hi Gurus of Unix
Recently I install a OpenSolaris in My HP 530
In this moment want to install a USB-A to Serial Cable. Any guru can send a Link where I can use how reference.
I want to configure a Router and my PC don't have any serial Port.
My LapTOP only has USB ports. In this case I buy a... (2 Replies)
Discussion started by: andresguillen
2 Replies
8. UNIX for Dummies Questions & Answers
Hello...
I've mounted a share using standard nomenclature for the NFS mount command with the following command line:
mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)
mnt_for_70 is a mount point I created on {IP address2}
I'm confuse and want to be sure I use the... (1 Reply)
Discussion started by: blaine.miller
1 Replies
9. Solaris
I need a help to find the patch for solaris to fix USB drivers issue on Solaris 10. The server has a PCIE card which is not recognised by the OS. I run #fmadm faulty command which report issue and recommandation to apply the new patch. I got a reference to //sun.com/msg/PCIEX-8000-6D but... (0 Replies)
Discussion started by: espengongo
0 Replies
10. HP-UX
Hi Folks,
Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX.
Thanks in advance,
Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies
PARTX(8) System Administration PARTX(8)
NAME
partx - tell the kernel about the presence and numbering of on-disk partitions
SYNOPSIS
partx [-a|-d|-P|-r|-s|-u] [-t type] [-n M:N] [-] disk
partx [-a|-d|-P|-r|-s|-u] [-t type] partition [disk]
DESCRIPTION
Given a device or disk-image, partx tries to parse the partition table and list its contents. It can also tell the kernel to add or remove
partitions from its bookkeeping.
The disk argument is optional when a partition argument is provided. To force scanning a partition as if it were a whole disk (for example
to list nested subpartitions), use the argument "-" (hyphen-minus). For example:
partx --show - /dev/sda3
This will see sda3 as a whole-disk rather than as a partition.
partx is not an fdisk program - adding and removing partitions does not change the disk, it just tells the kernel about the presence and
numbering of on-disk partitions.
OPTIONS
-a, --add
Add the specified partitions, or read the disk and add all partitions.
-b, --bytes
Print the SIZE column in bytes rather than in human-readable format.
-d, --delete
Delete the specified partitions or all partitions.
-g, --noheadings
Do not print a header line with --show or --raw.
-l, --list
List the partitions. Note that all numbers are in 512-byte sectors. This output format is DEPRECATED in favour of --show. Do not
use it in newly written scripts.
-n, --nr M:N
Specify the range of partitions. For backward compatibility also the format M-N is supported. The range may contain negative num-
bers, for example --nr -1:-1 means the last partition, and --nr -2:-1 means the last two partitions. Supported range specifications
are:
M Specifies just one partition (e.g. --nr 3).
M: Specifies the lower limit only (e.g. --nr 2:).
:N Specifies the upper limit only (e.g. --nr :4).
M:N Specifies the lower and upper limits (e.g. --nr 2:4).
-o, --output list
Define the output columns to use for --show, --pairs and --raw output. If no output arrangement is specified, then a default set is
used. Use --help to get list of all supported columns. This option cannot be combined with the --add, --delete, --update or --list
options.
-P, --pairs
List the partitions using the KEY="value" format.
-r, --raw
List the partitions using the raw output format.
-s, --show
List the partitions. The output columns can be selected and rearranged with the --output option. All numbers (except SIZE) are in
512-byte sectors.
-t, --type type
Specify the partition table type.
--list-types
List supported partition types and exit.
-u, --update
Update the specified partitions.
-S, --sector-size size
Overwrite default sector size.
-v, --verbose
Verbose mode.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
EXAMPLES
partx --show /dev/sdb3
partx --show --nr 3 /dev/sdb
partx --show /dev/sdb3 /dev/sdb
All three commands list partition 3 of /dev/sdb.
partx --show - /dev/sdb3
Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk).
partx -o START -g --nr 5 /dev/sdb
Prints the start sector of partition 5 on /dev/sdb without header.
partx -o SECTORS,SIZE /dev/sda5 /dev/sda
Lists the length in sectors and human-readable size of partition 5 on /dev/sda.
partx --add --nr 3:5 /dev/sdd
Adds all available partitions from 3 to 5 (inclusive) on /dev/sdd.
partx -d --nr :-1 /dev/sdd
Removes the last partition on /dev/sdd.
SEE ALSO
addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8)
AUTHORS
Davidlohr Bueso <dave@gnu.org>
Karel Zak <kzak@redhat.com>
The original version was written by Andries E. Brouwer <aeb@cwi.nl>.
ENVIRONMENT
LIBBLKID_DEBUG=all
enables libblkid debug output.
AVAILABILITY
The partx command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils
/util-linux/>.
util-linux December 2014 PARTX(8)