Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can anyone tell me how can i remove the MBR from /dev/cciss filesystem in SUSE built? The purpose is to do it remotely so that when we reboot the server, it can automatically boot up from PXE instead of local drive.
Am I correct that cciss has to do with a RAID setup?
With a regular drive, you would not "remove the MBR". The MBR is defined as the first sector of the disk and normally contains boot code (which can be removed using "dd if=/dev/zero of=dev/xxx bs=446 count=1") I don't know if this is applicable to a RAID setup.
To see what is in the first sector of /dev/cciss, do "dd if=/dev/cciss bs=512 count=1 | hexdump -C | more" If you don't recognize this as boot code, post the first few lines here.
BUT--I asked for this to be run on /dev/cciss (without the partition part) If in fact this device behaves as a drive, then the MBR is the 1st sector of the device--not the partitions.
/dev/cciss/c0d0 is the drive
/dev/cciss/c0d0p1 is the first partition on the drive
If you really really truly and honestly want to clear the MBR, then you want to use
dd of=/dev/cciss/c0d0 if=/dev/null bs=446 count=1
I Strongly recommend that you give up on this idea. It is dangerous to the health of your array, and possibly your system if you type it wrong or if this isn't really the device you want to mess up, err change. I can't see ANY positive to it. But, there's the command if you absolutely insist.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.