Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am booting CentOS via a USB install. The boot method is simply booting the ISO from GRUB2 installed on the USB Key.

The USB key always gets the "name" /dev/sda. Can I change that name from the kernel command line?

Just adding some info: When I boot Debian from an external USB hard-drive, that hard drive is labeled /dev/sdb, and the one inside the laptop is labeled /dev/sda. This really enhances my suspicion I can control the labels, but how ?

share|improve this question
add comment

2 Answers

You are on the safe side if you ignore the device names (which might arbitrarily change) and identify the file systems by something more unique, eg. the label or UUID.

You can retrieve a list of the file system UUIDs and labels with

# blkid -o list -c /dev/null

You can access the device files in the directories

/dev/disk/by-label
/dev/disk/by-uuid

which are just symbolic links to the corresponding device files. If you wanto finer control what's going on, you should read about how udev works.

share|improve this answer
add comment

well sd is for removable scsi devices .. the a and the b's, etc .. {examples sda, sdb} are the equivalent to the concept of hda, and hdb, etc ...when different devices are plugged in, they are mapped to sda, sdb, etc .so if you plug some device it will be mapped to /dev/sda and then if you plug video camera it will map to /dev/sdb. And it is general that usb key getting name sda and in some computer it may get sdb also.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.